/* ===================================================================
   ICT TERMINAL PRO — DARK FUTURISTIC EXPERIENCE
   Design system: tokens, layout, components, motion, responsive.
   =================================================================== */

/* ---------------------------------------------------------------
   01. TOKENS
   --------------------------------------------------------------- */
:root {
  /* Surfaces */
  --ink: #05060a;
  --ink-2: #080a10;
  --ink-3: #0b0e15;
  --panel: #0c1018;
  --panel-2: #10141d;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-cyan: rgba(111, 242, 255, 0.34);

  /* Text */
  --text: #eef2f8;
  --muted: #939cad;
  --dim: #626b7c;

  /* Accents */
  --cyan: #6ff2ff;
  --blue: #3a7bff;
  --violet: #9a7bff;
  --emerald: #45f0a5;
  --amber: #ffc46b;
  --danger: #ff5f7a;

  --grad-cyan: linear-gradient(115deg, #6ff2ff 0%, #4f9bff 55%, #9a7bff 100%);
  --grad-panel: linear-gradient(160deg, rgba(20, 27, 40, 0.9), rgba(8, 11, 17, 0.9));
  --grad-text: linear-gradient(100deg, #ffffff 10%, #9fe9ff 52%, #b9a6ff 96%);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Metrics */
  --shell: 1320px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 76px;
}

/* ---------------------------------------------------------------
   02. RESET / BASE
   --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html:not(.js) {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body.is-loading,
body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
}

p {
  color: var(--muted);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: #cfe9ff;
  background: rgba(111, 242, 255, 0.08);
  border: 1px solid rgba(111, 242, 255, 0.16);
  border-radius: 5px;
  padding: 0.08em 0.38em;
}

::selection {
  background: rgba(111, 242, 255, 0.25);
  color: #fff;
}

:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 4px;
}

/* Scrollbar */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: #05060a;
  }

  ::-webkit-scrollbar-thumb {
    background: #1b2230;
    border-radius: 8px;
    border: 2px solid #05060a;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #2a3446;
  }
}

/* ---------------------------------------------------------------
   03. GLOBAL CHROME
   --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}

@keyframes grainShift {
  0%,
  100% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-2%, 1%);
  }

  40% {
    transform: translate(1%, -2%);
  }

  60% {
    transform: translate(-1%, 2%);
  }

  80% {
    transform: translate(2%, 1%);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-cyan);
  box-shadow: 0 0 14px rgba(111, 242, 255, 0.6);
}

/* Custom cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 400;
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  transition: opacity 0.3s ease;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(111, 242, 255, 0.55);
  background: rgba(111, 242, 255, 0.03);
  transition: width 0.28s var(--ease), height 0.28s var(--ease), opacity 0.3s ease,
    background-color 0.28s ease, border-color 0.28s ease;
}

body.has-pointer .cursor-dot,
body.has-pointer .cursor-ring {
  opacity: 1;
}

body.has-pointer .cursor-ring.is-hover {
  width: 62px;
  height: 62px;
  background: rgba(111, 242, 255, 0.09);
  border-color: rgba(111, 242, 255, 0.9);
}

body.has-pointer .cursor-ring.is-view {
  width: 82px;
  height: 82px;
  background: rgba(5, 6, 10, 0.45);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}

@media (hover: none),
(pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  width: min(420px, 78vw);
  position: relative;
  z-index: 2;
}

.preloader-brand {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}

.preloader-mark {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.03em;
}

.preloader-name {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.62);
}

.preloader-name b {
  color: #fff;
  font-weight: 600;
}

.preloader-meter {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preloader-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-cyan);
  box-shadow: 0 0 12px rgba(111, 242, 255, 0.7);
}

.preloader-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.preloader-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 3px);
  pointer-events: none;
}

/* ---------------------------------------------------------------
   04. BUTTONS / BADGES / LABELS
   --------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.btn svg {
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translate3d(0, 2px, 0);
}

.btn-primary {
  background: var(--grad-cyan);
  color: #041018;
  font-weight: 600;
  box-shadow: 0 8px 30px -12px rgba(111, 242, 255, 0.65);
}

.btn-primary:hover {
  box-shadow: 0 14px 44px -12px rgba(111, 242, 255, 0.85);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line-strong);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--line-cyan);
  background: rgba(111, 242, 255, 0.07);
  color: #fff;
  transform: translateY(-2px);
}

.btn-wa {
  background: rgba(69, 240, 165, 0.08);
  border-color: rgba(69, 240, 165, 0.32);
  color: #b8ffdc;
}

.btn-wa:hover {
  background: rgba(69, 240, 165, 0.16);
  border-color: rgba(69, 240, 165, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -18px rgba(69, 240, 165, 0.8);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 1.85rem;
  font-size: 0.94rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfd8e6;
  white-space: nowrap;
}

.badge-emerald {
  color: #a9ffd6;
  border-color: rgba(69, 240, 165, 0.3);
  background: rgba(69, 240, 165, 0.07);
}

.badge-amber {
  color: #ffdba6;
  border-color: rgba(255, 196, 107, 0.28);
  background: rgba(255, 196, 107, 0.06);
}

.badge-pulse::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseDot 2.2s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--line-strong);
}

.eyebrow i {
  font-style: normal;
  color: var(--cyan);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}

.ghost-btn:hover {
  color: #fff;
  border-color: var(--line-cyan);
  background: rgba(111, 242, 255, 0.06);
}

.ghost-btn[aria-pressed='true'] {
  color: var(--cyan);
  border-color: var(--line-cyan);
}

/* Reveal (progressive enhancement: hidden only when JS is present) */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------
   05. HEADER
   --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease,
    backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 10, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  flex: 0 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(111, 242, 255, 0.18), rgba(58, 123, 255, 0.06));
  display: grid;
  place-items: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.brand:hover .brand-mark {
  border-color: var(--line-cyan);
  box-shadow: 0 0 24px -6px rgba(111, 242, 255, 0.6);
}

