:root {
  --bg: #070b14;
  --bg-elevated: #0c1220;
  --surface: rgba(18, 26, 42, 0.82);
  --surface-solid: #121a2a;
  --ink: #f4f7fb;
  --text: #e6edf7;
  --muted: #8b9bb0;
  --line: rgba(148, 175, 210, 0.14);
  --accent: #3d8bfd;
  --accent-2: #22d3ee;
  --accent-deep: #2563eb;
  --accent-soft: rgba(61, 139, 253, 0.14);
  --success: #34d399;
  --danger: #fb7185;
  --cube-u: #f4f7fa;
  --cube-d: #f5c518;
  --cube-f: #22a35a;
  --cube-b: #3d8bfd;
  --cube-l: #f08a24;
  --cube-r: #e11d48;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;
  --nav-h: 4.25rem;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

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

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #061018;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 10px;
}

.skip:focus {
  top: 1rem;
}

.bg-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 12% -5%, rgba(61, 139, 253, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 8%, rgba(34, 211, 238, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(37, 99, 235, 0.08), transparent 55%),
    linear-gradient(180deg, #0a1020 0%, var(--bg) 45%, #05080f 100%);
}

.bg-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 175, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 175, 210, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 10%, transparent 75%);
}

.bg-orb {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: orb-drift 16s ease-in-out infinite alternate;
}

.bg-orb-a {
  width: min(52vw, 460px);
  height: min(52vw, 460px);
  top: 6%;
  right: -10%;
  background: rgba(61, 139, 253, 0.28);
}

.bg-orb-b {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  top: 48%;
  left: -12%;
  background: rgba(34, 211, 238, 0.12);
  animation-delay: -5s;
}

@keyframes orb-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(20px, -24px, 0) scale(1.07);
  }
}

.device-watermarks {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wm {
  position: absolute;
  color: rgba(148, 175, 210, 0.09);
  width: clamp(42px, 7vw, 78px);
  height: auto;
  animation: wm-float 18s ease-in-out infinite alternate;
}

.wm-phone {
  top: 12%;
  left: 6%;
  transform: rotate(-18deg);
}
.wm-laptop {
  top: 22%;
  right: 2%;
  width: clamp(56px, 9vw, 96px);
  transform: rotate(12deg);
  animation-delay: -3s;
  opacity: 0.4;
}
.wm-tablet {
  top: 42%;
  left: 3%;
  transform: rotate(8deg);
  animation-delay: -6s;
}
.wm-desktop {
  top: 58%;
  right: 3%;
  width: clamp(58px, 9vw, 100px);
  transform: rotate(-10deg);
  animation-delay: -2s;
  opacity: 0.35;
}
.wm-watch {
  top: 62%;
  left: 12%;
  width: clamp(34px, 5vw, 52px);
  transform: rotate(16deg);
  animation-delay: -8s;
}
.wm-code {
  top: 78%;
  right: 10%;
  width: clamp(52px, 8vw, 88px);
  transform: rotate(-6deg);
  animation-delay: -4s;
  opacity: 0.4;
}
.wm-phone-2 {
  top: 78%;
  left: 28%;
  transform: rotate(22deg);
  animation-delay: -10s;
  opacity: 0.55;
}
.wm-laptop-2 {
  top: 14%;
  left: 28%;
  width: clamp(50px, 8vw, 86px);
  transform: rotate(-14deg);
  animation-delay: -1s;
  opacity: 0.3;
}
.wm-tablet-2 {
  top: 72%;
  left: 48%;
  transform: rotate(-20deg);
  animation-delay: -7s;
  opacity: 0.3;
}
.wm-desktop-2 {
  top: 48%;
  left: 6%;
  width: clamp(54px, 8vw, 90px);
  transform: rotate(7deg);
  animation-delay: -5s;
  opacity: 0.35;
}
.wm-phone-3 {
  top: 86%;
  right: 28%;
  transform: rotate(-24deg);
  animation-delay: -9s;
  opacity: 0.7;
}
.wm-laptop-3 {
  top: 74%;
  right: 42%;
  width: clamp(50px, 8vw, 84px);
  transform: rotate(15deg);
  animation-delay: -11s;
  opacity: 0.65;
}

@keyframes wm-float {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -14px;
  }
}

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

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  height: var(--nav-h);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(7, 11, 20, 0.55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(7, 11, 20, 0.88);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  position: relative;
  z-index: 42;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-rubic {
  color: var(--ink);
}

.brand-soft {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-left: auto;
}

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.58rem 1rem !important;
  color: #061018 !important;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  border-radius: 10px;
  font-weight: 600 !important;
  box-shadow: 0 8px 24px rgba(61, 139, 253, 0.28);
}

