:root {
  --bg: #f6f1e8;
  --paper: rgba(255, 250, 242, 0.82);
  --ink: #1d2c2f;
  --muted: #536366;
  --accent: #0f7c90;
  --accent-strong: #0a5664;
  --accent-soft: #daf1f4;
  --warm: #ff9f5a;
  --border: rgba(29, 44, 47, 0.12);
  --shadow: 0 24px 60px rgba(38, 48, 51, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 159, 90, 0.24), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(15, 124, 144, 0.16), transparent 24%),
    linear-gradient(180deg, #f8f3eb 0%, #f2ece1 100%);
}

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

.page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(15, 124, 144, 0.28);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

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

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  padding: 2rem 0 1.5rem;
}

.hero-copy {
  padding: 1rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 124, 144, 0.14);
  color: var(--accent-strong);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 1rem 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  box-shadow: 0 16px 34px rgba(15, 124, 144, 0.26);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(29, 44, 47, 0.1);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-points div {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(29, 44, 47, 0.14);
}

.hero-points strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.hero-points span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 245, 237, 0.92));
  box-shadow: var(--shadow);
  padding: 1.4rem;
  min-height: 100%;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -10% 72% 45%;
  height: 12rem;
  background: radial-gradient(circle, rgba(255, 159, 90, 0.34), transparent 64%);
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.hero-card-header strong {
  font-size: 1rem;
}

.hero-card-header span {
  font-size: 0.88rem;
  color: var(--muted);
}

.code-panels {
  display: grid;
  gap: 1rem;
}

.panel {
  border-radius: 1.35rem;
  padding: 1rem;
  border: 1px solid rgba(29, 44, 47, 0.08);
  background: rgba(26, 41, 44, 0.96);
  color: #edf8fa;
}

.panel-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #91dbe4;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

pre {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.section {
  margin-top: 4.5rem;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.04em;
}

.section-header p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  padding: 1.4rem;
  border-radius: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(33, 46, 50, 0.08);
  backdrop-filter: blur(8px);
}

.card strong,
.path-card strong,
.lesson strong,
.quote strong {
  display: block;
  margin-bottom: 0.75rem;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.card p,
.path-card p,
.lesson p,
.quote p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.path-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
}

.path-card,
.quote {
  padding: 1.5rem;
  border-radius: 1.7rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 241, 231, 0.94));
  box-shadow: 0 14px 34px rgba(33, 46, 50, 0.1);
}

.checklist {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.checklist div {
  display: flex;
  gap: 0.75rem;
  align-items: start;
}

.checklist span:first-child {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}

.lessons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.lesson {
  padding: 1.35rem;
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 44, 47, 0.08);
}

.lesson code,
.quote code {
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  background: rgba(15, 124, 144, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
}

.quote {
  display: grid;
  gap: 1rem;
}

.quote-mark {
  font-size: 4rem;
  line-height: 0.8;
  color: var(--warm);
}

.footer {
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(29, 44, 47, 0.12);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 700ms ease forwards;
}

.delay-1 {
  animation-delay: 90ms;
}

.delay-2 {
  animation-delay: 180ms;
}

.delay-3 {
  animation-delay: 270ms;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .hero,
  .path-grid,
  .cards,
  .lessons {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .page {
    width: min(100% - 1.25rem, 100%);
    padding-top: 0.7rem;
  }

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

  .nav-links {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .hero {
    padding-top: 1rem;
  }

  h1 {
    max-width: 9ch;
  }

  .hero-card,
  .card,
  .path-card,
  .lesson,
  .quote {
    border-radius: 1.25rem;
  }
}
