:root {
  --ink: #17231f;
  --muted: #61706a;
  --paper: #f5f2eb;
  --card: #fffdf8;
  --line: #d8d8ce;
  --forest: #214f42;
  --forest-dark: #15372f;
  --lime: #d9ff6f;
  --sand: #e7d8bf;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(27, 55, 46, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(23, 35, 31, .12);
  background: rgba(245, 242, 235, .92);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--forest);
  color: var(--lime);
  font-weight: 900;
  letter-spacing: -.05em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -.03em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 25px; }
.main-nav a, .header-action { font-size: .86rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--forest); }
.header-action { padding: 11px 17px; border-radius: 999px; background: var(--forest); color: white; }
.mobile-menu { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: 720px;
  padding: clamp(70px, 9vw, 130px) 6vw 90px;
  overflow: hidden;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.07; letter-spacing: -.045em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(3.4rem, 6.6vw, 7.6rem); }
h1 em { display: block; color: var(--forest); font-family: Georgia, serif; font-weight: 400; }
.hero-lede { max-width: 690px; margin: 28px 0; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.27rem); }
.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 var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--forest); }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.trust-row span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--forest); }

.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -15% -20%; border-radius: 50%; background: var(--lime); filter: blur(1px); transform: rotate(-10deg); opacity: .55; }
.photo-stack { position: relative; display: grid; grid-template-columns: 1fr .7fr; gap: 14px; }
.photo-stack figure { position: relative; margin: 0; overflow: hidden; border: 9px solid var(--card); border-radius: 30px; box-shadow: var(--shadow); }
.photo-stack figure:first-child { height: 510px; }
.photo-stack figure:last-child { height: 320px; margin-top: 120px; }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; }
.visual-label { position: absolute; right: 3%; bottom: 3%; z-index: 4; max-width: 250px; padding: 16px 18px; border-radius: 18px; background: var(--forest-dark); color: white; box-shadow: var(--shadow); }
.visual-label small { display: block; color: var(--lime); font-weight: 900; letter-spacing: .12em; }

.boundary { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 18px 5vw; background: var(--forest-dark); color: white; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.boundary span + span::before { content: "/"; margin-right: 28px; color: var(--lime); }

.section, .page { padding: clamp(72px, 8vw, 120px) 6vw; }
.section-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: end; margin-bottom: 48px; }
.section h2, .page h1 { margin: 0; font-size: clamp(2.4rem, 4.8vw, 5.5rem); }
.section-head > p, .page-lede { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { min-height: 270px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.card .number { color: var(--forest); font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.card h3 { margin: 45px 0 14px; font-size: 1.65rem; }
.card p { margin: 0; color: var(--muted); }

.demo-section { background: var(--forest); color: white; }
.demo-section .eyebrow { color: var(--lime); }
.demo-section .section-head > p { color: #cbd8d3; }
.demo-shell { display: grid; grid-template-columns: 210px 1fr; min-height: 530px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: #f8f7f2; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.demo-nav { padding: 28px 20px; background: #112b24; color: white; }
.demo-nav strong { display: block; margin-bottom: 34px; color: var(--lime); font-size: 1.2rem; }
.demo-tab { display: block; width: 100%; margin: 7px 0; padding: 12px 13px; border: 0; border-radius: 12px; background: transparent; color: #bfd0c9; text-align: left; cursor: pointer; }
.demo-tab.is-active { background: rgba(217,255,111,.12); color: var(--lime); }
.demo-main { padding: clamp(24px, 4vw, 54px); }
.demo-title { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.demo-title h3 { margin: 5px 0 0; font-size: 2rem; }
.status { padding: 7px 10px; border-radius: 99px; background: #e8efe9; color: var(--forest); font-size: .72rem; font-weight: 900; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.field { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.field small { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 800; letter-spacing: .08em; }
.field.wide { grid-column: 1 / -1; }
.confirm-box { margin-top: 26px; padding: 18px; border-radius: 16px; background: #eef4e8; color: var(--forest-dark); }
.demo-note { margin: 20px 0 0; color: #cbd8d3; font-size: .83rem; }

.photo-story { display: grid; grid-template-columns: .8fr 1.1fr; gap: 46px; align-items: center; }
.photo-story figure { margin: 0; overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); }
.photo-story img { width: 100%; min-height: 550px; object-fit: cover; }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; display: grid; flex: 0 0 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--forest); color: var(--lime); font-weight: 900; }

.page { max-width: 1180px; min-height: 65vh; margin: auto; }
.page-head { padding: 65px 0 45px; border-bottom: 1px solid var(--line); }
.page h1 { max-width: 900px; }
.page-lede { margin-top: 20px; }
.prose { max-width: 920px; padding: 52px 0; }
.prose h2 { margin: 54px 0 16px; font-size: clamp(1.65rem, 2.6vw, 2.7rem); }
.prose h3 { margin: 32px 0 10px; font-size: 1.25rem; letter-spacing: -.02em; }
.prose p, .prose li { color: #46544f; }
.prose table { width: 100%; border-collapse: collapse; margin: 25px 0; background: var(--card); }
.prose th, .prose td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: #e8eee8; }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--forest); border-radius: 0 14px 14px 0; background: var(--card); }
.scope-list { display: grid; gap: 12px; }
.scope-row { display: grid; grid-template-columns: 160px 1fr 110px; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.scope-row code { color: var(--forest); font-weight: 900; }
.scope-row b { color: var(--forest); font-size: .76rem; letter-spacing: .08em; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 30px; }
.contact-grid div { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.contact-grid small { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 800; }

.site-footer { padding: 58px 6vw 24px; background: #112b24; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; }
.footer-grid p { max-width: 550px; color: #b7c7c1; }
.footer-links { display: grid; align-content: start; gap: 9px; }
.footer-links strong { color: var(--lime); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { color: #dce7e3; text-decoration: none; font-size: .88rem; }
.footer-legal { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #9eb1aa; font-size: .72rem; }
.footer-legal p { margin: 0; }

@media (max-width: 980px) {
  .main-nav, .header-action { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { cursor: pointer; font-weight: 800; }
  .mobile-menu nav { position: absolute; right: 4vw; top: 66px; display: grid; min-width: 240px; gap: 10px; padding: 20px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
  .mobile-menu nav a { text-decoration: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 740px; }
  .section-head, .photo-story { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-header { padding: 0 20px; }
  .hero, .section, .page { padding-left: 22px; padding-right: 22px; }
  .hero { min-height: auto; padding-top: 74px; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .photo-stack figure:first-child { height: 390px; }
  .photo-stack figure:last-child { height: 240px; margin-top: 70px; }
  .boundary { justify-content: flex-start; }
  .boundary span + span::before { display: none; }
  .cards { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-nav { display: flex; flex-wrap: wrap; gap: 5px; }
  .demo-nav strong { flex-basis: 100%; margin-bottom: 10px; }
  .demo-tab { width: auto; }
  .demo-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .scope-row { grid-template-columns: 1fr; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
}