.nav-cta:hover {
  filter: brightness(1.06);
  color: #061018 !important;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  z-index: 5;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}

.hero-grid {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.copy {
  position: relative;
  z-index: 2;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.75rem;
  max-width: 34rem;
  line-height: 1.3;
}

.support {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  color: #061018;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  box-shadow: 0 14px 32px rgba(61, 139, 253, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(18, 26, 42, 0.55);
}

.btn-ghost:hover {
  border-color: rgba(61, 139, 253, 0.4);
  background: rgba(61, 139, 253, 0.08);
}

.btn-lg {
  padding: 1rem 1.4rem;
}

.cube-plane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  z-index: 3;
  isolation: isolate;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.scene {
  --size: clamp(140px, 22vw, 200px);
  --gap: 1.5px;
  --step: calc(var(--size) / 3);
  --cubie: calc(var(--step) - var(--gap));
  --half-cubie: calc(var(--cubie) / 2);
  width: calc(var(--size) * 1.2);
  height: calc(var(--size) * 1.2);
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  perspective: 900px;
  perspective-origin: 50% 45%;
}

.scene .cube {
  width: var(--size);
  height: var(--size);
}

.cube-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 118%;
  margin-left: -59%;
  margin-top: -59%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.28;
  background: radial-gradient(circle, rgba(61, 139, 253, 0.16), transparent 70%);
  transition: opacity 0.35s ease, background 0.35s ease;
}

.cube-glow.solving {
  opacity: 0.4;
}

.cube-glow.turbo {
  opacity: 0.48;
  background: radial-gradient(circle, rgba(61, 139, 253, 0.2), transparent 70%);
}

.cube-glow.resolved {
  opacity: 0.42;
  animation: glow-soft 0.8s ease-out;
}

@keyframes glow-soft {
  0% {
    transform: scale(0.95);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0.35;
  }
}

.cube {
  width: var(--size);
  height: var(--size);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-30deg) rotateY(38deg);
  -webkit-font-smoothing: antialiased;
}

.pivot {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.cubie {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cubie);
  height: var(--cubie);
  margin-left: calc(var(--cubie) / -2);
  margin-top: calc(var(--cubie) / -2);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.cubie-face {
  position: absolute;
  width: var(--cubie);
  height: var(--cubie);
  border-radius: 3px;
  background: #1a2436;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.cubie-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 42%);
  opacity: 0.55;
  pointer-events: none;
}

.cubie-face.plastic {
  background: #1a2436;
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: none;
}

.cubie-face.plastic::after {
  display: none;
}

.cubie-face.u {
  transform: rotateX(90deg) translateZ(var(--half-cubie));
}
.cubie-face.d {
  transform: rotateX(-90deg) translateZ(var(--half-cubie));
}
.cubie-face.f {
  transform: translateZ(var(--half-cubie));
}
.cubie-face.b {
  transform: rotateY(180deg) translateZ(var(--half-cubie));
}
.cubie-face.l {
  transform: rotateY(-90deg) translateZ(var(--half-cubie));
}
.cubie-face.r {
  transform: rotateY(90deg) translateZ(var(--half-cubie));
}

.cube-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 16rem;
  line-height: 1.4;
  background: rgba(7, 11, 20, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transform: translateZ(0);
}

/* ——— Sections ——— */
.section {
  position: relative;
  z-index: 5;
  padding: clamp(4.5rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}

.section-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-head .section-lead {
  margin-top: 1rem;
  margin-bottom: 0;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-lead a {
  color: #7dd3a0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section-lead a:hover {
  color: #a7f3c4;
}

.showcase {
  padding-top: 0;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.uk-hero-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.uk-illust {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(61, 139, 253, 0.12), transparent 55%),
    rgba(8, 12, 22, 0.75);
}

.uk-illust img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation: viz-float 6s ease-in-out infinite;
}

.uk-illust:nth-child(2) img {
  animation-delay: 0.8s;
}

.uk-illust figcaption {
  text-align: left;
}

.uk-illust-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}

.uk-illust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.uk-illust p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.photo-band {
  margin: 0;
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.photo-band img {
  display: block;
  width: 100%;
  height: clamp(200px, 32vw, 380px);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.05);
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(7, 11, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, 0.35), transparent 40%);
  pointer-events: none;
}

