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

:root {
  --bg: #08080C;
  --surface: #111118;
  --card: #16161F;
  --input: #1C1C28;
  --border: #252532;
  --border-light: #2E2E3E;
  --accent: #4A9EFF;
  --accent-glow: rgba(74, 158, 255, 0.15);
  --positive: #34C759;
  --positive-dim: rgba(52, 199, 89, 0.12);
  --negative: #FF453A;
  --negative-dim: rgba(255, 69, 58, 0.12);
  --maxpain: #FF9F0A;
  --maxpain-dim: rgba(255, 159, 10, 0.12);
  --purple: #BF5AF2;
  --text: #F5F5F7;
  --text-secondary: #98989F;
  --text-muted: #636366;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn:hover { background: #3d8de6; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(74, 158, 255, 0.25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-success { background: var(--positive); }
.btn-success:hover { background: #2db84e; box-shadow: 0 4px 16px rgba(52, 199, 89, 0.25); }

/* === Hero === */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(74, 158, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content { max-width: 520px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.hero-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.text-glow {
  background: linear-gradient(135deg, var(--positive) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-maxpain { color: var(--maxpain); }
.text-negative { color: var(--negative); }

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-form input,
.cta-form input {
  flex: 1;
  padding: 11px 16px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.hero-form input:focus,
.cta-form input:focus {
  border-color: var(--accent);
}

.hero-form input::placeholder,
.cta-form input::placeholder {
  color: var(--text-muted);
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Phone Mockup === */
.hero-phone {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-frame {
  width: 280px;
  background: #1A1A24;
  border-radius: 40px;
  padding: 12px;
  border: 2px solid #2A2A38;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 80px rgba(0,0,0,0.6),
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  animation: phoneIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.phone-frame.phone-visible {
  opacity: 1;
}

@keyframes phoneIn {
  from {
    opacity: 0;
    transform: rotateY(-8deg) rotateX(4deg) translateY(20px);
  }
  to {
    opacity: 1;
    transform: rotateY(-4deg) rotateX(2deg) translateY(0);
  }
}

.phone-frame:hover {
  transform: rotateY(0) rotateX(0);
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #1A1A24;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  padding: 20px 16px 0;
  min-height: 480px;
  overflow: hidden;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.screen-ticker {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screen-expiry {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.screen-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.screen-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: 'DM Mono', monospace;
}

.screen-change {
  font-size: 13px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

.screen-change.positive {
  color: var(--positive);
  background: var(--positive-dim);
}

.screen-stats {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
}

.screen-stat {
  flex: 1;
  background: var(--surface);
  padding: 10px 10px;
  border-radius: var(--radius-sm);
}

.screen-stat:first-child { border-radius: var(--radius-sm) 4px 4px var(--radius-sm); }
.screen-stat:last-child { border-radius: 4px var(--radius-sm) var(--radius-sm) 4px; }

.stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
}

.stat-value.maxpain { color: var(--maxpain); }
.stat-value.negative { color: var(--negative); }

.screen-chart-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* === Screen Chart (correct max pain shape) === */
.screen-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 110px;
  margin-bottom: 10px;
}

.screen-chart .chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.bar-stack {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-chart:not(.animate-in) .bar {
  height: 0% !important;
}

.bar.call { background: var(--positive); opacity: 0.85; }
.bar.put { background: var(--negative); opacity: 0.85; }

.maxpain-col {
  position: relative;
}

.maxpain-marker {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maxpain-line {
  width: 2px;
  height: 6px;
  background: var(--maxpain);
  border-radius: 1px;
}

.maxpain-tag {
  font-size: 8px;
  font-weight: 700;
  color: var(--maxpain);
  letter-spacing: 0.05em;
}

.screen-legend {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 14px 0 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-muted);
}

.legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.legend-swatch.call { background: var(--positive); }
.legend-swatch.put { background: var(--negative); }
.legend-swatch.mp { background: var(--maxpain); }

/* Phone bottom nav */
.screen-nav-bar {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.screen-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 500;
}

.screen-tab.active {
  color: var(--accent);
}

/* === Sections === */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Explainer Cards === */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.explainer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s;
}

.explainer-card:hover {
  border-color: var(--border-light);
}

.explainer-num {
  font-size: 32px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1;
}

.explainer-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.explainer-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Big Chart (explanation section) === */
.chart-explain {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.big-chart {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 20px;
}

.big-chart-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  margin-bottom: 16px;
}

.big-chart-col {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 100%;
  position: relative;
}

.big-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.big-chart:not(.animate-in) .big-bar {
  height: 0% !important;
}

.big-bar.call { background: var(--positive); opacity: 0.85; }
.big-bar.put { background: var(--negative); opacity: 0.85; }

.big-chart-col.mp .big-bar {
  opacity: 1;
}

.big-strike {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
}

.big-mp-indicator {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.big-mp-diamond {
  width: 10px;
  height: 10px;
  background: var(--maxpain);
  transform: rotate(45deg);
  border-radius: 2px;
}

.big-mp-indicator span {
  font-size: 9px;
  font-weight: 700;
  color: var(--maxpain);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.big-chart-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.big-chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-explain-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.chart-explain-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.chart-explain-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.explain-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.explain-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 6px;
}

.explain-dot.call { background: var(--positive); }
.explain-dot.put { background: var(--negative); }
.explain-dot.mp { background: var(--maxpain); }

.explain-point div {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.explain-point strong {
  color: var(--text);
  font-weight: 600;
}

/* === Features === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.feature-icon.icon-orange { background: var(--maxpain-dim); color: var(--maxpain); }
.feature-icon.icon-blue { background: var(--accent-glow); color: var(--accent); }
.feature-icon.icon-green { background: var(--positive-dim); color: var(--positive); }
.feature-icon.icon-purple { background: rgba(191, 90, 242, 0.12); color: var(--purple); }
.feature-icon.icon-red { background: var(--negative-dim); color: var(--negative); }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* === CTA === */
.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: radial-gradient(ellipse at center top, rgba(74, 158, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta-inner { position: relative; }

.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
}

.cta-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.cta-count {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* === Footer === */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-top {
  margin-bottom: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-disclaimer {
  max-width: 640px;
  margin: 0 auto 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
}

.footer-disclaimer p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-disclaimer strong {
  color: var(--text-secondary);
}

.footer-disclaimer em {
  font-style: italic;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }

  .hero-form { max-width: 440px; margin: 0 auto 12px; }

  .chart-explain {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chart-explain-text { order: -1; text-align: center; }
  .chart-explain-points { text-align: left; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }

  .hero-form,
  .cta-form {
    flex-direction: column;
  }

  .hero-form .btn,
  .cta-form .btn {
    width: 100%;
  }

  .explainer-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 72px 0; }

  .phone-frame {
    width: 260px;
    transform: none;
    animation: phoneInMobile 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  }

  @keyframes phoneInMobile {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
  }

  .phone-frame:hover { transform: none; }

  .cta-card { padding: 48px 24px; }

  .big-chart-row { height: 160px; }

  .big-strike { font-size: 9px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .phone-frame { width: 240px; }
  .screen-price { font-size: 24px; }
  .screen-chart { height: 90px; }
}
