/* ==========================================================================
   Tenaxcore: public site
   Dark, technical, restrained. Self-hosted fonts and assets only.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06080f;
  --bg-elev: #080b13;
  --panel: #0a0f18;
  --panel-2: #0d131e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6fc;
  --muted: #aab5c8;
  --dim: #77839a;
  --faint: #4f5a6d;
  --teal: #5eead4;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --grad: linear-gradient(100deg, #5eead4 0%, #60a5fa 52%, #a78bfa 100%);
  --grad-soft: linear-gradient(100deg, #cbbcff 0%, #7db8ff 44%, #6ef2a8 100%);
  --radius: 20px;
  --container: 1200px;
  --header: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 60% 38% at 50% -8%, rgba(96, 165, 250, 0.055), transparent 62%),
    var(--bg);
  color: var(--muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(94, 234, 212, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #06080f;
}

::-webkit-scrollbar-thumb {
  background: #293244;
  border: 2px solid #06080f;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a455a;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f3f6fc;
  color: #06080f;
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--dim);
  font-family: "Space Grotesk", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.7);
}

.text-gradient {
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vpn-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 2px 5px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.07);
  color: #93c5fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  border-color: rgba(139, 122, 255, 0.45);
  background: linear-gradient(180deg, rgba(43, 41, 66, 0.96), rgba(16, 17, 28, 0.98));
  color: #f1edff;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  border-color: rgba(167, 139, 250, 0.85);
  color: #fff;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(139, 122, 255, 0.18);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #d6deea;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateY(-1px);
}

.btn-small {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 11px;
  gap: 7px;
}

.btn-small svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled,
.site-header--solid {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 15, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
  transition: height 0.25s var(--ease);
}

.site-header.is-scrolled .header-inner {
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  filter: drop-shadow(0 4px 14px rgba(96, 165, 250, 0.24));
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-word {
  color: #f1f5fc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.1;
}

.brand-sub {
  margin-top: 3px;
  color: var(--faint);
  font-family: "Space Grotesk", sans-serif;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.1;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  color: #a7b2c5;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff;
}

.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.access {
  position: relative;
}

.access-toggle .chevron {
  width: 12px;
  height: 12px;
  color: var(--dim);
  transition: transform 0.2s var(--ease);
}

.access-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

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

.access-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 344px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(11, 15, 24, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: menu-in 0.18s var(--ease);
}

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

.access-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 9px 10px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-menu a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.18s var(--ease);
}

.access-menu a:hover {
  background: rgba(255, 255, 255, 0.055);
}

.access-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 9px;
  background: rgba(96, 165, 250, 0.055);
  color: #93c5fd;
}

.access-icon svg {
  width: 15px;
  height: 15px;
}

.access-copy {
  min-width: 0;
}

.access-copy strong {
  display: block;
  overflow: hidden;
  color: #e3e9f4;
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-arrow {
  width: 13px;
  height: 13px;
  color: var(--faint);
  transition:
    color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.access-menu a:hover .access-arrow {
  color: #dbe3f0;
  transform: translate(1px, -1px);
}

.access-note {
  margin: 7px 9px 3px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: #dbe3f0;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  max-height: calc(100svh - 72px);
  padding: 6px 24px 24px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 15, 0.985);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: menu-in 0.2s var(--ease);
}

.mobile-menu:not([hidden]) {
  display: block;
}

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

.mobile-menu nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #dbe3f0;
  font-size: 16px;
  font-weight: 500;
}

.mobile-menu nav a:hover {
  color: #fff;
}

.mobile-access {
  padding: 22px 0 8px;
}

.mobile-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-access a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #b8c3d5;
  font-size: 13.5px;
}

.mobile-access a svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--faint);
}

.mobile-note {
  margin-top: 10px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header) + 46px) 0 96px;
  background: #06080f;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #06080f url("/assets/img/globe-landscape.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  opacity: 0.92;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 8, 15, 0.99) 0%,
      rgba(6, 8, 15, 0.94) 28%,
      rgba(6, 8, 15, 0.66) 54%,
      rgba(6, 8, 15, 0.22) 78%,
      rgba(6, 8, 15, 0.36) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 8, 15, 0.72) 0%,
      transparent 26%,
      transparent 60%,
      rgba(6, 8, 15, 0.98) 100%
    );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at 34% 50%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 58% 58% at 34% 50%, #000 0%, transparent 76%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.hero-copy {
  max-width: 780px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3.4rem, 13vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-shadow: 0 4px 70px rgba(6, 8, 15, 0.6);
}

.hero-position {
  margin: 0 0 20px;
  color: #9aa7bd;
  font-size: 10.5px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-lede {
  max-width: 590px;
  color: #b7c2d4;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.8), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.7);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* --------------------------------------------------------------------------
   Shared section scaffolding
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(72px, 8vw, 112px) 0;
}

.section-head {
  max-width: 860px;
  margin-bottom: 46px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-lede {
  max-width: 620px;
  margin-top: 20px;
  color: #aab5c8;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.72;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 48px;
  max-width: none;
}

.split-head .section-lede {
  margin-top: 0;
  padding-bottom: 6px;
}

.section-systems {
  background:
    radial-gradient(ellipse 50% 38% at 82% 0%, rgba(96, 165, 250, 0.06), transparent 62%),
    var(--bg);
}

.section-under {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #080b13;
}

.section-platform {
  background:
    radial-gradient(ellipse 60% 46% at 18% 18%, rgba(94, 234, 212, 0.04), transparent 62%),
    var(--bg);
}

.section-about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #080b13;
}

.section-contact {
  background:
    radial-gradient(ellipse 48% 42% at 50% 50%, rgba(167, 139, 250, 0.07), transparent 68%),
    var(--bg);
}

/* --------------------------------------------------------------------------
   System cards
   -------------------------------------------------------------------------- */

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.system-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012) 40%, rgba(255, 255, 255, 0.006)),
    #0a0f18;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.system-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.system-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.system-card:hover::before {
  opacity: 0.9;
}

