/* ═══════════════════════════════════════════════════════
   HANLISSA LIMITED — signal spec-sheet
   Mint paper · deep teal ink · signal cyan + coral hits
   Fonts: Space Grotesk + Inter + IBM Plex Mono
   ═══════════════════════════════════════════════════════ */

:root {
  --paper: #F2F7F5;
  --panel: #E9F1EE;
  --ink: #0E2A28;
  --muted: #5C6E6A;
  --cyan: #0CA392;
  --cyan-deep: #088577;
  --coral: #E2604A;
  --line: #CBDCD7;
  --grot: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--cyan); color: #fff; }

.sec-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--coral);
  display: inline-block;
  margin-right: 0.6rem;
}
.sec-title {
  font-family: var(--grot);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
}

/* ── Header ───────────────────────────── */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  min-height: 66px;
  gap: 1.6rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; }
.brand-text {
  font-family: var(--grot);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1;
}
.brand-text em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav { display: flex; gap: 1.7rem; margin-left: auto; }
.nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover { color: var(--cyan-deep); border-bottom-color: var(--cyan); }
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 0.65rem 1.05rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.btn-nav:hover { background: var(--cyan-deep); color: #fff; }

/* ── Hero — offset grid + spec panel ──── */
.hero {
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
}
.hero-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 8vh, 6rem) 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  background: linear-gradient(90deg, var(--paper) 55%, transparent);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.hero-eyebrow .tick { width: 22px; height: 3px; background: var(--coral); }
.hero h1 {
  font-family: var(--grot);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.h-cyan { color: var(--cyan-deep); }
.hero-note { margin-top: 1.6rem; max-width: 30rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.1rem; }

.btn-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
  background: var(--cyan);
  padding: 0.95rem 1.7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-cyan:hover { background: var(--cyan-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.8rem; }

/* Spec panel */
.hero-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem;
  box-shadow: 0 20px 50px rgba(14, 42, 40, 0.12);
  max-width: 21rem;
  justify-self: end;
}
.hp-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
}
.hp-icon { width: 96px; height: 96px; border-radius: 14px; margin-bottom: 1rem; }
.hp-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.66rem;
  align-items: baseline;
}
.hp-lines span { color: var(--muted); letter-spacing: 0.1em; }
.hp-lines b { color: var(--ink); font-weight: 500; text-align: right; }
.hp-lines b.wrap { word-break: break-all; }
.hp-bar {
  height: 26px;
  margin-top: 1rem;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 11px, var(--ink) 11px 14px, transparent 14px 17px);
}

/* ── Spec strip ───────────────────────── */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 76rem;
  margin-inline: auto;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.spec { padding: 1.5rem 1.2rem; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; padding-left: 0; }
.spec b {
  display: block;
  font-family: var(--grot);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
}
.spec:last-child b { color: var(--coral); }
.spec span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Bands ────────────────────────────── */
.band { border-bottom: 1px solid var(--line); }
.band-inner { max-width: 76rem; margin-inline: auto; padding: clamp(3.2rem, 7vh, 5rem) 1.5rem; }
.pub-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.pub-right p { color: var(--muted); font-size: 1.02rem; }
.pub-right p:first-child { color: var(--ink); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.8rem; }

/* ── Protocol ─────────────────────────── */
.protocol { background: var(--panel); }
.protocol .sec-title { margin-bottom: 2.2rem; }
.proto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.proto {
  padding: 0 1.7rem;
  border-left: 2px solid var(--cyan);
}
.proto:first-child { border-left: 0; padding-left: 0; }
.proto-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--coral);
  border: 1px solid var(--coral);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}
.proto h3 { font-family: var(--grot); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.45rem; }
.proto p { font-size: 0.88rem; color: var(--muted); }

/* ── Product ──────────────────────────── */
.prod-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}
.prod-id { display: flex; align-items: center; gap: 1.2rem; }
.prod-icon { width: 80px; height: 80px; border-radius: 16px; border: 1px solid var(--line); }
.prod-id .sec-title { display: block; }
.prod-sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}
.prod-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.prod-desc { max-width: 44rem; color: var(--muted); font-size: 1.02rem; }
.prod-desc strong { color: var(--ink); font-weight: 500; }
.run-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.6rem;
}
.run {
  background: var(--ink);
  border-radius: 10px;
  padding: 0.45rem;
  transition: transform 0.3s var(--ease);
}
.run:hover { transform: translateY(-6px); }
.run img { border-radius: 6px; }
.run figcaption {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(242, 247, 245, 0.55);
  padding: 0.5rem 0.2rem 0.25rem;
}

/* ── Verification + contact ───────────── */
.vc-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.vbox {
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
}
.vrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.76rem;
  align-items: baseline;
}
.vrow:last-child { border-bottom: 0; }
.vrow:nth-child(odd) { background: var(--panel); }
.vrow span { color: var(--muted); letter-spacing: 0.1em; }
.vrow b { font-weight: 500; text-align: right; }
.vnote { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); margin-top: 0.9rem; }
.crows { font-style: normal; }
.crows p {
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.crows .ck {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--coral);
  min-width: 3.4rem;
  flex: none;
}
.crows a { color: var(--ink); }
.crows a:hover { color: var(--cyan-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* ── Footer ───────────────────────────── */
.footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: 1.9rem 1.5rem 1.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.2rem;
}
.footer .brand-mark { width: 34px; height: 34px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; margin-left: auto; }
.footer-ext { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; }
.footer-nav a, .footer-ext a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.footer-ext a { color: var(--muted); }
.footer-nav a:hover, .footer-ext a:hover { color: var(--cyan-deep); }
.footer-copy { width: 100%; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.2rem; }

/* ── Legal ────────────────────────────── */
.legal { max-width: 44rem; margin-inline: auto; padding: clamp(3.5rem, 8vh, 5.5rem) 1.5rem; }
.legal-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.legal h1 { font-family: var(--grot); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3rem); margin-bottom: 0.7rem; }
.doc-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); padding-bottom: 1.8rem; border-bottom: 2px solid var(--ink); margin-bottom: 2rem; }
.legal h2 { font-family: var(--grot); font-weight: 700; font-size: 1.15rem; margin-top: 2.1rem; margin-bottom: 0.6rem; }
.legal p { margin-bottom: 0.9rem; color: var(--muted); }
.legal p strong, .legal li strong { color: var(--ink); font-weight: 500; }
.legal ul { margin: 0.6rem 0 1.1rem 1.4rem; color: var(--muted); }
.legal li { margin-bottom: 0.45rem; }

/* ── Reveal ───────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ───────────────────────── */
@media (max-width: 62rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { justify-self: start; }
  .pub-inner { grid-template-columns: 1fr; }
  .vc-inner { grid-template-columns: 1fr; }
  .run-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .topbar-inner { flex-wrap: wrap; padding-block: 0.7rem; gap: 0.7rem 1rem; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 1.2rem; overflow-x: auto; }
  .nav a { font-size: 0.62rem; white-space: nowrap; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .spec:nth-child(-n+2) { border-top: 0; }
  .proto-grid { grid-template-columns: 1fr; row-gap: 1.8rem; }
  .proto { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.3rem; }
  .proto:first-child { border-top: 0; padding-top: 0; }
}
