/* Hackrange landing in the house layout: sticky nav, giant tight headlines, small caps labels, square buttons, one
   full-bleed green band, ruled cells and an engraved footer band. Colours and type come from tokens.css. */
:root {
  --band: #0a7a1f;
  --band-sub: #dcf7df;
  --band-line: rgba(255, 255, 255, .24);
  --frame: #0a7a1f;
  --btn: #0a7a1f;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --surface: var(--bg2);
  --line: var(--border);
  --sub: var(--text2);
  --ring: color-mix(in srgb, var(--accent) 30%, transparent);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --wrap: 1120px;
  --r-sq: 2px;
  --r-icon: 22.5%;
  --motion: .2s ease;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .28 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root { --band: #06591a; --band-sub: #c6f0ca; --frame: #0a7a1f; --btn: #0a7a1f; --accent: #5be052; }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: var(--size-body); line-height: 24px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }
.center { text-align: center; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(72px, 12vw, 176px); line-height: .95; font-weight: 700; letter-spacing: -.045em; }
h2 { font-size: clamp(44px, 6vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
h3 { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
/* the hero leads with the line that sells; the nav already carries the name */
.hero-h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; max-width: 960px; margin: 0 auto; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: var(--sp-4); }

.btn { height: var(--control); white-space: nowrap; padding: 0 var(--sp-4); border-radius: var(--r-sq); display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background var(--motion), color var(--motion), border-color var(--motion); }
.btn-solid { background: var(--btn); color: #fff; }
.btn-solid:hover { background: color-mix(in srgb, var(--btn) 82%, #fff); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn:focus-visible, .foot-cols a:focus-visible, .nav-brand:focus-visible, .nav-links a:focus-visible, .nav-get:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.nav { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-5); height: 56px; padding: 0 var(--sp-5); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.nav-brand { grid-column: 2; display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: var(--r-icon); }
.nav-links, .nav-get { display: flex; gap: var(--sp-5); font-size: 15px; font-weight: 500; }
.nav-links a, .nav-get { text-decoration: none; color: var(--sub); }
.nav-links a:hover, .nav-get:hover { color: var(--text); }
.nav-end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--sp-5); }
@media (min-width: 900px) { body::after { content: ""; position: fixed; inset: 0; border-inline: 4px solid var(--frame); pointer-events: none; z-index: 30; } }

.hero { padding: var(--sp-9) 0 var(--sp-8); }
.lead { max-width: 560px; margin: var(--sp-6) auto 0; color: var(--sub); }
.cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.center .cta { justify-content: center; }
.fine { margin-top: var(--sp-3); font-size: var(--size-footnote); line-height: 16px; color: var(--sub); }

/* The green band: section head, then feature rows and ruled cells */
.band { margin: 0 clamp(0px, 3vw, 44px); background: var(--grain), var(--band); color: #fff; overflow: hidden; }
.band .label { color: var(--band-sub); }
.band-copy { padding: var(--sp-9) var(--sp-5); text-align: center; }
.band-copy h2 { font-size: clamp(48px, 8vw, 128px); line-height: .95; }
.band-copy p:last-child { margin: var(--sp-6) auto 0; max-width: 480px; color: var(--band-sub); }
.frows { border-top: 1px solid var(--band-line); }
.frow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-bottom: 1px solid var(--band-line); }
.frow:nth-child(even) .term { order: 2; }
.frow > div { padding: var(--sp-7) clamp(24px, 6vw, 96px); max-width: 560px; }
.frow h3 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.frow p:last-child { margin-top: var(--sp-4); color: var(--band-sub); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--band-line); }
.cell { padding: var(--sp-6) var(--sp-6) var(--sp-7); border-right: 1px solid var(--band-line); }
.cell:nth-child(3n) { border-right: 0; }
.cell .label { margin-bottom: var(--sp-5); }
.cell p:last-child { margin-top: var(--sp-3); color: var(--band-sub); font-size: 15px; line-height: 22px; }

.sec { padding: var(--sp-9) 0; }
.body { color: var(--sub); margin: var(--sp-5) auto 0; max-width: 560px; }

/* Footer: brand and link columns, the engraved band of hackrange tools, one fine line */
.foot { text-align: center; padding: var(--sp-8) var(--sp-4) var(--sp-5); background: var(--bg); overflow: hidden; border-top: 1px solid var(--line); }
.foot-top { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-7); text-align: left; }
.foot-brand { display: grid; gap: var(--sp-2); align-content: start; }
.foot-brand img { border-radius: var(--r-icon); }
.foot-brand b { font-weight: 700; font-size: 36px; line-height: 40px; letter-spacing: -.03em; }
.foot-brand p { color: var(--sub); font-size: 15px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.foot-cols div { display: grid; gap: var(--sp-2); align-content: start; }
.foot-cols .label { margin-bottom: var(--sp-2); }
.foot-cols a { display: flex; align-items: center; min-height: 44px; margin: -10px 0; color: var(--text); text-decoration: none; font-size: 15px; }
.foot-cols a:hover { color: var(--accent); }
.word-band { color: var(--accent); position: relative; width: 100vw; margin: var(--sp-6) 0 0 calc(50% - 50vw); height: clamp(120px, 16vw, 220px); }
.word-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.word-band.live .word-canvas { display: block; }
.legal { margin-top: var(--sp-2); font-size: var(--size-footnote); line-height: 16px; color: var(--sub); }
.legal a { color: inherit; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .frow { grid-template-columns: 1fr; }
  .frow:nth-child(even) .term { order: 0; }
  .frow > div { padding: var(--sp-6) var(--sp-5) var(--sp-7); }
  .cells { grid-template-columns: 1fr; }
  .cell, .cell:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--band-line); padding: var(--sp-5); }
  .cell:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .nav-links, .nav-get { display: none; }
  .wrap { padding: 0 var(--sp-4); }
  .hero { padding-top: var(--sp-8); }
  .foot { padding-top: var(--sp-7); }
  .foot-top { row-gap: var(--sp-5); }
  .foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
  .foot-brand p { flex-basis: 100%; }
  .foot-cols { gap: var(--sp-6); }
  .foot-cols div { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
}

/* Terminal: every block on this site is real output from the repo, set in the system mono face */
.term, .t { font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.term { background: #0b0f0b; color: #d7e7d7; padding: var(--sp-6); font-size: 14px; line-height: 22px; text-align: left; align-self: stretch; }
.term b { font-weight: 600; color: #fff; }
.term i { font-style: normal; color: #5be052; }
.start { max-width: 640px; margin: var(--sp-7) auto 0; }
.rules { margin-top: var(--sp-9); }

/* Hero: one cohesive pentest session, dimmed behind the copy, drifting on scroll (parallax in landing.js). */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 56px); display: grid; align-items: center; }
.hero-copy { position: relative; z-index: 2; transform: translate3d(0, var(--cy, 0), 0); opacity: var(--co, 1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 62% 56% at 50% 50%, var(--bg) 46%, transparent 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 1; pointer-events: none; background: linear-gradient(transparent, var(--bg)); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: grid; place-items: center; transform: translate3d(0, var(--py, 0), 0) scale(1.04); will-change: transform; }
.session-wrap { width: min(1100px, 92vw); }
.session { font-family: var(--mono); font-size: clamp(11px, 1.15vw, 15px); line-height: 1.7; margin: 0; white-space: pre; overflow: hidden; color: #2f7d3a; opacity: .5; }
.session .c { color: #43b14e; font-weight: 600; }
.session .g { color: #5be052; }
@media (prefers-color-scheme: dark) { .session { color: #3f9c4a; opacity: .42; } }
@media (max-width: 760px) { .session { font-size: 10px; line-height: 1.6; white-space: pre-wrap; opacity: .35; } .hero::before { background: radial-gradient(ellipse 130% 50% at 50% 50%, var(--bg) 58%, transparent 100%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { transform: translate3d(0,0,0) scale(1.04); } }

/* Terminal blocks in the body stay as before */
.term, .t { font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.term { background: #0b0f0b; color: #d7e7d7; padding: var(--sp-6); font-size: 14px; line-height: 22px; text-align: left; align-self: stretch; }
.term b { font-weight: 600; color: #fff; }
.term i { font-style: normal; color: #5be052; }
.start { max-width: 640px; margin: var(--sp-7) auto 0; }
.rules { margin-top: var(--sp-9); }
