/* === CSS Variables === */
:root {
  --color-charcoal: #2D2D2D;
  --color-earth: #8B5A2B;
  --color-cream: #FAF8F5;
  --color-ember: #D4652F;
  --color-forest: #4A5D4A;
  --color-warm-white: #FFFDF9;
  --color-muted: #6B6B6B;
  --color-border: #E5E0DA;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1100px;
  --section-padding: 5rem 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background: var(--color-cream);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.25rem; color: var(--color-earth); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--color-earth);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-ember);
}

strong {
  font-weight: 600;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-earth);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  color: var(--color-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-charcoal);
}

/* === Hero === */
.hero {
  padding: 10rem 1.5rem 6rem;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-warm-white) 100%);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

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

.hero-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-earth);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  color: var(--color-charcoal);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-meta {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.hero-meta .divider {
  margin: 0 0.75rem;
  color: var(--color-border);
}

/* === Sections === */
.section {
  padding: var(--section-padding);
}

.section-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.section-alt {
  background: var(--color-warm-white);
}

.section-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 700px;
  margin: -1rem auto 3rem;
}

/* === Summary Grid === */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.summary-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.summary-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.summary-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--color-earth);
}

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

.summary-card h3 {
  margin-bottom: 0.75rem;
}

.summary-card p {
  color: var(--color-muted);
  margin: 0;
}

/* === Vision === */
.vision-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.vision-column h3 {
  color: var(--color-earth);
  margin-bottom: 1.5rem;
}

.magic-link-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-ember);
}

.magic-link-box h4 {
  color: var(--color-ember);
  margin-bottom: 1rem;
}

.magic-link-box p.subtle {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0;
}

/* === Approach === */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.approach-item h4 {
  color: var(--color-forest);
  margin-bottom: 1rem;
}

.flow-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-cream);
  border-radius: 6px;
}

.flow-number {
  width: 28px;
  height: 28px;
  background: var(--color-earth);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.flow-text {
  font-size: 0.9375rem;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--color-muted);
}

/* === Design Showcase === */
.design-showcase {
  display: grid;
  gap: 3rem;
}

.color-palette h4,
.typography-showcase h4,
.imagery-notes h4 {
  color: var(--color-forest);
  margin-bottom: 1.5rem;
}

.colors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.color-swatch {
  width: 140px;
  height: 100px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  color: white;
  font-size: 0.8125rem;
}

.color-swatch.light {
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
}

.color-name {
  font-weight: 600;
}

.color-use {
  opacity: 0.8;
}

.type-sample {
  padding: 1rem;
  background: white;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.type-sample.serif {
  font-family: var(--font-serif);
  font-size: 1.75rem;
}

.type-sample.sans {
  font-family: var(--font-sans);
  font-size: 1.125rem;
}

.imagery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.imagery-do,
.imagery-dont {
  padding: 1.5rem;
  border-radius: 8px;
}

.imagery-do {
  background: rgba(74, 93, 74, 0.1);
}

.imagery-dont {
  background: rgba(212, 101, 47, 0.1);
}

.imagery-do .label,
.imagery-dont .label {
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.imagery-do .label {
  color: var(--color-forest);
}

.imagery-dont .label {
  color: var(--color-ember);
}

/* === Comparison Table === */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background: var(--color-charcoal);
  color: white;
  font-family: var(--font-serif);
  font-weight: 600;
}

.comparison-table th:first-child {
  width: 30%;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .pro {
  color: var(--color-forest);
  font-weight: 500;
}

.comparison-table .con {
  color: var(--color-ember);
}

.tradeoffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tradeoff-column {
  padding: 2rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.tradeoff-column h4 {
  margin-bottom: 1rem;
  color: var(--color-earth);
}

/* === Maintenance === */
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.maintenance-card {
  padding: 2rem;
  border-radius: 8px;
}

.maintenance-card.auto {
  background: rgba(74, 93, 74, 0.1);
}

.maintenance-card.admin {
  background: rgba(139, 90, 43, 0.1);
}

.maintenance-card.dev {
  background: rgba(212, 101, 47, 0.1);
}

.maintenance-card h4 {
  margin-bottom: 1rem;
}

.maintenance-card.auto h4 { color: var(--color-forest); }
.maintenance-card.admin h4 { color: var(--color-earth); }
.maintenance-card.dev h4 { color: var(--color-ember); }

.maintenance-estimate {
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-muted);
}

/* === PRD === */
.prd-overview {
  display: grid;
  gap: 3rem;
}

.prd-block {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.prd-block h4 {
  color: var(--color-earth);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

.journey {
  margin-bottom: 1.5rem;
}

.journey:last-child {
  margin-bottom: 0;
}

.journey h5 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.journey-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.journey-steps span {
  padding: 0.5rem 1rem;
  background: var(--color-cream);
  border-radius: 4px;
  font-size: 0.9375rem;
}

.journey-steps .arrow {
  background: none;
  color: var(--color-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature h5 {
  font-family: var(--font-serif);
  color: var(--color-forest);
  margin-bottom: 0.75rem;
}

.feature ul {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--color-cream);
  border-radius: 6px;
}

.tech-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.tech-value {
  font-weight: 600;
}

/* === Offer Section === */
.section-offer {
  background: var(--color-charcoal);
  color: white;
}

.section-offer h2 {
  color: var(--color-cream);
}

.offer-intro {
  text-align: center;
  font-size: 1.25rem;
  max-width: 600px;
  margin: -1rem auto 3rem;
  opacity: 0.9;
}

.offer-includes {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
}

.offer-includes h4 {
  color: var(--color-ember);
  margin-bottom: 1rem;
}

.offer-includes li {
  opacity: 0.9;
}

/* === Questions === */
.questions-list {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.question {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.q-number {
  width: 40px;
  height: 40px;
  background: var(--color-earth);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
}

.q-content h4 {
  margin-bottom: 0.25rem;
}

.q-content p {
  color: var(--color-muted);
  margin: 0;
}

/* === Next Steps === */
.next-steps {
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-forest);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 0.25rem;
  color: var(--color-charcoal);
}

.step-content p {
  color: var(--color-muted);
  margin: 0;
}

/* === Footer === */
.footer {
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-signature {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-earth);
  margin-bottom: 0.5rem;
}

.footer-author {
  color: var(--color-muted);
  margin: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }

  .nav-links {
    display: none;
  }

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

  .section {
    padding: 3rem 1.5rem;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .colors {
    justify-content: center;
  }

  .comparison-table th:first-child {
    width: auto;
  }
}