.brand-mark img {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-text b {
  font-weight: 600;
}

.brand-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05rem 0.28rem;
  transform: translateY(-2px);
}

.nav-desktop {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
  transition: color 0.25s;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 0 auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.status-chip span {
  color: var(--emerald);
}

.status-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s, background-color 0.3s;
}

.menu-toggle:hover {
  border-color: var(--line-cyan);
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 1px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateX(-50%) translateY(2.5px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  transform: translateX(-50%) translateY(-2.5px) rotate(-45deg);
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(5, 6, 10, 0.97);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  overflow-y: auto;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 3rem;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(154, 123, 255, 0.12), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(111, 242, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.menu-overlay-inner {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
}

.menu-nav {
  display: flex;
  flex-direction: column;
}

.menu-link {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #dfe6f0;
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: color 0.3s, padding-left 0.4s var(--ease), opacity 0.5s var(--ease),
    transform 0.65s var(--ease);
}

.menu-overlay.is-open .menu-link {
  opacity: 1;
  transform: none;
}

.menu-overlay.is-open .menu-link:nth-child(1) { transition-delay: 0.06s; }
.menu-overlay.is-open .menu-link:nth-child(2) { transition-delay: 0.1s; }
.menu-overlay.is-open .menu-link:nth-child(3) { transition-delay: 0.14s; }
.menu-overlay.is-open .menu-link:nth-child(4) { transition-delay: 0.18s; }
.menu-overlay.is-open .menu-link:nth-child(5) { transition-delay: 0.22s; }
.menu-overlay.is-open .menu-link:nth-child(6) { transition-delay: 0.26s; }
.menu-overlay.is-open .menu-link:nth-child(7) { transition-delay: 0.3s; }
.menu-overlay.is-open .menu-link:nth-child(8) { transition-delay: 0.34s; }

.menu-link span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  transition: color 0.3s;
}

.menu-link:hover {
  color: var(--cyan);
  padding-left: 0.6rem;
}

.menu-link:hover span {
  color: var(--cyan);
}

.menu-aside {
  padding-bottom: 0.5rem;
}

.menu-aside-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 1rem;
}

.menu-contact {
  display: block;
  color: #dfe6f0;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  font-size: 0.95rem;
  transition: color 0.25s, border-color 0.25s;
}

.menu-contact:hover {
  color: var(--cyan);
  border-color: var(--line-cyan);
}

.menu-aside-note {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.8;
}

/* ---------------------------------------------------------------
   06. HERO
   --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(2rem, 4.5vw, 3.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.8;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 50% at 50% 34%, rgba(5, 6, 10, 0.38), rgba(5, 6, 10, 0.1) 60%, transparent 78%),
    radial-gradient(75% 55% at 50% 30%, rgba(58, 123, 255, 0.12), transparent 68%),
    radial-gradient(55% 45% at 85% 80%, rgba(154, 123, 255, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.66) 0%, rgba(5, 6, 10, 0.22) 38%, rgba(5, 6, 10, 0.88) 86%, var(--ink) 100%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 85%);
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.hero-kicker-note {
  color: var(--dim);
  font-size: 0.58rem;
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 15ch;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero-title .line>span {
  display: block;
}

.js .hero-title .line>span {
  transform: translate3d(0, 112%, 0);
}

body.is-ready .hero-title .line:nth-child(1)>span {
  animation: riseLine 1.25s var(--ease) 0.05s forwards;
}

body.is-ready .hero-title .line:nth-child(2)>span {
  animation: riseLine 1.25s var(--ease) 0.16s forwards;
}

@keyframes riseLine {
  to {
    transform: translate3d(0, 0, 0);
  }
}

.hero-title em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 2.4vw, 2rem);
  align-items: start;
  margin-bottom: 2rem;
  max-width: 760px;
}

.hero-desc {
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  line-height: 1.75;
  max-width: 54ch;
  color: #a8b2c2;
}

.hero-desc strong {
  color: #fff;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-perks li {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-perks li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0.8;
}

/* Product frame */
.product-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.95), rgba(7, 9, 14, 0.98));
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform-style: preserve-3d;
}

.frame-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(111, 242, 255, 0.5), rgba(154, 123, 255, 0.18) 40%, transparent 70%);
  opacity: 0.3;
  mask: linear-gradient(#000, transparent 45%);
  -webkit-mask: linear-gradient(#000, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.frame-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 20, 0.72);
}

.frame-dots {
  display: inline-flex;
  gap: 5px;
}

.frame-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a3342;
}

.frame-dots i:nth-child(1) {
  background: #ff5f57;
}

.frame-dots i:nth-child(2) {
  background: #febc2e;
}

.frame-dots i:nth-child(3) {
  background: #28c840;
}

.frame-title {
  flex: 1;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  color: var(--emerald);
}

.frame-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.frame-body {
  position: relative;
  z-index: 1;
  cursor: zoom-in;
  overflow: hidden;
  background: #000;
}

.frame-body img {
  width: 100%;
  transition: transform 1.1s var(--ease), filter 0.6s;
}

.frame-body:hover img {
  transform: scale(1.015);
}

.frame-zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(8px);
  font-size: 0.52rem;
  color: #d5dde9;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}

