/* ==========================================================================
   HyperWeb Secure — cybersecurity & network services
   Dark operations-console aesthetic. Deliberately a different world from the
   light marketing site: near-black canvas, terminal green, monospace labels.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  --bg: #07080b;
  --bg-1: #0b0d12;
  --bg-2: #10131a;
  --card: rgba(255, 255, 255, 0.028);
  --card-hi: rgba(255, 255, 255, 0.055);

  --fg: #e9ecf3;
  --fg-muted: #878ea3;
  --fg-faint: #4d5468;

  --line: rgba(255, 255, 255, 0.09);
  --line-hi: rgba(255, 255, 255, 0.18);

  /* terminal green is the operational accent; brand blue keeps the family tie */
  --acc: #00e5a0;
  --acc-dim: rgba(0, 229, 160, 0.16);
  --blue: #3a52e8;
  --blue-deep: #1226aa;
  --warn: #ffb020;
  --danger: #ff4d4d;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --nav-h: 68px;
  --gutter: clamp(18px, 4vw, 64px);
  --max: 1440px;
  --r: 12px;
  --r-lg: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --check-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.js { scroll-behavior: auto; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--acc); color: #04150f; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 10px 18px; background: var(--acc); color: #04150f;
  border-radius: 100px; font-weight: 600;
  transform: translateY(-200%); transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   3. Global overlays: grain + scanlines
   -------------------------------------------------------------------------- */

.grain {
  position: fixed; inset: -100%; z-index: 400; pointer-events: none;
  background-image: url("../img/grain.png");
  background-size: 170px;
  opacity: 0.18;
  animation: grain-shift 6s steps(6) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* faint CRT scanlines — sells the console feel without hurting legibility */
.scan {
  position: fixed; inset: 0; z-index: 399; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* --------------------------------------------------------------------------
   4. Reticle cursor
   -------------------------------------------------------------------------- */

.retic { position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none; }
.retic__box {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  transition: width .35s var(--ease), height .35s var(--ease),
              margin .35s var(--ease), opacity .3s;
}
.retic__box i {
  position: absolute; width: 8px; height: 8px;
  border: 1px solid var(--acc);
}
.retic__box i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.retic__box i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.retic__box i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.retic__box i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.retic__dot {
  position: absolute; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  background: var(--acc); border-radius: 50%;
}
body.retic-lock .retic__box { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
body.retic-hide .retic { opacity: 0; }

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .retic { display: none; }
  .scan { display: none; }
}

/* --------------------------------------------------------------------------
   5. Boot screen
   -------------------------------------------------------------------------- */

.boot {
  position: fixed; inset: 0; z-index: 600; background: var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono);
  transition: opacity .5s var(--ease), visibility .5s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__inner { width: min(440px, 82vw); }
.boot__line { font-size: 12px; color: var(--acc); letter-spacing: .06em; }
.boot__line span { color: var(--fg-faint); }
.boot__bar {
  margin-top: 14px; height: 2px; background: rgba(255, 255, 255, .1); overflow: hidden;
}
.boot__bar i { display: block; height: 100%; width: 0; background: var(--acc); }
.js body.is-booting { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Layout
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 900px; }

section { position: relative; }

.pad { padding-block: clamp(52px, 6vw, 104px); }
.pad-sm { padding-block: clamp(36px, 4vw, 68px); }

.rule { height: 1px; background: var(--line); border: 0; }

/* --------------------------------------------------------------------------
   7. Typography
   -------------------------------------------------------------------------- */

.d-xl, .d-lg, .d-md, .d-sm {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}
.d-xl { font-size: clamp(34px, 6.4vw, 104px); line-height: 0.9; letter-spacing: -0.05em; }
.d-lg { font-size: clamp(28px, 4.4vw, 64px); }
.d-md { font-size: clamp(23px, 2.9vw, 40px); }
.d-sm { font-size: clamp(19px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.08; }

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--acc);
}
.tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc); flex: none;
  box-shadow: 0 0 0 3px var(--acc-dim);
}
.tag--muted { color: var(--fg-muted); }
.tag--muted::before { background: var(--fg-faint); box-shadow: none; }

