/* =========================================================
   PulseAI · Premium Landing v3
   - 3D tilt cards (perspective + rotate via JS data-tilt)
   - Spotlight cursor reaction
   - Magnetic buttons (translation via JS)
   - Animated gradient borders
   - Variable type system: Space Grotesk display + Inter body
   - Reflection underlay on hero core
   - Subtle dot grid overlay
========================================================= */

:root {
  --bg-0: #050616;
  --bg-1: #07091e;
  --bg-2: #0a0c2a;
  --text: #f5f7ff;
  --muted: #b3b9d4;
  --muted-2: #7a8099;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);

  --violet: #8b5cf6;
  --magenta: #ec4899;
  --cyan: #06b6d4;
  --green: #22c55e;
  --warn: #f59e0b;

  --grad-1: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%);
  --grad-2: linear-gradient(90deg, #8b5cf6, #ec4899);
  --grad-3: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.18));
  --grad-conic: conic-gradient(from 180deg at 50% 50%, #8b5cf6, #ec4899, #06b6d4, #8b5cf6);

  --radius: 18px;
  --radius-lg: 24px;
  --shell-w: min(1240px, calc(100% - 2rem));

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.25);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "kern";
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: rgba(236, 72, 153, 0.35);
  color: #fff;
}

/* =========================================================
   AURORA + GRID OVERLAY + CURSOR BLOB
========================================================= */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(80px);
  opacity: 0.6;
}

.aurora-blob {
  position: absolute;
  width: 56vmax;
  height: 56vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora-blob.a1 {
  background: #6d28d9;
  top: -25%;
  left: -15%;
  animation: drift1 28s ease-in-out infinite alternate;
}
.aurora-blob.a2 {
  background: #db2777;
  top: -10%;
  right: -25%;
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora-blob.a3 {
  background: #0891b2;
  bottom: -30%;
  left: 30%;
  animation: drift3 36s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to { transform: translate(8vw, 6vh) scale(1.1); }
}
@keyframes drift2 {
  to { transform: translate(-6vw, 10vh) scale(1.05); }
}
@keyframes drift3 {
  to { transform: translate(10vw, -8vh) scale(1.1); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  opacity: 0.6;
}

.cursor-blob {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(139, 92, 246, 0.18) 0%,
    rgba(236, 72, 153, 0.10) 40%,
    transparent 70%
  );
  filter: blur(40px);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  will-change: transform;
  mix-blend-mode: screen;
}

@media (hover: hover) and (pointer: fine) {
  body:hover .cursor-blob {
    opacity: 1;
  }
}

/* =========================================================
   SHELL / SECTION
========================================================= */
.shell {
  width: var(--shell-w);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(4rem, 7vw, 7rem) 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(10, 12, 42, 0.55), transparent);
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* =========================================================
   NEWS BAR
========================================================= */
.news-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0.18),
    rgba(236, 72, 153, 0.15),
    rgba(6, 182, 212, 0.18)
  );
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--muted);
}

.news-pill {
  background: var(--grad-2);
  color: #fff;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.35rem;
}

.news-bar.hidden {
  display: none;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 6, 22, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.45);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover img {
  transform: rotate(-12deg) scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--grad-2);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0 1rem;
  width: var(--shell-w);
  margin-inline: auto;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  color: var(--text);
  background: var(--glass);
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.2s,
    background 0.2s,
    letter-spacing 0.25s;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-conic);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: spin 8s linear infinite;
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  letter-spacing: 0.01em;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--grad-2);
  color: #fff;
  box-shadow:
    0 16px 48px rgba(139, 92, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  border: none;
}

.btn-primary:hover {
  box-shadow:
    0 22px 60px rgba(236, 72, 153, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--glass);
}

.btn-pill {
  background: var(--grad-2);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.86rem;
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.35);
}

.btn-block { width: 100%; }

.btn-magnetic {
  /* JS will set translate via --mx / --my */
  --mx: 0px;
  --my: 0px;
  transform: translate(var(--mx), var(--my));
}

.btn-magnetic:hover {
  transform: translate(var(--mx), calc(var(--my) - 2px));
}

/* Ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.7s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Submit loader */
#cta-submit { position: relative; min-height: 46px; }
#cta-submit .btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

#cta-submit.is-loading .btn-label { opacity: 0.7; }
#cta-submit.is-loading .btn-loader { display: inline-block; }

/* =========================================================
   TYPOGRAPHY
========================================================= */
.kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 1rem;
}

.section-lede {
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.grad {
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s ease-in-out infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.footnote {
  color: var(--muted-2);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

/* =========================================================
   HERO
========================================================= */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  position: relative;
  overflow: hidden;
}

.eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 3.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 60% { transform: translateX(-100%); }
  100% { transform: translateX(120%); }
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.85rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 0 1.85rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 540px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.stat-lbl {
  color: var(--muted-2);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* HERO ART */
.hero-art { position: relative; }

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(560px, 100%);
  margin-inline: auto;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.hero-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 70%;
  height: 8%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.4), transparent 70%);
  filter: blur(16px);
  z-index: 0;
}

