/* ============================================================
   voicepocket — marketing + account pages
   Shares the design tokens used by the Voice Studio.
   ============================================================ */

:root {
  --accent: #7c5cff;
  --accent-2: #a78bfa;
  --accent-3: #5b46d6;
  --ok: #22c55e;
  --err: #ef4444;

  --bg: #08080a;
  --surface: #121216;
  --surface-2: #17171d;
  --surface-3: #1e1e26;
  --border: #24242c;
  --border-2: #2e2e38;
  --text: #f4f4f5;
  --text-2: #9d9daa;
  --text-3: #6b6b78;

  --accent-soft: rgba(124, 92, 255, .15);
  --accent-line: rgba(124, 92, 255, .38);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .6);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
svg { display: block; flex-shrink: 0; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ico { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ico-sm { width: 15px; height: 15px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(8, 8, 10, .72);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  transition: border-color .2s var(--ease);
}
.nav.stuck { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 14px; height: 66px; }

.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), var(--accent-3));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.logo-text { font-weight: 640; font-size: 15.5px; letter-spacing: -.3px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-2); transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 570; white-space: nowrap;
  border: 1px solid var(--border-2); background: var(--surface);
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease), filter .15s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn:active { transform: scale(.985); }
.btn-primary {
  background: linear-gradient(140deg, var(--accent), var(--accent-3));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 3px 16px rgba(124, 92, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { filter: brightness(1.1); border-color: transparent; background: linear-gradient(140deg, var(--accent), var(--accent-3)); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------- hero */
.hero { position: relative; padding: 92px 0 96px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -340px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 720px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, .26), transparent 62%);
  filter: blur(20px);
}
.hero > * { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 30px; margin-bottom: 26px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-size: 12.5px; font-weight: 570; color: var(--accent-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }

h1.hero-title {
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.04; font-weight: 700; letter-spacing: -2px;
  max-width: 15ch; margin: 0 auto;
}
.hero-title .grad {
  background: linear-gradient(100deg, var(--accent-2), #67e8f9 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: clamp(15.5px, 2vw, 18.5px); color: var(--text-2);
  max-width: 60ch; margin: 22px auto 0; line-height: 1.62;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--text-3); margin-top: 18px; }

/* ---------------------------------------------------------- product visual */
.showcase {
  margin: 62px auto 0; max-width: 940px;
  border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.showcase-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.showcase-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); display: block; }
.showcase-bar .addr {
  margin-left: 12px; font-size: 11.5px; color: var(--text-3); font-family: var(--mono);
}
.showcase-body { padding: 26px; text-align: left; }
.showcase-text { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.showcase-row { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.showcase-voice {
  display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 7px;
  border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface-2);
}
.showcase-av { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(140deg, #f59e0b, #ef4444); display: grid; place-items: center; font-size: 11px; font-weight: 650; }
.showcase-gen {
  margin-left: auto; padding: 9px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(140deg, var(--accent), var(--accent-3)); color: #fff;
  box-shadow: 0 3px 14px rgba(124, 92, 255, .36);
}

.bars { display: flex; align-items: center; gap: 3px; height: 46px; margin-top: 24px; }
.bars i {
  display: block; width: 3px; border-radius: 2px; background: var(--accent);
  animation: bar 1.5s var(--ease) infinite; opacity: .85;
}
@keyframes bar { 0%, 100% { height: 15%; } 50% { height: 90%; } }

/* ---------------------------------------------------------- sections */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-tag { font-size: 12px; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent-2); }
.section-head h2 { font-size: clamp(27px, 4vw, 38px); line-height: 1.16; letter-spacing: -1.1px; font-weight: 680; margin-top: 12px; }
.section-head p { color: var(--text-2); margin-top: 14px; font-size: 16px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.feature {
  padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.feature:hover { border-color: var(--border-2); transform: translateY(-3px); }
.feature-mark {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent-2);
}
.feature h3 { font-size: 16px; font-weight: 620; letter-spacing: -.3px; }
.feature p { color: var(--text-2); font-size: 14px; margin-top: 8px; line-height: 1.62; }

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: step; }
.step { padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); position: relative; }
.step-num {
  width: 30px; height: 30px; border-radius: 9px; margin-bottom: 15px;
  background: linear-gradient(140deg, var(--accent), var(--accent-3)); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 680;
}
.step h3 { font-size: 15.5px; font-weight: 620; }
.step p { color: var(--text-2); font-size: 14px; margin-top: 7px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px 8px 8px; border-radius: 30px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 540;
  transition: border-color .15s var(--ease);
}
.chip:hover { border-color: var(--accent-line); }
.chip .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 680; color: #fff; }

/* ---------------------------------------------------------- cta band */
.cta {
  border: 1px solid var(--accent-line); border-radius: 22px; padding: 56px 32px; text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(124, 92, 255, .20), transparent 68%),
    var(--surface);
}
.cta h2 { font-size: clamp(25px, 3.6vw, 35px); letter-spacing: -1px; font-weight: 680; }
.cta p { color: var(--text-2); margin: 14px auto 28px; max-width: 48ch; }

/* ---------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-note { color: var(--text-3); font-size: 13px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; }
.footer-links a { color: var(--text-3); font-size: 13px; }
.footer-links a:hover { color: var(--text); }

/* ---------------------------------------------------------- auth pages */
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr; place-items: center; padding: 32px 20px; position: relative; }
.auth-shell::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 480px at 50% -10%, rgba(124, 92, 255, .16), transparent 62%);
}
.auth-card {
  position: relative; width: 100%; max-width: 428px;
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
  padding: 34px 32px; box-shadow: var(--shadow-lg);
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .logo { justify-content: center; margin: 0 0 20px; }
.auth-head h1 { font-size: 23px; font-weight: 660; letter-spacing: -.6px; }
.auth-head p { color: var(--text-2); font-size: 14px; margin-top: 7px; }

.field-group { margin-bottom: 15px; }
.field-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.input::placeholder { color: var(--text-3); }

.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 8px; border-radius: 8px; color: var(--text-3);
}
.pw-toggle:hover { color: var(--text); background: var(--surface-3); }

.hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 11px; margin-bottom: 18px;
  font-size: 13.5px; line-height: 1.5;
  background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5;
}
.alert .ico { color: var(--err); margin-top: 1px; }

.auth-alt { text-align: center; font-size: 13.5px; color: var(--text-2); margin-top: 22px; }
.auth-alt a { color: var(--accent-2); font-weight: 570; }
.auth-alt a:hover { text-decoration: underline; }

.auth-back { position: absolute; top: 24px; left: 24px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-3); }
.auth-back:hover { color: var(--text); }

@media (max-width: 720px) {
  .hero { padding: 62px 0 66px; }
  .section { padding: 60px 0; }
  .nav-links .nav-link { display: none; }
  .showcase-body { padding: 18px; }
  .auth-card { padding: 28px 22px; }
  .auth-back { position: static; margin-bottom: 18px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