.idx { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--fg-faint); }

.lede { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--fg-muted); max-width: 62ch; }
.small { font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); }

/* section header */
.shead {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start;
  padding-bottom: clamp(20px, 2.4vw, 34px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 2.8vw, 42px);
}
.shead__t { margin-top: 16px; max-width: 22ch; }
.shead__s { margin-top: 14px; max-width: 58ch; }
@media (max-width: 700px) {
  .shead { grid-template-columns: 1fr; }
  .shead__idx { order: -1; }
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 15px 28px; border-radius: 100px;
  font-family: var(--display); font-size: 15px; font-weight: 550;
  background: var(--acc); color: #04150f;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fff; border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::after { transform: none; }

.btn--ghost {
  background: transparent; color: var(--fg); border: 1px solid var(--line-hi);
}
.btn--ghost::after { background: var(--acc); }
.btn--ghost:hover { color: #04150f; border-color: transparent; }

.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn--sm { padding: 11px 20px; font-size: 13.5px; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.tlink {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--acc); padding-bottom: 3px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform .4s var(--ease);
}
.tlink:hover::after { transform-origin: left; animation: sweep .5s var(--ease); }
@keyframes sweep {
  0%   { transform: scaleX(1); transform-origin: right; }
  49%  { transform: scaleX(0); transform-origin: right; }
  50%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* --------------------------------------------------------------------------
   9. Nav
   -------------------------------------------------------------------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              transform .45s var(--ease), backdrop-filter .35s;
}
.nav.is-solid {
  background: rgba(7, 8, 11, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-102%); }
.nav__inner {
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.03em;
  z-index: 2;
}
.brand__mark {
  width: 24px; height: 24px; flex: none;
  border: 1px solid var(--acc); border-radius: 6px;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.brand__mark::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
}
.brand__mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,229,160,.6) 50%, transparent 55%);
  animation: brand-scan 3s var(--ease-io) infinite;
}
@keyframes brand-scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
.brand small {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--acc);
  display: block; margin-top: 1px;
}

.nav__menu { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.nav__link {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-muted); position: relative; padding: 5px 0;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--acc); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-hi);
  border-radius: 8px; place-items: center; z-index: 2; flex: none;
}
.nav__burger span {
  display: block; width: 16px; height: 1.5px; background: var(--fg);
  transition: transform .35s var(--ease), opacity .25s;
}
.nav__burger span + span { margin-top: 4.5px; }
body.menu-open .nav__burger span:first-child { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:last-child { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 290; background: var(--bg-1);
  padding: calc(var(--nav-h) + 26px) var(--gutter) 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
  overflow-y: auto;
}
body.menu-open .drawer { clip-path: inset(0 0 0 0); }
.drawer__list a {
  display: block; font-family: var(--display); font-size: clamp(28px, 8vw, 46px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.24;
  opacity: 0; transform: translateY(20px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .25s;
}
body.menu-open .drawer__list a { opacity: 1; transform: none; }
.drawer__list a:hover { color: var(--acc); }
.drawer__foot {
  padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-muted);
}

@media (max-width: 1000px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: grid; }
}

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(40px, 5vw, 72px);
  overflow: hidden; isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media video {
  width: 100%; height: 118%; object-fit: cover;
  opacity: .3; filter: invert(1) hue-rotate(120deg) saturate(1.3) brightness(.85);
  will-change: transform;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,229,160,.07), transparent 70%),
    linear-gradient(180deg, rgba(7,8,11,.86) 0%, rgba(7,8,11,.6) 42%, rgba(7,8,11,.94) 88%, var(--bg) 100%);
}

/* falling glyph rain */
.hero__rain {
  position: absolute; inset: 0; z-index: 1; opacity: .5;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__title { margin-top: 18px; max-width: 15ch; }
.hero__title em { font-style: normal; color: var(--acc); }
.hero__lede { margin-top: 20px; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 30px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); flex: none;
}

