/* ==========================================================================
   LUCEXO INC — lucexo.com
   Dark, almost-mono studio identity. Plain CSS, no build step.
   ========================================================================== */

:root {
  /* Surfaces — deep near-black with a faint cool cast */
  --bg: #08090b;
  --bg-1: #0b0d10;
  --panel: #0e1015;
  --panel-2: #14171c;
  --panel-hi: #1a1e24;

  /* Hairlines */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);

  /* Text */
  --text: #eceef1;
  --text-2: #9aa1ab;
  --muted: #686e77;

  /* The single restrained accent — cold electric blue */
  --accent: #2f7dff;
  --accent-bright: #5e9bff;
  --accent-dim: rgba(47, 125, 255, 0.14);
  --accent-line: rgba(47, 125, 255, 0.4);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;

  --maxw: 1180px;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
section {
  padding: 120px 0;
  scroll-margin-top: 80px;
  position: relative;
}

/* Mono kicker / eyebrow */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-3);
}
.kicker.accent {
  color: var(--accent-bright);
}
.kicker.accent::before {
  background: var(--accent-line);
}

.section-head {
  max-width: 720px;
  margin: 0 0 64px;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  margin-top: 22px;
}
.section-head p {
  margin-top: 22px;
  font-size: 19px;
  color: var(--text-2);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  color: #06080c;
  background: #f3f5f8;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #fff;
}
.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}
.btn-accent {
  color: #fff;
  background: var(--accent);
}
.btn-accent:hover {
  transform: translateY(-2px);
  background: var(--accent-bright);
}
/* Quiet header CTA — restrained, doesn't pull focus */
.btn-quiet {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 9px 16px;
}
.btn-quiet:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

/* Text link with animated accent underline */
.tlink {
  color: var(--accent-bright);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.tlink:hover::after {
  transform: scaleX(1);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.55);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 9, 11, 0.82);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.brand .logo {
  width: 30px;
  height: 30px;
}
.brand .word {
  font-weight: 700;
  letter-spacing: 0.045em;
  font-size: 19px;
}
.brand .brand-dot {
  color: var(--accent-bright);
}
.brand .ent {
  font-family: var(--mono);
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  align-self: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

/* ---------- Hero (shared) ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-stage {
  display: none;
}
.hero-stage.is-active {
  display: block;
  animation: heroIn 0.6s var(--ease);
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero h1 {
  font-size: clamp(42px, 7.2vw, 94px);
  letter-spacing: -0.035em;
  font-weight: 600;
}
.hero h1 .soft {
  color: var(--muted);
}
.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-2);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* faint engineering grid backdrop */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(
    100% 75% at 50% 0%,
    #000 30%,
    transparent 80%
  );
  mask-image: radial-gradient(100% 75% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.55;
}
.glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(47, 125, 255, 0.16),
    transparent
  );
  filter: blur(10px);
}

/* Variant 1 — Statement (left, editorial) */
.hero-v1 {
  padding: 132px 0 0;
}
.hero-v1 .container {
  position: relative;
  z-index: 2;
}
.hero-v1 h1 {
  max-width: 14ch;
  margin: 28px 0 0;
}
.hero-v1 .lead {
  max-width: 52ch;
  margin: 30px 0 0;
}
.hero-v1 .hero-actions {
  margin-top: 40px;
}
.hero-v1 .hero-foot {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-foot-item {
  padding: 26px 28px 30px 0;
  border-right: 1px solid var(--line);
}
.hero-foot-item:last-child {
  border-right: 0;
}
.hero-foot-item .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero-foot-item .v {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}

/* Variant 2 — Centered */
.hero-v2 {
  padding: 150px 0 140px;
  text-align: center;
}
.hero-v2 .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-v2 .glow {
  width: 760px;
  height: 520px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-v2 .status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.hero-v2 h1 {
  max-width: 16ch;
  margin: 30px 0 0;
}
.hero-v2 .lead {
  max-width: 58ch;
  margin: 26px 0 0;
}
.hero-v2 .hero-actions {
  margin-top: 38px;
  justify-content: center;
}
.hero-v2 .platrow {
  margin-top: 60px;
}

/* Variant 3 — Split / product-forward */
.hero-v3 {
  padding: 120px 0 124px;
}
.hero-v3 .split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-v3 h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  max-width: 13ch;
  margin: 26px 0 0;
}
.hero-v3 .lead {
  max-width: 46ch;
  margin: 26px 0 0;
}
.hero-v3 .hero-actions {
  margin-top: 36px;
}
.device-frame {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-1) 100%);
  padding: 22px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.device-frame .frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.app-tile {
  text-align: center;
}
.app-tile .icon {
  aspect-ratio: 1;
  border-radius: 22%;
  border: 1px solid var(--line-2);
  background-color: var(--panel-2);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 9px
  );
  display: grid;
  place-items: center;
}
.app-tile .icon span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.app-tile .nm {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}

