@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0,1&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: hsl(222, 47%, 4%);
  --fg: hsl(0, 0%, 98%);
  --muted: hsl(222, 20%, 12%);
  --muted-fg: hsl(215, 20%, 70%);
  --primary: hsl(0, 0%, 98%);
  --primary-fg: hsl(222, 47%, 4%);
  --accent: hsl(239, 84%, 67%);
  --border: hsl(222, 18%, 18%);
  --ring: hsl(239, 84%, 67%);
  --radius: 1rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.custom-cursor-active { cursor: none; }
body.custom-cursor-active a,
body.custom-cursor-active button { cursor: none; }

.serif { font-family: 'Instrument Serif', serif; }
.serif-italic { font-family: 'Instrument Serif', serif; font-style: italic; }

/* ── Liquid metal layers ── */
#liquid-metal-host {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#liquid-metal-host canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.liquid-metal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--bg);
  opacity: 0;
  will-change: opacity;
}

.css-hero-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.no-shader .css-hero-fallback,
body.reduced-motion .css-hero-fallback { opacity: 1; }
body.no-shader #liquid-metal-host,
body.reduced-motion #liquid-metal-host { opacity: 0; visibility: hidden; }

main { position: relative; z-index: 2; }

/* ── Loading screen ── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), hsl(200, 80%, 60%));
  border-radius: 2px;
  transition: width 0.3s ease;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ── Custom cursor ── */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#custom-cursor.visible { opacity: 1; }

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

.cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.06);
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

#custom-cursor.hovering .cursor-dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--accent);
}

#custom-cursor.hovering .cursor-ring {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: rgba(99, 102, 241, 0.9);
  background: rgba(99, 102, 241, 0.12);
}

#custom-cursor.clicking .cursor-ring {
  transform: scale(0.85);
}

/* ── Tilt cards ── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover { transform: translateY(-4px); }

.feature-card.tilt-card:hover,
.problem-card.tilt-card:hover,
.who-card.tilt-card:hover {
  transform: none;
}

/* ── Hero parallax ── */
.hero-content {
  position: relative;
  z-index: 2;
  will-change: transform;
}

/* ── Magnetic buttons ── */
.magnetic {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.hero-canvas {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, hsl(239,84%,67%) 0%, transparent 70%); top: -200px; left: -100px; animation-duration: 14s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, hsl(200,80%,60%) 0%, transparent 70%); top: 100px; right: -150px; animation-duration: 18s; animation-delay: -6s; }
.orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, hsl(280,70%,65%) 0%, transparent 70%); bottom: -50px; left: 30%; animation-duration: 20s; animation-delay: -10s; }

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 30s linear infinite;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
@keyframes gridDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.particle {
  position: absolute; border-radius: 50%;
  animation: particleFly linear infinite;
  pointer-events: none;
}
@keyframes particleFly {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(var(--dx, 30px)); opacity: 0; }
}

.streak {
  position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: streakSlide 6s ease-in-out infinite;
  transform-origin: left;
}
@keyframes streakSlide {
  0%   { transform: scaleX(0) translateX(-100%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scaleX(1) translateX(0); opacity: 0; }
}

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  background: rgba(7,10,22,0.55);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(7,10,22,0.88);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Instrument Serif', serif; font-size: 1.4rem; letter-spacing: 0.02em;
  color: var(--fg); text-decoration: none;
}
.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent); transform: scale(1); }
  50% { box-shadow: 0 0 16px var(--accent), 0 0 32px var(--accent); transform: scale(1.2); }
}
.nav-links { display: flex; gap: 2rem; }
.nav-link {
  color: var(--muted-fg); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-cta {
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: var(--fg); padding: 0.5rem 1.25rem; border-radius: 2rem;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  transition: all 0.3s;
  box-shadow: 0 0 0 0 rgba(99,102,241,0);
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
}

.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3);
  color: hsl(239,84%,80%); padding: 0.4rem 1rem; border-radius: 2rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
.hero-h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--fg); margin-bottom: 1.75rem;
  animation: fadeUp 0.8s ease 0.4s both;
}
.hero-h1 em { font-style: italic; color: hsl(239,84%,80%); }
.hero-sub {
  max-width: 600px; font-size: 1.125rem; line-height: 1.7;
  color: var(--muted-fg); margin: 0 auto 3rem;
  animation: fadeUp 0.8s ease 0.6s both;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--fg); color: var(--primary-fg);
  padding: 0.875rem 2rem; border-radius: 2rem;
  font-size: 0.9rem; font-weight: 600; border: none;
  letter-spacing: 0.01em; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--fg);
  padding: 0.875rem 2rem; border-radius: 2rem;
  font-size: 0.9rem; font-weight: 500;
  border: 1px solid var(--border); letter-spacing: 0.01em;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative; margin-top: 5rem; width: 100%; max-width: 900px;
  animation: fadeUp 1s ease 1s both;
}
.ai-operator {
  position: relative; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 1.5rem;
  padding: 2.5rem; backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}
