:root {
  --ink: #12231d;
  --muted: #61706a;
  --paper: #f5f3ec;
  --surface: #fffdf8;
  --line: #d8ddd6;
  --green: #1f5f48;
  --green-dark: #163f32;
  --lime: #c7ef7f;
  --shadow: 0 24px 70px rgba(18, 35, 29, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(18, 35, 29, 0.09);
  background: rgba(245, 243, 236, 0.88);
  backdrop-filter: blur(14px);
}
.header-inner, .footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-nav, .footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a, .footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}
.header-nav a:hover, .header-nav a:focus-visible,
.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--green);
  outline: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--green-dark);
  background: var(--lime);
  border-radius: 11px 11px 11px 4px;
  letter-spacing: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}
.status-pill > span { width: 8px; height: 8px; border-radius: 50%; background: #42a36f; box-shadow: 0 0 0 4px #dff3e7; }

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
  padding-block: 96px 112px;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6.3rem); line-height: 0.95; letter-spacing: -0.065em; }
.lead { max-width: 660px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}
.button-primary { color: #e8f7ef; background: var(--green-dark); cursor: not-allowed; }
.button-primary.button-link { cursor: pointer; }
.button-primary.button-link:hover, .button-primary.button-link:focus-visible { background: var(--green); outline: none; }
.button-secondary { border-color: var(--line); background: rgba(255, 253, 248, 0.76); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--green); outline: none; }

.control-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  color: #eff9f4;
  border-radius: var(--radius-lg);
  background: var(--green-dark);
  box-shadow: var(--shadow);
}
.control-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 38px solid rgba(199, 239, 127, 0.18);
  border-radius: 50%;
}
.card-label { margin-bottom: 12px; color: #b9d2c7; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.control-card h2 { position: relative; z-index: 1; margin-bottom: 28px; font-size: 2rem; letter-spacing: -0.04em; }
.check-list { position: relative; z-index: 1; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 11px; align-items: center; color: #d8e8e0; }
.check-list span { display: grid; place-items: center; width: 23px; height: 23px; color: var(--green-dark); background: var(--lime); border-radius: 8px; font-size: 0.8rem; font-weight: 900; }

.architecture { padding-block: 110px; border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading h2 { margin-bottom: 18px; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.055em; }
.section-heading p:last-child { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.section-heading.compact { margin-bottom: 34px; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-card { min-height: 290px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.route-index { display: block; margin-bottom: 54px; color: var(--green); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.15em; }
.route-card h3 { margin-bottom: 13px; font-size: 1.25rem; }
.route-card code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-bottom: 18px; padding: 7px 9px; color: var(--green-dark); background: #e9f0e8; border-radius: 8px; font-size: 0.78rem; }
.route-card p { margin-bottom: 0; color: var(--muted); line-height: 1.62; }

.radar { padding-block: 110px; border-top: 1px solid var(--line); }
.radar-panel {
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid #cfd8cf;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fffdf8 0%, #edf3e9 100%);
  box-shadow: var(--shadow);
}
.radar-panel .section-heading { margin-bottom: 34px; }
.radar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 34px; }
.radar-grid p { margin-bottom: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.72; }

.principles { padding-block: 90px 120px; }
.principle-list { border-top: 1px solid var(--line); }
.principle-list > div { display: grid; grid-template-columns: minmax(220px, 0.45fr) 1fr; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.principle-list span { color: var(--muted); }

.site-footer { color: #c7d8d0; background: var(--ink); }
.footer-inner { min-height: 100px; font-size: 0.82rem; }
.footer-links a { color: #c7d8d0; }

.legal-main { padding-block: 78px 110px; }
.legal-shell { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.legal-heading { margin-bottom: 44px; }
.legal-heading h1 { margin-bottom: 18px; font-size: clamp(2.6rem, 7vw, 5.2rem); }
.legal-meta { color: var(--muted); font-size: 0.9rem; }
.legal-content {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.legal-content h2 { margin: 44px 0 14px; font-size: 1.45rem; letter-spacing: -0.025em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: #43524c; line-height: 1.75; }
.legal-content ul { padding-left: 22px; }
.legal-content a { color: var(--green); overflow-wrap: anywhere; }
.legal-note { padding: 18px 20px; border-left: 4px solid var(--green); background: #edf3e9; border-radius: 0 12px 12px 0; }

@media (max-width: 820px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 74px 88px; }
  .control-card { max-width: 520px; }
  .route-grid { grid-template-columns: 1fr; }
  .radar-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 220px; }
  .route-index { margin-bottom: 34px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  .status-pill { font-size: 0; padding: 10px; }
  .status-pill > span { margin: 0; }
  .header-inner { min-height: 92px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
  .header-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .header-nav a { font-size: 0.76rem; }
  h1 { font-size: clamp(3.15rem, 17vw, 4.7rem); }
  .hero { gap: 48px; padding-top: 62px; }
  .control-card { padding: 26px; }
  .architecture { padding-block: 82px; }
  .principle-list > div { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding-block: 22px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

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