.system-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.system-index {
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 4px;
  background: rgba(94, 234, 212, 0.05);
  color: #a7f3d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.7);
}

.system-card h3 {
  margin: 20px 0 4px;
  font-size: clamp(1.25rem, 1.7vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.system-kicker {
  margin-bottom: 12px;
  color: #93c5fd;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.system-desc {
  margin-bottom: 18px;
  color: #a7b2c5;
  font-size: 13.5px;
  line-height: 1.65;
}

.system-visual {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.mini-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #070a11;
}

.mini-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

.mini-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 7px rgba(94, 234, 212, 0.65);
}

.mini-title {
  overflow: hidden;
  color: #9aa6ba;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mini-badge {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 6.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.mini-chart {
  height: 140px;
  padding: 6px;
}

.mini-chart svg {
  width: 100%;
  height: 100%;
}

.mini-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}

.regime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a7f3d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.regime i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
}

.mini-footer .mono {
  font-size: 7px;
  white-space: nowrap;
}

.schematic {
  display: block;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.node-map {
  padding: 8px 6px 2px;
}

.node-map svg {
  width: 100%;
  height: auto;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
}

.dash-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.dash-tile span {
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dash-tile b {
  color: #e8eef8;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dash-bars {
  display: flex;
  height: 72px;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
  grid-column: 1 / -1;
}

.dash-bars span {
  flex: 1;
  min-width: 0;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.75), rgba(94, 234, 212, 0.18));
}

.dash-bars span:nth-child(1) { height: 34%; }
.dash-bars span:nth-child(2) { height: 48%; }
.dash-bars span:nth-child(3) { height: 41%; }
.dash-bars span:nth-child(4) { height: 62%; }
.dash-bars span:nth-child(5) { height: 55%; }
.dash-bars span:nth-child(6) { height: 73%; }
.dash-bars span:nth-child(7) { height: 64%; }
.dash-bars span:nth-child(8) { height: 82%; }
.dash-bars span:nth-child(9) { height: 76%; }
.dash-bars span:nth-child(10) { height: 91%; }
.dash-bars span:nth-child(11) { height: 84%; }
.dash-bars span:nth-child(12) { height: 100%; }

