/* ==========================================================================
   Hamed LLC — hamedllc.com
   Design system + layout. Dark premium foundation, metallic/light accents.
   ========================================================================== */

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

:root {
  --bg: #05070b;
  --bg-2: #090d14;
  --bg-3: #0d121b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #e9edf3;
  --text-2: #c3cad5;
  --muted: #8d97a6;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --gold: #d6bf8a;
  --ok: #6ee7b7;
  --danger: #fda4af;
  --grad-accent: linear-gradient(120deg, #7dd3fc 0%, #a5b4fc 50%, #a78bfa 100%);
  --grad-metal: linear-gradient(180deg, #ffffff 0%, #dfe5ee 45%, #a9b4c4 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px rgba(125, 211, 252, 0.18), 0 20px 60px -20px rgba(125, 211, 252, 0.28);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(125, 211, 252, 0.28);
  color: #fff;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(125, 211, 252, 0.09), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(167, 139, 250, 0.07), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(214, 191, 138, 0.05), transparent 60%);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--grad-accent);
}

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

.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}
.section--tight {
  padding: clamp(56px, 7vw, 90px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--grad-accent);
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4.4vw, 52px);
}
.section-head .lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--text-2);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
  will-change: transform;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--primary {
  color: #05070b;
  background: linear-gradient(180deg, #ffffff, #d9e1ec);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 18px 40px -16px rgba(125, 211, 252, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 24px 50px -16px rgba(125, 211, 252, 0.7);
}
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.07);
}
.btn--sm {
  --btn-h: 42px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 7, 11, 0.72);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before {
  top: -6px;
}
.menu-toggle span::after {
  top: 6px;
}
.menu-open .menu-toggle span {
  background: transparent;
}
.menu-open .menu-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: rgba(5, 7, 11, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav a {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 12px;
  }
  .menu-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .menu-open .site-header {
    background: rgba(5, 7, 11, 0.96);
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-cta .btn {
    display: none;
  }
}
@media (min-width: 640px) and (max-width: 1080px) {
  .header-cta .btn {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-visual {
  z-index: 1;
}
/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(8, 12, 19, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 12px 40px -18px rgba(125, 211, 252, 0.45);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.hero-badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.hero-badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: badgeping 2.4s var(--ease) infinite;
}
@keyframes badgeping {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
.hero-badge__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.7;
}

/* Headline */
.hero-title {
  margin-top: 26px;
  font-size: clamp(32px, 3.75vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.035em;
}
.hero-title__line {
  display: block;
}
.text-sheen {
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 50%, transparent 62%),
    var(--grad-metal);
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 160% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sheen 10s var(--ease) 1.6s infinite;
}
@keyframes sheen {
  0% {
    background-position: 160% 0, 0 0;
  }
  22%,
  100% {
    background-position: -60% 0, 0 0;
  }
}

/* Vertical typewriter */
.tw {
  white-space: nowrap;
}
.tw-text {
  display: inline-block;
  perspective: 700px;
}
.tw-ch {
  display: inline-block;
  transform-origin: 50% 100%;
  text-shadow: 0 0 26px color-mix(in srgb, currentColor 42%, transparent);
  animation: tw-in 0.48s var(--ease) both;
  will-change: transform, opacity, filter;
}
.tw-ch.is-static {
  animation: none;
}
.tw-ch.is-out {
  animation: tw-out 0.24s cubic-bezier(0.55, 0, 1, 0.45) both;
}
@keyframes tw-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.62em, 0) rotateX(-75deg);
    filter: blur(8px);
  }
  18% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes tw-out {
  to {
    opacity: 0;
    transform: translate3d(0, -0.5em, 0) rotateX(60deg);
    filter: blur(6px);
  }
}
.tw-caret {
  display: inline-block;
  width: 0.075em;
  min-width: 3px;
  height: 0.84em;
  margin-left: 0.07em;
  vertical-align: -0.04em;
  border-radius: 3px;
  background: linear-gradient(180deg, #7dd3fc, #a78bfa);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.75), 0 0 2px rgba(255, 255, 255, 0.6);
}
.tw.is-idle .tw-caret {
  animation: tw-blink 1.05s steps(1, end) infinite;
}
@keyframes tw-blink {
  50% {
    opacity: 0;
  }
}

.hero .lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  line-height: 1.6;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-assurance li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-assurance svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  width: 100%;
}
.hero-canvas {
  position: absolute;
  inset: -16% -22% -16% -20%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease);
}
.has-3d .hero-canvas {
  opacity: 1;
}
.hero-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}
.hero-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.node-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(-9999px, 0, 0);
  pointer-events: auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(8, 11, 17, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
  will-change: transform;
  cursor: default;
}
.node-label.is-core {
  border-color: rgba(214, 191, 138, 0.55);
  color: #fff;
  box-shadow: 0 0 30px -6px rgba(214, 191, 138, 0.45);
}
.node-label.is-active {
  border-color: rgba(125, 211, 252, 0.65);
  background: rgba(10, 18, 28, 0.9);
  box-shadow: var(--glow);
}
.node-tip {
  position: absolute;
  left: 0;
  top: 0;
  width: 240px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: rgba(8, 11, 17, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  opacity: 0;
  transform: translate3d(-9999px, 0, 0);
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.node-tip strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 4px;
}
.node-tip.is-visible {
  opacity: 1;
}

/* Static fallback flow (mobile / reduced motion / no WebGL) */
.hero-flow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease);
}
.has-3d .hero-flow {
  opacity: 0;
  pointer-events: none;
}
.flow-stack {
  position: relative;
  width: min(100%, 440px);
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    radial-gradient(120% 80% at 50% 0%, rgba(125, 211, 252, 0.08), transparent 70%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.flow-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 14.5px;
}
.flow-step .dot {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #05070b;
  background: var(--grad-accent);
}
.flow-step.is-core {
  border-color: rgba(214, 191, 138, 0.45);
  background: linear-gradient(90deg, rgba(214, 191, 138, 0.12), rgba(255, 255, 255, 0.02));
}
.flow-step.is-core .dot {
  background: linear-gradient(180deg, #f3e3b8, #b89a5b);
}
.flow-step span.meta {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -13px;
  width: 1px;
  height: 13px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.1), rgba(125, 211, 252, 0.6));
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll i {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollcue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollcue {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1) translateY(20px);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero-title {
    font-size: clamp(30px, 8.8vw, 36px);
  }
  .hero-badge {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .hero-badge__a,
  .hero-badge__sep {
    display: none;
  }
}
@media (max-width: 1023px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-copy {
    max-width: 720px;
  }
  .hero-visual {
    aspect-ratio: auto;
    min-height: 0;
  }
  .hero-flow {
    position: relative;
    inset: auto;
  }
  .hero-canvas,
  .hero-labels {
    display: none;
  }
  .hero-scroll {
    display: none;
  }
}

@media (min-width: 561px) and (max-width: 1023px) {
  .hero-title {
    font-size: clamp(40px, 6vw, 52px);
  }
}

/* ---------- Pillars (trust strip) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}
.pillar {
  position: relative;
  padding: 30px 28px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  transition: background-color 0.4s var(--ease);
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 160px at var(--mx, 50%) 0%, rgba(125, 211, 252, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.pillar:hover::after {
  opacity: 1;
}
.pillar h3 {
  margin-top: 18px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.pillar p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(60% 60% at 50% 0%, rgba(125, 211, 252, 0.25), transparent 70%);
  color: var(--text);
  box-shadow: 0 10px 30px -12px rgba(125, 211, 252, 0.35);
}
.icon-badge svg {
  width: 22px;
  height: 22px;
}
.icon-badge--gold {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(60% 60% at 50% 0%, rgba(214, 191, 138, 0.3), transparent 70%);
  box-shadow: 0 10px 30px -12px rgba(214, 191, 138, 0.35);
}

/* ---------- Glass card ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
  transform-style: preserve-3d;
}
.card:hover {
  border-color: var(--border-2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    var(--shadow);
}
.card h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}
.card .icon-badge + h3 {
  margin-top: 20px;
}
.card h3 + p {
  margin-top: 10px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-copy h2 {
  margin: 16px 0 26px;
  font-size: clamp(32px, 4.2vw, 50px);
}
.about-copy p + p {
  margin-top: 18px;
}
.about-copy p {
  color: var(--text-2);
  font-size: 17px;
}
.principle {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(214, 191, 138, 0.3);
  background: linear-gradient(90deg, rgba(214, 191, 138, 0.08), rgba(214, 191, 138, 0.01));
}
.principle .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.principle ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: p;
}
.principle li {
  counter-increment: p;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
}
.principle li::before {
  content: "0" counter(p);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}
.fact-sheet {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.fact-sheet header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.fact-sheet header img {
  width: 34px;
  height: 34px;
}
.fact-sheet header strong {
  font-family: var(--font-display);
  font-size: 17px;
}
.fact-sheet header span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.fact-sheet dl {
  margin: 0;
  display: grid;
}
.fact-sheet dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.fact-sheet dl > div:last-child {
  border-bottom: 0;
}
.fact-sheet dt {
  font-size: 13px;
  color: var(--muted);
}
.fact-sheet dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}
.fact-sheet dd a {
  color: var(--accent);
}
.fact-sheet dd a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .fact-sheet dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---------- Steps (FBA model) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  counter-increment: step;
}
.step .num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.step .num::before {
  content: "0" counter(step) " —";
}
.step h3 {
  margin-top: 14px;
}
.note {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 14.5px;
  color: var(--text-2);
}
.note svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ok);
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ecosystem chain ---------- */
.ecosystem {
  position: relative;
  perspective: 1400px;
}
.chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chain::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0), rgba(125, 211, 252, 0.5), rgba(167, 139, 250, 0.5), rgba(167, 139, 250, 0));
}
.chain::after {
  content: "";
  position: absolute;
  top: 43px;
  left: 4%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px rgba(125, 211, 252, 0.8);
  animation: chainpulse 6s linear infinite;
}
@keyframes chainpulse {
  from {
    left: 4%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  to {
    left: 96%;
    opacity: 0;
  }
}
.chain-node {
  position: relative;
  text-align: center;
  padding: 0 6px;
}
.chain-node .orb {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-2);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.015) 60%),
    radial-gradient(70% 70% at 50% 20%, rgba(125, 211, 252, 0.18), transparent 70%),
    var(--bg-2);
  box-shadow:
    0 20px 40px -18px rgba(0, 0, 0, 0.9),
    0 0 0 6px rgba(5, 7, 11, 1);
  transform: rotateX(12deg);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease),
    border-color 0.6s var(--ease);
}
.chain-node .orb svg {
  width: 32px;
  height: 32px;
  color: var(--text);
}
.chain-node.is-core .orb {
  border-color: rgba(214, 191, 138, 0.55);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 60%),
    radial-gradient(70% 70% at 50% 20%, rgba(214, 191, 138, 0.35), transparent 70%),
    var(--bg-2);
}
.chain-node.is-core .orb img {
  width: 44px;
  height: 44px;
}
.chain-node:hover .orb,
.chain-node.is-lit .orb {
  transform: rotateX(0deg) translateY(-6px);
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow:
    0 26px 50px -18px rgba(125, 211, 252, 0.45),
    0 0 0 6px rgba(5, 7, 11, 1);
}
.chain-node h3 {
  margin-top: 20px;
  font-size: 16.5px;
}
.chain-node p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .chain {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
  .chain::before,
  .chain::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .chain {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .chain-node {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    text-align: left;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
  }
  .chain-node .orb {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0;
    transform: none;
  }
  .chain-node .orb svg {
    width: 26px;
    height: 26px;
  }
  .chain-node h3 {
    margin-top: 0;
  }
  .chain-node p {
    margin-top: 4px;
  }
}

/* ---------- Research console (dashboard visualization) ---------- */
.research-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.research-grid > figure {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.signal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sig;
}
.signal-list li {
  counter-increment: sig;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: default;
  transition:
    border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}
.signal-list li::before {
  content: counter(sig, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 2px;
  transition: color 0.4s var(--ease);
}
.signal-list li.is-active {
  border-color: var(--border-2);
  background: rgba(255, 255, 255, 0.035);
}
.signal-list li.is-active::before {
  color: var(--accent);
}
.signal-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.signal-list span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--muted);
}

