/* =========================================================
   Biomes O Plenty Mod: site stylesheet
   Design seed: S03 Luminous Tech Light
   Palette: sampled from the Biomes O' Plenty globe icon: ocean blue, ice teal, leaf green.
   Leaf green is reserved for download CTAs, focus and "active" status.
   ========================================================= */

:root {
  /* Palette sampled from the Biomes O' Plenty globe icon */
  --ocean: #3C5478;        /* icon ocean blue: primary text accents, links */
  --ocean-deep: #2B3E5A;
  --teal: #7BB5B5;         /* icon ice-cap teal: glows, status dots */
  --teal-glow: rgba(123, 181, 181, .32);
  --teal-tint: #ECF6F6;    /* icon highlight #ECFFFF, softened */
  --leaf: #7AAE6D;         /* icon leaf green: download CTAs, active state */
  --leaf-deep: #46663E;
  --leaf-tint: #EEF5E9;
  --ice: #B1D3D3;
  --pearl: #F7F9FB;
  --mist: #EDF2F6;
  --white: #FFFFFF;
  --ink: #16222E;
  --muted: #4C5A68;
  --line: #D3DEE6;
  --line-strong: #B6C7D3;
  --alert: #A65A4B;        /* semantic only: "not supported" markers */

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --header-h: 66px;
  --lum: 0 0 0 1px rgba(123, 181, 181, .6), 0 0 0 5px rgba(123, 181, 181, .12), 0 10px 32px rgba(60, 84, 120, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--ink); background: var(--pearl); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(60, 84, 120, .4); }
a:hover { color: var(--ocean-deep); text-decoration-color: var(--teal); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .8rem; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
code {
  font-family: ui-monospace, Consolas, "Liberation Mono", monospace; font-size: .86em; color: var(--ocean-deep);
  background: var(--teal-tint); border: 1px solid rgba(123, 181, 181, .35); padding: .1em .45em; border-radius: 6px; word-break: break-word;
}
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; box-shadow: 0 0 0 6px var(--leaf-tint); border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--ink); padding: .6rem 1rem; border-radius: var(--r-sm); box-shadow: var(--lum); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container--wide { width: min(1300px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(68px, 9vw, 124px) 0; position: relative; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Status label: small dot + text (used instead of eyebrow labels) */
.status-label { display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 500; color: var(--ocean); margin-bottom: 1rem; }
.status-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-glow); }
.status-label--leaf::before { background: var(--leaf); box-shadow: 0 0 0 4px rgba(122, 174, 109, .22); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px;
  font: 600 .98rem/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: box-shadow .25s ease, transform .25s ease, background-color .25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--leaf { background: var(--leaf); color: var(--ink); box-shadow: 0 0 0 5px rgba(122, 174, 109, .14), 0 8px 22px rgba(122, 174, 109, .28); }
.btn--leaf:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 0 0 7px rgba(122, 174, 109, .18), 0 12px 28px rgba(122, 174, 109, .34); }
.btn--outline { background: var(--white); color: var(--ocean-deep); border-color: var(--line-strong); }
.btn--outline:hover { color: var(--ocean-deep); box-shadow: var(--lum); }
.btn--ocean { background: var(--ocean); color: #fff; }
.btn--ocean:hover { color: #fff; background: var(--ocean-deep); box-shadow: 0 0 0 5px var(--teal-glow); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* =========================================================
   HEADER: thin bordered, translucent, luminous details
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 251, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: min(420px, 60%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: .8; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .92); }
.nav { display: flex; align-items: center; gap: 1.2rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -.02em; font-size: 1.02rem; }
.brand img { width: 36px; height: 36px; image-rendering: pixelated; image-rendering: crisp-edges; }
.nav-links { display: flex; align-items: center; gap: .1rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { position: relative; display: block; padding: .45rem .75rem; font-size: .9rem; color: var(--muted); text-decoration: none; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--mist); }
.nav-links a.is-active, .nav-links a[aria-current="page"] { color: var(--ocean-deep); font-weight: 500; }
.nav-links a.is-active::after, .nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal);
}
.nav-cta { margin-left: .8rem; }
.nav-cta .btn { padding: .58rem 1.15rem; font-size: .9rem; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white); cursor: pointer; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; transition: transform .25s, background-color .2s; }
.menu-toggle span { top: 21px; }
.menu-toggle span::before { top: -6px; left: 0; right: 0; }
.menu-toggle span::after { top: 6px; left: 0; right: 0; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav-panel { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; background: var(--white); border-radius: var(--r-md); box-shadow: var(--lum); padding: .8rem; display: none; }
  .nav-panel.is-open { display: block; animation: fadeIn .22s ease; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-links a { padding: .75rem .9rem; font-size: 1rem; color: var(--ink); border-radius: 10px; }
  .nav-links a.is-active::after, .nav-links a[aria-current="page"]::after { left: auto; right: 14px; top: 50%; bottom: auto; margin-top: -2.5px; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .btn { width: 100%; padding: .85rem; }
}
@media (min-width: 1081px) { .nav-panel { display: flex !important; align-items: center; margin-left: auto; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   HERO: center-heavy, visual below the title, soft halo
   ========================================================= */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 70px); text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -220px; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(123, 181, 181, .20), rgba(123, 181, 181, 0)); pointer-events: none; }
.hero__inner { position: relative; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 58ch; margin: 0 auto 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__stage { position: relative; margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1180px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--lum); padding: clamp(10px, 2vw, 22px); }
.hero__stage img { width: 100%; border-radius: calc(var(--r-lg) - 8px); background: var(--pearl); }
.hero__specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 4px; padding: 0; list-style: none; }
.hero__specs li { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; padding: .4rem .9rem; border-radius: 999px; background: var(--pearl); border: 1px solid var(--line); color: var(--muted); }
.hero__specs li b { color: var(--ink); font-weight: 600; }
.hero__specs li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px var(--teal); }
.hero__note { margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }

