/* ===== AI Video Studio — Design System ===== */
:root {
  --bg: #0a0e1a;
  --bg-soft: #0f1629;
  --surface: #151d33;
  --surface-2: #1c2742;
  --border: #243049;
  --text: #e8edf7;
  --muted: #9aa6c0;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #a855f7;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #22d3ee 100%);
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(99, 102, 241, 0.45);
  --max: 1120px;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gradient);
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient); color: #fff; padding: 0.55rem 1.1rem;
  border-radius: 10px; font-weight: 600; font-size: 0.9rem;
}
.nav-cta:hover { opacity: 0.92; }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 6.5rem 0 5rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(99,102,241,0.28), transparent 70%),
    radial-gradient(40% 40% at 80% 20%, rgba(34,211,238,0.18), transparent 70%),
    radial-gradient(40% 40% at 15% 25%, rgba(168,85,247,0.18), transparent 70%);
  z-index: -1;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; color: var(--muted); margin-bottom: 1.6rem;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.hero h1 .grad {
  background: var(--gradient); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted);
  max-width: 640px; margin: 0 auto 2.2rem;
}
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 12px; font-weight: 600; font-size: 1rem;
  transition: transform 0.15s ease, opacity 0.15s ease; cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

/* ===== Section ===== */
section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.78rem;
  font-weight: 700; color: var(--accent-2); margin-bottom: 0.7rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== Feature grid ===== */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1.1rem;
  background: rgba(99,102,241,0.14); border: 1px solid var(--border);
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ===== Steps ===== */
.steps { counter-reset: step; }
.step { display: flex; gap: 1.3rem; align-items: flex-start; }
.step .num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); color: #fff; display: grid; place-items: center;
  font-weight: 700; box-shadow: var(--shadow);
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.step p { color: var(--muted); }

/* ===== Integrations ===== */
.pills { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.pill {
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.7rem 1.3rem; border-radius: 999px; font-weight: 600; color: var(--text);
  display: inline-flex; align-items: center; gap: 0.5rem;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--gradient); border-radius: 24px; padding: 3.5rem 2rem; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; color: #fff; margin-bottom: 0.7rem; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 1.8rem; }
.cta-band .btn-primary { background: #fff; color: #4338ca; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 2.5rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer .brand { margin-bottom: 0.8rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--muted); margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.6rem; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ===== Legal pages ===== */
.legal { max-width: 800px; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 0.5rem; }
.legal .updated { color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; color: var(--text); }
.legal p, .legal li { color: var(--muted); margin-bottom: 0.7rem; }
.legal ul { padding-left: 1.3rem; }
.legal a { color: var(--accent-2); }
.legal a:hover { text-decoration: underline; }
.legal code {
  background: rgba(99,102,241,0.15); color: var(--accent-2);
  padding: 0.12em 0.4em; border-radius: 5px; font-size: 0.9em;
}
.back-home { display: inline-block; margin-top: 2.5rem; color: var(--accent-2); font-weight: 600; }
