/* ============================================================
   1mcp.in — Three-Color Design System
   Cosmic Orange · Graphite Black · White
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --bg-overlay: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.12);
  --orange: #f97316;
  --orange-hover: #fb923c;
  --orange-glow: rgba(249,115,22,0.1);
  --orange-soft: rgba(249,115,22,0.06);
  --white: #ffffff;
  --white-70: rgba(255,255,255,0.7);
  --white-40: rgba(255,255,255,0.4);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--white); line-height: 1.6; overflow-x: hidden; width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--orange); color: var(--white); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--white-20); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--white-40); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px; display: flex; align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled { background: rgba(10,10,10,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav__track { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.nav__brand { flex: 1; display: inline-flex; align-items: center; gap: 4px; letter-spacing: -0.3px; }
.nav__mark { height: 28px; width: auto; flex-shrink: 0; }
.nav__menu { flex: 1; display: flex; gap: 32px; justify-content: center; }
.nav__item { font-size: 14px; font-weight: 500; color: var(--white-70); transition: color 0.2s; white-space: nowrap; }
.nav__item:hover { color: var(--white); }
.nav__actions { flex: 1; display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.nav__btn { font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 8px; transition: all 0.2s var(--ease); white-space: nowrap; }
.nav__btn--ghost { color: var(--white-70); border: 1px solid var(--border); }
.nav__btn--ghost:hover { border-color: var(--border-hover); color: var(--white); }
.nav__btn--primary { background: var(--orange); color: var(--white); }
.nav__btn--primary:hover { background: var(--orange-hover); }
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 24px; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ========== HERO — COSMIC ========== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 100px 24px 60px; overflow: hidden; }

/* Universe background */
.hero__universe { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__nebula {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(249,115,22,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(234,88,12,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 30% 70%, rgba(249,115,22,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 80% 30%, rgba(251,146,60,0.06) 0%, transparent 50%);
}
.hero__pillar {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 200px; height: 140%;
  background: linear-gradient(180deg,
    rgba(249,115,22,0) 0%,
    rgba(249,115,22,0.15) 20%,
    rgba(249,115,22,0.25) 40%,
    rgba(251,146,60,0.2) 60%,
    rgba(249,115,22,0.1) 80%,
    rgba(249,115,22,0) 100%);
  filter: blur(40px);
}
.hero__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,0.25) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 70% 25%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 45%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 15% 60%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 60% 65%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 80%, rgba(255,255,255,0.25) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 45% 85%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 5% 80%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 95% 15%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.15) 50%, transparent 50%);
}

/* 3D Grid Floor */
.hero__grid-floor {
  position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  perspective: 600px; overflow: hidden; pointer-events: none;
}
.hero__grid-lines {
  position: absolute; bottom: -60%; left: -50%; right: -50%; height: 200%;
  background-image:
    linear-gradient(to right, rgba(249,115,22,0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(249,115,22,0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(75deg);
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 100%);
}

/* Floating constellation icons */
.hero__constellation { position: absolute; inset: 0; pointer-events: none; }
.hero__connections { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-icon {
  position: absolute;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  animation: float-drift 6s ease-in-out infinite;
}
.float-icon svg, .float-icon img { display: block; }
.marquee__item img, .demo-node img { display: block; flex-shrink: 0; }
@keyframes float-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-icon--l1 { top: 18%; left: 6%; }
.float-icon--l2 { top: 32%; left: 4%; }
.float-icon--l3 { top: 48%; left: 7%; }
.float-icon--l4 { top: 64%; left: 5%; }
.float-icon--l5 { top: 78%; left: 9%; }
.float-icon--r1 { top: 16%; right: 8%; }
.float-icon--r2 { top: 30%; right: 5%; }
.float-icon--r3 { top: 46%; right: 7%; }
.float-icon--r4 { top: 62%; right: 4%; }
.float-icon--r5 { top: 76%; right: 9%; }

/* Hero layout */
.hero__layout {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.hero__text { text-align: left; }
.hero__eyebrow { margin-bottom: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--orange); border: 1px solid rgba(249,115,22,0.2); background: var(--orange-soft); letter-spacing: 0.2px; }
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); animation: pulse-dot 2.5s ease infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }
.hero__title { font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -2px; margin-bottom: 20px; text-wrap: balance; }
.hero__accent { color: var(--orange); }
.hero__lead { font-size: clamp(15px, 1.2vw, 18px); color: var(--white-70); line-height: 1.65; max-width: 480px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__terminal-wrap { display: flex; justify-content: flex-end; }
.terminal--hero { margin: 0; width: 100%; max-width: 480px; box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 600; transition: all 0.25s var(--ease); white-space: nowrap; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-hover); box-shadow: 0 8px 32px rgba(249,115,22,0.25); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white-70); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--border-hover); color: var(--white); }

