:root {
  --bg: #09100c;
  --surface: #111914;
  --surface-soft: #17221b;
  --text: #f3f7f0;
  --muted: #96a49b;
  --accent: #a8ed68;
  --line: rgba(209, 232, 215, 0.1);
  color-scheme: dark;
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% -10%, rgba(110, 207, 125, 0.1), transparent 35%),
    radial-gradient(circle at 8% 85%, rgba(60, 137, 93, 0.08), transparent 28%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.65; }

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 252px 1fr auto;
  align-items: center;
  gap: 28px;
  height: 78px;
  padding-right: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 16, 12, 0.84);
  backdrop-filter: blur(24px);
}

.brand { display: flex; align-items: center; gap: 13px; height: 100%; padding: 0 22px; border-right: 1px solid var(--line); }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, #baf27d, #5aaa5f); box-shadow: 0 10px 25px rgba(94, 184, 102, 0.2), inset 0 1px rgba(255,255,255,.38); }
.brand-mark::after { position: absolute; inset: 10px; border-radius: 3px; background: rgba(17,49,22,.5); content: ""; transform: rotate(45deg); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 16px; letter-spacing: -.02em; }
.brand-copy small { color: #718077; font-size: 9px; }

.topbar-note { color: #748278; font-size: 12px; }
.play-link { padding: 11px 16px; border: 1px solid rgba(168,237,104,.18); border-radius: 12px; color: #d9f6c4; background: rgba(168,237,104,.06); font-size: 11px; font-weight: 650; }
.play-link:hover { border-color: rgba(168,237,104,.4); background: rgba(168,237,104,.11); }

.sidebar {
  position: fixed;
  z-index: 10;
  inset: 78px auto 0 0;
  width: 252px;
  padding: 28px 12px 20px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: rgba(11,18,14,.72);
}

.sidebar-label { margin: 0 10px 12px; color: #7c8b82; font-size: 11px; font-weight: 650; }
.nav { display: grid; gap: 4px; }
.nav a { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; min-height: 48px; padding: 7px 10px; border-radius: 12px; color: #aab6ae; }
.nav a:hover, .nav a[aria-current="page"] { color: #f4f8f1; background: rgba(255,255,255,.055); }
.nav-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #aeea79; background: rgba(168,237,104,.08); font-size: 11px; font-weight: 700; }
.nav strong { display: block; font-size: 12px; font-weight: 600; }
.nav small { display: block; margin-top: 2px; color: #637168; font-size: 8px; }

.page { width: min(1550px, calc(100% - 316px)); margin: 0 32px 0 auto; padding: 126px 0 100px; }
.hero { position: relative; display: grid; align-content: end; min-height: 360px; padding: 56px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(90deg, rgba(9,16,12,.97), rgba(9,16,12,.75) 58%, rgba(9,16,12,.2)), url('./assets/hero.png') 68% center / cover; box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.hero::after { position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(168,237,104,.6), transparent); content: ""; }
.kicker { width: fit-content; margin-bottom: 18px; padding: 7px 11px; border: 1px solid rgba(168,237,104,.18); border-radius: 999px; color: #bdec91; background: rgba(168,237,104,.07); font-size: 9px; font-weight: 650; letter-spacing: .05em; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(44px, 5.4vw, 68px); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 680px; margin: 22px 0 0; color: #b6c3bb; font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.stat { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.stat strong { display: block; color: #c2f391; font-size: 29px; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 5px; color: #7f8d84; font-size: 10px; }

.section-heading { display: grid; grid-template-columns: 38px 1fr; gap: 15px; margin: 62px 0 22px; }
.section-heading > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #bbef8d; background: rgba(168,237,104,.08); font-size: 10px; font-weight: 700; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading p { margin: 7px 0 0; font-size: 12px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.018)); }
a.card { transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: rgba(168,237,104,.28); transform: translateY(-3px); }
.card small { color: #748179; font-size: 9px; }
.card h2, .card h3 { margin: 10px 0 0; letter-spacing: -.025em; }
.card p { margin-bottom: 0; font-size: 11px; }
.card-link { display: inline-block; margin-top: 16px; color: #a9df78; font-size: 9px; font-weight: 700; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.024); }
.feature strong { color: #b9ec8c; font-size: 10px; }
.feature h3 { margin: 20px 0 0; }
.feature p { margin-bottom: 0; font-size: 10px; }

.note { margin: 26px 0; padding: 18px 20px; border: 1px solid rgba(168,237,104,.1); border-left: 3px solid #9de262; border-radius: 14px; background: rgba(168,237,104,.035); }
.note strong { display: block; font-size: 11px; }
.note p { margin: 5px 0 0; font-size: 11px; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 13px 16px; color: #819087; background: rgba(255,255,255,.024); font-size: 9px; text-align: left; }
td { padding: 14px 16px; border-top: 1px solid var(--line); color: #dfe5d8; line-height: 1.45; }

.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 17px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.024); }
.steps li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #173015; background: linear-gradient(145deg, #b9f17c, #78c970); font-weight: 750; }
.steps h3 { margin: 0; }
.steps p { margin: 6px 0 0; font-size: 11px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #b3bfae; background: rgba(255,255,255,.025); font-size: 10px; }

.materials { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.material { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.023); font-size: 10px; }
.material i { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: #eaf7dd; background: linear-gradient(145deg, #7ba459, #315b34); font-style: normal; font-size: 8px; font-weight: 750; }
.material.stone i { background: linear-gradient(145deg, #858d84, #3c443d); }
.material.wood i { background: linear-gradient(145deg, #a47747, #50361f); }
.material.signal i { background: linear-gradient(145deg, #d45b4c, #6f2520); }
.material.hvac i { background: linear-gradient(145deg, #67b6bc, #2d555d); }

details { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.022); }
summary { padding: 17px 20px; cursor: pointer; font-weight: 650; }
details > div { padding: 0 20px 18px; }
details p { margin: 0; font-size: 11px; }

.footer { margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--line); color: #68766d; font-size: 9px; }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 220px 1fr auto; }
  .sidebar { width: 220px; }
  .page { width: min(100% - 260px, 920px); margin-right: 20px; }
  .materials { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; height: 66px; padding: 0 12px; }
  .brand { padding: 0; border: 0; }
  .topbar-note { display: none; }
  .sidebar { position: fixed; z-index: 19; inset: 66px 0 auto; width: auto; height: 58px; padding: 7px 10px; overflow: auto hidden; border: 0; border-bottom: 1px solid var(--line); background: rgba(9,16,12,.94); }
  .sidebar-label, .nav small { display: none; }
  .nav { display: flex; width: max-content; }
  .nav a { grid-template-columns: 30px auto; min-height: 42px; padding: 4px 9px; }
  .nav-icon { width: 30px; height: 30px; }
  .page { width: calc(100% - 28px); margin: 0 auto; padding-top: 146px; }
  .hero { min-height: 410px; padding: 28px; border-radius: 22px; background: linear-gradient(0deg, rgba(9,16,12,.97), rgba(9,16,12,.62) 75%, rgba(9,16,12,.12)), url('./assets/hero.png') 67% center / cover; }
  .hero h1 { font-size: clamp(38px, 12vw, 55px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards, .feature-grid { grid-template-columns: 1fr; }
  .materials { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .brand-copy small { display: none; }
  .play-link { padding: 10px 12px; }
  .hero { padding: 24px; }
  .materials { grid-template-columns: 1fr; }
  .stats { gap: 7px; }
  .stat { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
