@font-face {
  font-family: "Recursive";
  src: url("../fonts/Recursive-Variable.woff2") format("woff2");
  font-weight: 300 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070a12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);

  --trust: #4cc9f0;
  /* blue = trust */
  --secure: #2ee59d;
  /* green = success */
  --alert: #ff5c7a;
  /* red/pink = incident */
  --focus: #ffb020;
  /* amber = attention */

  --glow-trust: 0 0 30px rgba(76, 201, 240, 0.18);
  --glow-secure: 0 0 30px rgba(46, 229, 157, 0.18);
  --glow-secure-btn: 0 0 18px rgba(46, 229, 157, 0.22);
  --glow-alert: 0 0 30px rgba(255, 92, 122, 0.18);
  --glow-focus: 0 0 30px rgba(255, 176, 32, 0.16);

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.45);

  /* Z-Index System */
  --z-base: 0;
  --z-overlay: 10;
  --z-rail: 100;
  --z-topbar: 200;
  --z-burger: 300;
  --z-lightbox: 1000;

  /* Burger menu */
  --burger-menu-size: 21px;

  /* Ratios */
  --burger-line-height-ratio: 0.107;

  /* Wrapper scale (visual padding) */
  --burger-wrapper-scale: 1.46;

  /* Colors */
  --burger-bg: #2ee59d;
  --burger-bg-active: #4cc9f0;
  --burger-line: #fff;
  --burger-glow: rgba(46, 229, 157, 0.18);

  --max: 1120px;
  --mono:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --final-sans: "Recursive", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  backface-visibility: hidden;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}
/*
body {
  background:
    radial-gradient(
      1400px 900px at 18% -12%,
      rgba(76, 201, 240, 0.14),
      transparent 72%
    ),
    radial-gradient(
      1300px 900px at 85% -10%,
      rgba(46, 229, 157, 0.11),
      transparent 74%
    ),
    radial-gradient(
      1400px 1000px at 55% 115%,
      rgba(255, 92, 122, 0.08),
      transparent 76%
    ),
    radial-gradient(
      1200px 900px at 50% 40%,
      rgba(255, 176, 32, 0.05),
      transparent 80%
    ),
    linear-gradient(180deg, #060814 0%, #070a12 55%, #050610 100%);
}
*/

body {
  margin: 0;
  font-family: var(--mono);
  letter-spacing: -0.01em;
  color: var(--text);
  background: linear-gradient(180deg, #060814 0%, #070a12 55%, #050610 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/*
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    1200px 800px at 50% 20%,
    rgba(255, 255, 255, 0.04),
    transparent 70%
  );
  mix-blend-mode: overlay;
  opacity: 0.22;
}
*/
/*
.grid-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.12;
  z-index: var(--z-base);
  
  background-image:
  linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  
  /* Smooth, wide fade — no harsh spotlight */
/*mask-image: radial-gradient(
    1600px 900px at 50% 0%,
    black 70%,
    transparent 92%
    );
    pointer-events: none;
  }
*/

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(
      1400px 900px at 18% -12%,
      rgba(76, 201, 240, 0.14),
      transparent 72%
    ),
    radial-gradient(
      1300px 900px at 85% -10%,
      rgba(46, 229, 157, 0.11),
      transparent 74%
    ),
    radial-gradient(
      1400px 1000px at 55% 115%,
      rgba(255, 92, 122, 0.08),
      transparent 76%
    ),
    linear-gradient(180deg, #060814 0%, #070a12 55%, #050610 100%);

  will-change: transform;
  transform: translateZ(0);
}

/* ====================== */
/*  ICON SYSTEM (GLOBAL)  */
/* ====================== */
i.bx,
i.bi {
  font-size: 1.05em;
  /* medium, readable */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62);
  transition:
    color 0.25s ease,
    transform 0.2s ease,
    filter 0.25s ease;
}

