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

:root {
  --bg: #faf8f5;
  --bg-alt: #f2efe9;
  --ink: #1a1a2e;
  --ink-muted: #6b7280;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --surface: #ffffff;
  --border: #e5e1d8;
  --hero-bg: #1a1a2e;
  --hero-fg: #faf8f5;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* === HERO === */
.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding: 5rem 2rem 6rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--hero-fg);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(250, 248, 245, 0.7);
  line-height: 1.7;
  max-width: 42ch;
}

/* Hero Visual — assignment + plan output */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.assignment-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
}

.ab-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.4);
  margin-bottom: 0.75rem;
}

.ab-text {
  font-size: 0.85rem;
  color: rgba(250,248,245,0.8);
  line-height: 1.6;
  font-style: italic;
}

.ab-arrow {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Plan output block */
.plan-output {
  background: var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--ink);
  margin-top: 1.5rem;
}

.po-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.po-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(26,26,46,0.1);
}

.po-step:last-of-type {
  border-bottom: none;
}

.po-num {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--ink);
  color: var(--hero-fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.po-label {
  font-weight: 500;
  font-size: 0.875rem;
  flex: 1;
}

.po-time {
  font-size: 0.75rem;
  color: rgba(26,26,46,0.6);
  font-weight: 500;
}

.po-prompt {
  margin-top: 1rem;
  background: rgba(26,26,46,0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.prompt-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26,26,46,0.5);
  margin-bottom: 0.4rem;
}

.prompt-preview {
  font-size: 0.75rem;
  color: rgba(26,26,46,0.7);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === HOW IT WORKS === */
.how {
  padding: 5rem 2rem;
  background: var(--bg);
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step-card {
  padding: 0 1.5rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--bg-alt);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.step-divider {
  width: 1px;
  height: 100%;
  background: var(--border);
  align-self: stretch;
  margin-top: 0.5rem;
}

/* === FEATURES === */
.features {
  padding: 5rem 2rem;
  background: var(--bg-alt);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-head {
  margin-bottom: 3.5rem;
}

.features-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.features-head p {
  font-size: 1rem;
  color: var(--ink-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feat {
  background: var(--surface);
  padding: 2.5rem;
  transition: background 0.2s;
}

.feat:hover {
  background: var(--bg);
}

.feat-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feat h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feat p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* === MANIFESTO === */
.manifesto {
  padding: 6rem 2rem;
  background: var(--ink);
  color: var(--hero-fg);
}

.manifesto-inner {
  max-width: 700px;
  margin: 0 auto;
}

.manifesto-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.manifesto-body p {
  font-size: 1.05rem;
  color: rgba(250,248,245,0.75);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.manifesto-body p:last-of-type {
  margin-bottom: 3rem;
}

.fields-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.35);
  margin-bottom: 1rem;
}

.fields-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fields-grid span {
  background: rgba(250,248,245,0.08);
  color: rgba(250,248,245,0.7);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(250,248,245,0.1);
}

/* === CLOSING === */
.closing {
  padding: 6rem 2rem;
  background: var(--accent);
  text-align: center;
}

.closing-inner {
  max-width: 650px;
  margin: 0 auto;
}

.closing-line {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(26,26,46,0.7);
  margin-bottom: 2.5rem;
}

.closing-vision {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(26,26,46,0.4);
}

/* === FOOTER === */
.footer {
  padding: 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero {
    padding: 3rem 1.5rem 4rem;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .step-divider {
    display: none;
  }

  .step-card {
    padding: 0;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .manifesto, .closing {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .plan-output {
    padding: 1rem;
  }

  .feat {
    padding: 1.75rem;
  }
}