/* terminal panel */
.term {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(8, 10, 14, .72);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
}
.term__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
}
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.term__bar i:first-child { background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__bar span {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint);
}
.term__body {
  padding: 16px 16px 20px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  min-height: 232px;
  white-space: pre-wrap; word-break: break-word;
}
.term__body .ok { color: var(--acc); }
.term__body .warn { color: var(--warn); }
.term__body .bad { color: var(--danger); }
.term__body .dim { color: var(--fg-faint); }
.term__caret {
  display: inline-block; width: 7px; height: 14px; background: var(--acc);
  vertical-align: -2px; animation: caret 1s steps(2) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* --------------------------------------------------------------------------
   11. Stats strip
   -------------------------------------------------------------------------- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stat {
  padding: clamp(20px, 2.4vw, 34px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat__n {
  font-family: var(--display); font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--acc);
}
.stat__l {
  margin-top: 10px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
   12. Capability grid
   -------------------------------------------------------------------------- */

.grid3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cap {
  position: relative; padding: clamp(22px, 2.4vw, 34px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: background-color .45s var(--ease);
}
.cap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,160,.09), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.cap:hover::before { opacity: 1; }
.cap:hover { background: var(--card); }
.cap__ico {
  width: 42px; height: 42px; border: 1px solid var(--line-hi); border-radius: 10px;
  display: grid; place-items: center; color: var(--acc); margin-bottom: 20px;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.cap:hover .cap__ico { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-dim); }
.cap__ico svg { width: 20px; height: 20px; }
.cap__n {
  position: absolute; top: clamp(22px, 2.4vw, 34px); right: clamp(22px, 2.4vw, 34px);
  font-family: var(--mono); font-size: 10.5px; color: var(--fg-faint);
}
.cap__t {
  font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 550; letter-spacing: -0.028em; line-height: 1.14;
}
.cap__c { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   13. Service rows
   -------------------------------------------------------------------------- */

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(16px, 2.6vw, 44px);
  padding-block: clamp(22px, 2.6vw, 40px);
  border-bottom: 1px solid var(--line); align-items: start;
}
.row__n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--fg-faint); padding-top: 7px; }
.row__t {
  font-family: var(--display); font-size: clamp(21px, 2.4vw, 34px);
  font-weight: 550; letter-spacing: -0.038em; line-height: 1.05;
}
.row__c { font-size: 15.5px; line-height: 1.62; color: var(--fg-muted); max-width: 56ch; }
.row__l { margin-top: 18px; display: grid; gap: 9px; }
.row__l li { display: flex; gap: 11px; align-items: baseline; font-size: 14.5px; color: var(--fg); }
.row__l li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc);
  flex: none; transform: translateY(-2px);
}
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row__n { padding-top: 0; }
}

/* --------------------------------------------------------------------------
   14. Price cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.pc {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card);
  transition: border-color .4s var(--ease), transform .4s var(--ease), background-color .4s var(--ease);
}
.pc:hover { border-color: var(--line-hi); transform: translateY(-4px); background: var(--card-hi); }
.pc--hot { border-color: rgba(0, 229, 160, .45); background: rgba(0, 229, 160, .045); }
.pc--hot:hover { border-color: var(--acc); }

.pc__badge {
  position: absolute; top: -10px; left: clamp(20px, 2.2vw, 30px);
  background: var(--acc); color: #04150f;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
}
.pc__k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--acc);
}
.pc__t {
  margin-top: 12px; font-family: var(--display); font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 550; letter-spacing: -0.032em; line-height: 1.12;
}
.pc__note { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--fg-muted); }
.pc__from {
  margin-top: 18px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint);
}
.pc__p {
  margin-top: 4px; font-family: var(--display); font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.pc__per { font-size: 14px; font-weight: 450; letter-spacing: -0.01em; color: var(--fg-muted); }
.pc__sub {
  margin-top: 18px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint);
}
.pc__l { margin-top: 10px; display: grid; }
.pc__l li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 14px; line-height: 1.45; color: var(--fg-muted);
}
.pc__l li::before {
  content: ""; width: 13px; height: 13px; flex: none; margin-top: 4px;
  background-color: var(--acc);
  -webkit-mask: var(--check-svg) center / contain no-repeat;
  mask: var(--check-svg) center / contain no-repeat;
}
.pc__foot { margin-top: auto; padding-top: 22px; }
.pc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pc__tags span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 100px; color: var(--fg-muted);
}

.catgroup { margin-top: clamp(34px, 4vw, 60px); }
.catgroup:first-of-type { margin-top: 0; }
.catgroup__h {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: clamp(18px, 2.2vw, 30px);
}

/* --------------------------------------------------------------------------
   15. Process
   -------------------------------------------------------------------------- */

