:root {
  --ink: #161a1d;
  --muted: #66706a;
  --line: #dfded7;
  --surface: #fbfaf7;
  --surface-soft: #f5f4f0;
  --surface-grad-a: #f8f8f3;
  --surface-grad-b: #f3f5ef;
  --statement-grad-a: #fef7f0;
  --statement-grad-b: #f3f7ef;
  --card-bg: #ffffff;
  --header-bg: rgba(251, 250, 247, 0.94);
  --header-border: rgba(223, 222, 215, 0.9);
  --nav-text: #3a3e38;
  --navy: #181c1f;
  --navy-soft: #262b2a;
  --accent: #d96a1d;
  --accent-dark: #b25716;
  --accent-secondary: #16834a;
  --accent-secondary-dark: #106339;
  --accent-soft: #fbeee1;
  --button-light-bg: #ffffff;
  --button-light-text: #161a1d;
  --button-light-border: rgba(22, 26, 29, 0.08);
  --radius: 20px;
  --shadow: 0 24px 70px rgba(22, 26, 29, 0.12);
}

:root[data-theme="dark"] {
  --ink: #f1f0ea;
  --muted: #b2b6aa;
  --line: #31352f;
  --surface: #111315;
  --surface-soft: #1c211f;
  --surface-grad-a: #1c211f;
  --surface-grad-b: #151916;
  --statement-grad-a: #1e1914;
  --statement-grad-b: #131917;
  --card-bg: #1f2423;
  --header-bg: rgba(17, 19, 20, 0.92);
  --header-border: rgba(55, 59, 52, 0.9);
  --nav-text: #edece0;
  --navy: #101213;
  --navy-soft: #1c201e;
  --accent: #e2812f;
  --accent-dark: #f0954a;
  --accent-secondary: #41b06b;
  --accent-secondary-dark: #1d7e43;
  --accent-soft: rgba(255,255,255,0.12);
  --button-light-bg: #f5f1e7;
  --button-light-text: #151818;
  --button-light-border: rgba(255,255,255,0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  transition: background-color 200ms ease, color 200ms ease;
}

a, button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 4px;
}

h1, h2, h3, p, blockquote { margin-top: 0; }
h1, h2, h3, .brand { font-family: "Space Grotesk", sans-serif; }
a { color: inherit; }
img { max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-secondary);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-name-orange {
  color: var(--accent);
}

.brand-name-green {
  color: var(--accent-secondary);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 8px 18px rgba(22, 26, 29, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav > a:not(.button) {
  color: var(--nav-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav > a:not(.button):hover,
.site-nav > a:not(.button):focus-visible {
  color: var(--accent-secondary);
  background: rgba(255,255,255,0.06);
}
.nav-toggle { display: none; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--card-bg);
  cursor: pointer;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(22,26,29,0.08);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: 0 10px 26px rgba(22,26,29,0.1);
}
.button-small { min-height: 40px; padding-inline: 14px; }
.button-light {
  color: var(--button-light-text);
  background: var(--button-light-bg);
  border: 1px solid var(--button-light-border);
  box-shadow: inset 0 0 0 1px rgba(22,26,29,0.06);
  padding: 10px 14px;
}
.button-light:hover,
.button-light:focus-visible {
  background: rgba(255,255,255,0.18);
}

.hero {
  overflow: hidden;
  padding: 106px 0 112px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(217, 106, 29, 0.32), transparent 28%),
    radial-gradient(circle at 16% 20%, rgba(22, 131, 74, 0.26), transparent 24%),
    linear-gradient(135deg, #14171a 0%, #1b2320 55%, #22322a 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 68px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero .eyebrow, .contact-section .eyebrow { color: #f0c39c; }

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 34px;
  color: #cfcec5;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.text-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 4px;
}
.text-link:hover,
.text-link:focus-visible {
  color: #f0c39c;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.text-link span { margin-left: 5px; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: #a9a89e;
  font-size: 0.9rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fae74;
  box-shadow: 0 0 0 5px rgba(63, 174, 116, 0.14);
}

.hero-panel { position: relative; min-height: 430px; display: grid; place-items: center; }
.panel-glow {
  position: absolute;
  inset: 12% 4%;
  border-radius: 50%;
  background: rgba(217, 106, 29, 0.14);
  filter: blur(48px);
}

.code-card {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(15, 17, 19, 0.82);
  box-shadow: 0 32px 90px rgba(0,0,0,.34);
  transform: rotate(1.5deg);
}

.code-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
}
.code-card-head span { width: 9px; height: 9px; border-radius: 50%; background: #55564d; }
.code-card-head small { margin-left: auto; color: #83837a; }
.code-lines { padding: 30px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92rem; }
.code-lines p { margin-bottom: 10px; color: #e3e2da; }
.code-key { color: #eda868; }
.code-value { color: #7ecb96; }
.indent { padding-left: 30px; }

.section { padding: 104px 0; }
.section-light { background: linear-gradient(180deg, var(--surface-grad-a) 0%, var(--surface-grad-b) 100%); transition: background-color 200ms ease; }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 90px; }
.prose { color: var(--muted); font-size: 1.08rem; }
.prose p + p { margin-top: 22px; }

.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-heading.narrow { max-width: 650px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 200ms ease, border-color 200ms ease;
}
.feature-card:hover,
.feature-card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card p { color: var(--muted); }
.card-number {
  display: inline-block;
  margin-bottom: 78px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.approach-section { color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); }
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
  border-left: 1px solid rgba(255,255,255,.12);
}
.principle {
  min-height: 210px;
  padding: 32px;
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.principle p { color: #a9a89e; }

.statement-section { background: linear-gradient(180deg, var(--statement-grad-a) 0%, var(--statement-grad-b) 100%); transition: background-color 200ms ease; }
.statement { max-width: 930px; text-align: center; }
.statement blockquote {
  margin-bottom: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.contact-section { padding-top: 0; background: var(--surface); }
.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 56px;
  color: #fff;
  border-radius: 26px;
  background: linear-gradient(135deg, #1c2320 0%, var(--accent-secondary-dark) 100%);
}
.contact-card h2 { max-width: 700px; font-size: clamp(2rem, 4vw, 3.1rem); }
.contact-card p:not(.eyebrow) { max-width: 680px; color: #c9c9c0; }

.site-footer { padding: 38px 0; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid p { margin-bottom: 0; }
.footer-brand { color: var(--ink); }
.footer-link {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--accent-secondary); }

.inline-link {
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.inline-link:hover,
.inline-link:focus-visible { color: var(--accent-secondary-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 880px) {
  .hero-grid, .split, .contact-card { grid-template-columns: 1fr; }
  .hero { padding-top: 80px; }
  .hero-panel { min-height: 350px; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .card-number { margin-bottom: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px; }
  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card-bg);
  }
  .nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 78px 0; }
  .hero { padding: 70px 0 82px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .hero-panel { min-height: 300px; }
  .code-lines { padding: 22px; font-size: 0.8rem; }
  .principles { grid-template-columns: 1fr; }
  .contact-card { padding: 34px 24px; }
  .button-light { width: 100%; }
}
