/* =======================
   ClipForge — Theme CSS
   ======================= */

:root {
  --bg: #0F0F0F;
  --surface: #1A1A1A;
  --surface-2: #242424;
  --fg: #F5F5F5;
  --fg-muted: #A0A0A0;
  --accent: #FF5A1F;
  --accent-glow: rgba(255, 90, 31, 0.15);
  --accent-dim: rgba(255, 90, 31, 0.6);
  --green: #00D67D;
  --border: rgba(255,255,255,0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 48px 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 28px;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.stat:first-child { padding-left: 0; }
.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* HERO VISUAL */
.hero-visual { position: relative; z-index: 1; }
.clip-card-stack { position: relative; height: 420px; }
.clip-card {
  position: absolute;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.clip-card-icon { color: var(--accent); margin-bottom: 4px; }
.clip-card-label { font-weight: 600; font-size: 1.1rem; color: var(--fg); }
.clip-card-sub { font-size: 0.85rem; color: var(--fg-muted); }
.clip-card-1 {
  top: 0; left: 0;
  transform: rotate(-3deg);
  background: linear-gradient(135deg, #1E0A00 0%, var(--surface) 100%);
  border-color: rgba(255,90,31,0.2);
}
.clip-card-2 {
  top: 80px; left: 120px;
  transform: rotate(2deg);
  background: linear-gradient(135deg, #00100E 0%, var(--surface) 100%);
  border-color: rgba(0,214,125,0.15);
}
.clip-card-3 {
  top: 170px; left: 40px;
  transform: rotate(-1.5deg);
  background: linear-gradient(135deg, #0D0020 0%, var(--surface) 100%);
  border-color: rgba(255,90,31,0.1);
}

/* PROOF */
.proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.proof-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px;
}
.proof-stat { text-align: center; flex: 1; }
.proof-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-desc { font-size: 0.85rem; color: var(--fg-muted); max-width: 200px; margin: 0 auto; line-height: 1.5; }
.proof-divider { width: 1px; height: 80px; background: var(--border); }

/* HOW IT WORKS */
.how-it-works { padding: 100px 48px; }
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 60px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step { position: relative; }
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,90,31,0.15);
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.step-desc { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }

/* NICHES */
.niches { padding: 100px 48px; background: var(--surface); }
.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.niche-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.niche-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.niche-icon { color: var(--accent); margin-bottom: 16px; }
.niche-name { font-weight: 700; font-size: 1rem; color: var(--fg); margin-bottom: 8px; }
.niche-desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.6; }

/* PRICING */
.pricing { padding: 100px 48px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, rgba(255,90,31,0.05) 0%, var(--surface) 100%);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
}
.pricing-tier {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-amount span { font-size: 1rem; color: var(--fg-muted); font-weight: 400; }
.pricing-tagline { font-size: 0.8rem; color: var(--accent); margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* CLOSING */
.closing {
  padding: 100px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 800px; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* FOOTER */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 8px;
}
.footer-desc { font-size: 0.85rem; color: var(--fg-muted); margin-bottom: 16px; }
.footer-links { font-size: 0.75rem; color: var(--fg-muted); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .hero { grid-template-columns: 1fr; padding: 60px 24px; gap: 60px; }
  .hero-visual { display: none; }
  .proof-inner { flex-direction: column; gap: 32px; }
  .proof-divider { width: 60px; height: 1px; }
  .how-it-works, .niches, .pricing, .closing { padding: 60px 24px; }
  .niche-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .section-headline br { display: none; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
}

/* ========================
   CTA BUTTONS
   ======================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 24px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary:hover {
  background: #e04c12;
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-nav { padding: 10px 20px; font-size: 0.82rem; }
.btn-hero { margin-bottom: 32px; padding: 14px 32px; font-size: 1rem; box-shadow: 0 8px 24px rgba(255,90,31,0.25); }
.btn-large { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }

.pricing-cta { text-align: center; margin-top: 48px; }
.pricing-cta-note { margin-top: 12px; font-size: 0.8rem; color: var(--fg-muted); }
.closing-btn { margin-bottom: 32px; }

/* body scroll lock when modal open */
body.modal-active { overflow: hidden; }

/* ========================
   MODAL
   ======================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.modal-open { display: flex; }

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  position: relative;
  margin: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.modal-close:hover { color: var(--fg); border-color: var(--accent-dim); }

.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 12px;
}
.modal-title em { font-style: normal; color: var(--accent); }

.modal-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ========================
   FORM
   ======================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.form-optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--fg-muted); opacity: 0.6; }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-error {
  background: rgba(255,90,31,0.1);
  border: 1px solid rgba(255,90,31,0.3);
  border-radius: 8px;
  color: #FF8C5A;
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.btn-spinner { opacity: 0.8; }

/* ========================
   CONFIRMATION STATE
   ======================== */
.confirm-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.confirm-title { margin-bottom: 16px; }
.confirm-sub { margin-bottom: 28px; }
.modal-close-text {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  padding: 8px;
}
.modal-close-text:hover { color: var(--fg); }

/* ========================
   MODAL RESPONSIVE
   ======================== */
@media (max-width: 600px) {
  .modal-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .btn-nav { display: none; }
}