/* slightly tighter spacing when inline */
i.bx + span,
i.bi + span {
  margin-left: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell,
.layout,
.hero-card,
.card,
.section-title.big {
  position: relative;
  isolation: isolate;
}

/* Page shell */
.wrap {
  max-width: 1560px;
}

/* Main page shell: rail + content */
.shell {
  max-width: 1560px;
  /* same as .wrap so layout is consistent */
  margin: 0 auto;
  padding: 24px 24px 0;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-topbar);
  background: rgba(7, 10, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  background-clip: padding-box;
  will-change: backdrop-filter;
  transform: translateZ(0);
}

.topbar .wrap {
  display: flex;
  padding: 14px 24px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand span {
  display: inherit;
}

.brand i {
  margin-right: 12px;
  color: var(--secure);
}

/* ======================== */
/*        Burger Menu       */
/* ======================== */
/* Wrapper (true circle, no clipping) */
#wrapper {
  position: fixed;

  width: calc(var(--burger-menu-size) * var(--burger-wrapper-scale));
  height: calc(var(--burger-menu-size) * var(--burger-wrapper-scale));

  background: var(--burger-bg);
  border-radius: 50%;

  top: 7px;
  right: 21px;
  z-index: var(--z-burger);

  cursor: pointer;
  overflow: visible;

  display: none;
  place-items: center;

  transform: translateZ(0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  pointer-events: auto;
}

#wrapper::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;

  background: radial-gradient(
    circle at center,
    var(--burger-bg-active) 60%,
    transparent 61%
  );

  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);

  z-index: 0;
}

#wrapper.active::before {
  transform: scale(1.05);
  -webkit-filter: drop-shadow(0 0 6px var(--burger-glow));
  filter: drop-shadow(0 0 6px var(--burger-glow));
  animation: neon-pulse 1.6s ease-out 1 0.35s;
  box-shadow: 0 10px 25px rgba(13, 97, 241, 0.35);
}

#wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(13, 97, 241, 0.35);
}

#wrapper:active {
  background: var(--burger-bg-active);
  transform: scale(0.97);
  box-shadow: 0 10px 25px rgba(13, 97, 241, 0.35);
}

/* Icon container */
.circle {
  position: relative;
  width: var(--burger-menu-size);
  height: var(--burger-menu-size);
  z-index: 1;
}

/* Burger lines */
.line {
  position: absolute;
  width: 100%;
  height: calc(var(--burger-menu-size) * var(--burger-line-height-ratio));

  background-color: var(--burger-line);
  border-radius: calc(
    var(--burger-menu-size) * var(--burger-line-height-ratio)
  );

  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;

  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    top 0.45s ease,
    opacity 0.25s ease;
}

.top {
  top: calc(var(--burger-menu-size) * 0.18);
}

.middle {
  top: calc(var(--burger-menu-size) * 0.45);
}

.bottom {
  top: calc(var(--burger-menu-size) * 0.71);
}

/* Close state */
.close .top,
.close .bottom {
  top: calc(var(--burger-menu-size) * 0.45);
  transform: rotate(225deg);
}

.close .bottom {
  opacity: 0;
}

.close .middle {
  transform: rotate(135deg);
}

/* ================== */
/*       NavBar       */
/* ================== */