/* =========================================================
   ABOUT: asymmetric panel, visual overlaps framed content
   ========================================================= */
.about__wrap { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; }
.about__panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4.5vw, 60px); padding-right: 36%; position: relative; grid-area: 1 / 1 / 2 / 3; }
.about__panel::before { content: ""; position: absolute; left: 32px; top: -1px; width: 120px; height: 2px; background: linear-gradient(90deg, var(--teal), transparent); }
.about__visual { grid-area: 1 / 2 / 2 / 3; justify-self: end; width: min(100%, 460px); margin-right: clamp(-60px, -3vw, -10px); position: relative; z-index: 1; }
.about__visual img { width: 100%; filter: drop-shadow(0 18px 30px rgba(60, 84, 120, .12)); }
.spec-lines { margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.spec-lines div { display: flex; justify-content: space-between; gap: 12px; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-lines dt { color: var(--muted); }
.spec-lines dd { margin: 0; font-weight: 600; text-align: right; }

/* =========================================================
   FEATURES: outlined modules, variable widths, luminous edges
   ========================================================= */
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; margin-bottom: clamp(32px, 5vw, 52px); }
.head-split .lead { margin: 0; }
.modules { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.module { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 26px 24px; transition: box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.module::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: .55; transition: opacity .3s; }
.module:hover { border-color: rgba(123, 181, 181, .6); box-shadow: var(--lum); }
.module:hover::before { opacity: 1; }
.module h3 { margin-top: .9rem; }
.module p { color: var(--muted); margin: 0; font-size: .96rem; }
.module__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ocean); background: var(--teal-tint); border: 1px solid rgba(123, 181, 181, .45); }
.module__icon svg { width: 22px; height: 22px; }
.m-8 { grid-column: span 8; } .m-4 { grid-column: span 4; } .m-5 { grid-column: span 5; } .m-7 { grid-column: span 7; } .m-12 { grid-column: span 12; }
.module--lead { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--white) 55%, var(--teal-tint)); }
.module--lead h3 { font-size: 1.5rem; }
.biome-names { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.biome-names li { font-size: .84rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.module--strip { display: flex; align-items: center; gap: 24px; }
.module--strip h3 { margin: 0 0 .3rem; }
.module--strip .module__icon { flex: none; }

/* =========================================================
   HOW IT WORKS: technical node pathway
   ========================================================= */
.how { background: var(--white); border-block: 1px solid var(--line); }
.pathway { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.pathway::before { content: ""; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--ocean), var(--teal)); box-shadow: 0 0 10px var(--teal-glow); }
.pathway li { position: relative; text-align: center; padding: 0 8px; }
.pathway__node { position: relative; width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--white); border: 2px solid var(--ocean); display: grid; place-items: center; font-weight: 700; color: var(--ocean); box-shadow: 0 0 0 7px var(--teal-tint), 0 0 22px var(--teal-glow); }
.pathway li:last-child .pathway__node { border-color: var(--leaf); color: var(--leaf-deep); box-shadow: 0 0 0 7px var(--leaf-tint), 0 0 22px rgba(122, 174, 109, .3); }
.pathway h3 { font-size: 1.05rem; }
.pathway p { font-size: .93rem; color: var(--muted); margin: 0 auto; max-width: 28ch; }
.pathway small { display: block; font-size: .78rem; color: var(--ocean); font-weight: 500; margin-bottom: .3rem; }

