/* ===================== Voxo landing — design system ===================== */
:root {
  --bg: #06070f;
  --bg-2: #0a0c1a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --violet: #7c5cff;
  --violet-bright: #a98bff;
  --indigo: #5b6cff;
  --saffron: #ff9d4d;
  --gold: #ffd07a;
  --text: #edeef6;
  --muted: #9aa0b8;
  --muted-2: #6f7591;
  --radius: 20px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-name { font-family: "Sora", sans-serif; line-height: 1.08; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Background canvas */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ambient page gradient under everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(90% 70% at 10% 110%, rgba(255, 157, 77, 0.10), transparent 55%),
    linear-gradient(180deg, #06070f, #080a16 60%, #06070f);
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-primary {
  color: #0a0712; background: linear-gradient(135deg, var(--violet-bright), var(--violet) 55%, var(--indigo));
  box-shadow: 0 10px 34px rgba(124, 92, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(124, 92, 255, 0.6); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-listen {
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
}
.btn-listen:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-listen.playing { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,0.15); }
.play-ico {
  width: 0; height: 0; border-left: 11px solid var(--violet-bright);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 2px;
}
.btn-listen.playing .play-ico {
  border: none; width: 11px; height: 13px; margin-left: 0;
  background: linear-gradient(var(--violet-bright) 0 0) left/3.5px 100% no-repeat,
              linear-gradient(var(--violet-bright) 0 0) right/3.5px 100% no-repeat;
}

/* ===================== Nav ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 9, 18, 0.72); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border); padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-family: "Sora", sans-serif; font-weight: 800; color: #fff; font-size: 1.15rem;
  background: linear-gradient(140deg, var(--violet-bright), var(--indigo));
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.5);
}
.brand-name { font-size: 1.35rem; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* sound toggle equalizer */
.sound-toggle {
  display: flex; align-items: flex-end; gap: 3px; height: 22px; width: 26px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.sound-toggle .bar { width: 3.5px; height: 6px; background: var(--muted); border-radius: 2px; transition: background 0.2s; }
.sound-toggle.on .bar { background: var(--violet-bright); animation: eq 0.9s ease-in-out infinite; }
.sound-toggle.on .bar:nth-child(2) { animation-delay: 0.15s; }
.sound-toggle.on .bar:nth-child(3) { animation-delay: 0.3s; }
.sound-toggle.on .bar:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq { 0%,100% { height: 5px; } 50% { height: 20px; } }

/* ===================== Hero ===================== */
.hero {
  position: relative; min-height: 100vh; display: grid; align-items: center;
  padding: 140px clamp(20px, 5vw, 56px) 80px; z-index: 1;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1; opacity: 0.5;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 80% at 30% 50%, transparent, rgba(6,7,15,0.7) 75%),
              linear-gradient(180deg, rgba(6,7,15,0.4), rgba(6,7,15,0.85));
}
.hero-inner { max-width: 720px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet-bright); font-weight: 600; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; }
.grad {
  background: linear-gradient(105deg, var(--violet-bright) 10%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); margin: 26px 0 36px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin-top: 56px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Sora", sans-serif; font-size: 2rem; font-weight: 700; color: #fff; }
.hero-stats span { font-size: 0.86rem; color: var(--muted-2); }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 2px solid var(--border); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--violet-bright);
  animation: scroll 1.7s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 20px; } 100% { opacity: 0; } }

/* ===================== Sections ===================== */
.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 40px); }
.section-head { max-width: 720px; margin-bottom: 64px; }
.kicker {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--saffron); margin-bottom: 16px;
}
.section-head h2, .split-copy h2, .cta-band h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--muted); margin-top: 20px; }

/* Trust bar */
.trust { position: relative; z-index: 1; text-align: center; padding: 40px 20px; }
.trust p { color: var(--muted-2); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 5vw, 52px); margin-top: 20px; }
.trust-row span { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--muted); opacity: 0.7; transition: opacity 0.3s, color 0.3s; }
.trust-row span:hover { opacity: 1; color: var(--text); }

