/* ============================================================
   Corebits — tech-studio stylesheet (dark)
   Tailwind handles utilities; this file adds the base layer, the
   ambient FX layers, bespoke components, and the motion layer.
   Every animation is disabled under prefers-reduced-motion.
   ============================================================ */

:root {
  --void:    #06070f;
  --void-2:  #0a0c18;
  --panel:   rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.045);
  --line:    rgba(255, 255, 255, 0.08);
  --line-2:  rgba(255, 255, 255, 0.14);
  --txt:     #e7e9f4;
  --txt-2:   #9da4ba;
  --txt-3:   #5d6478;
  --cyan:    #22d3ee;
  --indigo:  #6366f1;
  --violet:  #a855f7;
  --fuchsia: #e879f9;
  --grad:    linear-gradient(110deg, #22d3ee, #6366f1 46%, #a855f7);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,.55), rgba(99,102,241,.4) 46%, rgba(168,85,247,.55));
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
               Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--void);
  color: var(--txt);
  overflow-x: hidden;
}
.bg-void { background-color: var(--void); }
.font-display { font-family: 'Space Grotesk', Inter, sans-serif; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

::selection { background: rgba(99, 102, 241, 0.4); color: #fff; }
a { text-decoration: none; color: inherit; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5); border-radius: 8px; }

/* ============================================================
   Ambient background layers (fixed behind everything)
   ============================================================ */
.fx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(168,85,247,0.07), transparent 55%),
    var(--void);
}
.fx-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 80%);
  animation: grid-drift 28s linear infinite;
}
@keyframes grid-drift { to { background-position: 54px 54px; } }

.fx-aurora {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.55;
}
.fx-aurora-1 { width: 50vw; height: 50vw; left: -12vw;  top: -10vw;  background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 70%);  animation: aurora-1 24s ease-in-out infinite alternate; }
.fx-aurora-2 { width: 45vw; height: 45vw; right: -10vw; top: 18vh;   background: radial-gradient(circle, rgba(168,85,247,0.16), transparent 70%); animation: aurora-2 30s ease-in-out infinite alternate; }
.fx-aurora-3 { width: 40vw; height: 40vw; left: 30vw;   bottom: -14vw; background: radial-gradient(circle, rgba(99,102,241,0.14), transparent 70%); animation: aurora-3 26s ease-in-out infinite alternate; }
@keyframes aurora-1 { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes aurora-2 { to { transform: translate(-6vw, -5vh) scale(0.9); } }
@keyframes aurora-3 { to { transform: translate(-7vw, 4vh) scale(1.1); } }

.fx-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--grad);
  box-shadow: 0 0 12px rgba(99,102,241,0.7);
  transition: width 0.1s linear;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: rgba(6, 7, 15, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 7, 15, 0.8);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 40px -20px rgba(0,0,0,0.8);
}
.logo-mark { display: inline-flex; filter: drop-shadow(0 2px 10px rgba(99,102,241,0.45)); transition: transform 0.4s cubic-bezier(.22,1,.36,1); }
.group:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt-2);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--grad);
  transition: width 0.3s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  background-image: linear-gradient(110deg, #22d3ee, #6366f1 45%, #a855f7, #6366f1);
  background-size: 220% 100%;
  box-shadow: 0 6px 28px -6px rgba(99,102,241,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  animation: btn-pan 6s linear infinite;
  transition: transform 0.18s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.6s ease-in-out infinite;
}
.btn-primary:hover { box-shadow: 0 10px 36px -6px rgba(99,102,241,0.8), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary svg { transition: transform 0.25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
@keyframes btn-pan { to { background-position: 220% 0; } }
@keyframes btn-shine { 0%, 58% { left: -75%; } 100% { left: 145%; } }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(99,102,241,0.6);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 24px -6px rgba(99,102,241,0.5);
}

.link-accent { color: var(--cyan); font-weight: 600; transition: color 0.2s ease; }
.link-accent:hover { color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Gradient hairline border (mask trick) ===== */
.gradient-border { position: relative; isolation: isolate; }
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-soft);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0.6;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.gradient-border:hover::before { opacity: 1; }

/* ===== Animated gradient text ===== */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gradient-text-animated {
  background: linear-gradient(110deg, #22d3ee, #818cf8, #c084fc, #22d3ee);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-pan 7s linear infinite;
}
@keyframes text-pan { to { background-position: 250% 0; } }

/* ============================================================
   Hero
   ============================================================ */
.hero { min-height: 88vh; display: flex; align-items: center; }
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(99,102,241,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero:hover .spotlight { opacity: 1; }

/* Status chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
}
.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.75); } }

/* ===== Hero console ===== */
.console {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16,18,32,0.9), rgba(10,12,24,0.85));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--line);
}
.console-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.console-path { margin-left: 10px; font-size: 11.5px; color: var(--txt-3); }
.console-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #34d399;
}
.console-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: pulse-dot 1.6s ease-in-out infinite; }
.console-body { padding: 20px 20px 22px; }