.frame-body:hover .frame-zoom {
  opacity: 1;
  transform: none;
}

/* HUD */
.hero-hud {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  display: flex;
  gap: 2rem;
  z-index: 3;
  pointer-events: none;
}

.hud-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hud-label {
  color: var(--dim);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
}

.hud-value {
  color: #cfd8e6;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 3;
}

.hero-scroll .mono {
  font-size: 0.52rem;
  color: var(--dim);
}

.hero-scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.6);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* Marquee */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: rgba(8, 10, 16, 0.6);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marqueeMove 44s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.marquee-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.55;
}

@keyframes marqueeMove {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------------------------------------------------------------
   07. SECTIONS / HEADINGS
   --------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 9rem) 0;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 900px;
}

.section-head .section-title {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.section-head>.section-desc {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.75;
}

.head-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.head-split>.section-desc {
  margin-top: 0;
  padding-bottom: 0.35rem;
}

.section-features {
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------
   08. CAPABILITIES
   --------------------------------------------------------------- */
.cap-list {
  border-top: 1px solid var(--line);
}

.cap-row {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease), border-color 0.4s;
}

.cap-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(111, 242, 255, 0.055), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.cap-row:hover {
  padding-left: 1rem;
  border-color: var(--line-strong);
}

.cap-row:hover::before {
  opacity: 1;
}

.cap-index {
  color: var(--dim);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  padding-top: 0.4rem;
  transition: color 0.3s;
}

.cap-row:hover .cap-index {
  color: var(--cyan);
}

.cap-title {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.cap-desc {
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 62ch;
}

.cap-desc strong {
  color: #dbe4f0;
  font-weight: 500;
}

.cap-tags {
  display: flex;
  gap: 0.45rem;
  padding-top: 0.4rem;
}

.cap-tags span {
  font-size: 0.53rem;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.pillar-head {
  margin: clamp(4rem, 7vw, 6rem) 0 2.2rem;
  max-width: 720px;
}

.pillar-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pillar {
  position: relative;
  background: var(--ink-2);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background-color 0.45s;
  overflow: hidden;
}

.pillar:hover {
  background: #0b0f17;
}

.pillar-tag {
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0.9;
}

.pillar h4 {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.pillar p {
  font-size: 0.84rem;
  line-height: 1.7;
}

.pillar-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--grad-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.pillar:hover .pillar-line {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------
   09. SHOWCASE TABS
   --------------------------------------------------------------- */
.section-interface {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(154, 123, 255, 0.07), transparent 70%),
    var(--ink-2);
}

.showcase {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.showcase-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.tab-btn {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  text-align: left;
  padding: 1.05rem 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.3s, padding-left 0.4s var(--ease);
}

.tab-btn .tab-num {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  transition: color 0.3s;
}

.tab-btn .tab-label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.tab-btn:hover {
  color: #fff;
  padding-left: 0.4rem;
}

.tab-btn.active {
  color: #fff;
  padding-left: 0.4rem;
}

.tab-btn.active .tab-num {
  color: var(--cyan);
}

.tab-btn.active .tab-label {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-content {
  position: relative;
  min-height: 380px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: clamp(1.5rem, 2.6vw, 2.4rem);
  align-items: center;
  animation: paneIn 0.7s var(--ease);
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.tab-media {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
}

.tab-media img {
  width: 100%;
  transition: transform 0.9s var(--ease);
}

.tab-media:hover img {
  transform: scale(1.03);
}

.media-zoom {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: #d5dde9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 6, 10, 0.65);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s;
}

.tab-media:hover .media-zoom {
  opacity: 1;
}

.tab-body .badge {
  margin-bottom: 1.1rem;
}

.tab-title {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.tab-desc {
  font-size: 0.93rem;
  line-height: 1.72;
  margin-bottom: 1.4rem;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bullets li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--muted);
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(111, 242, 255, 0.6);
}

.bullets strong {
  color: #e6edf7;
  font-weight: 500;
}

/* ---------------------------------------------------------------
   10. PROOF / BACKTEST
   --------------------------------------------------------------- */
.section-proof {
  border-top: 1px solid var(--line);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
}

.proof-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  min-height: 100svh;
  padding: 1rem 0;
  overflow: hidden;
}

.proof-viewport {
  overflow: hidden;
  width: 100%;
}

.proof-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}

.proof-card {
  width: clamp(300px, 46vw, 560px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
  flex: 0 0 auto;
  cursor: zoom-in;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}

.proof-card:hover {
  border-color: var(--line-cyan);
  transform: translateY(-4px);
}

.proof-media {
  position: relative;
  background: #000;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.proof-media img {
  width: 100%;
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.proof-card:hover .proof-media img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.proof-meta {
  padding: 1.2rem 1.3rem 1.4rem;
  position: relative;
}

.proof-tag {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.proof-meta h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0.45rem 0 0.35rem;
}

.proof-meta p {
  font-size: 0.83rem;
  line-height: 1.65;
  max-width: 40ch;
}

.proof-zoom {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  transition: color 0.3s;
}

.proof-card:hover .proof-zoom {
  color: var(--cyan);
}

.proof-bar {
  height: 1px;
  background: var(--line);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.proof-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-cyan);
  transition: width 0.15s linear;
}

/* Calculator */
.calc-box {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(111, 242, 255, 0.06), transparent 60%),
    var(--panel);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.calc-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
  margin: 1rem 0 0.7rem;
}

.calc-note {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.7rem;
  max-width: 46ch;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.45rem;
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 11, 0.6);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-wrap:focus-within {
  border-color: var(--line-cyan);
  box-shadow: 0 0 0 3px rgba(111, 242, 255, 0.07);
}

.input-affix {
  padding: 0 0.85rem;
  font-size: 0.6rem;
  color: var(--dim);
  border-right: 1px solid var(--line);
  line-height: 2.8rem;
  letter-spacing: 0.1em;
}

.form-control {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0.8rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
}

.form-control::-webkit-outer-spin-button,
.form-control::-webkit-inner-spin-button {
  opacity: 0.25;
}

.calc-result {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(16, 22, 33, 0.95), rgba(6, 8, 12, 0.96));
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, 0.9);
}

.calc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}

.calc-head .badge {
  white-space: normal;
}

.calc-head-label {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.calc-head-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  margin-top: 0.3rem;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--dim);
}

.metric-val {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.metric-val.green {
  color: var(--emerald);
}

.metric-val.cyan {
  color: var(--cyan);
}

.metric-val.red {
  color: var(--danger);
}

.calc-disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--dim);
}