.spotlight {
  background: radial-gradient(
    320px 320px at var(--sx, 50%) var(--sy, 50%),
    rgba(139, 92, 246, 0.18),
    transparent 70%
  );
  border-radius: 50%;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.25);
}

.orbit-ring.r1 {
  inset: 6%;
  animation: spin 38s linear infinite;
}
.orbit-ring.r2 {
  inset: 14%;
  border-style: solid;
  border-color: rgba(236, 72, 153, 0.18);
  animation: spin 56s linear reverse infinite;
}
.orbit-ring.r3 {
  inset: 22%;
  border-style: dashed;
  border-color: rgba(6, 182, 212, 0.25);
  animation: spin 72s linear infinite;
}

.hero-core {
  position: relative;
  width: 64%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.18), transparent 60%),
    rgba(8, 10, 30, 0.85);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 90px rgba(139, 92, 246, 0.35),
    inset 0 0 50px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 1;
}

#hero-pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-core-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-bpm {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
}

.bpm-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease-in-out infinite;
}

.bpm-lbl {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

/* Floating glass cards */
.float-card {
  position: absolute;
  padding: 0.75rem 0.95rem;
  min-width: 150px;
  background: rgba(8, 10, 30, 0.7) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}

.float-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-conic);
  opacity: 0.0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity 0.4s ease;
}

.float-card:hover::before { opacity: 0.5; }

.fc1 { top: 8%; right: -2%; }
.fc2 { bottom: 14%; left: -4%; animation-delay: -2s; }
.fc3 { bottom: 4%; right: 8%; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fc-tag {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 0.4rem;
}

.fc-msg {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
}

.fc-low { color: var(--green); }

.ecg {
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M0 20 H40 L48 8 L56 32 L64 12 L72 28 L80 20 H200' stroke='%2306b6d4' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 200px 40px;
  background-position: 0 50%;
  animation: ecg 2s linear infinite;
}

@keyframes ecg {
  to { background-position: -200px 50%; }
}

/* =========================================================
   TILT (3D card)
========================================================= */
.tilt {
  --tx: 0deg;
  --ty: 0deg;
  --gx: 50%;
  --gy: 50%;
  transform-style: preserve-3d;
  transform:
    perspective(1000px)
    rotateX(var(--tx))
    rotateY(var(--ty))
    translateZ(0);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s,
    box-shadow 0.25s;
  position: relative;
}

.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--gx) var(--gy),
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt:hover::after { opacity: 1; }

.tilt:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow:
    0 24px 70px rgba(139, 92, 246, 0.25),
    0 0 0 1px rgba(139, 92, 246, 0.18);
}

/* =========================================================
   TRUST
========================================================= */
.trust {
  padding: 1.5rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.trust-label {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.trust-strip span {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.25s,
    background 0.25s,
    color 0.25s;
}

.trust-strip span:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.45);
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
}

/* =========================================================
   HUB DIAGRAM
========================================================= */
.hub {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

@media (max-width: 980px) {
  .hub { grid-template-columns: 1fr; gap: 1.5rem; }
}

.hub-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hub-side-title {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  padding-left: 0.25rem;
}

.hub-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.hub-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateX(3px) translateY(-1px);
  background: rgba(139, 92, 246, 0.06);
}

.hub-right .hub-card:hover {
  transform: translateX(-3px) translateY(-1px);
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.05);
}

.hub-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hub-center {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hub-orb {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.5), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.35), transparent 60%),
    rgba(15, 18, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 60px rgba(139, 92, 246, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  z-index: 2;
  animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hub-orb-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.55);
  animation: hub-pulse 3s ease-out infinite;
}

.hub-orb-pulse.delay { animation-delay: -1.5s; }

@keyframes hub-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.55); opacity: 0; }
}

.hub-orb-label {
  text-align: center;
  position: relative;
  z-index: 3;
}

.hub-orb-label span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease-in-out infinite;
}

.hub-orb-label small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   INTEGRATION / SPLIT
========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.85rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-2);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.05rem;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.code-shell {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(2, 4, 18, 0.85);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.code-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-conic);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  animation: spin 14s linear infinite;
  pointer-events: none;
}

.code-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}

.code-toolbar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.code-toolbar .d1 { background: #ff5f57; }
.code-toolbar .d2 { background: #febc2e; }
.code-toolbar .d3 { background: #28c840; }

.code-host {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-2);
}

.code-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.ctab {
  flex: 1;
  padding: 0.7rem 0.95rem;
  background: transparent;
  border: none;
  color: var(--muted-2);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ctab:hover { color: var(--text); }

.ctab.active {
  color: var(--text);
  border-bottom-color: var(--magenta);
  background: rgba(236, 72, 153, 0.06);
}

.cpane {
  margin: 0;
  padding: 1.15rem 1.25rem;
  min-height: 180px;
  overflow-x: auto;
}

.cpane code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #d8e1ff;
  white-space: pre;
}

/* =========================================================
   IMPACT
========================================================= */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 880px) {
  .impact-grid { grid-template-columns: 1fr; }
}

.impact-card {
  padding: 1.85rem 1.6rem;
  text-align: left;
}

.impact-card .impact-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
  animation: gradShift 7s ease-in-out infinite;
}

