/* Fonts */
:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Colors */
  --bg: #0E0E14;
  --bg-alt: #141420;
  --fg: #F5F0E8;
  --fg-muted: #8A8A9A;
  --accent: #F5A623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --border: rgba(245, 240, 232, 0.08);
  --mode-num: rgba(245, 166, 35, 0.4);
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 420px;
  line-height: 1.65;
}

/* Phone mockup */
.phone-frame {
  width: 260px;
  background: #1C1C2A;
  border-radius: 38px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 48px rgba(0,0,0,0.5),
    0 0 80px rgba(245, 166, 35, 0.08);
  margin: 0 auto;
}
.phone-screen {
  background: #0A0A12;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
}
.screen-header {
  padding: 12px 16px 8px;
  display: flex;
  justify-content: center;
}
.screen-dots {
  display: flex;
  gap: 6px;
}
.screen-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.screen-content {
  padding: 0 18px 20px;
}
.calc-display {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  text-align: right;
  padding: 8px 0 4px;
  letter-spacing: -0.02em;
}
.calc-mode-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 166, 35, 0.5);
  text-align: right;
  margin-bottom: 12px;
}
.denom-row {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.denom {
  font-size: 0.6rem;
  color: var(--fg-muted);
  padding: 2px 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.count-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.count-cell {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}
.count-label {
  font-size: 0.6rem;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.count-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.ai-bar {
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-icon {
  color: var(--accent);
  font-size: 0.5rem;
}
.ai-prompt {
  font-size: 0.6rem;
  color: rgba(245, 240, 232, 0.6);
  font-style: italic;
}

/* Modes */
.modes {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
}
.modes-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 3rem;
  max-width: 560px;
  font-style: italic;
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.mode-item {
  padding: 2rem 2rem 2rem 0;
  border-right: 1px solid var(--border);
  padding-right: 2rem;
}
.mode-item:nth-child(3n) {
  border-right: none;
  padding-right: 0;
}
.mode-item:nth-child(n+4) {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.mode-number {
  font-size: 0.7rem;
  color: var(--mode-num);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.mode-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.mode-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Adaptive */
.adaptive {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.adaptive-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.adaptive-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.ai-examples {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}
.ai-example {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.ai-input {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.ai-arrow {
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin: 0.5rem 0;
}
.ai-output {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}

/* Closing */
.closing {
  border-top: 1px solid var(--border);
  padding: 5rem 2rem;
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--fg);
  line-height: 1.4;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}
.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.footer-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    order: -1;
  }
  .adaptive-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
@media (max-width: 700px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }
  .mode-item {
    border-right: none;
    padding-right: 0;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
  }
  .mode-item:first-child {
    border-top: none;
    padding-top: 0;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero {
    padding: 3rem 1.5rem 3rem;
  }
  .modes {
    padding: 3.5rem 1.5rem;
  }
  .adaptive {
    padding: 3.5rem 1.5rem;
  }
  .closing {
    padding: 3.5rem 1.5rem;
  }
  .closing-tags {
    justify-content: center;
  }
}