:root {
  --paper: #f4f6f2;
  --white: #ffffff;
  --ink: #17201d;
  --muted: #64706b;
  --line: #dbe1dc;
  --teal: #18aa90;
  --teal-dark: #087461;
  --teal-pale: #dff3ed;
  --coral: #ff8a5c;
  --night: #152925;
  --lime: #c8f38c;
  --shadow: 0 30px 70px rgba(24, 45, 39, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -0.02em; }
.brand-mark { position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 10px 10px 10px 4px; background: var(--teal); transform: rotate(-2deg); }
.brand-mark::before { content: ""; width: 15px; height: 11px; border-radius: 12px 2px 12px 2px; background: white; transform: rotate(22deg); }
.brand-mark span { position: absolute; width: 9px; height: 2px; background: var(--teal); transform: rotate(35deg); }
.brand-mark.small { width: 24px; height: 24px; border-radius: 8px 8px 8px 3px; }
.brand-mark.small::before { width: 11px; height: 8px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 580; }
.site-nav a { color: #47534f; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--teal-dark); }
.site-nav .nav-github { color: #fff; background: var(--ink); padding: 10px 16px; border-radius: 9px; }
.menu-button { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: var(--ink); }

.hero { min-height: 780px; display: grid; grid-template-columns: .88fr 1.12fr; gap: 62px; align-items: center; padding-top: 118px; padding-bottom: 72px; }
.hero-copy { padding-bottom: 12px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--teal-dark); font-size: 12px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 2px; background: var(--teal); }
.eyebrow.light { color: var(--lime); }
.eyebrow.light > span { background: var(--lime); }
.hero h1 { margin: 0; font-size: clamp(54px, 6.1vw, 88px); line-height: 1.04; letter-spacing: -.065em; font-weight: 730; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-lead { max-width: 540px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.78; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--ink); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { border-color: #cdd5d0; background: rgba(255,255,255,.48); }
.button-secondary:hover { border-color: var(--teal); background: var(--white); }
.preview-note { margin: 18px 0 0; color: #7a8581; font-size: 12px; }
.preview-note span { color: var(--coral); margin-right: 6px; }

.app-stage { position: relative; padding: 42px 0 46px 28px; }
.app-stage::before { content: ""; position: absolute; z-index: -1; inset: 0 4% 0 15%; background: var(--teal-pale); border-radius: 42% 20% 30% 18%; transform: rotate(3deg); }
.app-window { overflow: hidden; min-width: 680px; background: #fff; border: 1px solid rgba(21,41,37,.11); border-radius: 18px; box-shadow: var(--shadow); transform: rotate(-1.2deg); transform-origin: center; }
.window-bar { position: relative; height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid #e6e9e7; background: #fbfbfb; }
.traffic { width: 9px; height: 9px; border-radius: 50%; }
.traffic.red { background: #ff655c; } .traffic.yellow { background: #ffbd3e; } .traffic.green { background: #29c840; }
.window-title { position: absolute; left: 50%; transform: translateX(-50%); color: #84908b; font-size: 9px; }
.app-layout { height: 405px; display: grid; grid-template-columns: 148px 1fr; }
.app-sidebar { padding: 20px 12px; background: #f7f8f7; border-right: 1px solid #ecefed; }
.mini-brand { display: flex; align-items: center; gap: 8px; margin: 0 7px 24px; font-size: 11px; }
.mini-nav { display: flex; align-items: center; gap: 8px; margin: 4px 0; padding: 8px 10px; color: #67726e; border-radius: 7px; font-size: 9px; }
.mini-nav i { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; }
.mini-nav.active { color: #fff; background: var(--teal); }
.app-content { padding: 27px 28px; background: #fcfdfc; }
.app-heading { display: flex; flex-direction: column; }
.app-heading span { color: var(--teal); font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.app-heading b { margin-top: 3px; font-size: 21px; letter-spacing: -.04em; }
.app-heading small { color: #8c9692; font-size: 9px; }
.metric-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 17px; }
.metric, .safety-pill { height: 70px; display: flex; flex-direction: column; justify-content: center; padding: 0 18px; border: 1px solid #e3e8e5; border-radius: 12px; background: #fff; }
.metric span, .safety-pill small { color: #8a9591; font-size: 8px; }
.metric strong { margin-top: 1px; font-size: 20px; line-height: 1.2; letter-spacing: -.04em; }
.safety-pill b { color: var(--teal-dark); font-size: 10px; }
.scan-card { overflow: hidden; margin-top: 12px; border: 1px solid #e3e8e5; border-radius: 12px; background: #fff; }
.scan-title { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #ebeeec; font-size: 9px; }
.scan-title span { color: var(--teal-dark); font-size: 7px; }
.scan-item { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; border-bottom: 1px solid #edf0ee; }
.scan-item:last-child { border-bottom: 0; }
.scan-item > i { width: 12px; height: 12px; border: 1px solid #d9dfdc; border-radius: 4px; }
.scan-item > span { display: flex; flex-direction: column; }
.scan-item b, .scan-item strong { font-size: 9px; }
.scan-item small { color: #98a09d; font-size: 7px; }
.stage-caption { display: block; margin: 20px 20px 0 0; color: #84908b; font-size: 11px; text-align: right; }

.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.45); }
.proof-grid { min-height: 116px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.proof-grid div { display: flex; align-items: baseline; gap: 10px; padding: 8px 28px; border-right: 1px solid var(--line); }
.proof-grid div:first-child { padding-left: 0; }
.proof-grid div:last-child { border-right: 0; }
.proof-grid strong { font-size: 24px; letter-spacing: -.04em; }
.proof-grid span { color: var(--muted); font-size: 12px; }

.section { padding-top: 130px; padding-bottom: 130px; }
.section-intro { display: grid; grid-template-columns: 1.1fr .72fr; gap: 60px; align-items: end; margin-bottom: 62px; }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -35px; }
.section-intro h2 { margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.08; letter-spacing: -.055em; }
.section-intro > p:last-child { margin: 0 0 5px; color: var(--muted); line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { position: relative; min-height: 390px; overflow: hidden; padding: 34px; border: 1px solid var(--line); background: var(--white); }
.feature-wide { grid-column: 1 / -1; min-height: 440px; display: grid; grid-template-columns: 60px .85fr 1.15fr; gap: 30px; align-items: center; }
.feature-number { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.feature h3 { margin: 13px 0 12px; font-size: 28px; line-height: 1.24; letter-spacing: -.035em; }
.feature p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.75; }
.feature code { position: absolute; left: 34px; right: 34px; bottom: 34px; overflow: hidden; padding: 18px; color: var(--teal-dark); background: var(--teal-pale); border-left: 3px solid var(--teal); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.app-list-demo { padding: 13px; border: 1px solid #e2e7e4; box-shadow: 0 20px 40px rgba(25,53,45,.08); transform: rotate(1.5deg); }
.app-list-demo > div { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; min-height: 68px; padding: 0 10px; border-bottom: 1px solid #e8ecea; }
.app-list-demo > div:last-child { border: 0; }
.demo-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 9px; font-size: 12px; font-weight: 800; }
.demo-icon.coral { background: var(--coral); }.demo-icon.teal { background: var(--teal); }.demo-icon.ink { background: var(--night); }
.app-list-demo b { display: flex; flex-direction: column; font-size: 13px; }.app-list-demo small { color: #8d9693; font-weight: 400; font-size: 9px; }.app-list-demo strong { font-size: 11px; }
.feature-dark { color: #fff; border-color: var(--night); background: var(--night); }
.feature-dark p { color: #aebdb8; }
.feature-dark .feature-number { color: var(--lime); }
.measure { position: absolute; left: 34px; right: 34px; bottom: 36px; display: grid; grid-template-columns: 1.8fr .7fr 1.2fr .4fr 1fr .3fr; gap: 5px; height: 44px; }
.measure span { background: var(--teal); }.measure span:nth-child(2n) { background: var(--lime); }.measure span:last-child { opacity: .35; }

.safety-section { padding: 130px 0; color: #fff; background: var(--night); }
.safety-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; align-items: start; }
.safety-copy { position: sticky; top: 80px; }
.safety-copy h2 { margin: 0; font-size: clamp(42px, 4.8vw, 62px); line-height: 1.08; letter-spacing: -.055em; }
.safety-copy > p:not(.eyebrow) { max-width: 500px; margin: 26px 0; color: #aebdb8; line-height: 1.8; }
.safety-copy > a { color: var(--lime); font-size: 14px; font-weight: 700; }
.boundary-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #38514b; }
.boundary-list li { display: grid; grid-template-columns: 55px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid #38514b; }
.boundary-list li > span { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.boundary-list b { font-size: 18px; }
.boundary-list p { margin: 5px 0 0; color: #9eada8; font-size: 14px; }

.section-intro.compact { display: block; max-width: 720px; }
.section-intro.compact .eyebrow { margin-bottom: 18px; }
.category-list { border-top: 1px solid #bbc5c0; }
.category-list > div { display: grid; grid-template-columns: 80px .62fr 1fr; gap: 28px; align-items: center; min-height: 92px; border-bottom: 1px solid #bbc5c0; }
.category-list span { color: var(--teal-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.category-list b { font-size: 20px; letter-spacing: -.02em; }
.category-list p { margin: 0; color: var(--muted); font-size: 14px; }

.roadmap-section { padding-bottom: 130px; }
.roadmap-card { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 70px; color: #fff; background: var(--teal-dark); }
.roadmap-card h2 { margin: 0; font-size: clamp(42px, 5vw, 64px); line-height: 1.06; letter-spacing: -.055em; }
.roadmap-copy > p { margin: 0 0 16px; color: #c4e0d8; }
.roadmap-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; font-size: 14px; font-weight: 700; }
.button-light { color: var(--ink); background: #fff; }

.site-footer { padding: 55px 0; color: #fff; background: #0d1a17; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.footer-grid > div:first-child p { margin: 7px 0 0 43px; color: #7e918a; font-size: 12px; }
.footer-links { display: flex; gap: 24px; color: #a6b5b0; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; margin: 34px 0 0; padding-top: 22px; color: #667a73; border-top: 1px solid #293934; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 150px; }
  .hero-copy { max-width: 760px; }
  .app-stage { overflow: hidden; padding-left: 3%; }
  .app-window { min-width: 650px; width: 88%; margin: 0 auto; }
  .proof-grid div { flex-direction: column; gap: 0; }
  .section-intro { grid-template-columns: 1fr; gap: 20px; }
  .section-intro .eyebrow { margin-bottom: 0; }
  .safety-layout { gap: 60px; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 620px); }
  .header-inner { height: 72px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 66px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20,42,36,.12); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .site-nav .nav-github { margin-top: 4px; text-align: center; }
  .hero { min-height: 0; padding-top: 120px; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .app-stage { margin-top: 26px; padding: 25px 0 28px 0; }
  .app-stage::before { left: 0; }
  .app-window { width: 690px; min-width: 690px; transform: scale(.67) rotate(-1deg); transform-origin: left center; margin-right: -230px; }
  .app-stage { height: 365px; }
  .stage-caption { display: none; }
  .proof-grid { grid-template-columns: 1fr 1fr; padding: 16px 0; }
  .proof-grid div { min-height: 74px; justify-content: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
  .proof-grid div:nth-child(2) { border-right: 0; }.proof-grid div:nth-child(n+3) { border-bottom: 0; }.proof-grid div:nth-child(3) { padding-left: 20px; }
  .section, .safety-section { padding-top: 90px; padding-bottom: 90px; }
  .section-intro { margin-bottom: 40px; }
  .section-intro h2, .safety-copy h2 { font-size: 42px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature-wide { grid-column: auto; min-height: 390px; padding: 26px; }
  .feature-wide { display: block; }
  .feature-wide .app-list-demo { margin-top: 30px; }
  .feature code, .measure { left: 26px; right: 26px; bottom: 26px; }
  .safety-layout { grid-template-columns: 1fr; }
  .safety-copy { position: static; }
  .category-list > div { grid-template-columns: 38px 1fr; gap: 10px 18px; padding: 18px 0; }
  .category-list p { grid-column: 2; }
  .roadmap-section { padding-bottom: 80px; }
  .roadmap-card { grid-template-columns: 1fr; gap: 32px; padding: 42px 28px; }
  .roadmap-actions { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

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