/* leakferret.com — hand-written, no build step */
:root {
  --navy:   #0E2438;
  --navy2:  #13314A;
  --navy3:  #0A1B2B;
  --panel:  #112B41;
  --slate:  #5B82A0;
  --orange: #DD8530;
  --gold:   #F0B23E;
  --cream:  #F3E7CF;
  --mask:   #2C4257;
  --text:   #DCE7F0;
  --muted:  #9FB4C4;
  --muted2: #6E8597;
  --line:   rgba(243,231,207,0.10);
  --maxw:   1080px;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* faint tone-on-tone asterisk texture, echoing the mascot */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54'%3E%3Cg fill='%23123048'%3E%3Crect x='25' y='18' width='3.4' height='18' rx='1.7'/%3E%3Crect x='25' y='18' width='3.4' height='18' rx='1.7' transform='rotate(60 26.7 27)'/%3E%3Crect x='25' y='18' width='3.4' height='18' rx='1.7' transform='rotate(120 26.7 27)'/%3E%3C/g%3E%3C/svg%3E");
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
code { font-family: var(--mono); font-size: 0.9em; background: rgba(243,231,207,0.08); padding: 0.1em 0.4em; border-radius: 6px; color: var(--cream); }
.g { color: var(--gold); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 0.98rem; transition: transform .08s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #2A1B05; box-shadow: 0 6px 22px rgba(240,178,62,0.25); }
.btn-gold:hover { background: #ffc857; }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: rgba(10,27,43,0.72); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.nav-links a:hover { color: var(--cream); text-decoration: none; }
.nav-cta { padding: 9px 18px; }

/* sections */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
.band.alt { background: rgba(10,27,43,0.45); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 10px; }
.section-lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 0 0 28px; }
.fine { color: var(--muted2); font-size: 0.92rem; max-width: 70ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--gold); margin: 0 0 14px; }

/* hero */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin: 0 0 18px; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.trust { font-size: 0.95rem; color: var(--cream); background: rgba(91,130,160,0.12); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; max-width: 56ch; }
.hero-art { text-align: center; }
.hero-art img { max-width: 100%; height: auto; border-radius: 28px; border: 1px solid rgba(240,178,62,0.35); box-shadow: 0 18px 44px rgba(0,0,0,0.5); }

/* code blocks */
.code { background: var(--navy3); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; overflow-x: auto; margin: 0 0 22px; }
.code.self { margin: 0; }
.code pre { margin: 0; font-family: var(--mono); font-size: 0.92rem; color: var(--cream); line-height: 1.7; white-space: pre; }
.code .c { color: var(--muted2); }
.code .p { color: var(--gold); user-select: none; }

/* stations */
.stations { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.stations li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.stations h3 { margin: 8px 0 8px; font-size: 1.12rem; }
.stations p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--gold); color: #2A1B05; font-weight: 800; font-size: 0.95rem; }

/* two-column */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .12s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(240,178,62,0.4); }
.card h3 { font-size: 1.1rem; margin: 0 0 8px; color: var(--cream); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* compare table */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; margin: 8px 0 20px; min-width: 520px; }
.compare th, .compare td { text-align: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text); }
.compare thead th { color: var(--muted); font-weight: 600; }
.compare .me { color: var(--gold); font-weight: 700; }
.compare td.me { background: rgba(240,178,62,0.06); }
.compare tbody td { color: var(--muted2); font-size: 1.05rem; }

/* cta */
.cta { padding: 72px 0; background: linear-gradient(180deg, rgba(91,130,160,0.10), rgba(240,178,62,0.06)); border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 6px; }
.cta-inner img { border-radius: 18px; }
.cta-actions { display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--navy3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 12px; }
.footer-grid a { display: block; color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--muted2); font-size: 0.88rem; }

/* responsive */
@media (max-width: 860px) {
  .hero-grid, .two { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 260px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-actions { margin-left: 0; }
}

/* sub-heading inside a section */
.sub { font-size: 1.05rem; color: var(--cream); margin: 32px 0 12px; }

/* terminal demo */
.term { background: #0A1622; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.45); max-width: 840px; position: relative; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: #0d1f30; border-bottom: 1px solid var(--line); }
.term-bar > span { width: 12px; height: 12px; border-radius: 50%; background: #3a4d5e; }
.term-bar > span:nth-child(1) { background: #E5675A; }
.term-bar > span:nth-child(2) { background: #F0B23E; }
.term-bar > span:nth-child(3) { background: #5FB97D; }
.term-bar em { margin-left: 8px; font-style: normal; font-family: var(--mono); font-size: .84rem; color: var(--muted2); }
.term-body { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: .9rem; line-height: 1.75; color: var(--cream); white-space: pre; overflow-x: auto; }
.tp { color: var(--gold); user-select: none; }
.tdim { color: var(--muted2); }
.tfile { color: #9FC3DE; }
.treal, .tlive { color: #FF6B58; font-weight: 700; }
.tfixture { color: #7B93A6; font-weight: 700; }
.tunknown { color: #9FB4C4; font-weight: 700; }
.tkey { color: var(--cream); }
.trw { color: #6FCF8E; }
.tstr { color: #9FC3DE; }

/* copy-to-clipboard button */
.code, .term { position: relative; }
.copy-btn { position: absolute; top: 10px; right: 10px; padding: 5px 11px; font-size: .78rem; font-weight: 600; font-family: var(--font); color: var(--muted); background: rgba(243,231,207,.06); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; opacity: 0; transition: opacity .15s ease, color .15s ease, border-color .15s ease; }
.code:hover .copy-btn, .term:hover .copy-btn, .copy-btn:focus { opacity: 1; }
.copy-btn:hover { color: var(--cream); border-color: var(--gold); }

/* faq */
.faq { max-width: 780px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 12px; background: var(--panel); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; color: var(--cream); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: .96rem; }

/* 404 */
.notfound { min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 40px 24px; }
.notfound img { border-radius: 24px; border: 1px solid rgba(240,178,62,.35); margin-bottom: 10px; }
.notfound h1 { font-size: 4rem; margin: 0; color: var(--gold); }
.notfound p { color: var(--muted); margin: 0 0 18px; }
