/* ============================================================
   VoxiConf — premium enterprise dark landing
   ============================================================ */

/* ---------- Theme tokens ---------- */
:root {
  /* default = Графит */
  --bg-0: #0a0e17;          /* page base */
  --bg-1: #0e1320;          /* deeper sections */
  --panel: #121829;         /* cards */
  --panel-2: #161d30;       /* raised */
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.13);

  --ink: #eef1f8;           /* primary text */
  --ink-soft: #aeb6c8;      /* secondary */
  --ink-mute: #7b8499;      /* tertiary / labels */

  --accent: #4d7cfe;
  --accent-2: #6f9bff;
  --accent-ink: #ffffff;
  --accent-glow: rgba(77,124,254,0.28);
  --accent-soft: rgba(77,124,254,0.12);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 22px;

  --maxw: 1200px;
  --shadow-soft: 0 24px 60px -28px rgba(0,0,0,0.7);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 80px -40px rgba(0,0,0,0.9);

  --font-display: "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Тема: Полночь — глубже, холоднее, циан-акцент */
:root[data-theme="midnight"] {
  --bg-0: #05070e;
  --bg-1: #080b15;
  --panel: #0d1220;
  --panel-2: #111728;
  --ink: #eaf2fb;
  --accent: #2fd4c7;
  --accent-2: #5fe8dd;
  --accent-ink: #04201d;
  --accent-glow: rgba(47,212,199,0.26);
  --accent-soft: rgba(47,212,199,0.10);
}

/* Тема: Сталь — светлее графит, стальной тёплый акцент */
:root[data-theme="steel"] {
  --bg-0: #131722;
  --bg-1: #171c29;
  --panel: #1c2230;
  --panel-2: #222a3a;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);
  --ink: #f1f3f8;
  --ink-soft: #b8c0d0;
  --ink-mute: #8b94a6;
  --accent: #c9a25e;
  --accent-2: #e0bd7e;
  --accent-ink: #1d1709;
  --accent-glow: rgba(201,162,94,0.26);
  --accent-soft: rgba(201,162,94,0.12);
}

/* Accent override via tweak (applied inline by JS as --accent etc.) */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 500px at 8% 8%, rgba(255,255,255,0.03), transparent 55%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* All inline icons use the Lucide icon set — round joins/caps for consistency */
svg { stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

section { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 16px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, background .2s ease, box-shadow .25s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 14px 34px -14px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 20px 44px -16px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn .arr { width: 17px; height: 17px; transition: transform .22s ease; flex: none; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-0) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand .mark {
  width: 38px; height: 38px; flex: none; display: block;
}
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand b { font-weight: 700; }
.brand span { color: var(--ink-mute); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 86px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
.hero h1 .grad { color: var(--accent-2); }
.hero-lede { color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 20px); margin: 26px 0 34px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 30px; margin-top: 42px; flex-wrap: wrap; }
.hero-meta .stat .n { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.hero-meta .stat .l { color: var(--ink-mute); font-size: 13px; margin-top: 2px; }
.hero-meta .stat .n .accent { color: var(--accent-2); }

/* product mock */
.hero-vis { position: relative; }
.mock {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: 14px;
  overflow: hidden;
}
.mock::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 80% -10%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 14px; }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar .title { margin-left: 12px; font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); }
.mock-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-family: var(--font-mono); color: #ff6b6b; }
.mock-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5b5b; box-shadow: 0 0 0 0 rgba(255,91,91,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,91,91,.55)} 70%{box-shadow:0 0 0 7px rgba(255,91,91,0)} 100%{box-shadow:0 0 0 0 rgba(255,91,91,0)} }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.tile.main { grid-column: 1 / -1; aspect-ratio: 16/8; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.tile .name { position: absolute; left: 10px; bottom: 9px; font-size: 11px; font-family: var(--font-mono); color: #fff; background: rgba(0,0,0,0.35); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); white-space: nowrap; }
.tile .mic { position: absolute; right: 9px; bottom: 9px; width: 22px; height: 22px; border-radius: 6px; background: rgba(0,0,0,0.4); display: grid; place-items: center; }
.tile .mic svg { width: 12px; height: 12px; }
.mock-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 8px; }
.ctl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-soft); }
.ctl.end { background: #e2483b; border-color: #e2483b; color: #fff; width: 54px; border-radius: 999px; }
.ctl svg { width: 17px; height: 17px; }

.float-badge {
  position: absolute; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--panel) 75%, transparent);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 11px 14px; box-shadow: var(--shadow-soft); display: flex; gap: 10px; align-items: center;
}
.float-badge .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: none; }
.float-badge .ico svg { width: 16px; height: 16px; }
.float-badge .t { font-size: 12px; line-height: 1.3; }
.float-badge .t b { display: block; font-size: 13px; }
.float-badge .t span { color: var(--ink-mute); }
.float-badge.fb-a { top: 26px; left: -26px; }
.float-badge.fb-b { bottom: 84px; right: -22px; }

