/* =========================================================
   dnSpy guide — stylesheet
   Palette: #6ECC99 (mint) · #E8E8E8 (grey) · #FFFFFF (white)
   ========================================================= */
:root {
  --mint: #6ECC99;
  --mint-deep: #2E8B5A;
  --mint-ink: #1F6B44;
  --mint-soft: #E2F5EA;
  --grey: #E8E8E8;
  --grey-2: #F4F4F4;
  --white: #FFFFFF;
  --ink: #15241C;
  --text: #2B3A32;
  --muted: #5B6B63;
  --line: #D9DEDB;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(21, 36, 28, .06), 0 8px 24px rgba(21, 36, 28, .06);
  --shadow-2: 0 2px 4px rgba(21, 36, 28, .06), 0 22px 48px rgba(21, 36, 28, .12);
  --shadow-3d: 0 30px 60px -20px rgba(31, 107, 68, .35), 0 12px 24px -12px rgba(21, 36, 28, .2);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mint-deep); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
code, kbd { font-family: var(--f-mono); font-size: .88em; background: var(--grey-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; color: var(--ink); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--grey-2), var(--white)); }
.section--grey { background: var(--grey); }
.mark { background: linear-gradient(transparent 62%, rgba(110, 204, 153, .55) 62%); padding: 0 .1em; }