/* =========================================================
   USE CASES: typographic structured list (no cards)
   ========================================================= */
.uses { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.uses__head { position: sticky; top: calc(var(--header-h) + 30px); }
.use-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.use-list li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.use-list h3 { font-size: 1.1rem; margin: 0; display: flex; gap: .6rem; align-items: baseline; }
.use-list h3::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); transform: translateY(-2px); }
.use-list p { margin: 0; color: var(--muted); }

/* =========================================================
   COMPATIBILITY: technical reference matrix
   ========================================================= */
.compat { background: linear-gradient(180deg, var(--pearl), var(--teal-tint) 140%); }
.ref-panel { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--lum); overflow: hidden; }
.ref-panel__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--pearl); }
.ref-panel__bar h3 { margin: 0; font-size: 1rem; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.platforms li { font-size: .82rem; padding: .3rem .75rem; border-radius: 999px; background: var(--teal-tint); color: var(--ocean-deep); font-weight: 500; }
.platforms li.off { background: #F6E9E6; color: var(--alert); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.matrix { min-width: 700px; }
th, td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--white); }
tbody th { font-weight: 600; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--pearl); }
.dot { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--on::before { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.dot--warn::before { background: #639393; box-shadow: 0 0 0 3px rgba(99, 147, 147, .22); }
.dot--off::before { background: var(--alert); box-shadow: 0 0 0 3px rgba(166, 90, 75, .18); }
.ref-panel__foot { padding: 14px 24px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--pearl); }

/* =========================================================
   PROS & CONS: balanced comparison with center rule
   ========================================================= */
.balance { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 2.5rem; }
.balance__rule { background: linear-gradient(180deg, transparent, var(--teal), transparent); }
.balance h3 { font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; }
.balance ul { margin: 0; padding: 0; list-style: none; }
.balance li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: .8rem 0; }
.balance li svg { width: 22px; height: 22px; margin-top: 2px; }
.balance__pro svg { color: var(--ocean); }
.balance__con svg { color: var(--muted); }
.balance li strong { display: block; font-weight: 600; }
.balance li span { color: var(--muted); font-size: .94rem; }

/* =========================================================
   RELEASE INFORMATION: version panel
   ========================================================= */
.version-panel { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.version-panel__id { padding: clamp(26px, 4vw, 48px); background: radial-gradient(circle at 20% 20%, var(--teal-tint), var(--white) 70%); border-right: 1px solid var(--line); }
.version-panel__id .big { font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--ocean); margin: .4rem 0 1rem; }
.version-panel__id p { color: var(--muted); font-size: .95rem; }
.version-panel dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.version-panel dl div { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.version-panel dl div:nth-child(2n) { border-right: 0; }
.version-panel dt { font-size: .8rem; color: var(--muted); }
.version-panel dd { margin: .2rem 0 0; font-weight: 600; font-size: .96rem; }

/* =========================================================
   INSTALLATION: glowing vertical timeline + OS path strip
   ========================================================= */
.install { background: var(--white); border-block: 1px solid var(--line); }
.install__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 80px); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--teal), var(--ocean)); box-shadow: 0 0 10px var(--teal-glow); }
.timeline li { position: relative; padding-bottom: 1.7rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--ocean); box-shadow: 0 0 0 5px var(--teal-tint); }
.timeline h3 { font-size: 1.06rem; margin-bottom: .3rem; }
.timeline p { color: var(--muted); margin: 0; }
.os-strip { margin-top: 2.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--pearl); overflow: hidden; }
.os-strip div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.os-strip div:last-child { border-bottom: 0; }
.os-strip strong { font-size: .88rem; }
.os-strip code { font-size: .78rem; }

