/* VeoPeak landing — shared styles
   Palette mirrors the app (lib/core/theme/app_colors.dart + app_gradients.dart):
   bg #030308, primary #3A5EFF, glow gradient #B53FFF → #59D5FF, font Inter. */

:root {
  --bg: #030308;
  --bg-2: #0d0d12;
  --bg-3: #121218;
  --card: #15151c;
  --line: #24242e;
  --line-2: #2f2f3a;
  --text: #f4f4f8;
  --text-2: #b9b9c4;
  --text-3: #8a8a96;
  --text-4: #6b6b76;
  --primary: #3a5eff;
  --primary-2: #617eff;
  --primary-3: #90a4ff;
  --primary-soft: rgba(58, 94, 255, 0.16);
  --violet: #b53fff;
  --cyan: #59d5ff;
  --grad: linear-gradient(96deg, #b53fff 0%, #617eff 55%, #59d5ff 100%);
  --radius: 16px;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--primary); color: #fff; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(3, 3, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand span { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.topnav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }
.topnav a {
  text-decoration: none; color: var(--text-3);
  padding: 8px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.topnav a:hover { background: var(--card); color: var(--text); }
.topnav a.active { color: var(--primary-3); background: var(--primary-soft); }
.navtoggle {
  display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 7px 9px; cursor: pointer; color: var(--text);
}
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; row-gap: 12px; }
  .navtoggle { display: inline-flex; align-items: center; justify-content: center; }
  .topnav { display: none; width: 100%; flex-direction: column; gap: 6px; }
  .topnav.open { display: flex; }
  .topnav a { width: 100%; text-align: center; padding: 11px 12px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary-3); }
.btn-store { background: #000; color: #fff; border-color: var(--line-2); }
.btn-store:hover { border-color: #55556a; }
.btn-store svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 460px at 78% 8%, rgba(181, 63, 255, 0.26), transparent 70%),
    radial-gradient(560px 400px at 12% 92%, rgba(89, 213, 255, 0.16), transparent 70%);
}
.hero-inner { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.hero-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-3);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); display: inline-block; }
.hero h1 { font-weight: 700; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -0.03em; margin-top: 22px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; color: var(--text-2); margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stats { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.stats b { display: block; font-weight: 700; font-size: 26px; }
.stats span { color: var(--text-3); font-size: 13.5px; }

/* phone mockup */
.phone-wrap { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: 100%; max-width: 320px; aspect-ratio: 9 / 19; border-radius: 42px;
  background: #0a0a10; border: 1px solid var(--line-2); padding: 12px;
  box-shadow: 0 0 0 6px #17171f, -24px 34px 60px rgba(90, 70, 255, 0.35);
  transform: rotateY(-12deg) rotateX(4deg);
  animation: floaty 6s ease-in-out infinite;
  position: relative;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotateY(-12deg) rotateX(4deg); }
  50% { transform: translateY(-12px) rotateY(-12deg) rotateX(4deg); }
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden; position: relative;
  background: url('hero-sample.jpg') center / cover no-repeat;
}
.phone-screen::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(3,3,8,0) 40%, rgba(3,3,8,0.85) 100%);
}
.phone-ui { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 2; }
.phone-ui .tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px); color: #fff;
}
.phone-ui .title { font-weight: 600; font-size: 15px; margin-top: 8px; color: #fff; }
.phone-ui .sub { font-size: 12px; color: rgba(255,255,255,0.7); }
.phone-ui .bar { margin-top: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.18); overflow: hidden; }
.phone-ui .bar i { display: block; height: 100%; width: 72%; background: var(--grad); }
.play {
  position: absolute; z-index: 2; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center; color: #fff;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(40px, 6vw, 72px); scroll-margin-top: 80px; }
.section-alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.section h2 { font-weight: 700; font-size: clamp(28px, 4vw, 38px); }
.section .sub { color: var(--text-3); font-size: 17px; margin: 10px 0 36px; max-width: 580px; }
.eyebrow { color: var(--primary-3); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; color: var(--primary-3);
}
.icon svg { width: 22px; height: 22px; }
.card h3 { font-weight: 600; font-size: 19px; margin: 18px 0 8px; }
.card p { color: var(--text-3); font-size: 15px; line-height: 1.65; }

.step .num { font-weight: 700; font-size: 14px; color: var(--primary-3); letter-spacing: 0.06em; }
.step h3 { font-weight: 600; font-size: 21px; margin: 12px 0 8px; }
.step p { color: var(--text-3); font-size: 15.5px; line-height: 1.65; }

/* pricing */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(58,94,255,0.12), var(--card) 60%); }
.plan .badge {
  position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan h3 { margin-top: 0; }
.plan .tagline { color: var(--text-3); font-size: 14.5px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--cyan); margin-top: 2px; }
.plan .note { color: var(--text-4); font-size: 12.5px; margin-top: 12px; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); font-weight: 400; font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-3); font-size: 15px; line-height: 1.65; padding-bottom: 18px; }