.dash-bars span:nth-child(3n) {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.82), rgba(167, 139, 250, 0.12));
}

.feature-list {
  margin: 0 0 18px;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 17px;
  color: #aab5c8;
  font-size: 12.5px;
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grad);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 4px;
}

.tag {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.018);
  color: #7f8ba0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.system-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #dbe3f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}

.system-link:hover {
  color: #fff;
}

.lock-icon {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--dim);
}

.system-link .vpn-pill {
  margin-left: 1px;
}

.arrow-icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-left: auto;
  color: var(--dim);
  transition:
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.system-link:hover .arrow-icon {
  color: #fff;
  transform: translateX(3px);
}

.systems-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.systems-note svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Architecture
   -------------------------------------------------------------------------- */

.under-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.under-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.under-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.under-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.1), rgba(167, 139, 250, 0.08));
  color: #93c5fd;
}

.under-icon svg {
  width: 20px;
  height: 20px;
}

.under-index {
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.under-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.under-card p {
  margin-bottom: 18px;
  color: #a7b2c5;
  font-size: 13.5px;
  line-height: 1.68;
}

.under-tag {
  color: #7f8ba0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Platform flow
   -------------------------------------------------------------------------- */

.flow {
  display: flex;
  align-items: stretch;
  margin: 0 0 16px;
  list-style: none;
}

.flow-node {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 122px;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0f18;
}

.flow-node::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.35), transparent);
}

.flow-num {
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.flow-node h3 {
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.flow-node p {
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.55;
}

.flow-arrow {
  position: relative;
  display: grid;
  flex: 0 0 26px;
  place-items: center;
}

.flow-arrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.5), rgba(167, 139, 250, 0.5));
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: 2px;
  width: 5px;
  height: 5px;
  border-top: 1px solid #a78bfa;
  border-right: 1px solid #a78bfa;
  transform: rotate(45deg);
}

.flow-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 54px;
  color: var(--dim);
  font-size: 10.5px;
}

.flow-note span {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.6);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.principle-num {
  display: block;
  margin-bottom: 14px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.principle h3 {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.principle p {
  color: #98a4b8;
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 64px;
}

.about-copy h2 {
  margin: 16px 0 24px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.about-copy > p {
  max-width: 620px;
  margin-bottom: 16px;
  color: #aab5c8;
  font-size: 15px;
  line-height: 1.75;
}

.about-copy .about-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 2px solid rgba(94, 234, 212, 0.4);
  border-radius: 0 8px 8px 0;
  background: rgba(94, 234, 212, 0.035);
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
}

.founder-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(96, 165, 250, 0.08), rgba(167, 139, 250, 0.045) 42%, rgba(255, 255, 255, 0.018));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.founder-watermark {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  opacity: 0.06;
  pointer-events: none;
  transform: rotate(-12deg);
}

.founder-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.founder-avatar {
  display: block;
  width: 64px;
  height: 64px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 22%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.founder-name {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.founder-role {
  margin-top: 3px;
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: #090e17;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 60% at 8% 0%, rgba(94, 234, 212, 0.13), transparent 62%),
    radial-gradient(ellipse 46% 55% at 100% 100%, rgba(167, 139, 250, 0.12), transparent 62%);
  pointer-events: none;
}

.contact-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000, transparent 76%);
}

.contact-panel > :not(.contact-glow):not(.contact-grid) {
  position: relative;
  z-index: 1;
}

.contact-copy .eyebrow {
  margin-bottom: 14px;
}

.contact-copy h2 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 400px;
  margin-top: 18px;
  color: #b0bbcd;
  font-size: 15px;
  line-height: 1.7;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-details div {
  display: grid;
  gap: 5px;
}

.contact-details dt {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  color: #dbe3f0;
  font-size: 13.5px;
  line-height: 1.65;
}

.contact-details a {
  border-bottom: 1px solid rgba(147, 197, 253, 0.3);
  color: #dbe3f0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-details a:hover {
  border-bottom-color: #fff;
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 18px;
  align-content: start;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #c3cddd;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field label::after {
  content: " *";
  color: rgba(147, 197, 253, 0.75);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #f2f6fd;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f7c91;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.field.has-error input,
.field.has-error textarea {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.05);
}

.field-error {
  color: #fca5a5;
  font-size: 11.5px;
  line-height: 1.5;
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  justify-self: start;
  margin-top: 4px;
}

.contact-submit[disabled] {
  cursor: progress;
  opacity: 0.65;
}

.contact-form.is-sent .field,
.contact-form.is-sent .field-honeypot,
.contact-form.is-sent .contact-note {
  display: none;
}

.contact-form.is-sent {
  align-content: start;
  gap: 0;
  padding-top: 8px;
}

.contact-form.is-sent .contact-status {
  font-size: 14px;
  line-height: 1.65;
  padding: 20px 22px;
}

.contact-status {
  color: #a7b2c5;
  font-size: 12.5px;
  line-height: 1.6;
}

.contact-status:empty {
  display: none;
}

.contact-status.is-success {
  padding: 12px 14px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 10px;
  background: rgba(94, 234, 212, 0.07);
  color: #cbfbf1;
}

.contact-status.is-error {
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.07);
  color: #fecaca;
}

