/* ClipForge AI — brand: #6C3BFF purple / #00C2FF neon / #0B0B0F near-black */
:root {
  --bg: #0B0B0F;
  --bg-2: #111117;
  --surface: #15151d;
  --surface-2: #1b1b26;
  --border: #26263a;
  --text: #f5f5fa;
  --text-dim: #a5a5b8;
  --text-mute: #6d6d82;
  --primary: #6C3BFF;
  --primary-2: #8b5fff;
  --accent: #00C2FF;
  --grad: linear-gradient(135deg, #6C3BFF 0%, #00C2FF 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -20px rgba(108, 59, 255, 0.35);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 15, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-text { font-size: 18px; letter-spacing: -0.01em; }
.brand-ai { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 16px; border-radius: 999px;
  background: var(--grad); color: #fff !important; font-weight: 600;
  box-shadow: 0 6px 20px -8px rgba(108,59,255,0.55);
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero { position: relative; padding: 90px 24px 70px; overflow: hidden; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 620px;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(108,59,255,0.35), transparent 70%),
    radial-gradient(55% 50% at 75% 20%, rgba(0,194,255,0.25), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
  padding: 6px 12px; border: 1px solid rgba(0,194,255,0.3); border-radius: 999px;
  background: rgba(0,194,255,0.06);
}
h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.03; letter-spacing: -0.025em;
  font-weight: 800; margin: 22px auto 18px; max-width: 16ch;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede {
  font-size: clamp(16.5px, 1.8vw, 19px); color: var(--text-dim);
  max-width: 58ch; margin: 0 auto 34px;
}

.waitlist {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px; box-shadow: var(--shadow);
}
.waitlist input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  padding: 12px 18px; color: var(--text); font-size: 15px;
}
.waitlist input::placeholder { color: var(--text-mute); }
.waitlist button {
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 14.5px;
  transition: transform .08s ease, box-shadow .2s ease;
  box-shadow: 0 6px 20px -8px rgba(108,59,255,0.6);
}
.waitlist button:hover { transform: translateY(-1px); }
.waitlist button:disabled { opacity: 0.6; cursor: default; }
.waitlist-msg {
  min-height: 1.4em; margin: 14px auto 0; font-size: 14px;
  color: var(--text-dim); text-align: center;
}
.waitlist-msg.ok { color: #5dd39e; }
.waitlist-msg.err { color: #ff6b8a; }

.hero-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 36px;
  list-style: none; padding: 0; margin: 46px 0 0; color: var(--text-dim);
  font-size: 14.5px;
}
.hero-proof strong { color: var(--text); font-weight: 600; }

/* Sections */
section { padding: 90px 24px; }
.section-title {
  max-width: 22ch; margin: 0 auto 18px; text-align: center;
  font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; line-height: 1.15;
}
.section-sub { text-align: center; color: var(--text-dim); margin: 0 auto 48px; max-width: 50ch; }

/* Features */
.features { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.feature-grid {
  max-width: var(--maxw); margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: transform .15s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(108,59,255,0.35); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(108,59,255,0.18), rgba(0,194,255,0.1));
  border: 1px solid rgba(108,59,255,0.3);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
}
.feature h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* How it works */
.how-steps {
  max-width: var(--maxw); margin: 48px auto 0; padding: 0;
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.how-steps li {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative;
}
.step-num {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px; color: var(--accent); letter-spacing: 0.1em;
}
.how-steps h3 { margin: 10px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.how-steps p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* Pricing */
.pricing { background: var(--bg-2); }
.price-grid {
  max-width: var(--maxw); margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; align-items: stretch;
}
.price {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; position: relative;
}
.price.featured {
  border-color: rgba(108,59,255,0.55);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow);
}
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 11.5px;
  padding: 5px 11px; border-radius: 999px; font-weight: 600; letter-spacing: 0.04em;
}
.price h3 { margin: 0; font-size: 15px; color: var(--text-dim); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.price-num { font-size: 44px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -0.02em; }
.price-num span { font-size: 16px; font-weight: 500; color: var(--text-dim); }
.price-sub { color: var(--text-dim); margin: 0 0 18px; font-size: 14px; }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price li { padding: 7px 0; border-top: 1px dashed rgba(255,255,255,0.06); font-size: 14.5px; color: var(--text-dim); }
.price li:first-child { border-top: 0; }
.price-cta {
  text-align: center; padding: 12px 18px; border-radius: 999px; font-weight: 600;
  font-size: 14.5px; background: var(--grad); color: #fff;
  transition: transform .08s ease;
}
.price-cta.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.price-cta:hover { transform: translateY(-1px); }

/* CTA */
.cta { padding: 110px 24px; }
.cta-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(108,59,255,0.18), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(0,194,255,0.14), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 36px;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 10px; letter-spacing: -0.02em; }
.cta p { color: var(--text-dim); margin: 0 0 28px; }

/* Footer */
.footer { padding: 60px 24px 36px; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between;
}
.footer-brand p { color: var(--text-dim); margin: 6px 0 0; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--text-dim); font-size: 14.5px; }
.footer-links a:hover { color: var(--text); }
.copyright {
  max-width: var(--maxw); margin: 28px auto 0; color: var(--text-mute);
  font-size: 13px; text-align: center;
}

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text-dim); }
.legal h2 { margin-top: 32px; font-size: 20px; }
.legal a { color: var(--accent); text-decoration: underline; }