.photo-band-caption {
  position: absolute;
  left: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(0.9rem, 2.5vw, 1.4rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.photo-band-sep {
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.platform-orbit {
  position: relative;
  width: min(100%, 520px);
  height: 220px;
  margin: 2rem auto 0;
}

.orbit-ring {
  position: absolute;
  inset: 18% 12%;
  border: 1px dashed rgba(61, 139, 253, 0.35);
  border-radius: 50%;
  animation: orbit-spin 28s linear infinite;
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(61, 139, 253, 0.4);
  background: rgba(7, 12, 22, 0.92);
  box-shadow: 0 0 28px rgba(61, 139, 253, 0.2);
}

.orbit-core img {
  width: 36px;
  height: 36px;
}

.orbit-node {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 139, 253, 0.3);
  background: rgba(12, 18, 32, 0.9);
  animation: node-pulse 3.6s ease-in-out infinite;
}

.orbit-node-1 { left: 8%; top: 42%; animation-delay: 0s; }
.orbit-node-2 { right: 6%; top: 38%; animation-delay: 0.4s; }
.orbit-node-3 { left: 22%; top: 8%; animation-delay: 0.8s; }
.orbit-node-4 { right: 18%; bottom: 10%; animation-delay: 1.2s; }
.orbit-node-5 { left: 38%; bottom: 4%; animation-delay: 1.6s; }

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes node-pulse {
  0%, 100% { transform: translateY(0); border-color: rgba(61, 139, 253, 0.3); }
  50% { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.55); }
}

.viz-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.viz-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.viz-art {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 220;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.45s ease;
}

.viz-card.in .viz-art {
  animation: viz-float 5.5s ease-in-out infinite;
}

.viz-card:nth-child(2).in .viz-art { animation-delay: 0.4s; }
.viz-card:nth-child(3).in .viz-art { animation-delay: 0.8s; }
.viz-card:nth-child(4).in .viz-art { animation-delay: 1.2s; }
.viz-card:nth-child(5).in .viz-art { animation-delay: 1.6s; }

@keyframes viz-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.viz-card:hover .viz-art {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(61, 139, 253, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 211, 238, 0.12);
  animation: none;
}

.viz-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.15rem 0 0.35rem;
}

.viz-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

.tokenx-section {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.tokenx-section .section-head {
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.tokenx-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 18, 32, 0.65);
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.tokenx-link:hover {
  border-color: rgba(61, 139, 253, 0.45);
  background: rgba(18, 28, 48, 0.85);
  transform: translateY(-2px);
}

.tokenx-link-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.tokenx-logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(13, 92, 69, 0.28);
}

.tokenx-link-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 42rem;
}

.tokenx-link .eyebrow {
  margin: 0;
}

.tokenx-link-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.tokenx-link-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tokenx-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-2);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.approach-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.about-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  max-width: 320px;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
}

.approach-copy .section-head {
  margin-bottom: 1.5rem;
}

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

.cases-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.case-card {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1220;
  isolation: isolate;
  transition: transform 0.35s ease, border-color 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 139, 253, 0.45);
}

.case-card img {
  display: block;
  width: 100%;
  height: clamp(160px, 22vw, 220px);
  object-fit: cover;
}

.case-card span {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 11, 20, 0.55) 100%);
  pointer-events: none;
}

.pillar {
  padding: 1.25rem 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 18, 32, 0.55);
  text-align: left;
  transition: border-color 0.3s ease, transform 0.35s ease;
}

.pillar:hover {
  border-color: rgba(61, 139, 253, 0.4);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 0.85rem;
  color: var(--accent-2);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.pillar p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.process-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  position: relative;
  margin: 0;
  padding: 0;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(61, 139, 253, 0.18);
  pointer-events: none;
}

.process-track::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  width: var(--process-progress, 0%);
  max-width: 84%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  pointer-events: none;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-track li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

.process-step.is-active .process-icon {
  border-color: rgba(34, 211, 238, 0.7);
  color: var(--accent-2);
  box-shadow: 0 0 0 8px rgba(7, 11, 20, 0.9), 0 0 24px rgba(34, 211, 238, 0.25);
  transform: scale(1.06);
}

.process-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(61, 139, 253, 0.35);
  background: rgba(7, 12, 22, 0.92);
  color: var(--accent-2);
  box-shadow: 0 0 0 8px rgba(7, 11, 20, 0.9);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.process-icon svg {
  width: 56px;
  height: 56px;
}

.process-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.process-track h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.process-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 16rem;
}

.faq {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 46rem;
  margin: 2.5rem auto 0;
}