.proc { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 3.4vw, 68px); align-items: start; }
.proc__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.proc__bar { margin-top: 22px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.proc__bar i { position: absolute; inset: 0 100% 0 0; background: var(--acc); transition: right .25s linear; }
.step {
  padding-block: clamp(18px, 2.2vw, 32px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 62px 1fr; gap: clamp(12px, 1.8vw, 26px);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em;
  color: var(--acc); padding-top: 5px;
}
.step__t { font-family: var(--display); font-size: clamp(18px, 1.8vw, 26px); font-weight: 550; letter-spacing: -0.032em; line-height: 1.1; }
.step__c { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--fg-muted); max-width: 52ch; }
.step__l { margin-top: 14px; display: grid; gap: 7px; }
.step__l li { font-size: 14px; color: var(--fg-muted); display: flex; gap: 10px; align-items: baseline; }
.step__l li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-faint); flex: none; }
@media (max-width: 940px) {
  .proc { grid-template-columns: 1fr; }
  .proc__aside { position: relative; top: auto; }
  .step { grid-template-columns: 48px 1fr; }
}

/* --------------------------------------------------------------------------
   16. Chips + two-col
   -------------------------------------------------------------------------- */

.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px; }
.chip {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; background: var(--card); color: var(--fg);
}
.chip::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background-color: var(--acc);
  -webkit-mask: var(--check-svg) center / contain no-repeat;
  mask: var(--check-svg) center / contain no-repeat;
}

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.4vw, 60px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
@media (max-width: 860px) { .sticky { position: relative; top: auto; } }

/* --------------------------------------------------------------------------
   17. Marquee
   -------------------------------------------------------------------------- */

.mq {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: 14px; background: var(--bg-1);
}
.mq__track { display: flex; width: max-content; animation: mq 32s linear infinite; }
.mq:hover .mq__track { animation-play-state: paused; }
.mq__i {
  display: inline-flex; align-items: center; gap: 26px; padding-right: 26px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-muted); white-space: nowrap;
}
.mq__i::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq__track { animation: none; } }

/* --------------------------------------------------------------------------
   18. Form
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.form__g { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form__g { grid-template-columns: 1fr; } }
.f--full { grid-column: 1 / -1; }

.field label {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-muted); margin-bottom: 9px;
}
.field .req { color: var(--acc); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, .025); color: var(--fg);
  font-size: 15px; font-family: var(--body);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23878ea3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field select option { background: var(--bg-2); color: var(--fg); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim);
}

.check {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
  font-size: 13.5px; line-height: 1.55; color: var(--fg-muted);
}
.check input { width: 17px; height: 17px; flex: none; margin-top: 2px; accent-color: var(--acc); cursor: pointer; }
.check a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }

.done {
  display: none; padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid rgba(0, 229, 160, .35); border-radius: var(--r-lg);
  background: rgba(0, 229, 160, .05); text-align: center;
}
.done.is-on { display: block; }
.done__i {
  width: 52px; height: 52px; border-radius: 50%; background: var(--acc);
  display: grid; place-items: center; margin: 0 auto 20px;
}

.info { display: grid; border-top: 1px solid var(--line); }
.info > div {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding-block: 16px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.info dt { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint); }
.info dd { font-family: var(--display); font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; letter-spacing: -0.025em; }
.info dd a:hover { color: var(--acc); }
@media (max-width: 560px) { .info > div { grid-template-columns: 1fr; gap: 5px; } }

/* --------------------------------------------------------------------------
   19. CTA + footer
   -------------------------------------------------------------------------- */

