/* ============ Vetra landing — design tokens mirror the app ============ */
:root {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f2f5;
  --line: #e9eaee;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --ink: #16181d;
  --ink-soft: #6b7280;
  --brand-pink: #f43f7a;
  --brand-blue: #3b82f6;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, 0.05);
  --shadow-md: 0 8px 30px rgba(22, 24, 29, 0.08);
  --shadow-lg: 0 24px 70px rgba(22, 24, 29, 0.14);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.only-desktop { display: none; }
@media (min-width: 768px) { .only-desktop { display: inline; } }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: 1.1rem; font-weight: 700; }

.kicker {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.grad-text {
  background: linear-gradient(100deg, var(--brand-pink), var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 12px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--primary);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.soon-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: 99px;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.nav-links {
  display: none;
  gap: 26px;
  margin-left: 8px;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: none; }
.nav-burger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-burger { display: none; }
}
.nav.open .nav-links {
  display: flex;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  gap: 14px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 70px;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background:
    radial-gradient(closest-side, rgba(244, 63, 122, 0.14), transparent 65%) left center / 60% 100% no-repeat,
    radial-gradient(closest-side, rgba(59, 130, 246, 0.16), transparent 65%) right center / 60% 100% no-repeat;
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-sub {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  margin: 20px auto 30px;
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
}
.hero-note { color: var(--ink-soft); font-size: 0.85rem; }

.sites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 56px;
}
.site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 14px;
  box-shadow: var(--shadow-sm);
}
.site i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--ink-soft));
}
.site-more { color: var(--ink-soft); border-style: dashed; box-shadow: none; }

/* ---- Real app screenshot ---- */
.shot {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg);
}
.shot img { width: 100%; height: auto; display: block; }

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }
.section h2 { max-width: 720px; }

.grid { display: grid; gap: 18px; margin-top: 40px; }
.features { grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card-ico svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---- Split (clip editor) ---- */
.split {
  display: grid;
  gap: 46px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-text > p { color: var(--ink-soft); max-width: 480px; }

.checks { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.checks li {
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--primary-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232563eb" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
}

.wave-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.wave-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.wave { position: relative; flex: 1; min-width: 220px; height: 84px; }
.wave-bars {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-soft) 0 2px,
    transparent 2px 5px
  );
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(90deg, #000, #000);
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40" preserveAspectRatio="none"><path d="M0 20 Q5 4 10 20 T20 20 Q25 34 30 20 T40 20 Q45 6 50 20 T60 20 Q65 32 70 20 T80 20 Q85 8 90 20 T100 20 L100 40 L0 40 Z"/></svg>');
  mask-size: 100% 200%;
  mask-position: center;
}
.wave-sel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34%;
  width: 26%;
  background: rgba(37, 99, 235, 0.14);
  border-left: 2.5px solid var(--primary);
  border-right: 2.5px solid var(--primary);
  border-radius: 3px;
}
.wave-head {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40%;
  width: 2px;
  background: #ef4444;
  animation: sweep 3.6s linear infinite;
}
@keyframes sweep { from { left: 34%; } to { left: 60%; } }
.wave-times {
  width: 100%;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* ---- Pricing ---- */
.pricing { grid-template-columns: 1fr; max-width: 1020px; }
@media (min-width: 760px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.price-card .btn { margin-top: auto; justify-content: center; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.price-card.featured { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow-md); position: relative; }
.badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: linear-gradient(100deg, var(--brand-pink), var(--brand-blue));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- FAQ ---- */
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 12px;
  padding: 0 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 17px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 500;
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--ink-soft); padding: 0 0 18px; font-size: 0.95rem; }

/* ---- Final CTA ---- */
.cta-final { padding: 110px 0; }
.cta-final p { color: var(--ink-soft); margin-bottom: 14px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-2); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
@media (min-width: 760px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-legal { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.6; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--ink); }

/* ============ Theme toggle ============ */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
.nav-cta { align-items: center; gap: 12px; }
.theme-toggle-mobile { margin-left: auto; margin-right: 6px; }
@media (min-width: 900px) {
  .nav-cta { display: flex; }
  .theme-toggle-mobile { display: none; }
}

/* ============ Dark theme ============ */
:root[data-theme="dark"] {
  --bg: #14151a;
  --bg-2: #101116;
  --surface: #1c1d24;
  --surface-2: #262832;
  --line: #2c2e39;
  --primary: #4f8df9;
  --primary-hover: #6ba1fa;
  --primary-soft: rgba(79, 141, 249, 0.14);
  --ink: #ececf1;
  --ink-soft: #9a9ba7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
}
:root[data-theme="dark"] .nav { background: rgba(20, 21, 26, 0.82); }
:root[data-theme="dark"] .grad-text {
  background: linear-gradient(100deg, #ff6b9d, #6ba1fa);
  -webkit-background-clip: text;
  background-clip: text;
}
:root[data-theme="dark"] .btn-primary { box-shadow: 0 6px 20px rgba(79, 141, 249, 0.28); }
:root[data-theme="dark"] .site-more { border-color: var(--line); }
/* Screenshot is a light-mode capture: frame it softly on dark backgrounds. */
:root[data-theme="dark"] .shot { border-color: var(--surface-2); }
:root[data-theme="dark"] .checks li::before {
  background-color: var(--primary-soft);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234f8df9" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
}
:root[data-theme="dark"] .mk-done, :root[data-theme="dark"] .price .grad-text { color: #34d399; }

html { color-scheme: light dark; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave-head { animation: none; }
}

/* TikTok brand dot: near-black logo flips to white in dark mode (matches the app) */
.site-tiktok i { --dot: #161823; }
[data-theme="dark"] .site-tiktok i { --dot: #ffffff; }