/* Hero CTA row */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.btn-primary, .btn-ghost {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .2s ease;
  text-align: center;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(108,59,255,0.6); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: rgba(108,59,255,0.5); }
.btn-primary[disabled], .btn-ghost[disabled] { opacity: 0.55; cursor: default; }

/* Auth pages (signup / login) */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(80% 60% at 50% 0%, rgba(108,59,255,0.18), transparent 60%), var(--bg); }
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 30px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.015em; }
.auth-card .sub { color: var(--text-dim); font-size: 14.5px; margin: 0 0 26px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card label { display: grid; gap: 6px; font-size: 13px; color: var(--text-dim); font-weight: 500; }
.auth-card input, .auth-card select {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 15px; outline: none;
  transition: border-color .15s ease;
}
.auth-card input:focus, .auth-card select:focus { border-color: rgba(108,59,255,0.6); }
.auth-card .row-link { text-align: center; font-size: 14px; color: var(--text-dim); margin-top: 8px; }
.auth-card .row-link a { color: var(--accent); }
.auth-msg { min-height: 1.2em; font-size: 13.5px; text-align: center; }
.auth-msg.ok { color: #5dd39e; }
.auth-msg.err { color: #ff6b8a; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-dim); margin-bottom: 18px; }
.back-link:hover { color: var(--text); }

/* App shell */
.app-wrap { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
@media (max-width: 820px) { .app-wrap { grid-template-columns: 1fr; } .app-side { display: none; } }
.app-side {
  border-right: 1px solid var(--border); padding: 24px 18px; background: var(--bg-2);
  position: sticky; top: 0; align-self: start; height: 100vh; overflow: auto;
}
.app-side .brand { margin-bottom: 28px; }
.app-nav { display: grid; gap: 4px; }
.app-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; color: var(--text-dim); font-size: 14.5px;
}
.app-nav a.active, .app-nav a:hover { background: var(--surface); color: var(--text); }
.app-main { padding: 28px 32px 60px; max-width: 1100px; width: 100%; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.app-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.015em; }
.plan-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px;
  padding: 6px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-dim);
}
.plan-chip strong { color: var(--text); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px;
}
.card h3 { margin: 0 0 12px; font-size: 17px; letter-spacing: -0.01em; }

/* Uploader */
.uploader {
  border: 1.5px dashed var(--border); border-radius: var(--radius-lg);
  padding: 40px 24px; text-align: center; background: var(--bg-2);
  transition: border-color .15s ease, background .15s ease;
}
.uploader.drag { border-color: rgba(108,59,255,0.7); background: rgba(108,59,255,0.06); }
.uploader p { margin: 8px 0; color: var(--text-dim); font-size: 14.5px; }
.uploader .small { font-size: 12.5px; color: var(--text-mute); }

.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; justify-content: center; }
.controls label { font-size: 13px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px; }
.controls input[type=range] { accent-color: var(--primary); }

.progress { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress > span { display: block; height: 100%; width: 0%; background: var(--grad); transition: width .4s ease; }
.status-line { text-align: center; font-size: 13.5px; color: var(--text-dim); margin-top: 10px; }

/* Clips grid */
.clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.clip-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.clip-thumb { aspect-ratio: 9/16; background: #000; display: grid; place-items: center; color: var(--text-mute); font-size: 12px; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.clip-body { padding: 14px; display: grid; gap: 8px; }
.clip-title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; }
.clip-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.hook {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;
  padding: 3px 8px; border-radius: 999px; font-weight: 600;
  background: rgba(108,59,255,0.15); color: #c9b5ff; border: 1px solid rgba(108,59,255,0.35);
}
.clip-actions { display: flex; gap: 8px; margin-top: 6px; }
.clip-actions a, .clip-actions button {
  flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px;
  font-size: 12.5px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); cursor: pointer;
}
.clip-actions a.primary { background: var(--grad); border-color: transparent; color: #fff; }

/* Billing */
.billing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.billing-plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.billing-plan.current { border-color: rgba(108,59,255,0.55); }
.billing-plan h4 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.billing-plan .amt { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.billing-plan button { margin-top: auto; padding: 10px; border-radius: 8px; border: 0; cursor: pointer; background: var(--grad); color: #fff; font-weight: 600; font-size: 13px; }
.billing-plan button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.billing-plan button[disabled] { opacity: 0.6; cursor: default; }

.empty {
  text-align: center; padding: 60px 20px; color: var(--text-dim);
  border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg-2);
}
