:root {
  --ink: #14231d;
  --muted: #5f6c65;
  --paper: #f5f1e8;
  --cream: #ebe4d6;
  --green: #1f5c45;
  --green-bright: #99e0ad;
  --lime: #d8ff76;
  --orange: #f07b4f;
  --line: rgba(20, 35, 29, 0.16);
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(31, 57, 46, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.validation-bar {
  padding: 9px 24px;
  color: #173a2e;
  background: var(--lime);
  font-size: 0.82rem;
  text-align: center;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--paper);
  background: var(--green);
  border-radius: 11px 4px 11px 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85rem;
}

.text-link {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 38px auto 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 72px;
  align-items: center;
}

.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 7vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

h1 span { color: var(--green); }

.hero-text {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.button.primary { color: white; background: var(--green); box-shadow: 0 10px 28px rgba(31, 92, 69, 0.22); }
.button.primary:hover { background: #164b37; }
.button.secondary { color: var(--ink); border-color: var(--line); background: transparent; }
.button.dark { color: var(--paper); background: var(--ink); }

.quick-facts {
  margin: 34px 0 0;
  padding: 24px 0 0;
  display: flex;
  gap: 26px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.quick-facts li { display: grid; gap: 2px; }
.quick-facts strong { font-size: 0.88rem; }
.quick-facts span { color: var(--muted); font-size: 0.78rem; }
.fine-print { margin: 16px 0 0; color: var(--muted); font-size: 0.76rem; }

.workbench {
  position: relative;
  overflow: hidden;
  background: #16392d;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: #ecf7ef;
}

.workbench::after {
  content: "";
  position: absolute;
  inset: auto -90px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(216, 255, 118, 0.08);
}

.window-bar { padding: 18px 20px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,0.11); }
.window-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.file-name { margin-left: 9px; color: rgba(255,255,255,0.6); font-family: ui-monospace, monospace; font-size: 0.74rem; }
.brief-card { margin: 24px; padding: 20px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; }
.brief-card p { margin: 10px 0 0; font-family: Georgia, serif; font-size: 1.3rem; line-height: 1.3; }
.step-tag { color: var(--green-bright); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.12em; }
.code-block { margin: 0 24px; padding: 18px 0; background: #102b22; border-radius: 10px; }
.code-line { display: flex; gap: 18px; padding: 4px 18px; color: #d8e5dd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.78rem; }
.code-line em { width: 12px; color: #6e8c7e; font-style: normal; text-align: right; }
.code-line b { color: #e8a17f; font-weight: 500; }
.code-line code span { color: #cfe982; }
.test-result { margin: 18px 24px; padding: 14px; display: flex; gap: 12px; align-items: center; border-radius: 10px; background: rgba(240, 123, 79, 0.13); border: 1px solid rgba(240, 123, 79, 0.32); }
.status-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #13241d; background: #f1a47f; font-weight: 900; }
.test-result div { display: grid; }
.test-result strong { font-size: 0.83rem; }
.test-result small { color: rgba(255,255,255,0.6); font-size: 0.72rem; }
.hint-row { padding: 0 24px 24px; display: flex; gap: 8px; }
.hint-row span { padding: 7px 10px; color: rgba(255,255,255,0.68); background: rgba(255,255,255,0.07); border-radius: 6px; font-size: 0.7rem; }

.problem-section, .delivery-section, .comparison-section {
  padding: 100px max(20px, calc((100vw - 1180px) / 2));
}

.problem-section { background: var(--cream); }
.problem-section h2, .delivery-section h2, .comparison-section h2, .sample-section h2, .interest-section h2 {
  max-width: 800px;
  margin-bottom: 56px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.problem-grid, .comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.problem-grid article, .comparison-grid > div { padding: 30px; border-top: 1px solid var(--ink); }
.number { display: inline-block; margin-bottom: 56px; color: var(--green); font-family: ui-monospace, monospace; font-size: 0.72rem; }
.problem-grid h3, .comparison-grid h3 { margin-bottom: 12px; font-size: 1.04rem; }
.problem-grid p, .comparison-grid p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.audience-section {
  padding: 90px max(20px, calc((100vw - 1180px) / 2));
  background: var(--paper);
}

.audience-section h2 {
  max-width: 760px;
  margin-bottom: 48px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

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

.audience-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.audience-grid article.accent {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
}

.audience-grid h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.audience-grid ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.audience-grid article.accent ul { color: rgba(255,255,255,0.78); }
.audience-grid article.accent strong { color: var(--lime); }

.sample-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.sample-section h2 { margin-bottom: 22px; }
.sample-copy > p:last-child { color: var(--muted); }
.sample-copy code { padding: 2px 6px; background: var(--cream); border-radius: 4px; }
.challenge { display: grid; gap: 12px; align-content: start; }
.choice { padding: 18px 20px; display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px rgba(31,92,69,.1); }
.choice input { margin-top: 4px; accent-color: var(--green); }
.feedback { min-height: 24px; margin: 0; color: var(--green); font-size: 0.9rem; font-weight: 700; }

.delivery-section { color: var(--paper); background: var(--green); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
.delivery-section .section-kicker { color: var(--green-bright); }
.delivery-section h2 { margin-bottom: 0; }
.delivery-list { margin: 0; padding: 0; list-style: none; }
.delivery-list li { padding: 22px 0; display: grid; grid-template-columns: 50px 1fr; gap: 10px; border-top: 1px solid rgba(255,255,255,0.2); }
.delivery-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.2); }
.delivery-list > li > span { color: var(--green-bright); font-family: ui-monospace, monospace; font-size: 0.75rem; }
.delivery-list strong { display: block; margin-bottom: 4px; }
.delivery-list p { margin: 0; color: rgba(255,255,255,0.65); font-size: 0.86rem; }

.comparison-section { background: var(--white); }
.comparison-grid > div { min-height: 240px; }
.comparison-grid .accent-card { color: white; background: var(--green); border: 0; border-radius: 12px; }
.comparison-grid .accent-card p { color: rgba(255,255,255,0.7); }

.interest-section { padding: 110px 20px; color: var(--paper); background: var(--ink); text-align: center; }
.interest-heading { max-width: 780px; margin: 0 auto; }
.interest-section .section-kicker { color: var(--green-bright); }
.interest-section h2 { margin-right: auto; margin-left: auto; margin-bottom: 18px; }
.interest-heading > p:last-child { color: rgba(255,255,255,0.62); }
.honest-note { margin-top: 14px; color: var(--green-bright); font-size: 0.82rem; font-weight: 700; }
.interest-cta { margin-top: 28px; background: var(--lime) !important; color: var(--ink) !important; box-shadow: none !important; }
.interest-form { width: min(680px, 100%); margin: 44px auto 0; text-align: left; }
.interest-form fieldset { margin: 0 0 18px; padding: 22px; display: grid; gap: 12px; border: 1px solid rgba(255,255,255,0.17); border-radius: 12px; }
.interest-form legend { padding: 0 8px; font-weight: 800; }
.interest-form label { padding: 8px 0; display: flex; gap: 10px; color: rgba(255,255,255,0.75); }
.interest-form input { accent-color: var(--lime); }
.form-status { min-height: 24px; margin: 16px 0 0; color: var(--green-bright); text-align: center; }

footer {
  padding: 30px max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #0d1b16;
  color: rgba(255,255,255,0.55);
}

.footer-brand { color: white; }
footer p { margin: 0; font-size: 0.76rem; text-align: right; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 50px; }
  .workbench { max-width: 620px; }
  .sample-section, .delivery-section { grid-template-columns: 1fr; gap: 48px; }
  .problem-grid, .comparison-grid, .audience-grid { grid-template-columns: 1fr; }
  .problem-grid article, .comparison-grid > div { min-height: auto; }
  .number { margin-bottom: 22px; }
}

@media (max-width: 600px) {
  .validation-bar { padding-inline: 14px; }
  .site-header { width: min(100% - 28px, 1180px); }
  .text-link { display: none; }
  .hero { width: min(100% - 28px, 1180px); margin-top: 24px; margin-bottom: 80px; }
  h1 { font-size: clamp(3.1rem, 16vw, 4.7rem); }
  .hero-actions { display: grid; }
  .quick-facts { gap: 16px; justify-content: space-between; }
  .quick-facts strong { font-size: 0.78rem; }
  .quick-facts span { font-size: 0.68rem; }
  .workbench { border-radius: 14px; }
  .brief-card, .code-block, .test-result { margin-right: 14px; margin-left: 14px; }
  .hint-row { padding-right: 14px; padding-left: 14px; }
  .code-block { overflow-x: auto; }
  .code-line { width: max-content; min-width: 100%; }
  .problem-section, .delivery-section, .comparison-section, .audience-section { padding-top: 78px; padding-bottom: 78px; }
  .sample-section { width: min(100% - 28px, 1180px); padding: 78px 0; }
  .problem-section h2, .delivery-section h2, .comparison-section h2, .sample-section h2, .interest-section h2 { margin-bottom: 38px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