nav {
  display: flex;
  gap: 14px;
  margin: 0 24px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

nav a {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

nav a:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* LAYOUT with Progress Rail */
.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  /* real left column */
  gap: 22px;
  align-items: start;
}

/* PROGRESS RAIL */
.rail {
  position: sticky;
  top: 85px;
  left: 0;
  /* below the topbar */
  align-self: start;
  padding: 16px;
  width: 240px;
  height: calc(100vh - 110px);
  display: block;
  pointer-events: auto;
  /* allow clicking */
  opacity: 0.95;
  z-index: var(--z-rail);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  /* subtle internal scroll */
  scrollbar-width: thin;
  border: none;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;

  background-clip: padding-box;
  will-change: backdrop-filter;
  transform: translateZ(0);
  contain: layout style paint;
}

/* Make the rail links not spill out */
.rail a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 9px 10px;
  border-radius: 12px;

  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;

  font-size: 13px;
  line-height: 1.2;

  /* prevent spill */
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rail icons */
.rail a i {
  font-size: 1.15em;
  color: rgba(255, 255, 255, 0.45);
}

/* Hover = slight lift */
.rail a:hover i {
  color: rgba(255, 255, 255, 0.75);
}

/* Active section = TRUST tone */
.rail a.active i {
  color: var(--trust);
  filter: drop-shadow(0 0 6px rgba(76, 201, 240, 0.35));
}

.rail a:hover {
  background: rgba(76, 201, 240, 0.06);
  border-color: rgba(76, 201, 240, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.rail h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.35px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.rail .marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  flex: 0 0 auto;
}

.rail a.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
}

.rail a.active .marker {
  background: var(--trust);
  border-color: rgba(76, 201, 240, 0.4);
  box-shadow: var(--glow-trust);
}

.rail .hint {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
}

.content {
  min-width: 0;
  /* important so grid children don't overflow */
}

/* HERO */
.hero {
  padding: 30px 0 8px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-card:before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(76, 201, 240, 0.35),
    transparent 60%
  );
  opacity: 0.55;
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.kicker b {
  color: var(--text);
  font-weight: 700;
}

.kicker i {
  font-size: 1.2em;
  color: var(--trust);
  filter: drop-shadow(0 0 6px rgba(76, 201, 240, 0.25));
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.06;
  /* tighter = grouped */
  letter-spacing: -0.5px;
  /* subtle cohesion */
  text-wrap: balance;
}

h1 br {
  display: block;
  content: "";
  margin-top: 4px;
}

/* Animated H1 */
.hero h1 {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;

  background: linear-gradient(
    120deg,
    /* TRUST micro-spectrum */ color-mix(in srgb, var(--trust) 92%, white) 0%,
    color-mix(in srgb, var(--trust) 96%, white) 2%,
    color-mix(in srgb, var(--trust) 98%, white) 4%,
    var(--trust) 6%,
    color-mix(in srgb, var(--trust) 94%, black) 8%,
    color-mix(in srgb, var(--trust) 88%, black) 10%,

    /* TRUST → SECURE blend */
    color-mix(in srgb, var(--trust) 60%, var(--secure)) 12%,
    color-mix(in srgb, var(--trust) 40%, var(--secure)) 14%,

    /* SECURE micro-spectrum */ color-mix(in srgb, var(--secure) 96%, white) 16%,
    var(--secure) 18%,
    color-mix(in srgb, var(--secure) 92%, black) 20%,

    /* SECURE → FOCUS blend */
    color-mix(in srgb, var(--secure) 60%, var(--focus)) 22%,
    color-mix(in srgb, var(--secure) 40%, var(--focus)) 24%,

    /* FOCUS micro-spectrum */ color-mix(in srgb, var(--focus) 94%, white) 26%,
    var(--focus) 28%,
    color-mix(in srgb, var(--focus) 90%, black) 30%,

    /* FOCUS → ALERT blend (VERY soft) */
    color-mix(in srgb, var(--focus) 70%, var(--alert)) 32%,
    color-mix(in srgb, var(--focus) 50%, var(--alert)) 34%,

    /* ALERT micro-spectrum */ color-mix(in srgb, var(--alert) 96%, white) 36%,
    var(--alert) 38%,
    color-mix(in srgb, var(--alert) 90%, black) 40%,

    /* ALERT → TRUST return blend */
    color-mix(in srgb, var(--alert) 55%, var(--trust)) 42%,
    color-mix(in srgb, var(--alert) 35%, var(--trust)) 44%,

    /* TRUST closing spectrum */ color-mix(in srgb, var(--trust) 96%, white) 46%,
    var(--trust) 50%,
    color-mix(in srgb, var(--trust) 88%, black) 54%
  );

  background-size: 900% 100%;
  background-position: 0% 50%;
  will-change: background-position;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* PREMIUM = SLOWER */
  /* animation: h1-spectrum-drift 28s linear infinite; */
  animation: h1-spectrum-drift 28s linear infinite;
  filter: drop-shadow(0 0 10px rgba(76, 201, 240, 0.12));
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 64ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.chip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Buttons icons */
.btn i {
  font-size: 1.15em;
}

/* Primary action */
.btn.primary i {
  color: var(--secure);
}

/* Secondary buttons */
.btn:not(.primary) i {
  color: rgba(255, 255, 255, 0.75);
}

.btn:hover i {
  transform: translateY(-1px);
}

.btn.primary {
  border-color: rgba(46, 229, 157, 0.36);
  background: rgba(46, 229, 157, 0.1);
  box-shadow: var(--glow-secure-btn);
}

.btn.primary {
}

.btn.primary:hover {
  background: rgba(46, 229, 157, 0.14);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.mini h3 {
  display: flex;
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.2px;
}

.mini h3 i {
  font-size: 1.15em;
  margin-right: 6px;
}

/* semantic hints */
.mini h3 i.bx-error-circle {
  color: var(--alert);
}

.mini h3 i.bx-git-branch {
  color: var(--secure);
}

.kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.kv b {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.status-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.secure {
  background: var(--secure);
  box-shadow: var(--glow-secure);
}

.dot.trust {
  background: var(--trust);
  box-shadow: var(--glow-trust);
}

.dot.alert {
  background: var(--alert);
  box-shadow: var(--glow-alert);
}

.dot.focus {
  background: var(--focus);
  box-shadow: var(--glow-focus);
}

/* METRICS STRIP (compact, high signal) */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metrics span {
  display: inline-flex;
}

.metric {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 12px 12px;
  overflow: hidden;
  position: relative;
}

.metric .k {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.25px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.metric .v {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
}

.metric .s {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
}

.metric .k i {
  font-size: 1.1em;
  margin-right: 6px;
  vertical-align: middle;
}

/* tone inheritance */
.metric[data-tone="trust"] i {
  color: var(--trust);
}

.metric[data-tone="secure"] i {
  color: var(--secure);
}

.metric[data-tone="alert"] i {
  color: var(--alert);
}

.metric[data-tone="focus"] i {
  color: var(--focus);
}

.metric[data-tone="secure"] {
  border-color: rgba(46, 229, 157, 0.18);
}

.metric[data-tone="trust"] {
  border-color: rgba(76, 201, 240, 0.18);
}

.metric[data-tone="alert"] {
  border-color: rgba(255, 92, 122, 0.18);
}

.metric[data-tone="focus"] {
  border-color: rgba(255, 176, 32, 0.18);
}

.metric[data-tone="secure"] .v {
  color: rgba(46, 229, 157, 0.95);
}

.metric[data-tone="trust"] .v {
  color: rgba(76, 201, 240, 0.95);
}

.metric[data-tone="alert"] .v {
  color: rgba(255, 92, 122, 0.95);
}

.metric[data-tone="focus"] .v {
  color: rgba(255, 176, 32, 0.95);
}

/* Sections */
section {
  margin: 36px 0;
}

.chapter {
  margin: 30px 0 14px;
  padding: 14px 0 0;
}

.chapter-kicker {
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.chapter-title {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.25px;
}

.chapter-line {
  margin-top: 12px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(76, 201, 240, 0),
    rgba(76, 201, 240, 0.55),
    rgba(46, 229, 157, 0.35),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  filter: drop-shadow(0 0 14px rgba(76, 201, 240, 0.22));
}

/* ===== New big section heading pattern ===== */
.section-title.big {
  margin: 32px 0 14px;
  padding: 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.section-title.big:before {
  content: "";
  position: absolute;
  inset: -120px -140px auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(76, 201, 240, 0.18),
    transparent 60%
  );
  opacity: 0.75;
  pointer-events: none;
}

.section-title.big h2 {
  margin: 6px 0 6px;
  font-size: clamp(18px, 2.05vw, 26px);
  letter-spacing: -0.2px;
  line-height: 1.15;
}

.section-title.big p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  max-width: 80ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow i {
  font-size: 1.1em;
  margin-right: 6px;
}

/* inherit eyebrow tone */
.eyebrow.trust i {
  color: var(--trust);
}

.eyebrow.secure i {
  color: var(--secure);
}

.eyebrow.alert i {
  color: var(--alert);
}

.eyebrow.focus i {
  color: var(--focus);
}

.eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* tone variants (match your palette) */
.eyebrow.trust {
  border-color: rgba(76, 201, 240, 0.28);
  box-shadow: var(--glow-trust);
}

.eyebrow.trust:before {
  background: var(--trust);
  box-shadow: var(--glow-trust);
  border-color: rgba(76, 201, 240, 0.45);
}

.eyebrow.secure {
  border-color: rgba(46, 229, 157, 0.28);
  box-shadow: var(--glow-secure);
}

.eyebrow.secure:before {
  background: var(--secure);
  box-shadow: var(--glow-secure);
  border-color: rgba(46, 229, 157, 0.45);
}

.eyebrow.alert {
  border-color: rgba(255, 92, 122, 0.28);
  box-shadow: var(--glow-alert);
}

.eyebrow.alert:before {
  background: var(--alert);
  box-shadow: var(--glow-alert);
  border-color: rgba(255, 92, 122, 0.45);
}

.eyebrow.focus {
  border-color: rgba(255, 176, 32, 0.28);
  box-shadow: var(--glow-focus);
}

.eyebrow.focus:before {
  background: var(--focus);
  box-shadow: var(--glow-focus);
  border-color: rgba(255, 176, 32, 0.45);
}

.card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  /* was 0.05 */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.card .cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.cap .left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cap .title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.cap .desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.tag {
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  align-self: flex-start;
  white-space: nowrap;
}

.tag.trust {
  border-color: rgba(76, 201, 240, 0.3);
  box-shadow: var(--glow-trust);
}

.tag.secure {
  border-color: rgba(46, 229, 157, 0.3);
  box-shadow: var(--glow-secure);
}

.tag.alert {
  border-color: rgba(255, 92, 122, 0.3);
  box-shadow: var(--glow-alert);
}

.tag.focus {
  border-color: rgba(255, 176, 32, 0.3);
  box-shadow: var(--glow-focus);
}

.embed {
  width: 100%;
  display: block;
  background: rgba(0, 0, 0, 0.25);
}

.svg-box {
  width: 100%;
  display: block;
  border: 0;
}

/* responsive frame with dynamic aspect ratio */
.svg-frame {
  width: 100%;
  --ar: 16 / 9;
  /* fallback */
  aspect-ratio: var(--ar);
  min-height: 120px;
  /* prevent tiny frames */
  background: #0d1117;
  position: relative;
  display: flex;
  overflow: hidden;
}

/* Make the image fill the frame */
.svg-frame > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* KEY LEARNINGS (micro, no clutter) */
.learn {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.learn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.learn-head .label {
  font-size: 11px;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Key learnings icon */
.learn-head .label i {
  font-size: 1.8em;
  color: var(--glow-alert);
  /* amber = insight / attention */
  filter: drop-shadow(0 0 6px var(--alert));
}

.learn-head .label .spark {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.learn-item {
  border-radius: 14px;
  padding: 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.45;
}

.learn-item b {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.learn-item.trust {
  border-color: rgba(76, 201, 240, 0.18);
}

.learn-item.secure {
  border-color: rgba(46, 229, 157, 0.18);
}

.learn-item.alert {
  border-color: rgba(255, 92, 122, 0.18);
}

.learn-item.focus {
  border-color: rgba(255, 176, 32, 0.18);
}

/* Proof grid */
.proof {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

/* Proof card */
.shot {
  grid-column: span 6;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* Dynamic ratio container (auto set by JS) */
.proof-frame {
  width: 100%;
  --ar: 16 / 9;
  /* fallback */
  aspect-ratio: var(--ar);
  background: rgba(0, 0, 0, 0.22);
  position: relative;
}

/* Fill the frame without cropping (keeps full screenshot visible) */
.proof-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* IMPORTANT: no cropping */
  display: block;
  filter: saturate(1.08) contrast(1.04);
}

.shot .label {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.code {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  padding: 14px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: auto;
  line-height: 1.55;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ================================
DOWNLOADABLE — INTERACTIVE PRESENCE
================================ */

.download-presence {
  padding: 110px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* ambient field (hidden by default) */
.download-presence::before {
  content: "";
  position: absolute;
  inset: -40%;
  /*
  background-image: radial-gradient(
    rgba(76, 201, 240, 0.14) 0%,
    rgba(76, 201, 240, 0.14) 1%,
    transparent 70%
  );
    */
  background-image: radial-gradient(
    rgba(76, 201, 240, 0.08) 0%,
    transparent 70%
  );

  background-size: 600px 300px;
  background-position: 50% 60%;
  background-repeat: no-repeat;

  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* container */
.download-presence-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===== IDLE MESSAGE (VISIBLE FIRST) ===== */
.download-idle {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.download-idle h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.45px;
  text-align: start;
}

.download-idle h3 i {
  color: var(--trust);
}

.download-idle p {
  margin: 0 auto;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ===== ACTIVE CONTENT (HIDDEN FIRST) ===== */
.download-active {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* active typography */
.download-active h3 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.3px;
}

.download-active p {
  margin: 0 auto 26px;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* the single button */
.download-active a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.35px;

  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.download-active a:hover {
  background: rgba(46, 229, 157, 0.16);
  border-color: rgba(46, 229, 157, 0.45);
  box-shadow: 0 0 40px rgba(46, 229, 157, 0.25);
}

/* ===== INTERACTION ===== */
.download-presence:hover::before {
  opacity: 1;
}

.download-presence:hover .download-idle {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.download-presence:hover .download-active {
  opacity: 1;
  transform: translateY(0);
}

footer {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.footer-line {
  margin: 0;
  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(76, 201, 240, 0),
    rgba(76, 201, 240, 0.55),
    rgba(46, 229, 157, 0.35),
    rgba(255, 255, 255, 0.1),
    rgba(76, 201, 240, 0)
  );

  background-size: 300% 100%;
  background-position: 0% 50%;

  filter: drop-shadow(0 0 14px rgba(76, 201, 240, 0.22));

  animation: footer-line-flow 9s linear infinite;
}

/* ==========================================
FINAL SECTION — TYPOGRAPHIC RUPTURE
========================================== */

.final-section {
  margin: 70px 0 0 0;
  font-family: var(--final-sans);
  font-variation-settings:
    "CASL" 0,
    /* keep it serious */ "slnt" 0,
    /* no slant */ "opsz" 32;
  /* large optical size for clarity */
}

.final-section .download-idle h2 i {
  color: var(--trust);
  font-size: 1.25em;
  filter: drop-shadow(0 0 10px rgba(76, 201, 240, 0.35));
}

/* headings feel analytical, not headline-y */
.final-section h2,
.final-section h3 {
  font-family: var(--final-sans);
  font-weight: 520;
  letter-spacing: -0.01em;
}

/* paragraphs feel like a report conclusion */
.final-section p {
  font-weight: 420;
  letter-spacing: 0;
}

.download-presence-inner {
  position: relative;
}

.download-active {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.download-idle {
  transition: opacity 0.35s ease;
}

/* interactive presence specific tuning */
.final-section .download-idle h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(26px, 2.8vw, 34px);
}

.final-section .download-idle p {
  max-width: 74ch;
  /* feels more “document-like” */
}

/* revealed state feels more precise */
.final-section .download-active h3 {
  font-size: 20px;
  font-weight: 600;
}

.final-section .download-active p {
  max-width: 66ch;
}

/* button feels intentional, not CTA-ish */
.final-section .download-active a {
  font-weight: 700;
  letter-spacing: 0.25px;
}

.final-section .download-active a i {
  color: var(--secure);
}

/* optional: reduce glow slightly ONLY here */
.final-section .download-active a:hover {
  box-shadow: 0 0 28px rgba(46, 229, 157, 0.22);
}

/* ==========================================
FLOATING ARCHIVE ICON (CLOUD-LIKE)
========================================== */

.float-archive {
  display: inline-block;
  margin-right: 8px;

  color: var(--trust);
  font-size: 1.25em;

  /* soft authority glow */
  filter: drop-shadow(0 0 10px rgba(76, 201, 240, 0.35));

  /* floating motion */
  animation:
    archive-float 6.5s ease-in-out infinite,
    archive-breathe 5.5s ease-in-out infinite;

  will-change: transform, filter;
}

/* Clickable proof images */
.proof-frame > img {
  cursor: pointer;
}

/* clickable affordance */
.proof-frame > img.arch-zoom {
  cursor: zoom-in;
}

/* default */
.arch-lightbox img {
  cursor: grab;
}

/* dragging */
.arch-lightbox img.dragging {
  cursor: grabbing;
}

/* zoom feedback */
.arch-lightbox img.zoom-in {
  cursor: zoom-in;
}

.arch-lightbox img.zoom-out {
  cursor: zoom-out;
}

/* subtle affordance on hover */
.proof-frame:hover {
  outline: 1px solid rgba(76, 201, 240, 0.35);
  box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.25);
}

/* ============================
   FULLSCREEN IMAGE VIEWER
============================ */

.image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 18, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: var(--z-lightbox);

  display: flex;
  align-items: center;
  justify-content: center;

  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.image-viewer.active {
  opacity: 1;
  pointer-events: auto;
}

.image-viewer img {
  max-width: 96vw;
  max-height: 94vh;
  object-fit: contain;

  border-radius: 16px;
  background: #0d1117;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75);

  cursor: zoom-out;
}

/* Close hint (top-right) */
.image-viewer::after {
  content: "✕";
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.image-viewer img {
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.image-viewer.active img {
  transform: scale(1);
}

/* =================================== */
/*              Animation              */
/* =================================== */

@keyframes neon-pulse {
  0% {
    filter: drop-shadow(0 0 6px var(--burger-glow));
  }

  50% {
    filter: drop-shadow(0 0 14px var(--burger-glow));
  }

  100% {
    filter: drop-shadow(0 0 6px var(--burger-glow));
  }
}

@keyframes h1-spectrum-drift {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}
/* vertical cloud-like float */
@keyframes archive-float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

/* very subtle glow breathing (NOT flashing) */
@keyframes archive-breathe {
  0% {
    filter: drop-shadow(0 0 8px rgba(76, 201, 240, 0.28));
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(76, 201, 240, 0.42));
  }

  100% {
    filter: drop-shadow(0 0 8px rgba(76, 201, 240, 0.28));
  }
}

/* smooth flowing motion */
@keyframes footer-line-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* =================================== */
/*            Responsivness            */
/* =================================== */

@media (min-width: 1101px) {
  .download-presence-inner:hover .download-idle {
    opacity: 0;
  }

  .download-presence-inner:hover .download-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Only desktop gets containment */
  .topbar {
    contain: layout style paint;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  body {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
  }

  section#top {
    padding-top: 0;
  }

  section#top > .hero-card {
    margin: 39px 0 0;
  }

  .rail {
    position: fixed;
    top: 46px;
    left: 0;
    height: calc(100vh - 46px);
    width: 260px;
    padding: 30px 16px;

    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);

    border: 1px solid var(--stroke);
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
  }

  .layout:not(.rail-closed) .rail {
    transform: translateX(0);
  }

  .layout {
    grid-template-columns: 1fr !important;
  }

  .shell {
    max-width: var(--max);
    padding-top: 0;
  }

  nav {
    display: none;
  }

  #wrapper {
    display: grid;
  }

  /* disable hover semantics */
  .download-presence-inner:hover .download-idle,
  .download-presence-inner:hover .download-active {
    opacity: initial;
    transform: initial;
  }

  /* active state */
  .download-presence-inner.is-active .download-idle {
    opacity: 0;
    pointer-events: none;
  }

  .download-presence-inner.is-active .download-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  section#top > .hero-card {
    margin: 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .shot {
    grid-column: span 12;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .brand span {
    font-size: 12px;
  }

  .brand i {
    margin-right: 13px;
  }
}

@media (max-width: 390px) {
  .brand span {
    font-size: 11px;
  }

  .brand i {
    margin-right: 14px;
  }
}

@media (max-width: 360px) {
  #wrapper {
    width: calc(2 * var(--burger-menu-size) * var(--burger-wrapper-scale) / 3);
    height: calc(2 * var(--burger-menu-size) * var(--burger-wrapper-scale) / 3);
  }
  .line {
    width: calc(2 * 100% / 3);
    height: calc(
      2 * var(--burger-menu-size) * var(--burger-line-height-ratio) / 3
    );
  }

  .circle {
    display: flex;
    justify-content: center;
  }

  .brand span {
    font-size: 10px;
  }

  .brand i {
    margin-right: 15px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .line,
  #wrapper {
    transition: none;
  }

  /* Motion safety */
  .hero h1 {
    animation: none;
    background-position: 50% 50%;
  }
}