.terminal { margin: 48px auto 0; text-align: left; max-width: 520px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.terminal__chrome { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--bg-overlay); border-bottom: 1px solid var(--border); }
.terminal__dots { display: flex; gap: 6px; }
.terminal__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--white-20); }
.terminal__label { flex: 1; font-size: 12px; color: var(--white-40); font-family: var(--font-mono); }
.terminal__copy { padding: 4px; border-radius: 5px; color: var(--white-40); transition: color 0.2s, background 0.2s; display: flex; }
.terminal__copy:hover { color: var(--white); background: var(--white-05); }
.terminal__body { padding: 18px 22px; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; }
.terminal__prompt { color: var(--orange); margin-right: 10px; font-weight: 500; }
.terminal__cmd { color: var(--white); }
.terminal__output { color: var(--orange); font-size: 13px; margin-top: 6px; min-height: 1.3em; white-space: pre-line; }

/* client pills removed from hero — now in marquee only */

/* ========== MARQUEE ========== */
.marquee { position: relative; padding: 40px 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee__fade { position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee__fade--left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee__fade--right { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__item { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--white-40); transition: color 0.3s; }
.marquee__item:hover { color: var(--white-70); }
.marquee__item svg { flex-shrink: 0; }

/* ========== SECTIONS ========== */
.section { padding: var(--section-pad) 0; }
.section--alt {
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(249,115,22,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(234,88,12,0.04) 0%, transparent 50%),
    var(--bg-alt);
  position: relative;
}
.section--cta {
  background:
    radial-gradient(ellipse 60% 50% at 50% 20%, rgba(249,115,22,0.08) 0%, transparent 60%),
    var(--bg-alt);
  text-align: center;
  position: relative;
}
.section__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section__inner--narrow { max-width: 900px; }
.center { text-align: center; }

.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.heading { font-weight: 800; letter-spacing: -1px; text-wrap: balance; line-height: 1.1; }
.heading--2 { font-size: clamp(28px, 3.2vw, 42px); }
.body { color: var(--white-70); line-height: 1.7; }
.body--lg { font-size: 17px; }
.link { font-size: 15px; font-weight: 600; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.link:hover { gap: 10px; }

.checklist { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--white-70); line-height: 1.5; }
.check { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--orange-glow); color: var(--orange); margin-top: 1px; }

/* ========== SPLIT ========== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.demo-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: 0 24px 80px rgba(0,0,0,0.35); transition: border-color 0.4s, box-shadow 0.4s; }
.demo-card:hover { border-color: var(--border-hover); }
.demo-card__inner { display: flex; align-items: center; justify-content: space-between; min-height: 280px; position: relative; }
.demo-card__side { display: flex; flex-direction: column; gap: 10px; }
.demo-card__side--clients { align-items: flex-start; }
.demo-card__side--servers { align-items: flex-end; }
.demo-node { width: 36px; height: 36px; border-radius: 8px; background: var(--bg, var(--white-20)); display: flex; align-items: center; justify-content: center; border: 1px solid var(--bd, transparent); }
.demo-router { padding: 24px 28px; border-radius: 14px; background: var(--bg-alt); border: 1px solid rgba(249,115,22,0.15); text-align: center; box-shadow: 0 0 60px rgba(249,115,22,0.04); }
.demo-router__name { font-weight: 700; font-size: 20px; color: var(--orange); }
.demo-router__meta { font-size: 11px; color: var(--white-40); margin-top: 2px; font-family: var(--font-mono); }
.demo-router__stats { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: 10px; color: var(--white-40); font-family: var(--font-mono); }
.demo-srv { padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--white-70); background: var(--bg-alt); border: 1px solid var(--border); text-align: center; }

.demo-card--code { padding: 0; overflow: hidden; }
.demo-card__chrome { display: flex; align-items: center; gap: 6px; padding: 12px 18px; background: var(--bg-overlay); border-bottom: 1px solid var(--border); }
.demo-card__chrome span:nth-child(-n+3) { width: 10px; height: 10px; border-radius: 50%; background: var(--white-20); }
.demo-card__title { flex: 1; font-size: 12px; color: var(--white-40); font-family: var(--font-mono); }
.demo-card__body { padding: 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85; color: var(--white-70); }
.t-dim { color: var(--white-20); }

.mcp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mcp-card { padding: 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); transition: border-color 0.3s; }
.mcp-card:hover { border-color: var(--orange); }
.mcp-card__badge { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; width: fit-content; }
.mcp-card__badge--official { background: rgba(249,115,22,0.1); color: var(--orange); }
.mcp-card__badge--verified { background: rgba(255,255,255,0.08); color: var(--white); }
.mcp-card__name { font-weight: 700; font-size: 15px; display: block; margin-bottom: 3px; color: var(--white); }
.mcp-card__meta { font-size: 12px; color: var(--white-40); }

/* ========== STEPS ========== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 32px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--border); transition: border-color 0.3s; }
.step:hover { border-color: rgba(249,115,22,0.15); }
.step__num { width: 40px; height: 40px; border-radius: 50%; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; background: var(--orange-soft); color: var(--orange); margin-bottom: 20px; }
.step__title { font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.step__code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-overlay); padding: 10px 14px; border-radius: 8px; color: var(--white-70); margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step__code--ok { color: var(--orange); }
.step__text { font-size: 14px; color: var(--white-70); line-height: 1.7; }

/* ========== STATS ========== */
.stats-bar { padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-bar__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num { font-weight: 800; font-size: clamp(32px, 3.5vw, 48px); color: var(--orange); line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 14px; color: var(--white-70); font-weight: 500; }

/* ========== CONNECT ========== */
.section--connect { text-align: center; }
.connect__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 640px; margin: 0 auto; }
.nav__logo-text { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--white); display: inline-flex; align-items: center; }
.nav__logo-1 { color: var(--orange); font-weight: 900; }
.soon-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 6px; border-radius: 4px; background: rgba(249,115,22,0.1); color: var(--orange); vertical-align: middle; margin-left: 4px; }
.connect__card--soon { opacity: 0.6; pointer-events: none; }
.connect__card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 20px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.25s var(--ease), box-shadow 0.25s;
  color: var(--white);
}
.connect__card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.connect__card svg { color: var(--orange); }
.connect__name { font-weight: 600; font-size: 15px; }
.connect__handle { font-size: 13px; color: var(--white-40); }