/* ---------- Platforms strip ---------- */
.platrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  flex-wrap: wrap;
}
.platrow .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.platrow .plat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  color: var(--text-2);
  font-size: 15px;
}
.platrow .plat svg {
  width: 17px;
  height: 17px;
  fill: var(--text-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap {
  padding: 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.cap:nth-child(2n) {
  border-right: 0;
}
.cap:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.cap:hover {
  background: rgba(255, 255, 255, 0.018);
}
.cap .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}
.cap .ico {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  background: var(--panel);
}
.cap .ico svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.6;
}
.cap .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.cap h3 {
  font-size: 21px;
  margin-bottom: 11px;
}
.cap p {
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 42ch;
}

/* ---------- In development (app placeholders) ---------- */
.dev {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.proj:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}
/* Soon = Teaser: looks like a real upcoming app card, no real details revealed.
   Real card markup is kept beneath (hidden) for when the project goes public. */
.proj.is-soon {
  border-style: solid;
  border-color: var(--line);
}
.proj.is-soon:hover {
  transform: none;
  border-color: var(--line);
}
.proj.is-soon > :not(.soon-cover) {
  visibility: hidden;
}
.soon-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: var(--panel);
  padding: 26px;
}
.soon-cover .chip-corner {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 5px 11px;
}
.soon-cover .t-icon {
  width: 64px;
  height: 64px;
  border-radius: 22%;
  border: 1px solid var(--line-2);
  background-color: var(--panel-2);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.06) 0,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px,
    transparent 9px
  );
  filter: blur(1.5px);
  opacity: 0.7;
  margin-bottom: 26px;
}
.soon-cover .t-sk {
  height: 9px;
  border-radius: 5px;
  background: var(--panel-2);
}
.soon-cover .t-sk.w1 {
  width: 52%;
  margin-bottom: 12px;
}
.soon-cover .t-sk.w2 {
  width: 72%;
  opacity: 0.6;
}
.proj .icon {
  width: 64px;
  height: 64px;
  border-radius: 22%;
  border: 1px solid var(--line-2);
  background-color: var(--panel-2);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 9px
  );
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.proj .icon span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.proj h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.proj p {
  color: var(--text-2);
  font-size: 14.5px;
  margin-bottom: 22px;
  max-width: 34ch;
}
.proj .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-2);
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.chip.status {
  color: var(--accent-bright);
  border-color: var(--accent-line);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ---------- Hero roadmap (v3 panel) ---------- */
.r-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-bright);
}
.r-live .dot {
  width: 6px;
  height: 6px;
}
.roadmap {
  position: relative;
}
.r-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  padding-bottom: 24px;
}
.r-item:last-child {
  padding-bottom: 0;
}
.r-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.r-rail::before {
  content: "";
  position: absolute;
  top: 19px;
  bottom: -24px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--line-2);
}
.r-item:last-child .r-rail::before {
  display: none;
}
.r-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: var(--panel-2);
  margin-top: 5px;
  z-index: 1;
}
.r-item.done .r-dot {
  background: var(--text);
  border-color: var(--text);
}
.r-item.done .r-rail::before {
  background: var(--line-3);
}
.r-item.active .r-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  animation: rpulse 2.4s var(--ease) infinite;
}
.r-item.pending .r-dot {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-3);
}
@keyframes rpulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--accent-dim);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(47, 125, 255, 0.05);
  }
}
.r-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.r-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.r-item.pending .r-title,
.r-item.upcoming .r-title {
  color: var(--text-2);
}
.r-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 5px;
}
.r-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.r-item.active .r-tag {
  color: var(--accent-bright);
  border-color: var(--accent-line);
}
.r-item.done .r-tag {
  color: var(--text-2);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.about-grid .lede {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-wrap: pretty;
}
.about-grid .body {
  color: var(--text-2);
  font-size: 16.5px;
  margin-top: 22px;
  max-width: 52ch;
}
.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 6px 26px;
}
.fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fact:last-child {
  border-bottom: 0;
}
.fact dt {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fact dd {
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  text-align: right;
  color: var(--text);
}

/* ---------- Contact ---------- */
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-1) 100%);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.contact-card .glow {
  width: 480px;
  height: 360px;
  top: -160px;
  right: -80px;
}
.contact-card .cc-body,
.contact-card .cc-action {
  position: relative;
  z-index: 1;
}
.cc-action {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.cc-action .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cc-action .email {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: break-all;
}
.cc-action .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.contact-card h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-top: 18px;
}
.contact-card p {
  color: var(--text-2);
  margin-top: 16px;
  font-size: 17px;
  max-width: 42ch;
}
.contact-info {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.contact-info a,
.contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-2);
}
.contact-info svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-bright);
  fill: none;
  stroke-width: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: var(--text-2);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer-bar {
  border-top: 1px solid var(--line);
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .brand {
  color: var(--text);
}
.footer-brand p {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 36ch;
}
.footer-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 14.5px;
  color: var(--text-2);
  margin-bottom: 11px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.footer-bottom .legal-links {
  display: flex;
  gap: 24px;
}
.footer-bottom .to-top {
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease);
}
.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- Hero variant switcher ---------- */
.hero-switch {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(14, 16, 21, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.hero-switch .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px 0 8px;
}
.hero-switch button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-switch button:hover {
  color: var(--text);
}
.hero-switch button.active {
  color: #fff;
  background: var(--accent);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 88px 0 120px;
}
.legal .container {
  max-width: 760px;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
  margin-bottom: 36px;
}
.legal h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 12px;
}
.legal .updated {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: 23px;
  margin: 52px 0 14px;
}
.legal h3 {
  font-size: 17px;
  margin: 30px 0 8px;
  color: var(--text);
}
.legal p,
.legal li {
  color: var(--text-2);
  font-size: 16.5px;
}
.legal p + p {
  margin-top: 16px;
}
.legal ul {
  list-style: none;
  padding-left: 0;
  margin-top: 14px;
}
.legal li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}
.legal li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent-line);
}
.legal strong {
  color: var(--text);
  font-weight: 600;
}
.legal a {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.notfound .code {
  font-family: var(--mono);
  font-size: clamp(64px, 14vw, 150px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.notfound .code b {
  color: var(--accent);
  font-weight: 500;
}
.notfound p {
  color: var(--text-2);
  margin: 14px 0 32px;
  font-size: 18px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] {
  transition-delay: 0.08s;
}
.reveal[data-d="2"] {
  transition-delay: 0.16s;
}
.reveal[data-d="3"] {
  transition-delay: 0.24s;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  section {
    padding: 88px 0;
  }
  .container {
    padding: 0 24px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 24px 24px;
    background: rgba(8, 9, 11, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open a {
    padding: 12px 0;
    width: 100%;
    font-size: 14px;
  }
  .hero-v3 .split,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .cap {
    border-right: 0;
  }
  .cap .top {
    margin-bottom: 36px;
  }
  .pipeline {
    grid-template-columns: 1fr;
  }
  .hero-v1 .hero-foot {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-foot-item:nth-child(2) {
    border-right: 0;
  }
  .hero-foot-item:nth-child(1),
  .hero-foot-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
}

@media (max-width: 560px) {
  .hero-v1 .hero-foot {
    grid-template-columns: 1fr;
  }
  .hero-foot-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-switch .lbl {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-stage.is-active {
    animation: none;
  }
}
