/* Quevell company site v1 — brand constants from docs/brand/quevell-brand-v1.md.
   Ink + copper, Golos Text + JetBrains Mono (all SIL OFL, shipped in /assets/fonts),
   no third-party requests of any kind. */

@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-text-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-text-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/JetBrainsMono-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/JetBrainsMono-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #1B1F24;
  --copper: #B85B27;
  --copper-dark: #E09A63;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --text: #1B1F24;
  --text-soft: #4A5158;
  --text-faint: #7C848D;
  --line: #E3E6EA;
  --font-ui: 'Golos Text', -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --card: #1B1F24;
    --text: #ECEEF1;
    --text-soft: #B7BDC4;
    --text-faint: #7C848D;
    --line: #2A2F36;
    --copper: #E09A63;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font: 400 16px/1.65 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { display: block; }
.brand strong { font-weight: 600; font-size: 21px; letter-spacing: -0.015em; }
.lang-switch { margin-left: auto; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.lang-switch a { padding: 4px 14px; border-radius: 999px; text-decoration: none; color: var(--text-faint); }
.lang-switch a.active { color: var(--bg); background: var(--ink); }
@media (prefers-color-scheme: dark) { .lang-switch a.active { color: var(--ink); background: #ECEEF1; } }

/* Hero */
.hero { padding: 104px 0 84px; }
.hero h1 { margin: 0 0 22px; max-width: 15ch; font-size: clamp(38px, 6vw, 62px); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
.hero h1 em { font-style: normal; color: var(--copper); }
.hero p { margin: 0 0 36px; max-width: 56ch; font-size: 19px; color: var(--text-soft); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button { display: inline-block; padding: 13px 28px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; }
.button.primary { color: #fff; background: var(--copper); }
.button.primary:hover { filter: brightness(1.06); }
.button.ghost { border: 1px solid var(--line); color: var(--text); }
.button.ghost:hover { border-color: var(--copper); color: var(--copper); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.kicker { margin: 0 0 10px; color: var(--copper); font: 600 12px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
h2 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.lead { margin: 0 0 40px; max-width: 62ch; font-size: 17px; color: var(--text-soft); }
.lead.bench { margin: 40px 0 0; font-size: 15px; color: var(--text-faint); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card { padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; color: var(--text-soft); }
.card .tag { display: inline-block; margin-bottom: 14px; color: var(--copper); font: 600 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* Illustrations */
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story figure { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.story svg { display: block; width: 100%; height: auto; }
.story figcaption { margin-top: 12px; font-size: 14px; color: var(--text-soft); }
.stroke-ink { stroke: var(--text); }
.fill-ink { fill: var(--text); }
.stroke-copper { stroke: var(--copper); }
.fill-copper { fill: var(--copper); }

/* CTA + footer */
.cta { text-align: center; }
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0 auto 30px; max-width: 52ch; color: var(--text-soft); }
.site-footer { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 13px; }
.site-footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--text-faint); }
.site-footer .mono { font-family: var(--font-mono); font-size: 12px; }
.site-footer span:last-child { margin-left: auto; }

/* Mark splash — the full trajectory from the brand reference (640ms): the dot flies in on
   the upper-right tangent, rides the orbit, then settles into the grip with a 6% overshoot,
   while the arc draws itself counter-clockwise. Per-keyframe easings follow the spec. */
@media (prefers-reduced-motion: no-preference) {
  .brand .mark-arc { stroke-dasharray: 76; stroke-dashoffset: 76; animation: qarc 420ms cubic-bezier(0.4, 0, 0.2, 1) 180ms forwards; }
  .brand .mark-dot {
    offset-path: path('M28 -28 L10.6 -10.6 A15 15 0 1 0 13 8 L0 0');
    offset-rotate: 0deg;
    animation: qflight 640ms forwards;
  }
  @keyframes qarc { to { stroke-dashoffset: 0; } }
  @keyframes qflight {
    0%   { offset-distance: 0%; opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
    8%   { opacity: 1; }
    37.5% { offset-distance: 34%; animation-timing-function: linear; }
    65.6% { offset-distance: 82%; animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    100% { offset-distance: 100%; opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) { .brand .mark-arc, .brand .mark-dot { animation: qfade 200ms ease forwards; } @keyframes qfade { from { opacity: 0; } to { opacity: 1; } } }

/* The door into the product, beside the language switch: a visitor looking for it looks
   in the header, and it is the only action on this page that is not an email link. */
.site-actions { display: flex; align-items: center; margin-left: 4px; }
.site-actions .button { padding: 8px 18px; font-size: 15px; }