.contact-status a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.contact-note {
  color: #6f7c91;
  font-size: 10.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 64px 0 26px;
  border-top: 1px solid var(--line);
  background: #04060b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 18px;
  color: #8e9aae;
  font-size: 12.5px;
  line-height: 1.65;
}

.footer-brand .footer-small {
  margin-top: 6px;
  color: #77839a;
  font-size: 10.5px;
}

.footer-col h3 {
  margin-bottom: 14px;
  color: #7f8ba0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: #a5b0c3;
  font-size: 12px;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #7c879c;
  font-size: 10px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-main {
  padding-top: var(--header);
}

.legal-hero {
  padding: 50px 0 40px;
  border-bottom: 1px solid var(--line);
}

.legal-hero .eyebrow {
  margin-bottom: 14px;
}

.legal-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.legal-hero p {
  max-width: 680px;
  margin-top: 16px;
  color: #aab5c8;
  font-size: 14px;
  line-height: 1.7;
}

.legal-lang {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-lang a {
  color: #93c5fd;
  border-bottom: 1px solid rgba(147, 197, 253, 0.35);
}

.legal-lang a:hover {
  color: #fff;
  border-bottom-color: #fff;
}


.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 52px;
  padding: 48px 0 100px;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header) + 20px);
}

.legal-nav p {
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  color: #94a0b4;
  font-size: 12px;
  line-height: 1.5;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.legal-nav a:hover {
  border-left-color: var(--teal);
  color: #fff;
}

.legal-card {
  max-width: 820px;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0a0f18;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-card h2 {
  margin: 36px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.legal-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-card h3 {
  margin: 24px 0 8px;
  color: #e5ebf5;
  font-size: 14px;
  letter-spacing: -0.005em;
}

.legal-card p,
.legal-card li {
  margin-bottom: 12px;
  color: #aeb9cb;
  font-size: 13.5px;
  line-height: 1.8;
}

.legal-card ul {
  margin-bottom: 14px;
  padding-left: 20px;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card address {
  margin: 10px 0 18px;
  color: #d5ddea;
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
}

.legal-note {
  padding: 16px 18px;
  border-left: 2px solid rgba(94, 234, 212, 0.4);
  border-radius: 0 8px 8px 0;
  background: rgba(94, 234, 212, 0.035);
  color: #aab5c8 !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--dim);
  font-size: 11px;
  transition: color 0.2s var(--ease);
}

.legal-back:hover {
  color: #fff;
}

.legal-back svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: calc(var(--header) + 60px) 24px 80px;
  text-align: center;
}

.error-code {
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(7rem, 20vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.error-page h1 {
  margin: 18px 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.error-page p {
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Scroll reveal (additive: content is visible if JS does not run)
   -------------------------------------------------------------------------- */

.reveal.will-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.will-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.system-card.will-reveal:nth-child(2),
.under-card.will-reveal:nth-child(2),
.principle.will-reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.system-card.will-reveal:nth-child(3),
.under-card.will-reveal:nth-child(3),
.principle.will-reveal:nth-child(3) {
  transition-delay: 0.16s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-copy {
    max-width: 780px;
  }
}

@media (max-width: 1050px) {
  .system-grid {
    max-width: 760px;
    margin-inline: auto;
    grid-template-columns: 1fr;
  }

  .system-card {
    padding: 28px;
  }

  .system-desc,
  .feature-list {
    max-width: 620px;
  }

  .mini-chart {
    height: 180px;
  }

  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .access {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .under-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .under-card {
    padding: 24px;
  }

  .flow {
    flex-direction: column;
  }

  .flow-node {
    min-height: 0;
  }

  .flow-arrow {
    height: 24px;
    flex: none;
    transform: rotate(90deg);
  }

  .flow-note {
    margin-bottom: 40px;
  }

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

  .founder-card {
    max-width: 560px;
    justify-self: start;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 30px 22px;
    border-radius: 22px;
  }

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

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

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-nav {
    position: static;
  }

  .legal-nav a {
    display: inline-block;
    padding: 4px 12px 4px 0;
    border-left: 0;
  }

  .legal-nav a:hover {
    border-left-color: transparent;
  }
}

@media (max-width: 760px) {
  :root {
    --header: 72px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .brand-word {
    font-size: 12.5px;
    letter-spacing: 0.19em;
  }

  .brand-sub {
    font-size: 6.5px;
    letter-spacing: 0.24em;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header) + 34px) 0 72px;
  }

  .hero-video {
    display: none;
  }

  .hero-media {
    background-image: url("/assets/img/globe-portrait.jpg");
    background-position: center 28%;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(6, 8, 15, 0.92) 0%,
      rgba(6, 8, 15, 0.64) 36%,
      rgba(6, 8, 15, 0.94) 76%,
      #06080f 100%
    );
  }

  .hero-grid {
    opacity: 0.25;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 13.5vw, 5.4rem);
    line-height: 0.84;
  }

  .hero-lede {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-head h2 {
    font-size: clamp(2rem, 8.6vw, 2.8rem);
  }

  .section-lede {
    font-size: 14.5px;
  }

  .split-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .split-head .section-lede {
    padding-bottom: 0;
  }

  .system-card {
    padding: 20px;
  }

  .mini-chart {
    height: 150px;
  }

  .system-card h3 {
    font-size: 1.35rem;
  }

  .about-copy h2 {
    font-size: clamp(2rem, 8.6vw, 2.8rem);
  }

  .about-copy > p {
    font-size: 14px;
  }

  .founder-card {
    padding: 24px;
  }

  .contact-panel {
    padding: 46px 22px;
    border-radius: 22px;
  }

  .contact-panel h2 {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }

  .footer-grid {
    gap: 30px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    margin-top: 36px;
  }

  .legal-main {
    padding-top: var(--header);
  }

  .legal-hero {
    padding: 34px 0 28px;
  }

  .legal-hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .legal-layout {
    padding: 26px 0 72px;
  }

  .legal-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .legal-card h2 {
    font-size: 18px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .contact-submit {
    justify-self: stretch;
  }

  .contact-submit {
    width: 100%;
  }

  .system-visual .mini-chart {
    height: 132px;
  }

  .mini-footer {
    gap: 6px;
  }

  .system-link {
    flex-wrap: wrap;
  }

  .system-link .arrow-icon {
    margin-left: auto;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    font-size: 9.5px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (max-width: 390px) {
  .brand-sub {
    display: none;
  }

  .brand-word {
    font-size: 11.5px;
  }

  .header-inner {
    gap: 12px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .mini-title {
    max-width: 110px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .hero-video {
    display: none;
  }

  .scroll-cue span {
    animation: none;
  }

  .reveal.will-reveal {
    opacity: 1;
    transform: none;
  }
}
