:root {
  --bg: #f7f1e4;
  --bg-soft: rgba(255, 250, 240, 0.72);
  --surface: rgba(255, 253, 247, 0.78);
  --surface-strong: #fffaf0;
  --text: #1d2b2a;
  --muted: #556765;
  --line: rgba(29, 43, 42, 0.1);
  --amber: #c86f3f;
  --amber-soft: #ebbe8f;
  --teal: #1f8a88;
  --teal-soft: #c9ebe6;
  --gold: #e6c267;
  --shadow: 0 24px 80px rgba(88, 67, 24, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(230, 194, 103, 0.28), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(31, 138, 136, 0.16), transparent 24%),
    radial-gradient(circle at 30% 70%, rgba(200, 111, 63, 0.14), transparent 20%),
    linear-gradient(180deg, #f9f3e7 0%, #f5edde 48%, #efe5d5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(29, 43, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 43, 42, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity: 0.4;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  line-height: 1.65;
}

h1,
h2,
h3,
strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.hero,
.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--amber), #d89247);
  color: #fffaf3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.topbar__links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.eyebrow,
.preview-label,
.feature-card__index,
.timeline-step__number {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--amber);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.75rem);
  max-width: 10ch;
}

.hero__lede {
  margin-top: 22px;
  max-width: 54ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(145deg, var(--text), #304443);
  color: #fdf7ec;
  box-shadow: var(--shadow);
}

.button--ghost {
  border-color: rgba(29, 43, 42, 0.18);
  background: rgba(255, 250, 240, 0.52);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero__tags li,
.preview-badge {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(29, 43, 42, 0.08);
  background: rgba(255, 250, 240, 0.68);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.hero__panel {
  position: relative;
}

.hero__panel::before,
.hero__panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.hero__panel::before {
  top: 4%;
  right: 6%;
  width: 120px;
  height: 120px;
  background: rgba(31, 138, 136, 0.18);
}

.hero__panel::after {
  bottom: 4%;
  left: -6%;
  width: 160px;
  height: 160px;
  background: rgba(200, 111, 63, 0.14);
}

.device-card,
.statement-card,
.feature-card,
.timeline-step,
.stack-card,
.cta-card {
  border: 1px solid rgba(29, 43, 42, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.device-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
}

.device-card__header {
  display: flex;
  gap: 8px;
  padding: 18px 18px 0;
}

.device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(29, 43, 42, 0.14);
}

.device-card__body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.preview-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-section h2 {
  font-size: 1.7rem;
}

.book-card,
.context-card,
.insight-card {
  background: var(--surface-strong);
  border: 1px solid rgba(29, 43, 42, 0.08);
  border-radius: 22px;
}

.book-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px;
}

.book-card__cover {
  border-radius: 18px;
  min-height: 108px;
  background-size: cover;
}

.book-card__cover--amber {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.2), transparent 35%),
    linear-gradient(160deg, #8d421e, #d28f52 55%, #f1d3a3 100%);
}

.book-card__cover--teal {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.2), transparent 35%),
    linear-gradient(160deg, #0e5c62, #2e918f 55%, #d8f0ea 100%);
}

.book-card__meta {
  display: grid;
  align-content: center;
  gap: 4px;
}

.book-card__meta span,
.book-card__meta small,
.insight-card span {
  color: var(--muted);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.insight-card {
  padding: 16px;
}

.insight-card strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 1.4rem;
}

.insight-card--accent {
  background: linear-gradient(145deg, rgba(31, 138, 136, 0.1), rgba(230, 194, 103, 0.18));
}

.context-card {
  padding: 16px;
}

.section {
  padding: 30px 0 38px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section--statement .statement-card,
.section--cta .cta-card {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-xl);
}

.statement-card h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 14ch;
  margin-bottom: 16px;
}

.statement-card p:last-child,
.cta-card p:last-of-type {
  max-width: 66ch;
  color: var(--muted);
}

.feature-grid,
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.stack-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feature-card h3,
.stack-card h3,
.timeline-step h3 {
  font-size: 1.45rem;
  margin: 10px 0 10px;
}

.feature-card p,
.stack-card p,
.timeline-step p {
  color: var(--muted);
}

.feature-card:nth-child(3n) {
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.92), rgba(233, 244, 241, 0.82));
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.timeline-step__number {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--amber), #e3a85b);
  color: #fff7ec;
  font-weight: 800;
}

.stack-card--wide {
  grid-column: span 2;
}

.cta-card {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .reveal {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hero__content,
  .feature-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .stack-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .preview-section,
  .timeline-step,
  .book-card {
    grid-template-columns: 1fr;
  }

  .preview-section {
    align-items: flex-start;
  }

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

  .button {
    width: 100%;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