/* ---------------------------------------------------------------
   11. ORDER BOX LAB
   --------------------------------------------------------------- */
.section-lab {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 50% at 15% 20%, rgba(111, 242, 255, 0.055), transparent 65%),
    var(--ink-2);
}

.lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: clamp(0.8rem, 1.6vw, 1.2rem);
  box-shadow: 0 50px 120px -70px rgba(0, 0, 0, 0.9);
}

.lab-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #060810;
  overflow: hidden;
}

.lab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.lab-dir {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.ob-btn {
  padding: 0.42rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}

.ob-btn:hover {
  color: #fff;
}

.ob-btn.active {
  background: var(--grad-cyan);
  color: #041018;
  font-weight: 600;
}

.lab-tools {
  display: inline-flex;
  gap: 0.45rem;
}

.lab-canvas-wrap {
  position: relative;
  width: 100%;
  height: clamp(320px, 42vw, 460px);
}

#orderCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.lab-badge {
  position: absolute;
  left: 0.8rem;
  bottom: 0.7rem;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.7);
}

.lab-badge.is-live {
  color: var(--cyan);
  border-color: var(--line-cyan);
}

.lab-note {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-align: center;
}

.lab-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.9rem 0.8rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #090c13;
}

.lab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.lab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.readout {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.readout.big {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, rgba(111, 242, 255, 0.07), transparent 70%);
}

.readout-label {
  font-size: 0.62rem;
  color: var(--dim);
}

.readout-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.readout.big .readout-val {
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.readout-val.red {
  color: var(--danger);
}

.readout-val.green {
  color: var(--emerald);
}

.readout-val.cyan {
  color: var(--cyan);
}

.readout-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lab-panel-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  color: var(--dim);
  letter-spacing: 0.12em;
}

.lab-ref {
  margin-top: auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: #000;
}

.lab-ref img {
  width: 100%;
  opacity: 0.75;
  transition: opacity 0.4s, transform 0.8s var(--ease);
}

.lab-ref:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.lab-ref span {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  color: #cfd8e6;
  background: rgba(5, 6, 10, 0.7);
  padding: 0.22rem 0.45rem;
  border-radius: 3px;
}

/* ---------------------------------------------------------------
   12. DOWNLOAD
   --------------------------------------------------------------- */
.section-download {
  border-top: 1px solid var(--line);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: border-color 0.4s, background-color 0.4s, transform 0.5s var(--ease);
}

.dl-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-3px);
}

.dl-card.featured {
  border-color: var(--line-cyan);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(111, 242, 255, 0.08), transparent 70%),
    var(--panel);
}

.dl-card .btn {
  margin-top: auto;
  width: 100%;
}

.dl-btn-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.dl-btn-stack .btn {
  margin-top: 0;
  width: 100%;
  font-size: 0.88rem;
  padding: 0.72rem 1rem;
}

.dl-ribbon {
  position: absolute;
  top: -1px;
  right: 1.2rem;
  transform: translateY(-50%);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: #041018;
  background: var(--grad-cyan);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
}

.dl-tag {
  color: var(--cyan);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
}

.dl-title {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  margin: 0.5rem 0 0.6rem;
}

.dl-desc {
  font-size: 0.85rem;
  line-height: 1.7;
}

.dl-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.dl-meta span {
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.dl-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.dl-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.dl-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--emerald);
}

.dl-list strong {
  color: #e6edf7;
  font-weight: 500;
}

/* CLI */
.cli-box {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.cli-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
}

.cli-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.cli-sub {
  font-size: 0.82rem;
  max-width: 60ch;
}

.cli-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #05070c;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.cli-row:last-child {
  margin-bottom: 0;
}

.cli-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cli-row-head .mono {
  font-size: 0.54rem;
  color: var(--dim);
}

.cli-row-head .mono.cyan {
  color: var(--cyan);
}

.cli-code {
  padding: 0.9rem 0.95rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.75;
  color: #9ff5d0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Quickstart */
.quickstart {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.7), rgba(8, 10, 16, 0.7));
}

.qs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.qs-title {
  font-size: 1.15rem;
  font-weight: 500;
}

