/* ─────────────────────────────────────────────────────
   DECODE — Design System
   Aesthetic: Warm editorial. Distressed serif elegance.
   ───────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Tokens ── */
:root {
  /* Modern Bold Color System */
  --black:        #111111;
  --beige:        #F4EDE4;
  --beige-dark:   #E8DFD4;
  --beige-light:  #FAF7F2;
  --white:        #FFFFFF;
  
  /* Accent Colors */
  --accent:       #FF6B35;
  --accent-light: #FFE8E0;
  --accent-hover: #E55A28;
  --accent-gold:  #D4A574;
  --accent-gray:  #666666;

  /* Semantic Colors - Bold & High Contrast */
  --col-target-bg:  #FFE8E0;
  --col-target-fg:  #111111;
  --col-warn-bg:    #FFF4E0;
  --col-warn-fg:    #111111;
  --col-ask-bg:     #E0EAFF;
  --col-ask-fg:     #111111;
  --col-success-bg: #E0F5EC;
  --col-success-fg: #111111;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max-w: 1080px;
  --radius-sm: 4px;
  --radius-md: 4px;

  /* Animation */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--beige);
  color: var(--black);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Shared utilities ── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-gray);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
}

.section-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

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

/* ── Marker badges ── */
.marker-target  { background: var(--col-target-bg);  color: var(--col-target-fg); border: 2px solid var(--accent); }
.marker-warn    { background: var(--col-warn-bg);    color: var(--col-warn-fg); border: 2px solid var(--accent-gold); }
.marker-ask     { background: var(--col-ask-bg);     color: var(--col-ask-fg); border: 2px solid #2563EB; }
.marker-success { background: var(--col-success-bg); color: var(--col-success-fg); border: 2px solid #059669; }


/* ════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--beige);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--beige);
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-cta:hover { color: var(--beige); }


/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem 2.5rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gray);
  margin-bottom: 2rem;
  font-weight: 600;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--accent-gray);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--black);
  color: var(--beige);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 1.25rem 2.5rem;
  border: 3px solid var(--black);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  margin-bottom: 1.25rem;
}

.hero-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-arrow {
  font-family: var(--sans);
  font-size: 1rem;
  transition: transform 0.2s var(--ease);
}

.hero-btn:hover .btn-arrow { transform: translateX(4px); }

.hero-note {
  font-size: 0.875rem;
  color: var(--accent-gray);
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ── Preview card stack ── */
.hero-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.preview-label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-gray);
  margin-bottom: 1rem;
}

.preview-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--black);
  line-height: 1.65;
  font-weight: 500;
}

.preview-arrow {
  text-align: center;
  color: var(--black);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
}

.preview-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--beige-dark);
}

.preview-row:last-child { border-bottom: none; padding-bottom: 0; }

.preview-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.preview-row-text {
  font-size: 0.875rem;
  color: var(--black);
  line-height: 1.6;
  flex: 1;
  font-weight: 400;
}


/* ════════════════════════════════════════════════════
   PROBLEM SECTION
   ════════════════════════════════════════════════════ */
.problem {
  background: var(--beige);
  padding: 7rem 0;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
}

.problem .section-label { color: var(--accent-gray); }

.problem .section-title {
  color: var(--black);
  margin-bottom: 3.5rem;
}

.problem .section-title em { color: var(--accent); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--black);
  border: 3px solid var(--black);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3rem;
}

.problem-item {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: all 0.2s;
}

.problem-item:hover {
  background: var(--beige-light);
  transform: translateY(-2px);
}

.problem-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-weight: 500;
}

.problem-source {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gray);
  font-weight: 600;
}

.problem-desc {
  max-width: 680px;
  font-size: 1.0625rem;
  color: var(--black);
  line-height: 1.8;
  font-weight: 400;
}


/* ════════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════════ */
.how {
  padding: 7rem 0;
  border-bottom: 3px solid var(--black);
}

.how .section-title { margin-bottom: 4rem; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 2rem 0 0;
}

.step-divider {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--black);
  padding-top: 0.5rem;
  flex-shrink: 0;
  user-select: none;
  font-weight: 700;
}

.step-num {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--accent-gray);
  line-height: 1.7;
  font-weight: 400;
}


/* ════════════════════════════════════════════════════
   OUTPUTS GRID
   ════════════════════════════════════════════════════ */
.outputs {
  padding: 7rem 0;
  border-bottom: 3px solid var(--black);
}

.outputs .section-title { margin-bottom: 3.5rem; }

.outputs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.output-card {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: all 0.2s var(--ease);
}

.output-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.output-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.output-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.875rem;
  line-height: 1.4;
}

.output-desc {
  font-size: 0.9375rem;
  color: var(--accent-gray);
  line-height: 1.7;
  font-weight: 400;
}


/* ════════════════════════════════════════════════════
   AUDIENCE
   ════════════════════════════════════════════════════ */
.audience {
  padding: 7rem 0;
  border-bottom: 3px solid var(--black);
}

.audience .section-title { margin-bottom: 3.5rem; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--black);
  border: 3px solid var(--black);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.audience-item {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: all 0.2s;
}

.audience-item:hover {
  background: var(--beige-light);
  transform: translateY(-2px);
}

.audience-role {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.audience-context {
  font-size: 0.9375rem;
  color: var(--accent-gray);
  line-height: 1.65;
  font-weight: 400;
}


/* ════════════════════════════════════════════════════
   CTA
   ════════════════════════════════════════════════════ */
.cta-section {
  padding: 8rem 0;
  background: var(--black);
  border-top: 3px solid var(--beige);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--beige);
  margin-bottom: 2.75rem;
}

.cta-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.cta-section .hero-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.cta-section .hero-btn:hover {
  background: var(--beige);
  border-color: var(--beige);
  color: var(--black);
}


/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  border-top: 2px solid var(--beige);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--beige);
}

.footer-note {
  font-size: 0.8125rem;
  color: var(--beige-dark);
  letter-spacing: 0.04em;
  font-weight: 400;
}


/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 5rem 2rem;
  }

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

  .problem-grid  { grid-template-columns: repeat(2, 1fr); }
  .outputs-grid  { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }

  .steps {
    flex-direction: column;
    gap: 3rem;
  }

  .step { padding: 0; }
  .step-divider { display: none; }
  
  .section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
  }
}

@media (max-width: 600px) {
  .section-inner { padding: 0 1.5rem; }
  .problem-grid  { grid-template-columns: 1fr; }
  .outputs-grid  { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .nav-inner     { padding: 0 1.5rem; }

  .hero { padding: 4rem 1.5rem; }
  
  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .output-card,
  .problem-item,
  .audience-item {
    padding: 2rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .nav-inner {
    height: 60px;
  }
  
  .nav-logo {
    font-size: 1.5rem;
  }
}