/* CTA */
.cta-box {
  position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(181,63,255,0.28), rgba(58,94,255,0.22) 55%, rgba(89,213,255,0.18));
  padding: clamp(36px, 5vw, 60px); text-align: center;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 300px at 50% -20%, rgba(181,63,255,0.45), transparent 70%);
}
.cta-box > * { position: relative; }
.cta-box img { width: 56px; height: 56px; }
.cta-box h2 { font-weight: 700; font-size: clamp(28px, 4.5vw, 42px); letter-spacing: -0.02em; margin: 18px 0 10px; }
.cta-box p { color: var(--text-2); font-size: 17px; margin: 0 auto 28px; max-width: 460px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.footer-brand img { width: 22px; height: 22px; }
.footer-brand b { font-weight: 700; font-size: 15px; }
.footer-brand small { color: var(--text-4); font-size: 13.5px; margin-left: 6px; }
.footer-nav { display: flex; gap: 20px; font-size: 13.5px; font-weight: 500; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--text-3); }
.footer-nav a:hover, .footer-nav a.active { color: var(--text); }
.footer-nav a.active { color: var(--primary-3); }

/* ---------- legal pages ---------- */
.legal-head { padding-block: clamp(48px, 7vw, 80px) 32px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.legal-head h1 { font-weight: 700; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; }
.legal-head .meta { color: var(--text-3); font-size: 14.5px; margin-top: 12px; }
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-block: 48px 80px; align-items: start; }
.toc { position: sticky; top: 88px; }
.toc .label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); margin-bottom: 12px; }
.toc a {
  display: block; text-decoration: none; color: var(--text-3); font-size: 14px; padding: 6px 12px;
  border-left: 2px solid transparent; transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--primary-3); border-left-color: var(--primary); font-weight: 600; }
.legal article { max-width: 720px; }
.legal article > p.intro { color: var(--text-2); font-size: 17px; line-height: 1.7; margin-bottom: 40px; }
.legal section { padding-block: 22px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal section:first-of-type { border-top: 0; padding-top: 0; }
.legal section .n { color: var(--primary-3); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }
.legal h2 { font-weight: 600; font-size: 22px; margin: 6px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-weight: 600; font-size: 16px; margin: 18px 0 6px; color: var(--text); }
.legal p, .legal li { color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li + li { margin-top: 4px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .callout {
  margin: 14px 0; padding: 14px 18px; border-radius: 12px;
  background: var(--primary-soft); border: 1px solid rgba(58,94,255,0.35); color: var(--text-2);
}
.legal .vendor { display: grid; gap: 10px; margin: 12px 0; }
.legal .vendor div { padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.legal .vendor b { display: block; color: var(--text); font-size: 15px; }
.legal .vendor span { color: var(--text-3); font-size: 14px; }
.legal a { color: var(--primary-3); }
.email-box {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 18px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--text) !important; text-decoration: none; font-weight: 600;
}
.email-box:hover { border-color: var(--primary-3); }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; padding-block: 56px 88px; align-items: start; }
.contact-info h1 { font-weight: 700; font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.03em; }
.contact-info .lead { color: var(--text-2); font-size: 17px; line-height: 1.65; margin-top: 16px; }
.info-list { display: grid; gap: 14px; margin-top: 32px; }
.info-item { display: flex; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.info-item .icon { flex: none; width: 42px; height: 42px; }
.info-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.info-item span, .info-item a { color: var(--text-3); font-size: 14.5px; }
.info-item a { color: var(--primary-3); text-decoration: none; }
.form-card { padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font-family: inherit; font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { color: var(--text-4); font-size: 12.5px; margin-top: 12px; }
.form-note a { color: var(--text-3); }
.sent { display: none; text-align: center; padding: 32px 0; }
.sent .icon { width: 56px; height: 56px; margin: 0 auto 16px; }
.sent h3 { font-size: 20px; margin-bottom: 6px; }
.sent p { color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .legal-wrap { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc .label { width: 100%; }
  .toc a { border-left: 0; border-radius: 8px; padding: 6px 10px; font-size: 13px; }
  .toc a.active { background: var(--primary-soft); }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  html { scroll-behavior: auto; }
}