.qs-code {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.qs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qs-step {
  background: var(--ink-2);
  padding: 1.3rem;
}

.qs-num {
  display: block;
  font-size: 0.6rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}

.qs-step h4 {
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.qs-step p {
  font-size: 0.78rem;
  line-height: 1.65;
}

.qs-step strong {
  color: #e6edf7;
  font-weight: 500;
}

/* ---------------------------------------------------------------
   13. LICENSE
   --------------------------------------------------------------- */
.section-lisensi {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(55% 45% at 85% 15%, rgba(154, 123, 255, 0.08), transparent 70%),
    var(--ink-2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.pricing-card.highlight {
  border-color: var(--line-cyan);
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(111, 242, 255, 0.09), transparent 65%),
    var(--panel);
}

.pricing-card .badge {
  align-self: flex-start;
}

.pricing-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
}

.pricing-desc {
  font-size: 0.88rem;
  line-height: 1.7;
}

.price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}

.pricing-card>.btn {
  margin-top: auto;
}

.license-shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  margin-top: 0.4rem;
}

.license-shot img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  object-position: top;
  opacity: 0.86;
  transition: opacity 0.4s, transform 0.8s var(--ease);
}

.license-shot:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.license-shot span {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  font-size: 0.45rem;
  letter-spacing: 0.12em;
  color: #d5dde9;
  background: rgba(5, 6, 10, 0.7);
  border-radius: 3px;
  padding: 0.22rem 0.45rem;
}

.pro-band {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: #000;
}

.pro-band img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: top;
  opacity: 0.8;
  transition: opacity 0.5s, transform 1.2s var(--ease);
}

.pro-band:hover img {
  opacity: 1;
  transform: scale(1.015);
}

.pro-band-caption {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  max-width: 420px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(12px);
}

.pro-band-caption .mono {
  color: var(--cyan);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
}

.pro-band-caption p {
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: 0.3rem;
  color: #b6c0d0;
}

/* ---------------------------------------------------------------
   14. FAQ
   --------------------------------------------------------------- */
.section-faq {
  border-top: 1px solid var(--line);
}

.faq-accordion {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0.2rem;
  text-align: left;
  transition: color 0.3s, padding-left 0.4s var(--ease);
}

.faq-q-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #dde5f0;
  transition: color 0.3s;
}

.faq-question:hover .faq-q-text,
.faq-item.open .faq-q-text {
  color: #fff;
}

.faq-question:hover {
  padding-left: 0.5rem;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}

.faq-icon::before {
  width: 9px;
  height: 1px;
}

.faq-icon::after {
  width: 1px;
  height: 9px;
}

.faq-item.open .faq-icon {
  border-color: var(--line-cyan);
  background: rgba(111, 242, 255, 0.08);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
  background: var(--cyan);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner>p,
.faq-answer-inner>ul,
.faq-answer-inner>ol {
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--muted);
  margin-bottom: 0.8rem;
  max-width: 82ch;
}

/* Padding must live on the children: the parent clips at its padding box,
   so padding on the collapsed wrapper would leak a line of text. */
.faq-answer-inner> :first-child {
  padding-top: 0.2rem;
}

.faq-answer-inner> :last-child {
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

.faq-answer-inner ul,
.faq-answer-inner ol {
  padding-left: 1.2rem;
  list-style: disc;
}

.faq-answer-inner ol {
  list-style: decimal;
}

.faq-answer-inner li {
  margin-bottom: 0.4rem;
}

.faq-answer-inner strong {
  color: #e6edf7;
  font-weight: 500;
}

/* ---------------------------------------------------------------
   15. CONTACT / FOOTER
   --------------------------------------------------------------- */
.contact {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(111, 242, 255, 0.14), transparent 70%),
    radial-gradient(45% 60% at 85% 0%, rgba(154, 123, 255, 0.1), transparent 70%),
    var(--ink);
}

.contact-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .eyebrow {
  margin-bottom: 2rem;
}

.contact-title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 1.5rem;
  max-width: 20ch;
}

.contact-desc {
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 2.2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
  background: #040508;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.75;
  margin-top: 1rem;
  max-width: 38ch;
}

.footer-title {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.25s, padding-left 0.3s;
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 0.2rem;
}

.footer-note {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.footer-wa {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  transition: color 0.25s, border-color 0.25s;
}

.footer-wa span {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}

.footer-wa:hover {
  color: var(--cyan);
  border-color: var(--line-cyan);
}

.footer-os {
  margin-top: 1.2rem;
  color: var(--dim);
  font-size: 0.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--dim);
}