/* Pipeline */
.pipeline { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 210px; padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden;
}
.step::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(124,92,255,0.5), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s; }
.step:hover::after { opacity: 1; }
.step-num { font-family: "Sora", sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--violet-bright); margin-bottom: 14px; }
.step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step-arrow { align-self: center; width: 26px; height: 2px; background: linear-gradient(90deg, var(--violet), transparent); position: relative; flex: 0 0 auto; }
.step-arrow::after { content: ""; position: absolute; right: 0; top: -3px; border-left: 7px solid var(--violet); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* Features grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 30px 28px; border-radius: var(--radius); position: relative; overflow: hidden; }
.glass { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s; }
.glass:hover { transform: translateY(-6px); border-color: rgba(124,92,255,0.45); background: var(--surface-2); }
.feature-wide { grid-column: span 1; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; z-index: 0; mask-image: linear-gradient(180deg, #000, transparent 90%); }
.card-body { position: relative; z-index: 1; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.ico { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px; background: linear-gradient(140deg, rgba(124,92,255,0.25), rgba(91,108,255,0.12)); border: 1px solid var(--border); position: relative; }
.ico::after { content: ""; position: absolute; inset: 0; margin: auto; }
.ico-bolt::after { width: 16px; height: 16px; background: var(--violet-bright); clip-path: polygon(45% 0,0 60%,40% 60%,30% 100%,100% 35%,55% 35%); }
.ico-call::after { width: 18px; height: 18px; border: 3px solid var(--violet-bright); border-radius: 50% 50% 50% 4px; transform: rotate(45deg); }
.ico-scale::after { width: 18px; height: 14px; background: repeating-linear-gradient(90deg, var(--violet-bright) 0 4px, transparent 4px 7px); }
.ico-lock::after { width: 14px; height: 11px; border-radius: 2px; background: var(--violet-bright); box-shadow: 0 -7px 0 -2px transparent, 0 -6px 0 -3px var(--violet-bright); }

/* Split section (languages) */
.section-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media-glow { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, transparent, rgba(6,7,15,0.55)); pointer-events: none; }
.lang-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0; }
.lang-list li { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s, border-color 0.3s; }
.lang-list li:hover { transform: translateY(-3px); border-color: rgba(124,92,255,0.5); }
.lang-list .native { font-size: 1.5rem; font-weight: 700; background: linear-gradient(120deg, var(--violet-bright), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-list .rom { color: var(--muted); font-size: 0.95rem; }

/* Chat demo */
.chat { max-width: 640px; margin: 0 auto; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); }
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #46e6a0; box-shadow: 0 0 0 4px rgba(70,230,160,0.18); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(70,230,160,0); } }
.chat-body { padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size: 0.97rem; opacity: 0; transform: translateY(10px); animation: rise 0.5s var(--ease) forwards; }
.bubble .sub { display: block; font-size: 0.8rem; color: var(--muted-2); margin-top: 4px; }
.bubble.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bubble.us { align-self: flex-end; color: #0a0712; border-bottom-right-radius: 5px; background: linear-gradient(135deg, var(--violet-bright), var(--violet)); }
.bubble.us .sub { color: rgba(10,7,18,0.6); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Metrics + quote */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.metric { text-align: center; padding: 40px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.metric strong { display: block; font-family: "Sora", sans-serif; font-size: 3rem; font-weight: 800; background: linear-gradient(120deg, var(--violet-bright), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric span { color: var(--muted); font-size: 0.95rem; }
.quote { padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 72px); border-radius: var(--radius); text-align: center; position: relative; overflow: hidden; }
.quote-text { position: relative; max-width: 760px; margin: 0 auto; }
.quote-mark { display: block; font-family: "Sora", sans-serif; font-size: 4rem; line-height: 0.6; color: var(--violet); opacity: 0.5; margin-bottom: 8px; }
.quote blockquote { font-family: "Sora", sans-serif; font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-weight: 500; line-height: 1.4; }
.quote figcaption { color: var(--muted); margin-top: 24px; font-size: 0.98rem; }
.quote figcaption strong { color: var(--text); }

/* CTA band */
.cta-band { position: relative; z-index: 1; padding: clamp(80px, 11vw, 140px) clamp(20px, 5vw, 40px); text-align: center; }
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-band p { color: var(--muted); font-size: 1.12rem; margin-top: 18px; }
.cta-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 34px 0 16px; }
.cta-form input, .cta-form select {
  padding: 15px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 0.98rem; min-width: 0;
}
.cta-form input { flex: 1 1 220px; }
.cta-form input::placeholder { color: var(--muted-2); }
.cta-form input:focus, .cta-form select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,0.18); }
.cta-fine { font-size: 0.86rem; color: var(--muted-2); }

/* Footer */
.footer { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 70px clamp(20px,5vw,40px) 50px; display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; border-top: 1px solid var(--border); }
.foot-brand { display: flex; gap: 14px; }
.foot-brand strong { font-family: "Sora", sans-serif; font-size: 1.2rem; }
.foot-brand p { color: var(--muted); font-size: 0.92rem; max-width: 260px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.foot-cols a { display: block; color: var(--muted); font-size: 0.94rem; margin-bottom: 9px; transition: color 0.2s; }
.foot-cols a:hover { color: var(--text); }
.foot-copy { grid-column: 1 / -1; color: var(--muted-2); font-size: 0.86rem; padding-top: 24px; border-top: 1px solid var(--border); }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
/* Fail-safe: if the reveal observer never runs (no-JS / slow load), still show content after 2.5s */
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
.reveal.in { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .section-split { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}
@media (max-width: 560px) {
  .nav-cta .btn-ghost { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .lang-list { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