.ai-operator::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse at 30% 0%, rgba(99,102,241,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.op-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.op-title {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 0.5rem;
}
.op-live {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em;
  color: hsl(142,70%,60%); text-transform: uppercase;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: hsl(142,70%,60%);
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.pipeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem;
  position: relative;
}
.pipe-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 0.75rem;
  padding: 1rem 0.75rem; text-align: center; position: relative;
  transition: all 0.3s; cursor: pointer;
  animation: pipeIn 0.5s ease both;
}
@keyframes pipeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.pipe-step:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.pipe-step.active {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 20px rgba(99,102,241,0.15);
}
.pipe-icon { font-size: 1.25rem; margin-bottom: 0.4rem; }
.pipe-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-fg); line-height: 1.3; }
.pipe-value { font-size: 0.75rem; font-weight: 600; color: var(--fg); margin-top: 0.25rem; }

.pipe-connector {
  position: absolute; top: 50%; right: -0.4rem; z-index: 1;
  width: 0.8rem; height: 2px;
  background: linear-gradient(90deg, rgba(99,102,241,0.6), rgba(99,102,241,0.2));
}
.connector-pulse {
  position: absolute; top: 50%; right: -0.6rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); transform: translateY(-50%);
  animation: connPulse 2s ease-in-out infinite;
}
@keyframes connPulse {
  0%,100%{opacity:0.3; transform:translateY(-50%) scale(0.8);}
  50%{opacity:1; transform:translateY(-50%) scale(1.3);}
}

.meeting-booked {
  margin-top: 1.5rem; padding: 1rem 1.5rem;
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.25);
  border-radius: 0.75rem; display: flex; align-items: center; justify-content: space-between;
  animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
  0%,100%{ box-shadow: 0 0 20px rgba(99,102,241,0.1); }
  50%{ box-shadow: 0 0 40px rgba(99,102,241,0.25); }
}
.booked-info { display: flex; flex-direction: column; gap: 0.2rem; }
.booked-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.booked-name { font-size: 0.9rem; font-weight: 600; color: var(--fg); }
.booked-meta { font-size: 0.7rem; color: var(--muted-fg); }
.booked-check {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(99,102,241,0.2); border: 1px solid rgba(99,102,241,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  animation: checkSpin 0.5s ease 1.5s both;
}
@keyframes checkSpin { from{transform:scale(0) rotate(-90deg);} to{transform:scale(1) rotate(0);} }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--muted-fg); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  animation: fadeIn 1s ease 2s both;
}
.scroll-arrow { animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(5px);} }

.section { padding: 8rem 2rem; position: relative; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--fg);
}
.section-h2 em { font-style: italic; }
.section-sub {
  font-size: 1.05rem; color: var(--muted-fg); line-height: 1.7; margin-top: 1rem;
  max-width: 540px;
}

.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-top: 4rem;
}
.problem-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius);
  padding: 1.75rem; position: relative; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, hsl(0,80%,60%), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.problem-card:hover::before { opacity: 1; }
.problem-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.problem-title { font-size: 0.9rem; font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; }
.problem-desc { font-size: 0.8rem; color: var(--muted-fg); line-height: 1.5; }
.problem-pain {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: hsl(0,70%,60%); opacity: 0.7;
}

.solution-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(99,102,241,0.05) 0%, transparent 70%);
}
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem; margin-top: 4rem;
}
.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius);
  padding: 2rem; position: relative; overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
  backdrop-filter: blur(10px);
}
.feature-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(99,102,241,0.08) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s; border-radius: inherit; pointer-events: none;
}
.feature-card:hover::after { opacity: 1; }
.feature-num {
  font-family: 'Instrument Serif', serif; font-size: 2.5rem; font-style: italic;
  color: rgba(99,102,241,0.2); margin-bottom: 0.75rem; line-height: 1;
}
.feature-title { font-size: 1rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.85rem; color: var(--muted-fg); line-height: 1.6; }
.feature-pulse {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(99,102,241,0.4);
  animation: featurePulse 2.5s ease-in-out infinite;
}
@keyframes featurePulse {
  0%{ box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
  70%{ box-shadow: 0 0 0 12px rgba(99,102,241,0); }
  100%{ box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
.intelligence-banner {
  margin-top: 3rem; padding: 1.75rem 2.5rem;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius); text-align: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(99,102,241,0.02) 100%);
  font-family: 'Instrument Serif', serif; font-size: 1.6rem; font-style: italic;
  color: var(--fg); letter-spacing: -0.01em;
  position: relative; overflow: hidden;
}
.intelligence-banner::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.05), transparent);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { 0%{left:-100%;} 100%{left:100%;} }