.footer-bottom .mono {
  font-size: 0.5rem;
  color: var(--dim);
  max-width: 52ch;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.to-top {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.25s;
}

.to-top:hover {
  color: var(--cyan);
}

/* ---------------------------------------------------------------
   16. MODAL / TOAST
   --------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 4, 7, 0.92);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease);
}

.modal-overlay.active .modal-container {
  transform: none;
}

.modal-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #000;
}

.modal-caption {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: -0.6rem;
  right: 0;
  transform: translateY(-100%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #fff;
  background: rgba(10, 13, 20, 0.8);
  transition: border-color 0.3s, background-color 0.3s;
}

.modal-close-btn:hover {
  border-color: var(--line-cyan);
  background: rgba(111, 242, 255, 0.12);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 700;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.95);
  backdrop-filter: blur(14px);
  font-size: 0.8rem;
  color: #e6edf7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.45s var(--ease);
  max-width: min(92vw, 560px);
  box-shadow: 0 20px 60px -30px rgba(111, 242, 255, 0.5);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  color: var(--cyan);
  display: inline-flex;
}

/* ---------------------------------------------------------------
   17. RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .status-chip {
    display: none;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .showcase {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 68px;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-lower {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-hud {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .head-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .head-split>.section-desc {
    margin-top: 0;
  }

  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    gap: 0.2rem;
    scrollbar-width: none;
  }

  .showcase-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    border-bottom: 0;
    padding: 1rem 0.9rem;
    white-space: nowrap;
    flex: 0 0 auto;
    position: relative;
  }

  .tab-btn .tab-num {
    display: none;
  }

  .tab-btn.active {
    padding-left: 0.9rem;
  }

  .tab-btn.active .tab-label {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #fff;
  }

  .tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: -1px;
    height: 2px;
    background: var(--grad-cyan);
    box-shadow: 0 0 12px rgba(111, 242, 255, 0.55);
  }

  .tab-pane.active {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .lab-panel-head,
  .lab-panel-foot {
    grid-column: 1 / -1;
  }

  .readout.big {
    grid-column: 1 / -1;
  }

  .lab-ref {
    margin-top: 0;
  }

  .qs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-overlay-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .menu-overlay {
    padding-top: calc(var(--header-h) + 1.75rem);
  }

  .menu-link {
    font-size: clamp(1.45rem, 4.2vw, 2.3rem);
    padding: 0.45rem 0;
  }

  .proof-pin {
    min-height: 0;
    padding-bottom: 0;
  }

  .proof-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .proof-viewport::-webkit-scrollbar {
    display: none;
  }

  .proof-card {
    scroll-snap-align: center;
    width: min(78vw, 480px);
  }

  .proof-bar {
    display: none;
  }
}

@media (max-width: 860px) {
  .section {
    padding: clamp(3.5rem, 8vw, 5rem) 0;
  }

  .calc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cap-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 1rem;
  }

  .cap-tags {
    grid-column: 2;
    padding-top: 0;
  }

  .proof-card {
    width: min(84vw, 440px);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .hero-perks li {
    font-size: 0.54rem;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .hero-kicker {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .hero-perks li {
    justify-content: flex-start;
  }

  .product-frame {
    border-radius: var(--radius-md);
  }

  .frame-title {
    display: none;
  }

  .frame-zoom {
    display: none;
  }

  .marquee-track span {
    font-size: 0.8rem;
  }

  .lab-canvas-wrap {
    height: 360px;
  }

  .lab-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .readout-row {
    grid-template-columns: 1fr 1fr;
  }

  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .menu-link {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .pro-band-caption {
    position: static;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    max-width: none;
    background: rgba(5, 6, 10, 0.85);
  }

  .pro-band img {
    max-height: 220px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 1.15rem;
  }

  body {
    overflow-wrap: break-word;
  }

  .section-title,
  .hero-title,
  .calc-title,
  .dl-title,
  .pricing-title,
  .pillar h3,
  .faq-question {
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .section-title .fx-w,
  .contact-title .fx-w {
    display: inline;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .section-title .fx-w > span,
  .contact-title .fx-w > span {
    display: inline;
    transform: none !important;
    opacity: 1 !important;
    background: none !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    animation: none !important;
  }

  .btn-sm {
    display: none;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .brand-text em {
    display: none;
  }

  .lang-trigger {
    padding-inline: 0.65rem;
    gap: 0.4rem;
  }

  .hero-kicker .badge {
    white-space: normal;
    text-align: left;
    line-height: 1.5;
    font-size: 0.52rem;
  }

  .hero-perks {
    grid-template-columns: minmax(0, 1fr);
  }

  .cap-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .cap-index {
    padding-top: 0;
  }

  .cap-tags {
    grid-column: 1;
  }

  .pillar-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar {
    min-height: 0;
  }

  .qs-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .proof-card {
    width: 86vw;
  }

  .tab-pane.active {
    gap: 1.2rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl-card .btn,
  .dl-btn-stack .btn {
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }

  .toast {
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    padding: 0.75rem 0.9rem;
    text-align: left;
  }

  .modal-close-btn {
    top: -3rem;
    right: 0;
    transform: none;
  }
}

@media (max-width: 380px) {
  .brand-text {
    font-size: 0.84rem;
  }

  .lang-current-flag {
    display: none;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .menu-toggle span:nth-child(1) {
    top: 16px;
  }

  .menu-toggle span:nth-child(2) {
    top: 21px;
  }
}

/* ---------------------------------------------------------------
   18. ACCESSIBILITY / REDUCED MOTION / FALLBACKS
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .hero-title .line>span {
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

  .grain {
    animation: none;
  }
}

/* If WebGL/CDN unavailable the canvas stays empty; keep hero legible */
.no-webgl .hero-canvas {
  display: none;
}

.no-webgl .hero-vignette {
  background:
    radial-gradient(75% 55% at 50% 30%, rgba(58, 123, 255, 0.2), transparent 68%),
    radial-gradient(55% 45% at 85% 80%, rgba(154, 123, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.4), var(--ink) 92%);
}

/* No-JS: never trap the visitor behind the preloader */
html:not(.js) .preloader {
  display: none;
}

/* ===================================================================
   LANGUAGE SWITCHER & RTL STYLING
   =================================================================== */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  user-select: none;
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  border-color: var(--cyan);
  background: rgba(111, 242, 255, 0.08);
  color: #fff;
  box-shadow: 0 0 16px rgba(111, 242, 255, 0.15);
}

.lang-trigger svg {
  display: block;
  flex-shrink: 0;
  stroke: var(--cyan);
  transition: transform 0.25s;
}

.lang-trigger .lang-chevron {
  stroke: var(--dim);
  transition: transform 0.25s;
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm, 10px);
  padding: 0.4rem;
  display: none;
  z-index: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(111, 242, 255, 0.1);
  animation: langFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown.is-open {
  display: block;
}

.lang-dropdown::-webkit-scrollbar {
  width: 4px;
}
.lang-dropdown::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 2px;
}

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--dim);
  transition: all 0.15s;
}