.cta {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(58px, 7vw, 116px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(0,229,160,.09), transparent 70%),
    var(--bg-1);
}
.cta__t { max-width: 17ch; margin-inline: auto; }
.cta__a { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(40px, 4.6vw, 68px); }
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(24px, 3vw, 56px);
  padding-bottom: clamp(28px, 3.4vw, 50px);
}
.footer__b { margin-top: 18px; max-width: 42ch; font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); }
.footer__c { margin-top: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--fg-muted); }
.footer__c a:hover { color: var(--acc); }
.footer__h {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg-faint); margin-bottom: 16px;
}
.footer__l { display: grid; gap: 10px; }
.footer__l a { font-size: 14.5px; color: var(--fg-muted); transition: color .3s, transform .3s; display: inline-block; }
.footer__l a:hover { color: var(--acc); transform: translateX(3px); }
.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-block: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-faint);
}
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   20. Reveal utilities
   -------------------------------------------------------------------------- */

[data-rv] { opacity: 0; transform: translateY(20px); }
[data-rv].in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-rv-d="1"].in { transition-delay: .07s; }
[data-rv-d="2"].in { transition-delay: .14s; }
[data-rv-d="3"].in { transition-delay: .21s; }
[data-rv-d="4"].in { transition-delay: .28s; }

/* headline line masks */
.lm { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lm > span { display: block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  .lm > span { transform: none !important; }
  .hero__rain { display: none; }
}

/* --------------------------------------------------------------------------
   21. Mobile density
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  .pad { padding-block: 40px; }
  .pad-sm { padding-block: 28px; }
  .shead { padding-bottom: 16px; margin-bottom: 18px; }
  .shead__t { margin-top: 12px; }
  .shead__s { margin-top: 10px; }

  .hero { min-height: 90svh; padding-bottom: 32px; }
  .hero__lede { margin-top: 14px; }
  .hero__actions { margin-top: 22px; }
  .hero__meta { margin-top: 22px; padding-top: 16px; }
  .term__body { min-height: 190px; font-size: 11.5px; }

  .cap { padding: 18px; }
  .cap__ico { width: 38px; height: 38px; margin-bottom: 14px; }
  .row { padding-block: 18px; }
  .step { padding-block: 16px; }
  .pc { padding: 18px; }
  .pc__l li { padding: 7px 0; font-size: 13.5px; }
  .cards { gap: 12px; }
  .cta { padding-block: 46px; }
  .footer { padding-top: 32px; }
  .footer__top { padding-bottom: 24px; }
}

@media (max-width: 460px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .btn--lg { padding: 15px 24px; font-size: 15px; }
  .hero__meta span:nth-child(n + 3) { display: none; }
}

/* --------------------------------------------------------------------------
   22. Outbound link to the main HyperWeb site

   Carries the marketing site's blue rather than this site's green, so the
   colour previews the destination. Brand blue (#3A52E8) only hits ~3.3:1 on
   this near-black canvas, so the resting state uses a lifted blue at ~6:1
   and the hover fills with the true brand blue behind white text.
   -------------------------------------------------------------------------- */

.nav__home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(110, 134, 255, 0.4);
  border-radius: 100px;
  background: rgba(58, 82, 232, 0.14);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e86ff;
  white-space: nowrap;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__home svg { width: 12px; height: 12px; flex: none; }
.nav__home:hover {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  transform: translateY(-1px);
}

.drawer__home { color: #6e86ff !important; }