.impact-card .impact-lbl {
  color: var(--muted);
  font-size: 0.96rem;
  display: block;
}

/* =========================================================
   TECHNOLOGY
========================================================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.tech-card {
  padding: 1.85rem 1.6rem;
}

.tech-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--grad-3);
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: grid;
  place-items: center;
  color: #c4b5fd;
  margin-bottom: 1rem;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-card:hover .tech-icon {
  transform: rotate(-8deg) scale(1.08);
}

.tech-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.tech-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* =========================================================
   EVIDENCE
========================================================= */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 1080px) {
  .evidence-grid { grid-template-columns: 1fr; }
}

.evidence-card {
  padding: 1.6rem 1.5rem;
}

.ev-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.evidence-card h3 {
  font-size: 1.1rem;
  margin: 0 0 1.1rem;
  font-weight: 600;
}

.bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.bar-name {
  font-size: 0.82rem;
  color: var(--muted);
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad-2);
  background-size: 200% 100%;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
  animation: gradShift 4s ease-in-out infinite;
}

.is-visible .bar-fill { width: var(--w); }

.bar-val {
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: right;
}

.ev-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* =========================================================
   DEVICES
========================================================= */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (max-width: 760px) {
  .dev-grid { grid-template-columns: 1fr; }
}

.dev-card {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dev-art {
  height: 140px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: rgba(2, 4, 18, 0.6);
  position: relative;
  overflow: hidden;
}

.dev-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-3);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.dev-art::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.dev-card:hover .dev-art::before {
  transform: translateX(100%);
}

.dev-art.da1 {
  background-image:
    radial-gradient(circle at 40% 50%, rgba(139, 92, 246, 0.55), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.4), transparent 55%);
}
.dev-art.da2 {
  background-image:
    radial-gradient(circle at 30% 40%, rgba(236, 72, 153, 0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.4), transparent 55%);
}
.dev-art.da3 {
  background-image:
    radial-gradient(circle at 35% 50%, rgba(6, 182, 212, 0.55), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.4), transparent 55%);
}
.dev-art.da4 {
  background-image:
    radial-gradient(circle at 35% 60%, rgba(34, 197, 94, 0.45), transparent 55%),
    radial-gradient(circle at 70% 40%, rgba(6, 182, 212, 0.45), transparent 55%);
}

.dev-card h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }

.dev-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.dev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.dev-tags span {
  font-size: 0.7rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.dev-tags span:hover {
  border-color: rgba(139, 92, 246, 0.45);
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
}

/* =========================================================
   API
========================================================= */
.api-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.ep {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(2, 4, 18, 0.55);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.ep:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.06);
}

.m {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.m.get {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.m.post {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.ep code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #d8e1ff;
}

/* =========================================================
   CTA / CONTACT
========================================================= */
.cta-shell {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.cta-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-conic);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  animation: spin 18s linear infinite;
  pointer-events: none;
}

@media (max-width: 880px) {
  .cta-shell { grid-template-columns: 1fr; }
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
}

.contact-list a { color: #c4b5fd; }

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.cta-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  font: inherit;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(2, 4, 18, 0.65);
  transition:
    border-color 0.2s,
    box-shadow 0.25s,
    background 0.2s;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow:
    0 0 0 3px rgba(236, 72, 153, 0.18),
    0 0 0 1px rgba(236, 72, 153, 0.4);
  background: rgba(2, 4, 18, 0.85);
}

.cta-form input.error,
.cta-form select.error,
.cta-form textarea.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.cta-form textarea { resize: vertical; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
}

.form-status.error { color: #fca5a5; }
.form-status.info { color: #c4b5fd; }

/* =========================================================
   DISCLAIMER
========================================================= */
.disclaim { padding-top: 0; }

.disclaim-card {
  padding: 1.5rem 1.65rem;
  border-color: rgba(245, 158, 11, 0.35) !important;
  background: rgba(245, 158, 11, 0.06) !important;
}

.disclaim-card h3 {
  margin: 0 0 0.5rem;
  color: #fcd34d;
  font-size: 1rem;
  font-weight: 600;
}

.disclaim-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-tag {
  margin-top: 0.85rem;
  color: var(--muted-2);
  font-size: 0.92rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-grid h4 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  font-family: var(--font);
}

.footer-grid a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-grid a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.footer-copy {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.82rem;
  margin: 2.5rem 0 0;
}

/* =========================================================
   REVEALS
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .orbit-ring,
  .aurora-blob,
  .float-card,
  .ecg,
  .hub-orb-pulse,
  .hub-orb,
  .hero-status .dot,
  .grad,
  .bar-fill,
  .impact-card .impact-num,
  .bpm-num,
  .hub-orb-label span,
  .eyebrow::before,
  .cta-shell::before,
  .code-shell::before,
  .btn::before {
    animation: none !important;
  }
  .cursor-blob { display: none !important; }
  .tilt {
    transform: none !important;
    transition: border-color 0.25s, box-shadow 0.25s !important;
  }
}