.lang-opt-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-opt-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-opt-name {
  font-family: var(--font-body);
  font-weight: 500;
  color: #e2e8f0;
}

.lang-opt-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.lang-opt:hover {
  background: rgba(111, 242, 255, 0.08);
  color: #fff;
}

.lang-opt:hover .lang-opt-name {
  color: var(--cyan);
}

.lang-opt.active {
  background: rgba(111, 242, 255, 0.12);
  border: 1px solid rgba(111, 242, 255, 0.25);
  color: #fff;
}

.lang-opt.active .lang-opt-name {
  color: var(--cyan);
  font-weight: 600;
}

.lang-opt.active::after {
  content: '✓';
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: bold;
}

/* Mobile Overlay Language Switcher */
.lang-switcher-mobile {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  width: 100%;
}

.lang-switcher-mobile-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-bottom: 0.6rem;
  display: block;
}

.lang-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.lang-mobile-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-2, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-mobile-btn:hover {
  border-color: var(--cyan);
  background: rgba(111, 242, 255, 0.06);
}

.lang-mobile-btn.active {
  border-color: var(--cyan);
  background: rgba(111, 242, 255, 0.14);
  color: var(--cyan);
  font-weight: 600;
}

/* RTL Layout Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .nav-links {
  direction: rtl;
}

[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-desc,
[dir="rtl"] .section-desc,
[dir="rtl"] .cap-desc,
[dir="rtl"] .tab-desc,
[dir="rtl"] .calc-note,
[dir="rtl"] .calc-disclaimer,
[dir="rtl"] .lab-note,
[dir="rtl"] .dl-desc,
[dir="rtl"] .qs-step p,
[dir="rtl"] .pricing-desc,
[dir="rtl"] .faq-answer,
[dir="rtl"] .contact-desc,
[dir="rtl"] .footer-brand p,
[dir="rtl"] .footer-note {
  text-align: right;
}

[dir="rtl"] .status-chip i {
  margin-right: 0;
  margin-left: 0.45rem;
}

[dir="rtl"] .bullets li,
[dir="rtl"] .dl-list li,
[dir="rtl"] .faq-answer ul li {
  text-align: right;
  padding-left: 0;
  padding-right: 1.4rem;
}

[dir="rtl"] .bullets li::before,
[dir="rtl"] .dl-list li::before,
[dir="rtl"] .faq-answer ul li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .cap-row {
  transition: padding-right 0.5s var(--ease), border-color 0.4s;
}

[dir="rtl"] .cap-row:hover {
  padding-left: 0;
  padding-right: 1rem;
}

[dir="rtl"] .cap-row::before {
  background: linear-gradient(270deg, rgba(111, 242, 255, 0.055), transparent 55%);
}

[dir="rtl"] .head-split {
  flex-direction: row-reverse;
}

[dir="rtl"] .menu-link span {
  margin-right: 0;
  margin-left: 1rem;
}

/* ---------------------------------------------------------------
   18. TRACK RECORD
   --------------------------------------------------------------- */
.section-track {
  border-top: 1px solid var(--line);
}

.tr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.5rem;
  margin: -1.2rem 0 clamp(1.4rem, 2.6vw, 2rem);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.tr-meta > span {
  display: inline-flex;
  align-items: center;
}

.tr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(69, 240, 165, 0.12);
  display: inline-block;
  margin-right: 0.6rem;
  animation: tr-pulse 2.4s var(--ease-soft) infinite;
}

@keyframes tr-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(69, 240, 165, 0.12); }
  50% { opacity: 0.55; box-shadow: 0 0 0 7px rgba(69, 240, 165, 0.04); }
}

.tr-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tr-metric {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  background: var(--panel);
  min-width: 0;
}

.tr-metric--hero {
  background: linear-gradient(160deg, rgba(24, 33, 48, 0.95), rgba(9, 12, 19, 0.95));
}

.tr-metric-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--dim);
}

.tr-metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.tr-metric-value.is-pos { color: var(--emerald); }
.tr-metric-value.is-neg { color: var(--danger); }

.tr-metric-sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

.tr-panel {
  margin-top: clamp(1.5rem, 2.8vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.tr-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
  border-bottom: 1px solid var(--line);
}

.tr-panel-head h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tr-panel-head p {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 58ch;
}

.tr-expect {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.tr-expect b {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--emerald);
  font-weight: 500;
}

.tr-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tr-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.tr-table th {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
  white-space: nowrap;
}

.tr-table th:first-child,
.tr-table td:first-child {
  text-align: left;
  padding-left: 1.3rem;
}

.tr-table th:last-child,
.tr-table td:last-child {
  padding-right: 1.3rem;
}

.tr-table td {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: right;
  white-space: nowrap;
  color: var(--text);
}

.tr-table tbody tr {
  transition: background 0.25s var(--ease-soft);
}

.tr-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}

.tr-table tbody tr:last-child td {
  border-bottom: 0;
}

.tr-sym {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
}

.tr-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.tr-num.is-pos { color: var(--emerald); }
.tr-num.is-neg { color: var(--danger); }

.tr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.tr-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.tr-badge--good {
  color: var(--emerald);
  border-color: rgba(69, 240, 165, 0.3);
  background: rgba(69, 240, 165, 0.07);
}

.tr-badge--rr {
  color: var(--cyan);
  border-color: rgba(111, 242, 255, 0.28);
  background: rgba(111, 242, 255, 0.06);
}

.tr-badge--bad {
  color: var(--danger);
  border-color: rgba(255, 95, 122, 0.3);
  background: rgba(255, 95, 122, 0.07);
}