/* ---------- section heading ---------- */
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; color: var(--mint-ink);
  background: var(--mint-soft); border: 1px solid rgba(46, 139, 90, .2);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.sec-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--mint); box-shadow: 10px 0 0 rgba(110, 204, 153, .45); margin-right: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  padding: 14px 24px; border-radius: 14px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  transform: translateY(var(--lift));
}
.btn img { width: 22px; height: 22px; border-radius: 6px; }
.btn--primary { background: var(--mint-deep); color: #fff; box-shadow: 0 6px 0 var(--mint-ink), 0 14px 30px -10px rgba(31, 107, 68, .6); }
.btn--primary:hover { color: #fff; --lift: -3px; box-shadow: 0 9px 0 var(--mint-ink), 0 20px 34px -12px rgba(31, 107, 68, .6); }
.btn--primary:active { --lift: 4px; box-shadow: 0 2px 0 var(--mint-ink), 0 8px 18px -10px rgba(31, 107, 68, .6); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: 0 6px 0 var(--grey); }
.btn--ghost:hover { color: var(--ink); --lift: -3px; border-color: var(--mint); box-shadow: 0 9px 0 var(--grey); }

/* ---------- header (static, not sticky) ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; transition: transform .4s ease; }
.brand:hover img { transform: rotateY(180deg); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1; }
.brand-name small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .66rem; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: 9px 13px; border-radius: 10px; font-weight: 500; font-size: .95rem;
  color: var(--text); text-decoration: none; transition: background .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--mint-soft); color: var(--mint-ink); }
.nav .nav-guide { background: var(--ink); color: #fff; margin-left: 8px; }
.nav .nav-guide:hover, .nav .nav-guide[aria-current="page"] { background: var(--mint-deep); color: #fff; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .25s, opacity .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 104px;
  background:
    linear-gradient(rgba(46, 139, 90, .06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(46, 139, 90, .06) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(900px 500px at 85% 20%, rgba(110, 204, 153, .35), transparent 60%),
    linear-gradient(180deg, var(--white), var(--grey-2));
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-copy { container-type: inline-size; }
.hero-title-line { display: block; }
@media (max-width: 767px) {
  .hero-title-line { display: inline; }
}
.hero-kicker { font-family: var(--f-mono); font-size: .85rem; color: var(--mint-ink); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-kicker span { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.hero h1 { margin-bottom: 22px; font-size: clamp(2rem, 3.7vw, 2.85rem); font-size: clamp(2rem, 8.3cqi, 2.85rem); }
.hero h1 .word-3d {
  display: inline-block; color: var(--mint-deep);
  text-shadow: 1px 1px 0 #BFE8D1, 2px 2px 0 #A9DFC1, 3px 3px 0 #93D6B1, 4px 4px 0 #7DCDA1, 6px 8px 14px rgba(31, 107, 68, .25);
}
.hero p.lead { max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 0; justify-content: start; border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; width: max-content; max-width: 100%; }
.hero-facts div { padding: 12px 20px; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 0; }
.hero-facts strong { display: block; font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }
.hero-facts span { font-size: .8rem; color: var(--muted); }
.hero-stage { perspective: 1600px; position: relative; }
.hero-screen {
  border-radius: 16px; transform: rotateY(-16deg) rotateX(7deg) rotateZ(1deg); transform-style: preserve-3d;
  box-shadow: -30px 40px 70px -20px rgba(31, 107, 68, .38), 0 0 0 1px rgba(21, 36, 28, .08);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; background: #fff;
}
.hero-screen img { border-radius: 16px; }
.hero-chip {
  position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-2); font-size: .82rem; display: flex; align-items: center; gap: 12px; transform: translateZ(60px);
}
.hero-chip img { width: 36px; height: 36px; border-radius: 10px; }
.hero-chip b { display: block; font-family: var(--f-display); color: var(--ink); font-size: .95rem; }
.hero-chip--a { left: -28px; bottom: 34px; }
.hero-chip--b { right: -6px; top: -22px; }

/* ---------- generic split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--rev .split-media { order: 2; }
.frame3d { perspective: 1400px; }
.frame3d > img, .frame3d > picture img {
  border-radius: var(--radius); box-shadow: var(--shadow-3d); border: 1px solid var(--line);
  transform: rotateY(var(--ry, 8deg)) rotateX(var(--rx, 3deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.frame3d:hover > img { transform: rotateY(0) rotateX(0) translateY(-4px); }
.frame3d--left > img { --ry: -8deg; }

.spec-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.spec-strip div { background: var(--grey-2); border-left: 4px solid var(--mint); border-radius: 10px; padding: 14px 16px; }
.spec-strip dt { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.spec-strip dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }

/* ---------- features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; perspective: 1400px; }
.tile {
  grid-column: span 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s; transform-style: preserve-3d;
}
.tile:hover { transform: translateY(-8px) rotateX(5deg); box-shadow: var(--shadow-3d); border-color: var(--mint); }
.tile--wide { grid-column: span 3; }
.tile--feature { grid-column: span 4; background: linear-gradient(135deg, var(--mint-soft), var(--white) 70%); }
.tile img.ico { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 10px 18px -8px rgba(31, 107, 68, .55); transition: transform .35s; }
.tile:hover img.ico { transform: translateZ(30px) rotate(-6deg); }
.tile p { color: var(--muted); margin: 0; font-size: .97rem; }
.tile ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }

/* ---------- why choose (ledger rows) ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background .3s, padding .3s; border-radius: 12px; }
.ledger-row:hover { background: var(--grey-2); padding-left: 18px; padding-right: 18px; }
.ledger-num { font-family: var(--f-display); font-weight: 800; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--mint-deep); }
.ledger-row h3 { margin: 6px 0 0; }
.ledger-row p { margin: 0; color: var(--muted); }

/* ---------- pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; margin-bottom: 56px; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--mint) 0 10px, transparent 10px 18px); }
.pipe-step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 70px 22px 24px; transition: transform .3s, box-shadow .3s; }
.pipe-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.pipe-step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 14px; left: 22px;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 700; color: #fff; background: var(--mint-deep); box-shadow: 0 5px 0 var(--mint-ink);
}
.pipe-step h3 { font-size: 1.08rem; }
.pipe-step p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- install timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 30px 70px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--mint); color: var(--mint-ink); font-family: var(--f-display); font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(31, 107, 68, .5);
}
.steps li::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: 4px; width: 2px; background: var(--grey); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.1rem; margin: 8px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- requirements ---------- */
.req-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--grey); font-family: var(--f-display); color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FAFCFB; }
td.yes { color: var(--mint-ink); font-weight: 600; }
td.no { color: #9A4B3E; }
.pkg { display: grid; gap: 16px; }
.pkg-card { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.pkg-card:hover { transform: translateX(6px); box-shadow: var(--shadow-1); }
.pkg-card img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.pkg-card h3 { font-size: 1rem; margin: 0 0 4px; font-family: var(--f-mono); }
.pkg-card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: var(--white); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; border: 1px solid transparent; transition: transform .3s, border-color .3s; }
.benefit::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 30px; background: var(--mint-soft); transform: rotate(18deg); transition: transform .4s; z-index: 0; }
.benefit:hover { transform: translateY(-5px); border-color: var(--mint); }
.benefit:hover::after { transform: rotate(38deg) scale(1.2); }
.benefit > * { position: relative; z-index: 1; }
.benefit h3 { font-size: 1.08rem; display: flex; gap: 10px; align-items: center; }
.benefit h3 img { width: 34px; height: 34px; border-radius: 9px; }
.benefit p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- walkthrough ---------- */
.walk { display: grid; gap: 18px; }
.walk-item { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: box-shadow .3s, transform .3s; }
.walk-item:hover { box-shadow: var(--shadow-1); transform: translateY(-3px); }
.walk-item img { width: 54px; height: 54px; border-radius: 14px; }
.walk-item h3 { font-size: 1.05rem; margin: 2px 0 6px; }
.walk-item p { margin: 0; font-size: .95rem; color: var(--muted); }
.code-note { margin-top: 26px; background: #16201B; color: #D7E4DC; border-radius: var(--radius); padding: 20px 22px; font-family: var(--f-mono); font-size: .85rem; line-height: 1.75; overflow-x: auto; white-space: pre; box-shadow: var(--shadow-2); }
.code-note .c { color: #7F9A8B; }
.code-note .k { color: var(--mint); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.gallery-tabs { display: grid; gap: 10px; }
.gallery-tab {
  text-align: left; font: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  cursor: pointer; color: var(--text); transition: border-color .2s, background .2s, transform .2s;
}
.gallery-tab b { display: block; font-family: var(--f-display); color: var(--ink); }
.gallery-tab span { font-size: .86rem; color: var(--muted); }
.gallery-tab:hover { transform: translateX(4px); border-color: var(--mint); }
.gallery-tab[aria-selected="true"] { background: var(--mint-soft); border-color: var(--mint-deep); }
.gallery-stage { perspective: 1600px; }
.gallery-panel { margin: 0; }
.gallery-panel[hidden] { display: none; }
.gallery-panel img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-3d); transform: rotateX(4deg); transition: transform .5s; }
.gallery-panel img:hover { transform: rotateX(0) scale(1.01); }
.gallery-panel figcaption { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* ---------- comparison ---------- */
.compare th:first-child, .compare td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare thead th:nth-child(2) { background: var(--mint-deep); color: #fff; }
.compare td:nth-child(2) { background: rgba(226, 245, 234, .55); }

/* ---------- safety ---------- */
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: var(--grey-2); border-radius: 12px; padding: 14px 16px; }
.checklist img { width: 28px; height: 28px; border-radius: 8px; flex: none; margin-top: 2px; }

/* ---------- issues ---------- */
.issues { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.issue { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .3s, box-shadow .3s; }
.issue:hover { transform: translateY(-5px) rotateX(2deg); box-shadow: var(--shadow-2); }
.issue-q { display: flex; gap: 12px; align-items: center; padding: 16px 20px; background: var(--grey-2); border-bottom: 1px solid var(--line); }
.issue-q img { width: 30px; height: 30px; border-radius: 8px; }
.issue-q h3 { margin: 0; font-size: 1.02rem; }
.issue-a { padding: 18px 20px; font-size: .95rem; color: var(--muted); }
.issue-a p:last-child { margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { border-color: var(--mint); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-family: var(--f-display); font-weight: 700; color: var(--ink); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; background: var(--mint-soft); color: var(--mint-ink); display: grid; place-items: center; font-family: var(--f-mono); transition: transform .3s; }
.faq details[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- final CTA ---------- */
.cta-box {
  perspective: 1400px;
}
.cta-inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--mint-deep), #3FA570 55%, var(--mint));
  color: #fff; border-radius: 28px; padding: 56px; position: relative; overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(31, 107, 68, .6); transition: transform .5s;
}
.cta-inner:hover { transform: rotateX(3deg) translateY(-4px); }
.cta-inner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 32px 32px; }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, .9); }
.cta-inner .btn--primary { background: #fff; color: var(--mint-ink); box-shadow: 0 6px 0 rgba(0,0,0,.18), 0 18px 30px -12px rgba(0,0,0,.35); }
.cta-inner .btn--primary:hover { color: var(--mint-ink); }
.cta-meta { display: grid; gap: 10px; font-family: var(--f-mono); font-size: .85rem; }
.cta-meta div { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 12px 16px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 56px; background: linear-gradient(rgba(46,139,90,.05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(46,139,90,.05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(180deg, var(--grey-2), var(--white)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 900px; }
.page-hero .lead { max-width: 760px; }
.crumbs { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--mint-ink); text-decoration: none; }
.crumbs span { margin: 0 8px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.post-meta span { font-family: var(--f-mono); font-size: .8rem; background: var(--white); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; color: var(--muted); }

/* ---------- guide grid ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; perspective: 1600px; }
.guide-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .3s; }
.guide-card:hover { transform: translateY(-8px) rotateX(4deg); box-shadow: var(--shadow-3d); border-color: var(--mint); color: inherit; }
.guide-card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grey); }
.guide-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.guide-card:hover figure img { transform: scale(1.04); }
.guide-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide-card .tag { font-family: var(--f-mono); font-size: .75rem; color: var(--mint-ink); background: var(--mint-soft); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.guide-card h2 { font-size: 1.35rem; margin: 0; }
.guide-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.guide-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--mint-ink); font-family: var(--f-display); }

/* ---------- article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.article-cover { margin: 0 0 40px; perspective: 1400px; }
.article-cover img { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-3d); }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.8em; scroll-margin-top: 20px; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote, .callout { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--mint); background: var(--mint-soft); border-radius: 0 14px 14px 0; color: var(--ink); }
.callout p:last-child { margin: 0; }
.prose table { margin: 1.2em 0 1.6em; }
.prose pre { background: #16201B; color: #D7E4DC; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: .86rem; line-height: 1.7; }
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.toc { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--grey-2); }
.toc h2 { font-size: 1rem; font-family: var(--f-mono); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.toc li { margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--mint-ink); }
.aside-box { margin-top: 20px; border-radius: 18px; padding: 22px; background: var(--ink); color: #D7E4DC; }
.aside-box h2 { color: #fff; font-size: 1.05rem; }
.aside-box p { font-size: .92rem; }
.aside-box .btn { width: 100%; }
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related a { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .2s; }
.related a:hover { border-color: var(--mint); transform: translateY(-3px); }

/* ---------- legal / info pages ---------- */
.doc { max-width: 860px; }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc ul { padding-left: 1.3em; }
.updated { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 40px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); transition: transform .3s, box-shadow .3s; }
.contact-card:hover { transform: translateY(-6px) rotateX(3deg); box-shadow: var(--shadow-2); }
.contact-card img { width: 48px; height: 48px; border-radius: 13px; margin-bottom: 14px; }
.contact-card h2 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-card p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  position: relative; padding: 56px 0 0; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--mint-soft), var(--grey-2) 75%);
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 4px; border-radius: 0 0 4px 4px; background: var(--mint-deep);
}
.footer-content { text-align: center; }
.footer-brand { justify-content: center; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand .brand-name { font-size: 1.85rem; }
.footer-description { max-width: 800px; margin: 22px auto 28px; font-size: .98rem; color: var(--muted); }
.footer-menu { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-menu ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.footer-menu a { display: inline-block; padding: 6px 2px; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.footer-menu a:hover { color: var(--mint-ink); text-decoration: underline; }
.footer-disclaimer { max-width: 760px; margin: 24px auto; color: var(--muted); font-size: .85rem; }
.footer-disclaimer strong { color: var(--ink); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { font-weight: 600; text-decoration: none; }
/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.reveal-pending { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: .9rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--wide, .tile--feature { grid-column: span 1; }
  .tile--feature { grid-column: span 2; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { order: -1; }
  .aside-box { display: none; }
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); display: none; }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 2px; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .nav-guide { margin: 8px 0 0; text-align: center; }
  .hero .wrap, .split, .req-grid, .gallery, .cta-inner { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .hero { padding-top: 48px; }
  .hero-stage { margin: 10px 12px 0; }
  .gallery-tabs { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .issues { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-row p { grid-column: auto; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 68px 0; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .hero-facts div { padding: 10px 12px; }
  .hero-chip { display: none; }
  .hero-screen { transform: rotateY(-8deg) rotateX(5deg); }
  .bento, .benefits, .pipeline, .guide-grid, .related ul, .spec-strip { grid-template-columns: 1fr; }
  .tile--feature { grid-column: span 1; }
  .ledger-row { grid-template-columns: 1fr; gap: 8px; }
  .ledger-row p { grid-column: 1; }
  .cta-inner { padding: 34px 22px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  th, td { padding: 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* grid children must be allowed to shrink below their content width */
.split > *, .article-layout > *, .req-grid > *, .gallery > *, .hero .wrap > *, .cta-inner > * { min-width: 0; }
.prose .table-wrap { margin: 1.2em 0 1.6em; }
.prose .table-wrap table { margin: 0; min-width: 560px; }

/* Keep narrow screens and long technical names inside their containers. */
h1, h2, h3, p, li, a { overflow-wrap: break-word; }
.bento > *, .benefits > *, .guide-grid > *, .footer-grid > *, .hero-facts > * { min-width: 0; }
[id] { scroll-margin-top: 100px; }
@media (max-width: 380px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-facts div:last-child { border-bottom: 0; }
}
@media (max-width: 940px) {
  .no-js .nav { display: block; position: static; box-shadow: none; }
  .no-js .site-header .wrap { flex-wrap: wrap; }
  .no-js .nav { width: 100%; }
  .no-js .nav-toggle { display: none; }
}

.scroll-top {
  position: fixed; right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom)); z-index: 20;
  display: grid; place-items: center; width: 50px; height: 50px;
  border: 1px solid var(--mint-ink); border-radius: 14px;
  background: var(--mint-deep); color: white; cursor: pointer;
  box-shadow: var(--shadow-2); transition: background .2s, transform .2s;
}
.scroll-top[hidden] { display: none; }
.scroll-top:hover { background: var(--mint-ink); transform: translateY(-3px); }