/* ========== FOOTER ========== */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__tagline { font-size: 13px; color: var(--white-40); line-height: 1.6; max-width: 260px; }
.footer__heading { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white-40); margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--white-40); transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--white-40); }
.footer__bottom a:hover svg { fill: var(--white) !important; transition: fill 0.2s; }

/* ========== FLOW DIAGRAM (VOLTAGENT STYLE) ========== */
.flow-wrap { position: relative; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.06); border-radius: 24px; padding: 48px 36px; overflow: hidden; min-height: 420px; }
.flow-dots { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.flow-line { stroke: rgba(249,115,22,0.25); stroke-width: 1.5; stroke-dasharray: 4 6; animation: flow-dash 1.2s linear infinite; }
@keyframes flow-dash { to { stroke-dashoffset: -20; } }
.flow-pulse { fill: var(--orange); filter: drop-shadow(0 0 6px rgba(249,115,22,0.6)); animation: flow-pulse 2s ease-in-out infinite; }
@keyframes flow-pulse { 0%,100%{opacity:0.3;r:3} 50%{opacity:1;r:5} }
.flow-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 24px; align-items: center; min-height: 320px; }
.flow-col { display: flex; flex-direction: column; gap: 10px; }
.flow-col--clients { align-items: flex-end; padding-right: 8px; }
.flow-col--servers { align-items: flex-start; padding-left: 8px; }
.flow-col--center { align-items: center; }
.flow-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white-40); margin-bottom: 8px; text-align: center; }
.flow-label--center { color: var(--orange); margin-bottom: 14px; }
.flow-node { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); font-size: 12px; font-weight: 500; color: var(--white-70); transition: border-color 0.3s, background 0.3s, transform 0.2s; white-space: nowrap; }
.flow-node:hover { border-color: rgba(249,115,22,0.2); background: rgba(249,115,22,0.04); transform: translateX(2px); }
.flow-node--srv { padding: 8px 16px; justify-content: center; min-width: 110px; }
.flow-node--srv:hover { transform: translateX(-2px); }
.flow-node--dim { color: var(--white-40); border-color: rgba(255,255,255,0.04); }
.flow-node img { display: block; flex-shrink: 0; }
.flow-hub { padding: 32px 28px; border-radius: 20px; background: #0f0f0f; border: 1px solid rgba(249,115,22,0.15); text-align: center; box-shadow: 0 0 80px rgba(249,115,22,0.06), inset 0 1px 0 rgba(255,255,255,0.03); position: relative; }
.flow-hub::before { content:''; position:absolute; inset:-1px; border-radius:20px; padding:1px; background:linear-gradient(135deg, rgba(249,115,22,0.3), transparent 50%, rgba(249,115,22,0.1)); -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; }
.flow-hub__icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--orange); }
.flow-hub__name { font-weight: 700; font-size: 22px; color: var(--orange); letter-spacing: -0.5px; }
.flow-hub__meta { font-size: 11px; color: var(--white-40); margin-top: 4px; font-family: var(--font-mono); }
.flow-hub__stats { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; font-size: 10px; color: var(--white-40); font-family: var(--font-mono); }