.tr-foot {
  padding: 0.95rem 1.3rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.7;
}

/* Auto Trade parameter card */
.tr-auto {
  margin: 0 0 clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-2);
  padding: 1.1rem 1.3rem 1.3rem;
}

.tr-auto-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.6rem;
  margin-bottom: 1rem;
}

.tr-auto-title {
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

.tr-auto-note {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.55;
}

.tr-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem 1.5rem;
}

.tr-auto-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tr-auto-item span {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.tr-auto-item b {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.tr-auto-item--wide {
  grid-column: 1 / -1;
}

.tr-auto-item--wide b {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tr-tf-eligible {
  display: inline-block;
  padding: 0.15em 0.55em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 4px;
}

/* Timeframe best tag */
.tr-tf {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text);
}

.tr-tf-best {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.05em 0.4em;
  font-family: var(--font-mono);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 3px;
  vertical-align: middle;
}

.is-best > td {
  background: rgba(52, 211, 153, 0.04);
}

/* Weekday performance bars */
.tr-week {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.tr-week-row {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  align-items: center;
  gap: 0.6rem 0.85rem;
}

.tr-week-name {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.tr-week-track {
  height: 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
  overflow: hidden;
}

.tr-week-track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s var(--ease);
}

.tr-week-track i.is-pos {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.35), rgba(52, 211, 153, 0.55));
}

.tr-week-track i.is-neg {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.35), rgba(239, 68, 68, 0.55));
}

.tr-week-value {
  font-size: 0.74rem;
  min-width: 70px;
  text-align: right;
}

.tr-week-meta {
  font-size: 0.58rem;
  color: var(--dim);
  min-width: 80px;
  text-align: right;
}

/* Calendar grid */
.tr-cal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.tr-cal-month {
  display: flex;
  flex-direction: column;
}

.tr-cal-title {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tr-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.tr-cal-week {
  display: contents;
}

.tr-cal-week > span {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  padding: 0.3rem 0;
}

.tr-cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  padding: 0.15rem;
  cursor: default;
}

.tr-cal-cell--empty {
  background: transparent;
}

.tr-cal-cell.is-pos {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.18);
}

.tr-cal-cell.is-neg {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
}

.tr-cal-day {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--muted);
}

.tr-cal-cell.is-pos .tr-cal-day { color: var(--emerald); }
.tr-cal-cell.is-neg .tr-cal-day { color: var(--danger); }

.tr-cal-net {
  font-family: var(--font-mono);
  font-size: 0.44rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.tr-cal-cell.is-pos .tr-cal-net { color: var(--emerald); }
.tr-cal-cell.is-neg .tr-cal-net { color: var(--danger); }

.tr-daily-empty {
  font-size: 0.82rem;
  color: var(--dim);
  padding: 1rem 0;
}

.tr-daily-hl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.tr-daily-hl b {
  color: var(--text);
  margin-left: 0.3rem;
}

@media (max-width: 560px) {
  .tr-week-row {
    grid-template-columns: 70px 1fr auto;
  }
  .tr-week-meta { display: none; }
  .tr-auto-grid { grid-template-columns: repeat(2, 1fr); }
  .tr-table--hours { min-width: 0; }
  .tr-table--hours .tr-hour-wl,
  .tr-table--hours .tr-hour-pf,
  .tr-table--hours .tr-hour-status { display: none; }
  .tr-table--hours th,
  .tr-table--hours td { padding-left: 0.55rem; padding-right: 0.55rem; }
  .tr-table--hours th:first-child,
  .tr-table--hours td:first-child { padding-left: 1.1rem; }
  .tr-table--hours th:last-child,
  .tr-table--hours td:last-child { padding-right: 1.1rem; }
}

@media (max-width: 380px) {
  .tr-table--hours .tr-tf-best { display: none; }
  .tr-table--hours th,
  .tr-table--hours td { padding-left: 0.4rem; padding-right: 0.4rem; font-size: 0.74rem; }
  .tr-table--hours th { font-size: 0.5rem; }
  .tr-table--hours th:first-child,
  .tr-table--hours td:first-child { padding-left: 0.8rem; }
  .tr-table--hours th:last-child,
  .tr-table--hours td:last-child { padding-right: 0.8rem; }
}

.tr-notes {
  margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-2);
  overflow: hidden;
}

.tr-notes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}

.tr-notes summary::-webkit-details-marker { display: none; }
.tr-notes summary:hover { color: var(--text); background: rgba(255, 255, 255, 0.02); }
.tr-notes[open] summary { color: var(--text); border-bottom: 1px solid var(--line); }

.tr-chevron {
  transition: transform 0.35s var(--ease);
  color: var(--dim);
  flex: 0 0 auto;
}

.tr-notes[open] .tr-chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

.tr-notes-body {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.3rem 1.3rem;
}

.tr-note-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.35rem 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.tr-note-row:first-child {
  border-top: 0;
  padding-top: 0.1rem;
}

.tr-note-sym {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.tr-note-status {
  font-size: 0.46rem;
}

.tr-note-text {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 900px) {
  .tr-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-note-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tr-note-row .tr-note-text {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .tr-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .tr-meta {
    font-size: 0.52rem;
  }

  .tr-expect {
    width: 100%;
  }
}
/* The inline nav needs ~1300px once "Track Record" is included; below that the
   header would clip the language switcher and the download button. */
@media (min-width: 1181px) and (max-width: 1359px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}@media (min-width: 1360px) and (max-width: 1599px) {
  .nav-links {
    gap: 1.15rem;
  }

  .status-chip {
    display: none;
  }
}