/* =========================================================
   DOWNLOAD: wide luminous composition
   ========================================================= */
.download { padding: clamp(68px, 9vw, 124px) 0; position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 70% 50%, rgba(123, 181, 181, .18), transparent 70%); pointer-events: none; }
.download__frame { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; background: rgba(255, 255, 255, .85); border-radius: var(--r-lg); box-shadow: var(--lum); padding: clamp(26px, 5vw, 60px); }
.download__frame img { width: 100%; max-width: 420px; margin-inline: auto; }
.dl-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 1.4rem 0 1.8rem; border-top: 1px solid var(--line); }
.dl-meta div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.dl-meta dt { font-size: .78rem; color: var(--muted); }
.dl-meta dd { margin: 0; font-weight: 600; font-size: .94rem; overflow-wrap: anywhere; }
.dl-note { display: flex; gap: 12px; margin-top: 1.6rem; padding: 14px 16px; border-radius: var(--r-sm); background: var(--leaf-tint); font-size: .88rem; color: var(--ink); }
.dl-note svg { width: 20px; height: 20px; flex: none; color: var(--leaf-deep); margin-top: 2px; }
.dl-note p { margin: 0; }

/* =========================================================
   GUIDES PREVIEW: framed featured card + typographic rows
   ========================================================= */
.guides-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.frame-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .3s, border-color .3s; }
.frame-card:hover { color: var(--ink); border-color: rgba(123, 181, 181, .6); box-shadow: var(--lum); }
.frame-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pearl); border-bottom: 1px solid var(--line); }
.frame-card__body { padding: 22px 26px 26px; }
.frame-card h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.frame-card p { color: var(--muted); margin: 0; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 500; color: var(--ocean); margin-bottom: .5rem; }
.guide-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.guide-rows a { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: 10px; transition: background-color .2s; }
.guide-rows a:hover { background: var(--white); color: var(--ink); }
.guide-rows img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.guide-rows strong { display: block; font-weight: 600; line-height: 1.35; }
.guide-rows span { font-size: .82rem; color: var(--ocean); }
.guides-more { margin-top: 1.4rem; }

/* =========================================================
   SAFETY NOTICE: framed statement with status icon
   ========================================================= */
.safety { padding: 0 0 clamp(60px, 8vw, 100px); }
.safety__frame { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 32px); align-items: start; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); border: 1px solid rgba(123, 181, 181, .5); background: linear-gradient(120deg, var(--white), var(--teal-tint)); }
.safety__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ocean); box-shadow: 0 0 0 8px rgba(123, 181, 181, .14), 0 0 24px var(--teal-glow); }
.safety__icon svg { width: 30px; height: 30px; }
.safety__frame h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.safety__frame p { max-width: 70ch; color: var(--muted); }
.safety__frame p:last-child { margin: 0; }

/* =========================================================
   TROUBLESHOOTING: issue cards, two columns
   ========================================================= */
.issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.issue { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; border-left: 3px solid var(--ocean); }
.issue:nth-child(3n+2) { border-left-color: #639393; }
.issue:nth-child(3n) { border-left-color: var(--teal); }
.issue h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.issue p { margin: 0; color: var(--muted); font-size: .94rem; }
.issue--wide { grid-column: 1 / -1; }

/* =========================================================
   FAQ: light framed accordion, status icons, luminous active edge
   ========================================================= */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq__frame { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--pearl); }
.faq-cat { display: flex; align-items: center; gap: .8rem; padding: 18px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.faq-cat + .faq-list { border-bottom: 1px solid var(--line); }
.faq-cat h3 { margin: 0; font-size: 1.05rem; }
.faq-cat span { margin-left: auto; font-size: .8rem; color: var(--muted); }
.faq-cat svg { width: 22px; height: 22px; color: var(--ocean); }
.faq-list { padding: 10px; display: grid; gap: 6px; }
.faq-item { background: var(--white); border: 1px solid transparent; border-radius: 12px; transition: border-color .25s, box-shadow .25s; }
.faq-item:hover { border-color: var(--line); }
.faq-item.is-open { border-color: rgba(123, 181, 181, .65); box-shadow: 0 0 0 4px rgba(123, 181, 181, .10), 0 6px 20px rgba(60, 84, 120, .08); }
.faq-item h4 { margin: 0; font-size: 1rem; font-weight: 500; }
.faq-q { width: 100%; display: grid; grid-template-columns: 12px 1fr 24px; gap: 14px; align-items: center; padding: 14px 16px; text-align: left; background: none; border: 0; font: 500 .98rem/1.45 var(--font); color: var(--ink); cursor: pointer; border-radius: 12px; }
.faq-q::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background-color .25s, box-shadow .25s; }
.faq-q[aria-expanded="true"]::before { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-glow); }
.faq-icon { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.8px; background: var(--ocean); translate: -50% -50%; transition: rotate .25s ease; }
.faq-icon::after { rotate: 90deg; }
.faq-q[aria-expanded="true"] .faq-icon { border-color: var(--teal); }
.faq-q[aria-expanded="true"] .faq-icon::after { rotate: 0deg; }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility .3s; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 18px 16px 42px; color: var(--muted); font-size: .95rem; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; }
.no-js .faq-a { grid-template-rows: 1fr; visibility: visible; }

/* =========================================================
   FOOTER: bright structured, light gradient edge only
   ========================================================= */
.site-footer { position: relative; background: var(--white); padding: 60px 0 26px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--teal-tint), var(--teal), var(--ocean), var(--teal), var(--leaf-tint)); opacity: .75; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: .9rem; font-weight: 600; margin-bottom: .9rem; color: var(--ink); }
.footer-grid p { font-size: .9rem; color: var(--muted); max-width: 38ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links a, .footer-bottom a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--ocean); text-decoration: underline; }
.footer-email { font-weight: 600; color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .84rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); color: var(--ocean); cursor: pointer; display: grid; place-items: center; box-shadow: var(--lum); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* =========================================================
   INNER PAGE HERO (blog, supporting pages)
   ========================================================= */
.page-hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(28px, 4vw, 48px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -200px; top: -260px; width: 700px; height: 600px; background: radial-gradient(closest-side, rgba(123, 181, 181, .18), transparent); pointer-events: none; }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 20ch; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero--center .crumbs ol { justify-content: center; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* =========================================================
   BLOG LISTING: framed article cards, strong type hierarchy
   ========================================================= */
.blog-lead { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--lum); overflow: hidden; text-decoration: none; color: var(--ink); margin-bottom: 28px; }
.blog-lead:hover { color: var(--ink); }
.blog-lead img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; background: var(--pearl); }
.blog-lead__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.blog-lead h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.blog-lead p { color: var(--muted); }
.post-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: clamp(70px, 9vw, 120px); }
.post-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .3s, border-color .3s; }
.post-card:hover { color: var(--ink); border-color: rgba(123, 181, 181, .6); box-shadow: var(--lum); }
.post-card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--pearl); }
.post-card__body { padding: 22px 26px 26px; display: flex; flex-direction: column; }
.post-card__num { font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--teal-tint); -webkit-text-stroke: 1px var(--teal); margin-bottom: .5rem; }
.post-card h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.post-card p { color: var(--muted); font-size: .94rem; margin-bottom: 1rem; }
.post-card__go { margin-top: auto; font-weight: 500; font-size: .9rem; color: var(--ocean); }