/* trusted strip */
.trusted { padding: 8px 0 40px; }
.trusted .lbl { text-align: center; color: var(--ink-mute); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 22px; }
.logos { display: flex; align-items: center; justify-content: center; gap: 54px; flex-wrap: wrap; opacity: 0.62; }
.logos .lg { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.logos .lg .d { width: 9px; height: 9px; border-radius: 2px; background: var(--ink-soft); }

/* ---------- Features ---------- */
.features { padding: 96px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fcard {
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.fcard:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.fcard.wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.fcard .ico { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line); }
.fcard .ico svg { width: 24px; height: 24px; }
.fcard h3 { font-size: 22px; margin-bottom: 10px; }
.fcard p { color: var(--ink-soft); font-size: 15.5px; }
.fcard .mini-vis { aspect-ratio: 4/3; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-0); position: relative; overflow: hidden; }

/* waveform */
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 100%; padding: 0 18px; }
.wave i { width: 5px; border-radius: 3px; background: linear-gradient(var(--accent-2), var(--accent)); animation: wv 1.4s ease-in-out infinite; }
@keyframes wv { 0%,100%{height:14%} 50%{height:78%} }

/* ---------- Advantages ---------- */
.adv { padding: 96px 0; background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acard { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.acard .num { font-family: var(--font-mono); color: var(--accent-2); font-size: 13px; letter-spacing: 0.1em; }
.acard h3 { font-size: 20px; margin: 14px 0 9px; }
.acard p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Security ---------- */
.sec { padding: 96px 0; }
.sec-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.sec-list { display: grid; gap: 14px; margin-top: 30px; }
.sec-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); }
.sec-item .ck { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: none; margin-top: 1px; }
.sec-item .ck svg { width: 15px; height: 15px; }
.sec-item h4 { margin: 0 0 3px; font-size: 16px; font-family: var(--font-display); font-weight: 600; }
.sec-item p { color: var(--ink-soft); font-size: 14px; }
.sec-shield {
  aspect-ratio: 1/1; border-radius: var(--radius-l); border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 30%, var(--accent-soft), var(--panel) 62%);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.sec-shield .ring { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.sec-shield svg.big { width: 110px; height: 110px; color: var(--accent-2); position: relative; z-index: 2; }
.sec-shield .lock-meta { position: absolute; bottom: 26px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.1em; }

/* ---------- Form ---------- */
.cta-form { padding: 96px 0 100px; }
.form-card {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-l); overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow-card);
}
.form-aside { padding: 46px; background: linear-gradient(165deg, var(--panel-2), var(--bg-1)); border-right: 1px solid var(--line); }
.form-aside h2 { font-size: 30px; margin: 16px 0 14px; }
.form-aside p { color: var(--ink-soft); font-size: 15.5px; }
.form-aside .perks { margin-top: 28px; display: grid; gap: 13px; }
.form-aside .perk { display: flex; gap: 11px; align-items: center; font-size: 14.5px; color: var(--ink-soft); }
.form-aside .perk svg { width: 17px; height: 17px; color: var(--accent-2); flex: none; }
.form-body { padding: 46px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; font-weight: 500; }
.field label .req { color: var(--accent-2); }
.field input, .field textarea {
  width: 100%; background: var(--bg-0); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: var(--radius-s); padding: 13px 15px; font-family: var(--font-body); font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid textarea { border-color: #e2483b; box-shadow: 0 0 0 3px rgba(226,72,59,0.14); }
.field .err { color: #ff8178; font-size: 12px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.form-foot .note { color: var(--ink-mute); font-size: 12.5px; max-width: 300px; }
.form-foot .btn-primary { padding: 15px 30px; }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success .ok svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 26px; margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 100px; }
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: start; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.faq-q .pm { width: 26px; height: 26px; flex: none; border: 1px solid var(--line-strong); border-radius: 8px; display: grid; place-items: center; transition: background .2s, color .2s, transform .25s; }
.faq-q .pm svg { width: 14px; height: 14px; transition: transform .25s ease; }
.faq-item.open .faq-q .pm { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq-item.open .faq-q .pm svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { color: var(--ink-soft); font-size: 15.5px; padding: 0 4px 26px; max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 40px; background: var(--bg-1); }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-top .brand { margin-bottom: 14px; }
.foot-col h5 { font-size: 13px; color: var(--ink-mute); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px; font-weight: 500; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 13.5px; flex-wrap: wrap; }
.foot-desc { color: var(--ink-soft); font-size: 15px; max-width: 300px; margin-top: 4px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .sec-grid, .faq-grid, .form-card { grid-template-columns: 1fr; }
  .form-aside { border-right: none; border-bottom: 1px solid var(--line); }
  .feature-grid, .adv-grid { grid-template-columns: 1fr; }
  .fcard.wide { grid-template-columns: 1fr; }
  .float-badge.fb-a { left: 8px; }
  .float-badge.fb-b { right: 8px; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 64px; }
  .form-aside, .form-body { padding: 30px; }
  .foot-cols { gap: 36px; }
}
