/* === REELWISE THEME === */
:root {
  --bg: #06091a;
  --bg-surface: #0c1029;
  --bg-elevated: #111638;
  --fg: #e2e4f0;
  --fg-dim: #8b8fad;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-warm: #6366f1;
  --danger: #ff4d6a;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1140px;
}

*, *::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;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 70%),
    var(--bg);
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.015) 2px,
    rgba(0, 212, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  margin-bottom: 28px;
  background: var(--accent-glow);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 480px;
  line-height: 1.7;
}

/* Hero visualization */
.hero-viz {
  display: flex;
  justify-content: center;
}

.viz-monitor {
  width: 100%;
  max-width: 480px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow:
    0 0 40px rgba(0, 212, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

.viz-screen {
  position: relative;
  padding: 16px;
  min-height: 280px;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
  animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.frame-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.frame {
  aspect-ratio: 16/10;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
}

.f1 { background: linear-gradient(135deg, #1a1e3a, #252a4a); }
.f2 { background: linear-gradient(135deg, #1e1a3a, #2a254a); }
.f3 { background: linear-gradient(135deg, #1a2a3a, #25354a); }
.f4 { background: linear-gradient(135deg, #2a1a2a, #35254a); }
.f5 { background: linear-gradient(135deg, #1a3a2a, #254a35); }
.f6 { background: linear-gradient(135deg, #3a2a1a, #4a3525); }

.frame-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 0.55rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.viz-query {
  padding: 12px 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--fg-dim);
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.query-prompt { color: var(--accent); margin-right: 8px; }

.query-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* === PROBLEM === */
.problem {
  padding: 120px 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(0, 212, 255, 0.06);
  border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}

.problem .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--fg-dim);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.5;
}

.problem-text p {
  font-size: 1.05rem;
  color: var(--fg-dim);
  margin-bottom: 20px;
  line-height: 1.75;
}

.problem-text .highlight {
  color: var(--fg);
  font-weight: 500;
  font-size: 1.15rem;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 28px 0;
}

/* === CAPABILITIES === */
.capabilities {
  padding: 120px 0;
}

.capabilities h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 560px;
  margin-bottom: 64px;
  line-height: 1.7;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cap-card {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 12px;
  padding: 36px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cap-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.06);
}

.cap-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}

.cap-icon svg {
  width: 100%;
  height: 100%;
}

.cap-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cap-card p {
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* === HOW === */
.how {
  padding: 120px 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(0, 212, 255, 0.06);
  border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  letter-spacing: -0.04em;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 1rem;
  color: var(--fg-dim);
  max-width: 520px;
  line-height: 1.7;
}

/* === VERTICALS === */
.verticals {
  padding: 120px 0;
}

.verticals h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

.vert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.vert-card {
  padding: 36px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(0, 212, 255, 0.06);
  transition: border-color 0.3s;
}

.vert-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
}

.vert-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.vert-card p {
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* === CLOSING === */
.closing {
  padding: 140px 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 70%),
    var(--bg);
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.75;
  margin-bottom: 40px;
}

.closing-accent {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* === FOOTER === */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    gap: 48px;
  }

  .hero-viz { order: -1; }

  .problem .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cap-grid,
  .vert-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 8px;
  }

  .step-num {
    font-size: 2rem;
    width: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}