/* ========================
   REELSTACK — THEME CSS
   ======================== */

/* Variables */
:root {
  --bg: #0c0c0c;
  --bg-surface: #141414;
  --bg-card: #1a1a1a;
  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.15);
  --fg: #fafafa;
  --fg-muted: #a3a3a3;
  --fg-subtle: #525252;
  --border: rgba(250, 250, 250, 0.08);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========================
   HEADER
   ======================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { color: var(--accent); font-size: 18px; }
.logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--fg);
}

.header-nav { display: flex; gap: 32px; }
.header-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--fg); }

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -100px;
  right: 5%;
}
.glow-2 {
  width: 400px;
  height: 400px;
  background: #ff6b35;
  bottom: 0;
  left: 30%;
  opacity: 0.08;
}

.diagonal-slash {
  position: absolute;
  right: -200px;
  top: 0;
  bottom: 0;
  width: 800px;
  background: linear-gradient(135deg, transparent 30%, rgba(249,115,22,0.03) 50%, transparent 70%);
  transform: skewX(-15deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.accent-word { color: var(--accent); }

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-cta-block { }

.price-ladder {
  display: flex;
  gap: 0;
}

.price-item {
  padding: 14px 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-item.featured {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  font-weight: 600;
}
.price-item.featured .price-label { color: var(--accent); }

.price-val {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.price-period {
  font-size: 14px;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

/* ========================
   PHONE STACK
   ======================== */
.phone-stack {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
}

.phone-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.phone-mockup.phone-1 { transform: translateY(-20px); }
.phone-mockup.phone-2 { }
.phone-mockup.phone-3 { transform: translateY(-35px); }

.phone-screen {
  width: 130px;
  height: 230px;
  background: var(--bg-card);
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.03),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}
.phone-screen::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

.video-placeholder {
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.02) 8px,
    rgba(255,255,255,0.02) 9px
  );
}
.play-icon {
  width: 36px;
  height: 36px;
  background: rgba(249,115,22,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  padding-left: 2px;
}
.view-count {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.app-label {
  font-size: 9px;
  text-align: center;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.phone-caption {
  font-size: 11px;
  color: var(--fg-subtle);
  text-align: center;
  max-width: 130px;
}

/* ========================
   PROOFBAR
   ======================== */
.proofbar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.proofbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.proof-stat { text-align: center; }
.proof-num {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.proof-desc {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
  max-width: 160px;
}
.proof-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
}

/* ========================
   SERVICES
   ======================== */
.services {
  padding: 100px 0;
}
.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-header { margin-bottom: 60px; }
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--fg);
  max-width: 600px;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: border-color 0.3s, background 0.3s;
}
.niche-card:hover {
  border-color: rgba(249,115,22,0.4);
  background: #1e1e1e;
}
.niche-icon {
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.9;
}
.niche-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--fg);
}
.niche-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ========================
   PROCESS
   ======================== */
.process {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
}

.step-card {
  flex: 1;
  padding: 36px 28px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  opacity: 0.5;
}
.step-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--fg);
}
.step-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 4px;
  align-self: center;
}
.connector-line {
  width: 40px;
  height: 1px;
  background: var(--border);
}
.connector-arrow {
  font-size: 18px;
  color: var(--accent);
  padding: 0 4px;
}

.process-note {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 640px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  font-style: italic;
}

/* ========================
   MANIFESTO & PRICING
   ======================== */
.manifesto {
  padding: 100px 0;
}
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.manifesto-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 680px;
  margin-bottom: 48px;
}
.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.02em;
  color: var(--fg);
  max-width: 640px;
  margin-bottom: 72px;
  line-height: 1.15;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
}
.tier-featured {
  border-color: var(--accent);
  background: #1a1408;
}
.tier-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0c0c0c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  white-space: nowrap;
}
.tier-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.tier-price {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 28px;
}
.tier-featured .tier-price { color: var(--accent); }
.tier-period {
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--fg-muted);
}
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}
.tier-features li::before {
  content: '◈';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 2px;
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-surface);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
}
.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 400px;
}
.footer-note {
  font-size: 12px;
  color: var(--fg-subtle);
  margin-top: 8px;
}

/* ========================
   ONBOARDING
   ======================== */
.onboarding {
  padding: 140px 0 100px;
  min-height: 100vh;
}
.onboarding-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.onboarding-header {
  text-align: center;
  margin-bottom: 64px;
}
.onboarding-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}
.onboarding-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Success banner */
.success-banner {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 40px;
  text-align: center;
}
.success-banner-title {
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 4px;
}
.success-banner-body {
  font-size: 14px;
  color: var(--fg-muted);
}

/* Tier select grid */
.tier-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 48px;
}
.tier-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 24px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
}
.tier-select-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
}
.tier-select-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.tier-select-card input[type="radio"]:checked + .tier-select-inner {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.tier-select-inner {
  border: 1px solid transparent;
  padding: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.tier-select-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.tier-select-card input[type="radio"]:checked + .tier-select-inner .tier-select-name {
  color: var(--accent);
}
.tier-select-price {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 4px;
}
.tier-select-period {
  font-size: 13px;
  color: var(--fg-muted);
}
.tier-select-desc {
  font-size: 13px;
  color: var(--fg-subtle);
  margin-top: 12px;
  line-height: 1.5;
}

/* Form */
.onboarding-form {
  max-width: 560px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}
.form-input,
.form-textarea,
.form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a3a3a3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-submit {
  margin-top: 32px;
  width: 100%;
  background: var(--accent);
  color: #0c0c0c;
  border: none;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
.form-submit:hover {
  opacity: 0.88;
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .onboarding { padding: 100px 0 80px; }
  .onboarding-inner { padding: 0 24px; }
  .tier-select-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta-block { display: flex; justify-content: center; }
  .phone-stack { transform: none; }
  .phone-mockup.phone-1,
  .phone-mockup.phone-3 { transform: none; }
  .proofbar-inner { flex-wrap: wrap; justify-content: center; }
  .proof-divider { display: none; }
  .niche-grid { grid-template-columns: 1fr 1fr; }
  .step-row { flex-direction: column; }
  .step-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
}

@media (max-width: 600px) {
  .hero { padding-top: 100px; }
  .hero-inner { padding: 0 24px; }
  .services-inner,
  .process-inner,
  .manifesto-inner { padding: 0 24px; }
  .proofbar-inner { padding: 0 24px; }
  .niche-grid { grid-template-columns: 1fr; }
  .price-ladder { flex-wrap: wrap; }
  .proofbar { padding: 28px 0; }
}