:root {
  color-scheme: light;
  --canvas: #f7f7ef;
  --ink: #19271d;
  --muted: #526055;
  --dark: #101b16;
  --line: #d9dfd1;
  --lime: #d4f18c;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5a8b3c; outline-offset: 4px; }
.wrap { width: min(1210px, 100% - 96px); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 10; padding: 10px; background: white; }
.skip:focus { top: 10px; }
.site-header { background: var(--dark); color: #f7f8eb; border-bottom: 1px solid #ffffff1e; }
.header-inner { display: flex; min-height: 75px; align-items: center; justify-content: space-between; gap: 22px; }
.brand, .site-header nav { display: flex; align-items: center; gap: 13px; }
.brand { font-size: 21px; font-weight: 750; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand-light { font-weight: 450; color: #d3ddd0; }
.site-header nav { gap: 28px; font-size: 14px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--lime); }
.nav-action { border: 1px solid #58705e; border-radius: 6px; padding: 9px 12px; }
.nav-action span { margin-left: 7px; color: var(--lime); }
.hero { color: #f4f6e7; background: radial-gradient(ellipse at 90% 70%, #243a2a 0%, transparent 55%), var(--dark); }
.hero-grid { min-height: 480px; padding-block: clamp(54px, 7vw, 108px); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4%; }
.hero-copy { position: relative; z-index: 1; }
.kicker, .section-code, .art-label, .art-note, .visual-index, .mock-overline {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .13em; line-height: 1.5;
  text-transform: uppercase;
}
.kicker { color: #d3e1cf; display: flex; align-items: center; gap: 9px; }
.kicker span { width: 8px; height: 8px; border-radius: 100%; background: var(--lime); flex: none; }
.hero h1 { margin-top: 18px; font-size: clamp(51px, 6.6vw, 102px); font-weight: 720; line-height: .96; letter-spacing: -.087em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-text { max-width: 480px; margin: 25px 0 28px; color: #d5ded1; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button.hero-secondary { color: #f4f6e7; border-color: #58705e; }
.button.hero-secondary:hover { background: #263b2d; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 16px; border: 1px solid transparent; border-radius: 7px;
  font-size: 14px; font-weight: 690; line-height: 1.35; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.button span { font-size: 17px; line-height: 1; }
.button.lime { color: #182416; background: var(--lime); }
.button.lime:hover { background: #e6ffa9; }
.button.dark { color: white; background: #223729; }
.button.dark:hover { background: #3b5843; }
.button.quiet { color: var(--ink); border-color: #b6c2b2; }
.button.quiet:hover { background: #e7eee0; border-color: #667c65; }
.hero-art { border: 1px solid #405647; background: #17251cb8; border-radius: 12px; overflow: hidden; position: relative; }
.hero-art svg { width: 100%; height: auto; }
.art-label, .art-note { position: absolute; color: #d5e7d2; left: 16px; right: 16px; font-size: 9px; }
.art-label { top: 14px; }
.art-note { bottom: 12px; display: flex; justify-content: space-between; gap: 8px; color: #b0c6af; }

.examples { padding-block: 68px 0; }
.featured { padding-top: 54px; }
.featured-panel { border-radius: 10px; margin-bottom: 0; }
.featured-panel h2 { margin-top: 8px; font-size: clamp(29px, 3.5vw, 47px); line-height: 1.02; letter-spacing: -.061em; }
.section-intro { display: grid; grid-template-columns: 1fr minmax(240px, 350px); gap: 32px; align-items: end; margin-bottom: 27px; }
.section-code { color: #527058; }
.section-intro h2, .hardware h2 { margin-top: 7px; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.05; letter-spacing: -.065em; }
.section-intro > p { color: var(--muted); line-height: 1.65; }
.demo-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.demo-tabs a {
  display: flex; align-items: center; min-height: 57px; gap: 12px; padding: 10px 15px;
  text-decoration: none; border-radius: 8px 8px 0 0; color: #35453a; background: #ecf0e6;
  border: 1px solid var(--line); font-size: 15px; font-weight: 650;
}
.demo-tabs small { color: #59735c; font-family: Consolas, monospace; font-size: 11px; }
.demo-tabs a:hover { border-color: #82977f; }
.demo-tabs a[aria-selected="true"] { color: #f5f7ec; border-color: #263b2d; background: #263b2d; }
.demo-tabs a[aria-selected="true"] small { color: var(--lime); }
.demo-panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch;
  min-height: 330px; overflow: hidden; border: 1px solid var(--line); border-radius: 0 0 10px 10px;
  background: #fcfdf8; margin-bottom: 14px;
}
.panel-copy { padding: clamp(23px, 4vw, 50px); align-self: center; }
.panel-copy h3 { margin-top: 8px; font-size: clamp(29px, 3.5vw, 47px); line-height: 1.02; letter-spacing: -.061em; }
.panel-copy p:not(.section-code) { color: var(--muted); line-height: 1.65; margin: 13px 0 23px; max-width: 400px; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-visual { position: relative; display: grid; place-items: center; min-height: 290px; overflow: hidden; padding: 26px; }
.public-visual { background: #e5ecd9; }
.editor-visual { background: #dde9dc; }
.projects-visual { background: #dfe8e9; }
.mock-browser { width: min(100%, 380px); overflow: hidden; border: 1px solid #a0b39f; background: #f9fbf6; border-radius: 9px; box-shadow: 0 11px 28px #27433128; }
.browser-bar { height: 33px; display: flex; align-items: center; gap: 5px; padding-inline: 11px; border-bottom: 1px solid #cedaca; background: #f9fbf6; }
.browser-bar i { width: 6px; height: 6px; border-radius: 100%; background: #78907e; }
.browser-bar span { margin-left: 5px; color: #526055; font-size: 10px; }
.mock-builder, .mock-editor, .mock-schedule { padding: 18px 21px; display: grid; gap: 7px; }
.mock-builder {
  min-height: 211px;
  color: white;
  background: linear-gradient(100deg, #152219ec 0%, #1c2c2399 49%, #111b1277 100%), url('/examples/builder/coastal-house.png') center / cover;
}
.mock-overline { font-size: 9px; }
.mock-builder strong { font-size: 36px; line-height: .97; letter-spacing: -.06em; }
.mock-projects { display: flex; gap: 6px; margin-top: 5px; }
.mock-projects span { width: 32px; height: 3px; background: var(--lime); opacity: .8; }
.mock-editor strong, .mock-schedule strong { margin-bottom: 3px; font-size: 25px; letter-spacing: -.035em; }
.mock-field { font-size: 11px; color: #57665b; border: 1px solid #c9d7c6; border-radius: 4px; padding: 8px; background: white; }
.mock-field.short { width: 75%; }
.mock-editor b { justify-self: start; font-size: 10px; color: white; background: #364f3c; border-radius: 3px; padding: 6px 9px; }
.mock-schedule > span:not(.mock-overline) { display: flex; align-items: center; gap: 8px; font-size: 12px; background: #ebf0ed; border-radius: 4px; padding: 8px; }
.mock-schedule i { width: 6px; height: 6px; border-radius: 100%; background: #678d53; }
.mock-schedule b { margin-left: auto; font-size: 10px; font-weight: 600; color: #3d5c47; }
.visual-index { position: absolute; right: 12px; bottom: 8px; color: #475c4c; font-size: 8px; }

.hardware { padding-block: 42px 65px; }
.hardware-panel { background: var(--dark); color: #f2f6e8; padding: clamp(24px, 4vw, 50px); border-radius: 12px; display: grid; grid-template-columns: 1fr minmax(160px, .45fr); align-items: center; gap: 25px; }
.hardware .section-code { color: #adc3ac; }
.hardware p:not(.section-code) { line-height: 1.6; max-width: 500px; margin: 12px 0 22px; color: #d6e2d1; }
.hardware svg { width: 100%; max-height: 180px; }
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { padding-block: 20px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .hero-grid { min-height: 380px; gap: 22px; }
  .hero h1 { font-size: clamp(45px, 7.6vw, 67px); }
  .art-label, .art-note { left: 9px; right: 9px; font-size: 7px; }
  .panel-visual { padding-inline: 18px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 35px; height: 35px; }
  .site-header nav { gap: 14px; font-size: 12px; }
  .site-header nav .nav-action { display: none; }
  .hero-grid, .section-intro, .demo-panel { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 43px 22px; gap: 29px; }
  .hero h1 { font-size: clamp(47px, 10.8vw, 65px); }
  .hero-text { margin-block: 17px 20px; }
  .hero-art { max-width: 420px; }
  .hero-art svg { max-height: 210px; }
  .examples { padding-top: 42px; }
  .featured { padding-top: 28px; }
  .section-intro { gap: 10px; margin-bottom: 18px; }
  .demo-tabs { gap: 4px; }
  .demo-tabs a { align-content: center; align-items: start; flex-direction: column; justify-content: center; gap: 4px; min-height: 76px; padding: 8px; font-size: 12px; }
  .panel-visual { min-height: 230px; padding: 19px; }
  .mock-builder { min-height: 162px; }
  .hardware { padding-block: 22px 43px; }
  .hardware-panel { grid-template-columns: 1fr; gap: 10px; }
  .hardware svg { max-height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
