/* ============================================================
   Orateq — лендинг. Профессиональная дизайн-система.
   Эстетика: сдержанная, выверенная (Linear / Vercel / Stripe).
   ============================================================ */

@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { min-height: 100%; }
  img, svg { display: block; max-width: 100%; }
  button, input { font: inherit; color: inherit; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
}

:root {
  /* нейтральная шкала */
  --bg: #08080a;
  --bg-2: #0c0c0f;
  --surface: #111114;
  --surface-2: #16161b;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f4f4f6;
  --text-2: #a6a6b0;
  --text-3: #6c6c78;

  /* единственный акцент + поддержка */
  --accent: #ca8a04;
  --accent-2: #eab308;
  --accent-ink: #0c0a09;
  --accent-soft: rgba(202, 138, 4, 0.12);
  --accent-line: rgba(202, 138, 4, 0.32);
  --positive: #4ade80;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.5);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --container: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-2: #f4f4f7;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --line: rgba(12, 14, 24, 0.08);
  --line-2: rgba(12, 14, 24, 0.14);
  --text: #16161a;
  --text-2: #54545f;
  --text-3: #8a8a96;
  --accent-soft: rgba(202, 138, 4, 0.1);
  --shadow-md: 0 12px 30px rgba(30,35,70,.1);
  --shadow-lg: 0 30px 70px rgba(30,35,70,.14);
}

@layer base {
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv02','cv03','cv04','cv11';
    overflow-x: hidden;
  }

  /* фон: мягкое верхнее свечение + тонкая сетка-зерно */
  body::before {
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
      radial-gradient(60% 50% at 50% -8%, rgba(202,138,4,0.14), transparent 70%),
      radial-gradient(40% 30% at 90% 0%, rgba(202,138,4,0.05), transparent 60%);
  }
  body::after {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.028em; font-weight: 600; }
}

@layer utilities {
  .container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
  .section { padding: 120px 0; position: relative; }
  .section-sm { padding: 80px 0; }
  .center { text-align: center; }
  .stack > * + * { margin-top: var(--gap, 16px); }
  .muted { color: var(--text-2); }
  .accent { color: var(--accent-2); }
  .measure { max-width: 620px; }
  .center .measure { margin-inline: auto; }
}

/* ---------- typography ---------- */
.display { font-size: clamp(40px, 6.4vw, 72px); font-weight: 600; letter-spacing: -0.035em; }
.h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; }
.h3 { font-size: 20px; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); line-height: 1.55; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px 6px 10px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--surface);
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sheen {
  background: linear-gradient(180deg, var(--text) 60%, var(--text-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }

/* ---------- buttons ---------- */
.btn {
  --pad: 11px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad); border-radius: var(--r-sm); font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .18s var(--ease); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,108,255,.35); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-3); transform: translateY(-1px); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { --pad: 14px 24px; font-size: 16px; border-radius: var(--r-md); }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(160%); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); box-shadow: var(--shadow-sm); }
.brand .mark svg { width: 16px; height: 16px; color: #fff; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--text-2); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer; transition: all .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--text-3); }
.icon-btn svg { width: 17px; height: 17px; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 40px; }
.hero .kicker { margin-bottom: 24px; }
.hero h1 { max-width: 14ch; margin-bottom: 22px; }
.hero .lead { max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--text-3); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--positive); }