.term { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; line-height: 1.5; }
.term-line { white-space: nowrap; overflow: hidden; }
.term-prompt { color: var(--cyan); font-weight: 600; margin-right: 6px; }
.term-dim { color: var(--txt-3); }
.term-dots { color: rgba(255,255,255,0.18); }
.term-ok { color: #34d399; }
.term-accent { color: var(--cyan); }
/* typed-in reveal */
[data-typer].typing .term-line { opacity: 0; }
[data-typer].typing .term-line.shown { opacity: 1; animation: line-in 0.3s ease both; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.metrics { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 12px; }
.metric { display: grid; grid-template-columns: 56px 1fr 52px; align-items: center; gap: 12px; font-size: 11px; }
.metric-label { color: var(--txt-3); text-transform: uppercase; letter-spacing: 0.1em; }
.metric-bar { position: relative; height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.metric-bar > i {
  position: absolute;
  inset: 0;
  width: var(--w);
  border-radius: 9999px;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  animation: bar-grow 1.4s cubic-bezier(.22,1,.36,1) both;
}
.metric-bar-2 > i { background: linear-gradient(90deg, #6366f1, #a855f7); animation-delay: 0.15s; }
.metric-bar-3 > i { background: linear-gradient(90deg, #34d399, #22d3ee); animation-delay: 0.3s; }
.metric-bar > i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: translateX(-100%);
  animation: bar-shimmer 2.4s ease-in-out infinite;
}
.metric-val { text-align: right; color: var(--txt); font-weight: 600; }
.metric-val small { color: var(--txt-3); font-weight: 500; }
@keyframes bar-grow { from { width: 0; } to { width: var(--w); } }
@keyframes bar-shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(220%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   Capability marquee
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-2);
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-sep { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Section heads
   ============================================================ */
.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow-idx {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--violet);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.section-sub { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: var(--txt-2); }
.section-alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.012); }

/* ============================================================
   Bento grid (What we build)
   ============================================================ */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bento-tile {
  position: relative;
  padding: 26px;
  border-radius: 20px;
  background: var(--panel);
  overflow: hidden;
  min-height: 180px;
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.bento-tile:hover { background: var(--panel-2); box-shadow: 0 30px 60px -34px rgba(0,0,0,0.8), 0 0 50px -16px rgba(99,102,241,0.35); }
.tile-glow {
  position: absolute;
  width: 220px; height: 220px;
  top: -60px; right: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.bento-tile:hover .tile-glow { opacity: 1; }
.tile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tile-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(34,211,238,0.14), rgba(99,102,241,0.1));
  border: 1px solid rgba(34,211,238,0.2);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.tile-icon svg { width: 23px; height: 23px; }
.bento-tile:hover .tile-icon { transform: translateY(-3px) rotate(-6deg); }
.tile-tag { font-size: 10.5px; letter-spacing: 0.12em; color: var(--txt-3); }
.tile-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; color: #fff; }
.tile-desc { margin-top: 9px; font-size: 13.5px; line-height: 1.65; color: var(--txt-2); }

/* featured tile sparkline */
.tile-viz { margin-top: 22px; display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.tile-viz .spark {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--indigo));
  opacity: 0.55;
  animation: spark 2.6s ease-in-out infinite;
}
.tile-viz .spark:nth-child(1) { animation-delay: 0s; }
.tile-viz .spark:nth-child(2) { animation-delay: 0.12s; }
.tile-viz .spark:nth-child(3) { animation-delay: 0.24s; }
.tile-viz .spark:nth-child(4) { animation-delay: 0.36s; }
.tile-viz .spark:nth-child(5) { animation-delay: 0.48s; }
.tile-viz .spark:nth-child(6) { animation-delay: 0.6s; }
.tile-viz .spark:nth-child(7) { animation-delay: 0.72s; }
.tile-viz .spark:nth-child(8) { animation-delay: 0.84s; }
.tile-viz .spark:nth-child(9) { animation-delay: 0.96s; }
.tile-viz .spark:nth-child(10) { animation-delay: 1.08s; }
.tile-viz .spark:nth-child(11) { animation-delay: 1.2s; }
.tile-viz .spark:nth-child(12) { animation-delay: 1.32s; }
@keyframes spark { 0%, 100% { height: 22%; opacity: 0.4; } 50% { height: 100%; opacity: 0.85; } }

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(190px, auto); }
  .tile-lg { grid-row: span 2; }
  .bento-tile:last-child { grid-column: span 2; }
}

/* ============================================================
   Stats HUD
   ============================================================ */
.stat-hud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 20px;
  background: var(--panel);
  overflow: hidden;
}
.stat { padding: 28px 22px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.stat-num { font-size: clamp(30px, 5vw, 44px); font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat-num [data-count] { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-unit { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { margin-top: 10px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-3); }
@media (min-width: 768px) {
  .stat-hud { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(3)::before { display: block; }
}
@media (max-width: 767px) {
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(odd)::before { display: none; }
}

/* ============================================================
   Product / spec cards (Our work)
   ============================================================ */
.spec-card {
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.spec-card:hover { background: var(--panel-2); box-shadow: 0 30px 60px -34px rgba(0,0,0,0.8), 0 0 50px -18px rgba(99,102,241,0.35); }
.spec-preview {
  position: relative;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preview-a { background: linear-gradient(135deg, #0e7490, #4338ca); }
.preview-b { background: linear-gradient(135deg, #1d4ed8, #6d28d9); }
.preview-c { background: linear-gradient(135deg, #7c3aed, #be185d); }
.preview-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 120%, #000, transparent 70%);
  mask-image: radial-gradient(120% 100% at 50% 120%, #000, transparent 70%);
  opacity: 0.5;
}
.spec-glyph { position: relative; width: 48px; height: 48px; color: rgba(255,255,255,0.92); filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4)); }
.spec-preview::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.spec-card:hover .spec-preview::after { left: 130%; }
.spec-body { padding: 22px; }
.spec-title { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; color: #fff; }
.spec-desc { margin-top: 9px; font-size: 13.5px; line-height: 1.65; color: var(--txt-2); }
.spec-link { display: inline-block; margin-top: 16px; font-size: 12px; color: var(--txt-3); transition: color 0.25s ease, transform 0.25s ease; }
.spec-card:hover .spec-link { color: var(--cyan); transform: translateX(3px); }

/* status pills */
.spec-status {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-live    { color: #34d399; background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.3); }
.status-beta    { color: #38bdf8; background: rgba(56,189,248,0.1);  border: 1px solid rgba(56,189,248,0.3); }
.status-dev     { color: #fbbf24; background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.3); }
.status-soon    { color: #818cf8; background: rgba(129,140,248,0.12); border: 1px solid rgba(129,140,248,0.3); }
.status-concept { color: var(--txt-2); background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); }

/* ============================================================
   Pipeline (Approach)
   ============================================================ */
.pipeline { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; }
.pipe-line {
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--cyan), var(--indigo), var(--violet), transparent);
}
.pipe-step { position: relative; padding-left: 30px; }
.pipe-node {
  position: absolute;
  left: 0; top: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--indigo);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12), 0 0 14px rgba(99,102,241,0.6);
}
.pipe-idx { font-size: 11px; letter-spacing: 0.1em; color: var(--cyan); }
.pipe-title { font-family: 'Space Grotesk', sans-serif; margin-top: 7px; font-size: 16px; font-weight: 600; color: #fff; }
.pipe-desc { margin-top: 7px; font-size: 13.5px; line-height: 1.65; color: var(--txt-2); max-width: 30ch; }
@media (min-width: 768px) {
  .pipeline { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .pipe-line { left: 6px; right: 6px; top: 6px; bottom: auto; width: auto; height: 1.5px; background: linear-gradient(90deg, var(--cyan), var(--indigo), var(--violet), rgba(168,85,247,0.1)); }
  .pipe-step { padding-left: 0; padding-top: 30px; }
  .pipe-node { top: 0; left: 0; }
}

/* ============================================================
   About spec sheet
   ============================================================ */
.spec-sheet { border-radius: 16px; background: linear-gradient(180deg, rgba(16,18,32,0.7), rgba(10,12,24,0.6)); overflow: hidden; }
.spec-sheet-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; font-size: 12px; background: rgba(255,255,255,0.025); border-bottom: 1px solid var(--line); }
.spec-sheet-body { padding: 10px 20px 18px; font-size: 13px; }
.spec-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--txt-3); }
.spec-row dd { margin: 0; color: var(--txt); }
.dd-accent { color: var(--cyan) !important; }
.dd-live { color: #34d399 !important; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  border-radius: 28px;
  padding: 56px 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14,16,30,0.9), rgba(8,10,20,0.95));
}
@media (min-width: 768px) { .cta { padding: 80px 64px; } }
.cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
}
.cta-glow { position: absolute; border-radius: 9999px; filter: blur(80px); pointer-events: none; }
.cta-glow-1 { width: 360px; height: 300px; left: -60px; top: -90px; background: rgba(34,211,238,0.3); }
.cta-glow-2 { width: 340px; height: 300px; right: -50px; bottom: -100px; background: rgba(168,85,247,0.32); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,0.012); position: relative; }
.footer-head { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-3); }
.footer-list { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
.footer-list a { color: var(--txt-2); transition: color 0.25s ease; }
.footer-list a:hover { color: #fff; }
.status-line { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.06em; color: var(--txt-3); }
.status-line-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: pulse-dot 1.8s ease-in-out infinite; }
.footer-bottom { border-top: 1px solid var(--line); }

/* ============================================================
   Motion layer (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* 3D tilt */
[data-tilt] { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); transform-style: preserve-3d; will-change: transform; }

/* ============================================================
   Legal pages (privacy / terms / 404 content)
   ============================================================ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 130px 24px 90px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--txt-2);
}
.legal-content h1 { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-bottom: 8px; }
.legal-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; color: #fff; margin: 42px 0 12px; }
.legal-content p { margin: 0 0 14px; }
.legal-content a { color: var(--cyan); }
.legal-content a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-content ul { margin: 0 0 16px; padding-left: 24px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--txt); }
.legal-content .updated { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--txt-3); margin-bottom: 32px; }

/* ============================================================
   Reduced motion: switch everything off
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fx-grid, .fx-aurora, .gradient-text-animated, .btn-primary, .btn-primary::after,
  .console, .marquee-track, .chip-dot, .console-live-dot, .status-line-dot,
  .tile-viz .spark, .metric-bar > i, .metric-bar > i::after, .spec-preview::after {
    animation: none !important;
  }
  .metric-bar > i { width: var(--w); }
  [data-tilt] { transform: none !important; }
}