/* =========================================================
   BLOG POST: sidebar on the LEFT, framed feature image
   ========================================================= */
.post-hero { padding: clamp(44px, 6vw, 80px) 0 10px; position: relative; overflow: hidden; }
.post-hero::before { content: ""; position: absolute; left: 50%; top: -300px; width: 1000px; height: 650px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(123, 181, 181, .18), transparent); pointer-events: none; }
.post-hero > .container { position: relative; }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .88rem; color: var(--muted); }
.post-figure { margin: 34px 0 0; padding: 12px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--lum); }
.post-figure img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: 48px 0 90px; align-items: start; }
.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 18px 14px; }
.side-box h2 { font-size: .92rem; font-weight: 600; margin-bottom: .6rem; }
.side-box ol, .side-box ul { list-style: none; margin: 0; padding: 0; }
.side-toc li a { display: block; padding: .4rem 0 .4rem 14px; font-size: .88rem; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
.side-toc li a:hover { color: var(--ocean); border-left-color: var(--teal); }
.side-facts div { display: flex; justify-content: space-between; gap: 10px; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.side-facts div:last-child { border-bottom: 0; }
.side-facts dt { color: var(--muted); }
.side-facts dd { margin: 0; font-weight: 600; text-align: right; }
.side-box--dl { border-color: rgba(122, 174, 109, .45); background: linear-gradient(160deg, var(--white), var(--leaf-tint)); }
.side-box--dl p { font-size: .86rem; color: var(--muted); }
.side-box--dl .btn { width: 100%; }
.side-rel a { display: block; font-size: .86rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); text-decoration: none; }
.side-rel li:last-child a { border-bottom: 0; }
.prose { font-size: 1.04rem; max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--ocean); }
.prose .callout { margin: 1.6rem 0; padding: 16px 20px; border-radius: var(--r-md); border: 1px solid rgba(123, 181, 181, .5); background: var(--teal-tint); box-shadow: 0 0 0 4px rgba(123, 181, 181, .08); }
.prose .callout p:last-child { margin: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.3rem 0 1.7rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.prose table th, .prose table td { padding: .8rem 1rem; }
.related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.related__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 10px; }
.related__list a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; }
.related__list a:hover { box-shadow: var(--lum); color: var(--ink); }
.related__list small { color: var(--ocean); font-size: .8rem; white-space: nowrap; }

/* =========================================================
   SUPPORTING PAGES
   ========================================================= */