/* product mockup */
.showcase { margin-top: 72px; position: relative; }
.showcase-glow { position: absolute; inset: -10% 10% auto; height: 320px; background: radial-gradient(50% 100% at 50% 0%, rgba(124,108,255,.22), transparent 70%); filter: blur(40px); z-index: -1; }
.window {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 960px; margin-inline: auto;
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar .dots { display: flex; gap: 7px; }
.window-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window-bar .addr { margin-left: 10px; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.window-bar .addr svg { width: 13px; height: 13px; }
.window-body { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 460px; }
.chat { padding: 22px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; }
.chat-ava svg { width: 18px; height: 18px; }
.chat-head b { font-size: 14.5px; font-weight: 600; }
.chat-head small { font-size: 12px; color: var(--positive); }
.msg { max-width: 86%; padding: 10px 13px; font-size: 14px; line-height: 1.45; border-radius: 14px; opacity: 0; transform: translateY(8px); animation: rise .5s var(--ease) forwards; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.m1 { animation-delay: .15s } .msg.m2 { animation-delay: 1s } .msg.m3 { animation-delay: 1.9s }
.voicebar { display: flex; align-items: center; gap: 8px; }
.voicebar .pp { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.voicebar .pp svg { width: 11px; height: 11px; color: #fff; }
.eqs { display: flex; align-items: center; gap: 2px; height: 18px; }
.eqs i { width: 2.5px; background: rgba(255,255,255,.75); border-radius: 2px; animation: eq 1.1s ease-in-out infinite; }
.panel { padding: 22px; background: var(--bg-2); }
.panel-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; }
.evt { display: flex; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 10px; opacity: 0; transform: translateY(8px); animation: rise .5s var(--ease) forwards; }
.evt.e1 { animation-delay: 2.4s } .evt.e2 { animation-delay: 2.7s }
.evt .rail { width: 3px; border-radius: 3px; background: var(--accent); }
.evt .rail.green { background: var(--positive); }
.evt b { font-size: 14px; font-weight: 600; }
.evt .sub { font-size: 12.5px; color: var(--text-2); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11.5px; color: var(--text-2); padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; }
.synced { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); opacity: 0; animation: rise .5s var(--ease) 3s forwards; }
.synced svg { width: 14px; height: 14px; color: var(--positive); }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes eq { 0%,100% { height: 4px } 50% { height: 16px } }

/* ---------- logos ---------- */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos-inner { display: flex; align-items: center; justify-content: center; gap: 12px 40px; flex-wrap: wrap; padding: 28px 0; }
.logos-label { font-size: 12.5px; color: var(--text-3); width: 100%; text-align: center; margin-bottom: 8px; letter-spacing: .04em; }
.logo-item { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.logo-item svg { width: 19px; height: 19px; }

/* ---------- section heading ---------- */
.s-head { max-width: 640px; margin-bottom: 56px; }
.s-head.center { margin-inline: auto; }
.s-head .eyebrow { display: block; margin-bottom: 14px; }
.s-head p { margin-top: 14px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--surface); padding: 30px; transition: background .2s; }
.feature:hover { background: var(--surface-2); }
.feature .ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-2); margin-bottom: 18px; }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

/* ---------- split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.rev .split-media { order: -1; }
.split-media { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-md); }
.split h2 { margin-bottom: 14px; }
.split ul { margin-top: 22px; display: grid; gap: 12px; }
.split li { display: flex; gap: 11px; color: var(--text-2); font-size: 15px; }
.split li svg { width: 19px; height: 19px; color: var(--accent-2); flex-shrink: 0; margin-top: 1px; }

/* mini list mock */
.mock-row { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.mock-row + .mock-row { margin-top: 10px; }
.mock-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; }
.mock-check.on { background: var(--accent); border-color: var(--accent); }
.mock-check.on svg { width: 12px; height: 12px; color: #fff; }
.mock-row .t { font-size: 14px; }
.mock-row.done .t { color: var(--text-3); text-decoration: line-through; }
.mock-row .meta { margin-left: auto; font-size: 12px; color: var(--text-3); }
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; width: 0; transition: width 1.2s var(--ease); }

/* ---------- demo ---------- */
.demo-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-md); max-width: 880px; margin-inline: auto; }
.demo-field { display: flex; gap: 10px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 7px 7px 7px 16px; background: var(--bg-2); transition: border-color .2s, box-shadow .2s; }
.demo-field:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.demo-field input { flex: 1; background: none; border: none; outline: none; font-size: 16px; }
.demo-field input::placeholder { color: var(--text-3); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.demo-chips button { font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: all .15s; }
.demo-chips button:hover { color: var(--text); border-color: var(--text-3); }
.demo-result { margin-top: 22px; display: grid; gap: 10px; }
.demo-result .sum { font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.demo-result .sum svg { width: 15px; height: 15px; color: var(--accent-2); }
.r-card { display: flex; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); opacity: 0; transform: translateY(8px); animation: rise .4s var(--ease) forwards; }
.r-card .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--accent-2); flex-shrink: 0; }
.r-card .ic svg { width: 17px; height: 17px; }
.r-card .t { font-weight: 600; font-size: 14.5px; }
.r-card .m { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 5px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line-2); }
.step .n { font-size: 13px; font-weight: 600; color: var(--accent-2); margin-bottom: 12px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; }

/* ---------- pricing ---------- */
.billing { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); margin-bottom: 44px; }
.billing button { border: none; background: none; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all .18s; }
.billing button.active { background: var(--accent); color: #fff; }
.billing .save { color: var(--positive); font-size: 12px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: border-color .2s, transform .2s; }
.plan:hover { border-color: var(--line-2); }
.plan.featured { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 40%), var(--surface); position: relative; }
.plan.featured::after { content: 'Популярный'; position: absolute; top: 18px; right: 18px; font-size: 11.5px; color: var(--accent-2); border: 1px solid var(--accent-line); padding: 3px 10px; border-radius: 999px; }
.plan .pname { font-size: 15px; font-weight: 600; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 4px; }
.plan .price b { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; }
.plan .price span { color: var(--text-3); font-size: 15px; }
.plan .desc { font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; }
.plan ul { display: grid; gap: 12px; margin-bottom: 26px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.plan li svg { width: 17px; height: 17px; color: var(--accent-2); flex-shrink: 0; margin-top: 1px; }
.plan .btn { margin-top: auto; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 4px; font-size: 16.5px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-2); }
.faq summary .chev { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 4px 22px; color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ---------- cta ---------- */
.cta-band { border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 64px 32px; text-align: center; background: radial-gradient(80% 140% at 50% 0%, var(--accent-soft), transparent 60%), var(--surface); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer h4 { font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; font-weight: 600; }
.footer a { display: block; color: var(--text-2); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer a:hover { color: var(--text); }
.footer .about { max-width: 280px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; flex-wrap: wrap; gap: 12px; }

/* ---------- progress + reveal ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 60; transition: width .1s linear; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- floating CTA (mobile) ---------- */
.float-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--line-2);
  display: flex; justify-content: center;
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.float-cta.show { transform: none; }
.float-cta .btn { width: 100%; max-width: 360px; box-shadow: 0 8px 32px rgba(124,108,255,.35); }
.float-cta svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .window-body { grid-template-columns: 1fr; }
  .panel { border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .split, .steps, .plans, .footer-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .nav-links { display: none; }
  .burger { display: grid; }
  .section { padding: 84px 0; }
  body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
