:root {
  --bg: #f0ebe3;
  --bg-soft: #e7e9e1;
  --surface: rgba(255, 255, 255, .76);
  --surface-strong: #fbfbf9;
  --text: #172019;
  --muted: #69736c;
  --line: rgba(23, 32, 25, .14);
  --green: #147a55;
  --green-2: #218b64;
  --mint: #dceee6;
  --mint-strong: #69cfa4;
  --coral: #ef8b5c;
  --shadow: 0 18px 50px rgba(20, 35, 26, .08);
  --radius: 30px;
  --sans: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", Georgia, serif;
}
:root[data-theme="dark"] {
  --bg: #121812;
  --bg-soft: #18211b;
  --surface: rgba(29, 39, 33, .83);
  --surface-strong: #1a241e;
  --text: #f4f5f0;
  --muted: #a9b2ab;
  --line: rgba(232, 239, 233, .17);
  --green: #6dd0a5;
  --green-2: #55c695;
  --mint: #173b2d;
  --mint-strong: #71d7ac;
  --coral: #ff9666;
  --shadow: 0 18px 50px rgba(0, 0, 0, .26);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 10% 0%, rgba(239,139,92,.09), transparent 34rem),
    radial-gradient(circle at 90% 18%, rgba(20,122,85,.08), transparent 34rem),
    var(--bg);
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
}
.nav {
  min-height: 88px; display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.mark {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green); color: white; font: 700 1.5rem var(--serif);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none; color: var(--muted); padding: 11px 14px; border-radius: 999px; font-weight: 650;
}
.nav-links a:hover { background: var(--surface); color: var(--text); }
.theme-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.hero {
  padding: 108px 0 76px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center;
}
.eyebrow {
  color: var(--green); text-transform: uppercase; letter-spacing: .22em;
  font-size: .82rem; font-weight: 850; margin-bottom: 24px;
}
h1 {
  margin: 0; max-width: 900px; font-size: clamp(3.5rem, 7.3vw, 7.6rem);
  line-height: .91; letter-spacing: -.065em;
}
.hero em, .display-em {
  display: block; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em;
  color: var(--green); font-style: italic;
}
.lede { max-width: 760px; margin: 32px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.48rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; min-height: 56px;
  padding: 0 24px; border-radius: 18px; text-decoration: none; font-weight: 780;
  border: 1px solid var(--line);
}
.btn.primary { background: var(--green); color: white; border-color: var(--green); }
:root[data-theme="dark"] .btn.primary { color: #0c1811; background: var(--mint-strong); border-color: var(--mint-strong); }
.btn.secondary { background: var(--surface); }
.hero-card, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 28px; min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card .orbit {
  min-height: 240px; border-radius: 24px; position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--mint) 86%, transparent), transparent),
    var(--surface-strong);
  border: 1px solid var(--line);
}
.orbit .node { position: absolute; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.orbit .n1 { width: 180px; height: 180px; right: -20px; top: -35px; }
.orbit .n2 { width: 110px; height: 110px; left: 32px; bottom: 26px; background: var(--green); opacity: .9; }
.orbit .n3 { width: 72px; height: 72px; left: 44%; top: 26%; background: var(--coral); opacity: .88; }
.orbit .track {
  position: absolute; width: 240px; height: 1px; background: var(--line); transform: rotate(-24deg); top: 50%; left: 20%;
}
.meta-row { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-top: 22px; }
.meta-row strong { font-size: 1.5rem; }
.meta-row span { color: var(--muted); text-align: right; }
.section { padding: 78px 0; }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: end; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(2.2rem, 4.4vw, 4.7rem); letter-spacing: -.055em; line-height: 1; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.13rem; line-height: 1.65; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 28px; min-height: 330px; display: flex; flex-direction: column; }
.kicker { color: var(--green); text-transform: uppercase; letter-spacing: .17em; font-size: .76rem; font-weight: 850; }
.card h3 { font-size: 2rem; letter-spacing: -.04em; margin: 20px 0 10px; }
.card p { color: var(--muted); line-height: 1.65; margin: 0; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: .78rem; color: var(--muted); background: color-mix(in srgb, var(--surface) 72%, transparent); }
.card .card-link { margin-top: auto; font-weight: 800; color: var(--green); text-decoration: none; }
.statement {
  margin-top: 18px; padding: 38px; border-left: 5px solid var(--coral);
  background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 0 26px 26px 0;
}
.statement strong { display: block; font-size: clamp(1.8rem, 3.2vw, 3.5rem); letter-spacing: -.04em; }
.statement span { color: var(--muted); font-size: 1.05rem; }
.footer { padding: 54px 0 70px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer a { color: var(--text); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail { padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.detail h3 { font-size: 2.5rem; letter-spacing: -.045em; margin: 8px 0 18px; }
.detail ul { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.timeline { display: grid; gap: 12px; margin-top: 22px; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.step b { color: var(--green); }
.codebar { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); overflow-x: auto; color: var(--text); }
@media (max-width: 900px) {
  .nav-links a { display: none; }
  .hero, .section-head { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 72px; }
  .grid, .detail-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 330px; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav { min-height: 76px; }
  .mark { width: 46px; height: 46px; border-radius: 14px; }
  h1 { font-size: clamp(3.25rem, 17vw, 5.2rem); }
  .hero { padding: 62px 0 46px; }
  .section { padding: 56px 0; }
  .hero-card, .card, .detail { padding: 22px; border-radius: 26px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