.console {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    var(--bg-2);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(125, 211, 252, 0.05);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.9s var(--ease);
}
.console:hover {
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.console-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.console-bar .title {
  margin-left: 10px;
  font-weight: 600;
  color: var(--text-2);
}
.console-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.console-bar .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.pipeline span {
  position: relative;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pipeline span.is-active {
  color: var(--text);
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(125, 211, 252, 0.08);
}
.console-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1px;
  background: var(--border);
}
.widget {
  padding: 18px;
  background: var(--bg-2);
  min-height: 150px;
}
.widget h4 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  margin-top: 16px;
}
.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.95), rgba(125, 211, 252, 0.08));
  transform-origin: bottom;
  animation: barflux 3.6s var(--ease) infinite alternate;
}
.bars i:nth-child(even) {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.95), rgba(167, 139, 250, 0.08));
}
.bars i:nth-child(1) { height: 42%; animation-delay: -0.4s; }
.bars i:nth-child(2) { height: 64%; animation-delay: -1.2s; }
.bars i:nth-child(3) { height: 52%; animation-delay: -2.1s; }
.bars i:nth-child(4) { height: 78%; animation-delay: -0.8s; }
.bars i:nth-child(5) { height: 60%; animation-delay: -1.7s; }
.bars i:nth-child(6) { height: 88%; animation-delay: -2.6s; }
.bars i:nth-child(7) { height: 70%; animation-delay: -0.2s; }
.bars i:nth-child(8) { height: 94%; animation-delay: -1.4s; }
@keyframes barflux {
  from {
    transform: scaleY(0.72);
  }
  to {
    transform: scaleY(1);
  }
}
.spark {
  margin-top: 14px;
  width: 100%;
  height: 96px;
}
.spark .line {
  fill: none;
  stroke: url(#spark-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}
.spark .area {
  fill: url(#spark-fill);
  opacity: 0;
}
.in-view .spark .line {
  animation: draw 2.4s var(--ease) forwards;
}
.in-view .spark .area {
  animation: fadein 1.6s 1s var(--ease) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fadein {
  to {
    opacity: 1;
  }
}
.gauge-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.gauge {
  width: 96px;
  height: 96px;
  transform: rotate(-90deg);
}
.gauge .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 9;
}
.gauge .val {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
}
.in-view .gauge .val {
  animation: gauge 2.2s 0.3s var(--ease) forwards;
}
@keyframes gauge {
  to {
    stroke-dashoffset: 62;
  }
}
.legend {
  display: grid;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.legend span:nth-child(2)::before {
  background: var(--accent-2);
}
.legend span:nth-child(3)::before {
  background: var(--gold);
}
.timeline-bar {
  position: relative;
  height: 8px;
  margin-top: 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.timeline-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 99px;
  background: var(--grad-accent);
}
.in-view .timeline-bar::before {
  animation: fill 2.8s 0.4s var(--ease) forwards;
}
@keyframes fill {
  to {
    width: 68%;
  }
}
.timeline-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.console-caption {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}
@media (max-width: 1000px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
  .research-grid > figure {
    position: static;
  }
  .console {
    transform: none;
  }
}
@media (max-width: 640px) {
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .console-body {
    grid-template-columns: 1fr;
  }
  .console-caption {
    text-align: left;
  }
}

/* ---------- Supply chain timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 23px;
  height: 1px;
  background: var(--border-2);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  height: 1px;
  width: 0;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.6);
  transition: width 2.4s var(--ease);
}
.timeline.in-view::after {
  width: 100%;
}
.timeline li {
  position: relative;
  padding-top: 64px;
}
.timeline li .marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  z-index: 1;
}
.timeline li h3 {
  font-size: 16.5px;
}
.timeline li p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline::before,
  .timeline::after {
    left: 23px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .timeline::after {
    height: 0;
    transition: height 2.4s var(--ease);
  }
  .timeline.in-view::after {
    width: 1px;
    height: 100%;
  }
  .timeline li {
    padding: 0 0 30px 70px;
    min-height: 76px;
  }
}

/* ---------- Feature grid (technology / compliance) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .feature-grid,
  .feature-grid--2 {
    grid-template-columns: 1fr;
  }
}

.compliance-band {
  position: relative;
  border-radius: calc(var(--radius-lg) + 8px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(110, 231, 183, 0.07), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(214, 191, 138, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}
.check-list svg {
  width: 24px;
  height: 24px;
  color: var(--ok);
  margin-top: 2px;
}
.check-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.check-list span {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .check-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Partner section ---------- */
.partner {
  position: relative;
  border-radius: calc(var(--radius-lg) + 8px);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(125, 211, 252, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1018, #070a10);
  padding: clamp(32px, 5vw, 72px);
}
.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.partner h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4.2vw, 50px);
}
.partner .lead {
  margin-top: 18px;
  font-size: 17.5px;
  color: var(--text-2);
}
.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.benefit-chain {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefit-chain li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(5, 7, 11, 0.55);
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.benefit-chain li:hover {
  transform: translateX(6px);
  border-color: rgba(125, 211, 252, 0.4);
}
.benefit-chain li svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.benefit-chain li + li::before {
  content: "";
  position: absolute;
  left: 27px;
  top: -11px;
  width: 1px;
  height: 11px;
  background: rgba(125, 211, 252, 0.45);
}
.partner-criteria {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.partner-criteria h3 {
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.partner-criteria ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--text-2);
}
.partner-criteria li {
  display: flex;
  gap: 10px;
}
.partner-criteria li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
}
@media (max-width: 900px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .partner-criteria ul {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.contact-list a:hover {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.05);
  transform: translateY(-2px);
}
.contact-list .icon-badge {
  width: 44px;
  height: 44px;
}
.contact-list small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list strong {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  word-break: break-all;
}

.form-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--bg-2);
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(5, 7, 11, 0.6);
  margin: 0 0 26px;
}
.segmented legend {
  padding: 0;
}
.segmented label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented input:checked + span {
  color: #05070b;
}
.segmented label:has(input:checked) {
  background: linear-gradient(180deg, #ffffff, #d9e1ec);
  color: #05070b;
}
.segmented label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .segmented {
    grid-template-columns: 1fr;
  }
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.field label .req {
  color: var(--accent);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(5, 7, 11, 0.65);
  font-size: 15px;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 14px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option {
  background: #0b0f16;
  color: var(--text);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #5f6978;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.7);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12);
  background: rgba(5, 7, 11, 0.9);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(253, 164, 175, 0.75);
}
.field .error {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
}
.field.has-error .error {
  display: block;
}
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-2);
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: #7dd3fc;
}
.consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.form-actions .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  font-size: 14px;
  color: var(--text-2);
}
.form-status.is-ok {
  color: var(--ok);
}
.form-status.is-error {
  color: var(--danger);
}
.form-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding: 64px 0 36px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 13, 20, 0.6), var(--bg));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 380px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}
.footer-col a {
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--text);
}
.footer-col li span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-bottom p {
  max-width: 760px;
}
.footer-bottom a {
  color: var(--text-2);
}
.footer-bottom a:hover {
  color: var(--text);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Simple pages (privacy / 404) ---------- */
.page {
  padding: calc(var(--header-h) + 72px) 0 40px;
}
.prose {
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin-top: 16px;
}
.prose .updated {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.prose h2 {
  margin-top: 44px;
  font-size: 22px;
}
.prose p,
.prose li {
  color: var(--text-2);
  font-size: 16px;
}
.prose p {
  margin-top: 14px;
}
.prose ul {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
}
.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 200px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}
.not-found h1 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
}
.not-found p {
  margin: 14px auto 0;
  max-width: 480px;
  color: var(--text-2);
}
.not-found .hero-actions {
  justify-content: center;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .text-sheen,
  .hero-badge__dot::after {
    animation: none !important;
  }
  .tw-caret {
    display: none;
  }
  .console,
  .chain-node .orb {
    transform: none;
  }
  .spark .line {
    stroke-dashoffset: 0;
  }
  .spark .area {
    opacity: 1;
  }
  .gauge .val {
    stroke-dashoffset: 62;
  }
  .timeline-bar::before {
    width: 68%;
  }
  .timeline::after {
    width: 100%;
  }
}