.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem;
}
.comp-panel {
  border-radius: var(--radius); padding: 2.5rem; position: relative; overflow: hidden;
}
.comp-panel.old {
  background: rgba(255,50,50,0.04);
  border: 1px solid rgba(255,80,80,0.15);
}
.comp-panel.new {
  background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.25);
}
.comp-header { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.5rem; }
.comp-panel.old .comp-header { color: hsl(0,70%,60%); }
.comp-panel.new .comp-header { color: var(--accent); }
.comp-flow { display: flex; flex-direction: column; gap: 0.75rem; }
.comp-node {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 0.5rem;
  font-size: 0.82rem; line-height: 1.4;
}
.comp-panel.old .comp-node { background: rgba(255,80,80,0.06); color: hsl(0,30%,75%); }
.comp-panel.new .comp-node { background: rgba(99,102,241,0.07); color: hsl(239,30%,85%); }
.comp-node-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 0.05rem; }
.comp-arrow {
  display: flex; align-items: center; justify-content: center;
  height: 1.5rem; opacity: 0.35; font-size: 0.7rem; letter-spacing: 0.05em; color: var(--muted-fg);
}
.comp-result {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  border-radius: 0.5rem; font-size: 0.85rem; font-weight: 600;
}
.comp-panel.old .comp-result { background: rgba(255,80,80,0.1); color: hsl(0,60%,65%); }
.comp-panel.new .comp-result { background: rgba(99,102,241,0.12); color: hsl(239,84%,80%); }

.who-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem; margin-top: 4rem;
}
.who-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius);
  padding: 2rem 1.75rem; transition: border-color 0.35s, box-shadow 0.35s;
  position: relative; overflow: hidden;
}
.who-icon {
  width: 44px; height: 44px; border-radius: 0.75rem;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--accent);
}
.who-title { font-size: 1rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.who-desc { font-size: 0.82rem; color: var(--muted-fg); line-height: 1.55; }

.hiw-section { background: rgba(255,255,255,0.01); }
.hiw-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 4rem; position: relative;
}
.hiw-flow::before {
  content: ''; position: absolute; top: 2.5rem; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hiw-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem 1rem; position: relative;
}
.hiw-num {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 0.8rem; font-weight: 700;
  color: var(--muted-fg); margin-bottom: 1.25rem; position: relative; z-index: 1;
  background: var(--bg);
  transition: all 0.3s;
}
.hiw-step:last-child .hiw-num {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(99,102,241,0.3);
}
.hiw-title { font-size: 0.9rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.hiw-desc { font-size: 0.8rem; color: var(--muted-fg); line-height: 1.5; }

.faq-list { margin-top: 4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: rgba(255,255,255,0.02);
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(99,102,241,0.3); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; background: none; border: none;
  color: var(--fg); font-size: 0.9rem; font-weight: 600;
  text-align: left; gap: 1rem;
  transition: color 0.2s;
  font-family: inherit;
}
.faq-q:hover { color: hsl(239,84%,80%); }
.faq-icon { flex-shrink: 0; color: var(--muted-fg); transition: all 0.3s; display: flex; }
.faq-item.open .faq-icon { color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.85rem; color: var(--muted-fg); line-height: 1.7;
  padding: 0 1.5rem;
}
.faq-a.open { max-height: 280px; padding: 0 1.5rem 1.25rem; }

.footer {
  border-top: 1px solid var(--border); padding: 3rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.footer-logo {
  font-family: 'Instrument Serif', serif; font-size: 1.2rem;
  color: var(--fg); display: flex; align-items: center; gap: 0.5rem;
}
.footer-copy { font-size: 0.78rem; color: var(--muted-fg); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { font-size: 0.78rem; color: var(--muted-fg); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--fg); }

.cta-sub {
  color: var(--muted-fg);
  margin: 1rem auto 2.5rem;
  max-width: 440px;
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeUp { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

body.low-performance #liquid-metal-host { opacity: 0.35; }
body.low-performance .liquid-metal-overlay { opacity: 0.75 !important; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .comparison-grid { grid-template-columns: 1fr; }
  .hiw-flow { grid-template-columns: 1fr 1fr; }
  .hiw-flow::before { display: none; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .navbar { padding: 0 1.25rem; }
  .hero-h1 { font-size: clamp(2.2rem, 10vw, 4rem); }
  #custom-cursor { display: none !important; }
  body.custom-cursor-active { cursor: auto; }
}
@media (max-width: 480px) {
  .hiw-flow { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #custom-cursor { display: none !important; }
  body.custom-cursor-active { cursor: auto; }
  .reveal { opacity: 1; transform: none; }
}