.about-page { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-bottom: clamp(50px, 7vw, 90px); }
.about-page img { width: 100%; max-width: 460px; margin-inline: auto; }
.principles { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.principles div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.principles div:first-child { background: linear-gradient(135deg, var(--white), var(--teal-tint)); border-color: rgba(123, 181, 181, .5); }
.principles h3 { font-size: 1.05rem; }
.principles p { color: var(--muted); font-size: .94rem; margin: 0; }
.band { background: var(--white); border-block: 1px solid var(--line); }

.console { max-width: 720px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--lum); overflow: hidden; }
.console__bar { display: flex; align-items: center; gap: .6rem; padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--pearl); font-size: .88rem; color: var(--muted); }
.console__bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-glow); }
.console__body { padding: clamp(24px, 4vw, 40px); text-align: center; }
.email-plain { font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 600; color: var(--ocean-deep); letter-spacing: -.02em; overflow-wrap: anywhere; margin: .3rem 0 .8rem; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.reasons li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.reasons strong { display: block; }
.reasons span { color: var(--muted); font-size: .93rem; }

.chip-toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.chip-toc a { display: inline-block; padding: .4rem .9rem; font-size: .85rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.chip-toc a:hover { box-shadow: var(--lum); }
.legal-body { max-width: 74ch; padding-bottom: 90px; }
.legal-body section { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: 1.3rem; }
.legal-body p:last-child { margin-bottom: 0; }

.disc-list { list-style: none; margin: 0; padding: 0 0 90px; display: grid; gap: 14px; max-width: 900px; }
.disc-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.disc-list li:first-child { border-color: rgba(122, 174, 109, .5); background: linear-gradient(120deg, var(--white), var(--leaf-tint)); }
.disc-list i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-tint); color: var(--ocean); }
.disc-list i svg { width: 22px; height: 22px; }
.disc-list h2 { font-size: 1.12rem; margin-bottom: .4rem; }
.disc-list p { margin: 0; color: var(--muted); }

.clauses { list-style: none; margin: 0; padding: 0 0 0 40px; position: relative; max-width: 820px; counter-reset: c; }
.clauses::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--teal), var(--line)); }
.clauses li { position: relative; padding: 0 0 1.8rem; counter-increment: c; }
.clauses li::before { content: counter(c); position: absolute; left: -40px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 2px solid var(--ocean); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--ocean); box-shadow: 0 0 0 4px var(--teal-tint); }
.clauses h2 { font-size: 1.12rem; margin-bottom: .35rem; padding-top: .1rem; }
.clauses p { margin: 0; color: var(--muted); }

/* Grid children may shrink so wide tables scroll inside their wrapper */
.post-layout > *, .install__grid > *, .uses > *, .about__wrap > *, .guides-grid > *, .download__frame > * { min-width: 0; }

/* =========================================================
   Scroll reveal: one gentle fade
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .about__wrap { grid-template-columns: 1fr; }
  .about__panel { padding-right: clamp(28px, 4.5vw, 60px); grid-area: auto; }
  .about__visual { grid-area: auto; justify-self: center; margin: -40px auto 0; max-width: 420px; }
  .install__grid, .uses, .guides-grid, .download__frame, .version-panel, .about-page { grid-template-columns: 1fr; }
  .uses__head { position: static; }
  .version-panel__id { border-right: 0; border-bottom: 1px solid var(--line); }
  .post-layout { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .m-8, .m-4, .m-5, .m-7 { grid-column: span 6; }
  .module--lead { grid-template-columns: 1fr; grid-column: span 12; }
}
@media (max-width: 860px) {
  .head-split { grid-template-columns: 1fr; }
  .pathway { grid-template-columns: 1fr; gap: 0; }
  .pathway::before { left: 27px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal), var(--ocean)); }
  .pathway li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; text-align: left; padding: 0 0 1.6rem; }
  .pathway__node { margin: 0; }
  .pathway p { margin: 0; max-width: none; }
  .use-list li { grid-template-columns: 1fr; gap: 6px; }
  .balance { grid-template-columns: 1fr; }
  .balance__rule { height: 1px; background: linear-gradient(90deg, transparent, var(--teal), transparent); }
  .issues { grid-template-columns: 1fr; }
  .blog-lead { grid-template-columns: 1fr; }
  .post-cards { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .m-8, .m-4, .m-5, .m-7, .m-12 { grid-column: span 12; }
  .module--strip { flex-direction: column; align-items: flex-start; }
  .spec-lines, .dl-meta, .version-panel dl { grid-template-columns: 1fr; }
  .version-panel dl div { border-right: 0; }
  .hero__actions .btn { width: 100%; }
  .side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .safety__frame { grid-template-columns: 1fr; }
  .guide-rows a { grid-template-columns: 72px 1fr; }
  .guide-rows img { width: 72px; }
  .faq-cat span { display: none; }
  .faq-a p { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