/* ========== FLOW STEPS (VOLTAGENT STYLE) ========== */
.flow-steps { position: relative; }
.flow-steps__svg { position: absolute; top: 60px; left: 0; width: 100%; height: 80px; pointer-events: none; z-index: 1; }
.flow-steps__line { stroke: rgba(249,115,22,0.2); stroke-width: 1.5; stroke-dasharray: 4 6; animation: flow-dash 1.2s linear infinite; }
.flow-steps__pulse { fill: var(--orange); filter: drop-shadow(0 0 4px rgba(249,115,22,0.5)); animation: step-pulse-move 3s ease-in-out infinite; }
@keyframes step-pulse-move {
  0%   { cx: 150; opacity: 0; }
  10%  { opacity: 1; }
  45%  { cx: 350; opacity: 1; }
  55%  { cx: 350; opacity: 0; }
  60%  { opacity: 0; }
  70%  { opacity: 1; }
  95%  { cx: 550; opacity: 1; }
  100% { cx: 550; opacity: 0; }
}
.flow-steps__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flow-step__node { padding: 36px 32px; border-radius: 20px; background: #0f0f0f; border: 1px solid rgba(255,255,255,0.05); transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s; height: 100%; }
.flow-step__node:hover { border-color: rgba(249,115,22,0.12); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.flow-step__num { width: 44px; height: 44px; border-radius: 50%; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; background: rgba(249,115,22,0.1); color: var(--orange); margin-bottom: 24px; border: 1px solid rgba(249,115,22,0.15); }
.flow-step__title { font-weight: 700; font-size: 22px; margin-bottom: 18px; letter-spacing: -0.3px; }
.flow-step__code { font-family: var(--font-mono); font-size: 12px; background: #0a0a0a; padding: 12px 16px; border-radius: 10px; color: var(--white-70); margin-bottom: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid rgba(255,255,255,0.05); }
.flow-step__desc { font-size: 14px; color: var(--white-70); line-height: 1.7; }

/* ========== DOWNLOAD MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  padding: 24px;
  animation: modal-fadein 0.25s var(--ease);
}
@keyframes modal-fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  animation: modal-slide 0.3s var(--ease);
}
@keyframes modal-slide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--white-40);
  transition: background 0.2s, color 0.2s;
}
.modal__close:hover { background: var(--white-10); color: var(--white); }
.modal__header { margin-bottom: 28px; padding-right: 40px; }
.modal__title { font-weight: 800; font-size: 24px; letter-spacing: -0.5px; margin-bottom: 8px; }
.modal__sub { font-size: 14px; color: var(--white-70); line-height: 1.6; }
.modal__tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--bg-overlay); border-radius: 10px; padding: 4px; }
.modal__tab {
  flex: 1; padding: 10px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--white-40);
  transition: all 0.2s; text-align: center;
}
.modal__tab.active { background: var(--bg); color: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.modal__tab:hover:not(.active) { color: var(--white-70); }
.modal__panel { display: none; }
.modal__panel.active { display: block; }
.modal__platforms { display: flex; flex-direction: column; gap: 12px; }
.modal__group {
  padding: 16px 18px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.modal__group:hover { border-color: var(--border-hover); }
.modal__group.highlight { border-color: var(--orange); background: rgba(249,115,22,0.04); }
.modal__os-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.modal__os-head svg { color: var(--orange); flex-shrink: 0; }
.modal__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--white); background: var(--orange);
  transition: background 0.2s, transform 0.15s;
  margin-top: 6px;
}
.modal__btn:hover { background: var(--orange-hover); transform: translateY(-1px); }
.modal__btn svg { flex-shrink: 0; }
.modal__btn--alt {
  background: transparent; color: var(--white-70);
  border: 1px solid var(--border); display: inline-flex; margin-left: 8px;
}
.modal__btn--alt:hover { border-color: var(--border-hover); color: var(--white); background: var(--white-05); }
.modal__cli-cmd {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--bg-overlay); border: 1px solid var(--border);
  padding: 14px 18px; border-radius: 10px;
  color: var(--orange); margin-bottom: 20px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.modal__version { font-size: 12px; color: var(--white-40); font-family: var(--font-mono); }
.modal__release-link { font-size: 13px; font-weight: 500; color: var(--orange); transition: color 0.2s; }
.modal__release-link:hover { color: var(--orange-hover); }
@media (max-width: 640px) {
  .modal { padding: 24px 20px; }
  .modal__group { padding: 14px; }
  .modal__btn { width: 100%; justify-content: center; }
  .modal__btn--alt { margin-left: 0; width: 100%; justify-content: center; }
  .modal__sub { font-size: 13px; }
  .feature-card { padding: 28px; }
  .feature-router { min-width: auto; padding: 24px; }
  .step--v2 { padding: 28px 24px; }
  .step__head { font-size: 20px; }
  .flow-wrap { padding: 24px 16px; border-radius: 16px; }
  .flow-hub { padding: 20px 16px; }
  .flow-hub__name { font-size: 18px; }
  .flow-node { font-size: 12px; }
  .flow-step__node { padding: 28px 20px; }
  .flow-step__title { font-size: 18px; }
  .flow-step__code { font-size: 11px; padding: 10px 12px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse { direction: ltr; }
  .hero__layout { grid-template-columns: 1fr; gap: 48px; }
  .hero__terminal-wrap { justify-content: center; }
  .hero__text { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .float-icon { display: none; }
  .hero__connections { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-bar__inner { gap: 24px; }
  .terminal--hero { max-width: 100%; }
  .feature-card__inner { grid-template-columns: 1fr; min-height: auto; gap: 28px; padding: 12px 0; }
  .feature-card__col--clients { flex-direction: row; justify-content: center; }
  .feature-card__col--servers { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .feature-router { min-width: auto; width: 100%; max-width: 280px; margin: 0 auto; }
  .flow-wrap { padding: 32px 20px; min-height: auto; }
  .flow-grid { grid-template-columns: 1fr; gap: 20px; }
  .flow-col--clients { align-items: center; padding-right: 0; }
  .flow-col--servers { align-items: center; padding-left: 0; }
  .flow-node { font-size: 13px; padding: 10px 16px; }
  .flow-hub { padding: 24px 20px; max-width: 280px; margin: 0 auto; }
  .flow-steps__svg { display: none; }
  .flow-steps__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__menu, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__menu.open { display: flex; flex-direction: column; position: fixed; inset: 0; top: 64px; background: var(--bg); padding: 40px 24px; gap: 24px; z-index: 999; }
  .nav__brand { flex: 0 1 auto; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero__title { font-size: clamp(28px, 8vw, 42px); letter-spacing: -1.5px; }
  .hero__lead { font-size: 15px; }
  .hero__grid-floor { height: 35%; }
  .section__inner { padding: 0 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps--v2 { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat__num { font-size: clamp(26px, 6vw, 36px); }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .mcp-grid { grid-template-columns: 1fr; }
  .marquee__fade { width: 60px; }
  .marquee__track { gap: 32px; }
  .demo-card__inner { min-height: 220px; flex-direction: column; gap: 16px; }
  .connect__grid { grid-template-columns: 1fr; max-width: 320px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(24px, 7vw, 32px); }
  .hero__lead { font-size: 14px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .terminal { border-radius: 10px; }
  .terminal__body { padding: 14px 16px; font-size: 12px; }
  .marquee__track { gap: 24px; }
  .marquee__item { font-size: 12px; }
  .nav__track { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee__track { animation: none; }
}