.faq-item {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.85rem;
  background: rgba(12, 18, 32, 0.55);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(34, 163, 90, 0.35);
  background: rgba(12, 18, 32, 0.8);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text, #f4f7fa);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #22a35a;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item[open] summary::after {
  content: "–";
  background: rgba(34, 163, 90, 0.12);
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item a {
  color: #7dd3a0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.faq-item a:hover {
  color: #a7f3c4;
}

.contact {
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.contact-inner {
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
}

.contact-inner .section-lead {
  margin-inline: auto;
}

.contact-form {
  width: min(100%, 52rem);
  margin-inline: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.field-label .optional {
  font-weight: 500;
  color: var(--muted);
}

.field-hint {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #7a8ba0;
}

.field input,
.field textarea,
.cc-trigger,
.cc-search {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7, 12, 22, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.phone-group {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.95fr) 1.35fr;
  gap: 0.55rem;
  align-items: start;
}

.cc-combobox {
  position: relative;
}

.cc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  cursor: pointer;
  text-align: left;
  padding-right: 0.75rem;
}

.cc-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-1px, -2px);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cc-combobox.open .cc-chevron {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.cc-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: min(18rem, 78vw);
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f1626;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 0.55rem;
  flex-direction: column;
  gap: 0.45rem;
  display: none;
}

.cc-combobox.open .cc-panel {
  display: flex;
}

.cc-search {
  padding: 0.7rem 0.8rem;
  font-size: 0.9rem;
}

.cc-list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}

.cc-option:hover,
.cc-option[aria-selected="true"],
.cc-option.active {
  background: rgba(61, 139, 253, 0.16);
  color: #fff;
}

.cc-option .cc-code {
  color: var(--accent-2);
  font-weight: 600;
  margin-right: 0.4rem;
}

.cc-empty {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.55rem 0.35rem 0.25rem;
  margin: 0;
}

.field textarea {
  min-height: 8.5rem;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder,
.cc-search::placeholder {
  color: #6b7c91;
}

.field input:focus,
.field textarea:focus,
.cc-trigger:focus,
.cc-search:focus,
.cc-combobox.open .cc-trigger {
  border-color: rgba(61, 139, 253, 0.55);
  background: rgba(10, 16, 28, 0.95);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-status.ok {
  color: var(--success);
}

.form-status.err {
  color: var(--danger);
}

.contact-form.is-sending #contactSubmit {
  opacity: 0.7;
  pointer-events: none;
}

.site-foot {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.92);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
}

.foot-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.foot-tag {
  font-size: 0.88rem;
  color: var(--muted);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.foot-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.foot-links a:hover {
  color: var(--accent-2);
}

.foot-copy {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #66788f;
}

.site-foot .nav-logo {
  width: 32px;
  height: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: opacity, transform, filter;
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.section-head.reveal {
  transform: translateY(28px);
}

.service-item.reveal,
.viz-card.reveal,
.pillar.reveal,
.process-list .reveal,
.process-track .reveal,
.faq-item.reveal {
  transform: translateY(28px) translateX(-12px);
}

.service-item.reveal.in,
.viz-card.reveal.in,
.pillar.reveal.in,
.process-list .reveal.in,
.process-track .reveal.in,
.faq-item.reveal.in {
  transform: none;
}

.tokenx-link.reveal,
.photo-band.reveal,
.platform-orbit.reveal,
.uk-illust.reveal,
.about-stack.reveal,
.about-photo.reveal,
.case-card.reveal,
.contact-form.reveal {
  transform: translateY(40px) scale(0.98);
}

.tokenx-link.reveal.in,
.photo-band.reveal.in,
.platform-orbit.reveal.in,
.uk-illust.reveal.in,
.about-stack.reveal.in,
.about-photo.reveal.in,
.case-card.reveal.in,
.contact-form.reveal.in {
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .copy {
    order: 1;
  }

  .cube-plane {
    order: 0;
    margin-bottom: 0.5rem;
  }

  .eyebrow {
    justify-content: center;
  }

  .support {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .uk-hero-pair,
  .approach-layout,
  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-photo {
    max-width: 280px;
    margin-inline: auto;
  }

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

  .viz-card,
  .viz-card-wide {
    grid-column: span 1;
  }

  .pillar-grid,
  .process-track,
  .approach-copy .pillar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-track::before,
  .process-track::after {
    display: none;
  }

  .platform-orbit {
    height: 200px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 4.25rem;
  }

  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .nav-brand {
    justify-content: flex-start;
    margin-right: auto;
  }

  .nav-wordmark {
    font-size: 1.05rem;
  }

  .nav-menu {
    justify-content: flex-end;
    margin-left: auto;
    gap: 0.35rem 0.7rem;
    max-width: 62%;
  }

  .nav-menu a {
    font-size: 0.78rem;
  }

  .nav-cta {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.78rem !important;
  }

  .viz-grid,
  .pillar-grid,
  .process-track,
  .approach-copy .pillar-grid,
  .uk-hero-pair,
  .approach-layout,
  .cases-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 100%;
  }

  .form-footer {
    flex-direction: column;
  }

  .form-footer .btn {
    width: 100%;
  }

  .platform-orbit {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .copy,
  .cube-plane,
  .wm,
  .orbit-ring,
  .orbit-node,
  .viz-card.in .viz-art {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
