/* === UNYKORN LEGAL — DESIGN SYSTEM v1.0 === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Syne:wght@700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #07090f;
  --surface: #0d1117;
  --card: #0f1623;
  --card-hover: #141d2e;
  --border: rgba(255,255,255,0.06);
  --border-gold: rgba(201,168,76,0.28);
  --border-blue: rgba(59,130,246,0.25);
  --border-purple: rgba(139,92,246,0.25);
  --gold: #c9a84c;
  --gold-light: #e2c06a;
  --gold-dark: #8b7030;
  --gold-dim: rgba(201,168,76,0.1);
  --gold-glow: rgba(201,168,76,0.04);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.1);
  --purple: #8b5cf6;
  --purple-dim: rgba(139,92,246,0.1);
  --green: #10b981;
  --green-dim: rgba(16,185,129,0.1);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.1);
  --orange: #f59e0b;
  --orange-dim: rgba(245,158,11,0.1);
  --text: #f1f5f9;
  --text2: #cbd5e1;
  --muted: #94a3b8;
  --subtle: #64748b;
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --t: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* TYPOGRAPHY */
h1,h2,h3,h4 { font-family: 'Syne','Inter',sans-serif; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem,5vw,4rem); }
h2 { font-size: clamp(1.8rem,3.5vw,2.9rem); }
h3 { font-size: clamp(1.2rem,2vw,1.65rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
.gold { color: var(--gold); }
.blue { color: var(--blue); }
.purple { color: var(--purple); }
.green { color: var(--green); }
.muted { color: var(--muted); }
.mono { font-family: 'JetBrains Mono',monospace; }
.overline { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.75rem; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 580px; margin: 1rem auto 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

/* NAVIGATION */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 64px;
  background: rgba(7,9,15,0.9); backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.nav-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gold-dim); border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: var(--gold);
  font-family: 'Syne',sans-serif;
}
.nav-wordmark { font-family: 'Syne',sans-serif; font-weight: 800; font-size: 1.05rem; }
.nav-wordmark span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a { padding: 0.4rem 0.85rem; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-size: 0.875rem; font-weight: 500; transition: var(--t); }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); }
.btn-nav { padding: 0.5rem 1.25rem !important; background: var(--gold) !important; color: #07090f !important; border-radius: var(--r-sm); font-weight: 700 !important; transition: var(--t) !important; }
.btn-nav:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: var(--t); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: var(--r-sm); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--t); text-decoration: none; border: none; white-space: nowrap; }
.btn-primary { background: var(--gold); color: #07090f; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.25); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-gold); background: var(--gold-glow); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: #5593f8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.2); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; border-radius: 6px; }
.btn-full { width: 100%; }

/* BADGES */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.7rem; border-radius: 100px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.03em; }
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-blue { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--border-blue); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid var(--border-purple); }
.badge-green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,185,129,0.25); }
.badge-red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.25); }
.badge-orange { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(245,158,11,0.25); }

/* CARDS */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; transition: var(--t); }
.card:hover { border-color: var(--border-gold); background: var(--card-hover); }
.card-gold { border-color: var(--border-gold); }
.card-blue { border-color: var(--border-blue); }

/* PAGE HEADER */
.page-header {
  padding: 9rem 0 4rem; text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.page-header p { color: var(--muted); font-size: 1.05rem; max-width: 580px; margin: 1rem auto 0; }

/* HERO */
.hero {
  min-height: 100vh; padding-top: 64px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 50%, rgba(59,130,246,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 15% 70%, rgba(139,92,246,0.04) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.025;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 5rem 0 4rem; }
.hero-badge { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub { font-size: clamp(1rem,1.8vw,1.15rem); color: var(--muted); max-width: 540px; margin-bottom: 2.5rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-value { font-size: 1.75rem; font-weight: 800; font-family: 'Syne',sans-serif; }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }

/* NAMESPACE PILLS */
.ns-pills { display: flex; flex-direction: column; gap: 0.75rem; }
.ns-pill {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.7rem 1.25rem;
  font-size: 0.875rem; animation: floatpill 4s ease-in-out infinite;
  max-width: 340px;
}
.ns-pill:nth-child(2) { animation-delay: 0.7s; }
.ns-pill:nth-child(3) { animation-delay: 1.4s; }
.ns-pill:nth-child(4) { animation-delay: 2.1s; }
.ns-pill:nth-child(5) { animation-delay: 2.8s; }
.ns-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-gold { background: var(--gold); }
.dot-blue { background: var(--blue); }
.ns-pill .name { font-family: 'JetBrains Mono',monospace; font-weight: 700; color: var(--gold); }
.ns-pill .tld { color: var(--muted); }
.ns-pill .ns-tag { margin-left: auto; font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 6px; }
.ns-tag-live { background: var(--green-dim); color: var(--green); }
.ns-tag-claim { background: var(--blue-dim); color: var(--blue); }
@keyframes floatpill { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.75rem; transition: var(--t);
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent,var(--gold)), transparent);
  opacity: 0; transition: opacity var(--t);
}
.feature-card:hover::after { opacity: 1; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); background: var(--card-hover); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; }
.fi-gold { background: var(--gold-dim); border: 1px solid var(--border-gold); --accent: var(--gold); }
.fi-blue { background: var(--blue-dim); border: 1px solid var(--border-blue); --accent: var(--blue); }
.fi-purple { background: var(--purple-dim); border: 1px solid var(--border-purple); --accent: var(--purple); }
.fi-green { background: var(--green-dim); border: 1px solid rgba(16,185,129,0.25); --accent: var(--green); }
.feature-card h4 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }
.feature-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--gold); font-weight: 600; text-decoration: none; margin-top: 1rem; transition: var(--t); }
.feature-link:hover { gap: 0.55rem; }

/* NAMESPACE SEARCH */
.ns-search-panel {
  background: var(--card); border: 1px solid var(--border-gold);
  border-radius: var(--r-lg); padding: 2.5rem; max-width: 720px; margin: 0 auto;
}
.ns-search-bar { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.ns-search-bar input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.9rem 1.25rem;
  color: var(--text); font-size: 1rem; outline: none; transition: var(--t);
}
.ns-search-bar input::placeholder { color: var(--subtle); }
.ns-search-bar input:focus { border-color: var(--border-gold); }
.tld-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tld-pill {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.3rem 0.8rem;
  font-size: 0.8rem; color: var(--muted); cursor: pointer; transition: var(--t);
  font-family: 'JetBrains Mono',monospace;
}
.tld-pill:hover, .tld-pill.active { border-color: var(--border-gold); color: var(--gold); background: var(--gold-dim); }
.ns-result { padding: 1rem 1.25rem; border-radius: var(--r-sm); display: none; margin-top: 0.5rem; }
.ns-result.show { display: block; }
.ns-available { background: var(--green-dim); border: 1px solid rgba(16,185,129,0.25); }
.ns-taken { background: var(--red-dim); border: 1px solid rgba(239,68,68,0.25); }
.ns-result-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* PRICING */
.pricing-toggle { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.pricing-toggle span { color: var(--muted); font-size: 0.9rem; transition: var(--t); }
.pricing-toggle span.on { color: var(--text); font-weight: 600; }
.toggle-track { width: 44px; height: 24px; background: var(--gold); border-radius: 12px; position: relative; cursor: pointer; transition: var(--t); flex-shrink: 0; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #07090f; border-radius: 50%; transition: var(--t); }
.toggle-track.annual .toggle-thumb { transform: translateX(20px); }
.save-pill { background: var(--green-dim); color: var(--green); font-size: 0.74rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; border: 1px solid rgba(16,185,129,0.25); }

.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; align-items: start; }
.pricing-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.75rem; position: relative; }
.pricing-card.featured { border-color: var(--border-gold); background: linear-gradient(160deg,rgba(201,168,76,0.06) 0%,var(--card) 40%); }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #07090f; font-size: 0.68rem; font-weight: 800; padding: 3px 14px; border-radius: 100px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.price-tier { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.75rem; }
.price-amount { font-size: 2.8rem; font-weight: 800; font-family: 'Syne',sans-serif; line-height: 1; }
.price-per { color: var(--muted); font-size: 0.85rem; }
.price-sub { color: var(--muted); font-size: 0.8rem; margin: 0.5rem 0 1.5rem; min-height: 2.5rem; }
.price-btn { width: 100%; margin-bottom: 1.5rem; }
.price-features { display: flex; flex-direction: column; gap: 0.6rem; }
.price-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--text2); line-height: 1.4; }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.price-features li.na { color: var(--subtle); }
.price-features li.na::before { content: '–'; color: var(--subtle); }

/* CASE REVIEW */
.case-types { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.75rem; margin-bottom: 2rem; }
.case-btn {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 1rem 0.75rem; text-align: center;
  cursor: pointer; transition: var(--t); color: var(--muted); font-size: 0.85rem; font-weight: 500;
}
.case-btn:hover, .case-btn.active { border-color: var(--border-gold); color: var(--text); background: var(--card-hover); }
.case-btn .ci { font-size: 1.5rem; margin-bottom: 0.4rem; }

.ai-chat { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.chat-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; }
.chat-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: cpulse 2s ease-in-out infinite; }
@keyframes cpulse { 0%,100%{opacity:1}50%{opacity:0.3} }
.chat-body { padding: 1.5rem; min-height: 260px; display: flex; flex-direction: column; gap: 0.85rem; }
.msg { max-width: 82%; }
.msg-ai { background: var(--surface); border-radius: 0 10px 10px 10px; padding: 0.8rem 1rem; font-size: 0.875rem; color: var(--text2); }
.msg-user { background: var(--gold-dim); border: 1px solid var(--border-gold); border-radius: 10px 0 10px 10px; padding: 0.8rem 1rem; font-size: 0.875rem; align-self: flex-end; }
.chat-foot { padding: 0.85rem 1rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; }
.chat-foot input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 1rem; color: var(--text); font-size: 0.875rem; outline: none; transition: var(--t); }
.chat-foot input:focus { border-color: var(--border-gold); }

/* PARTNERS */
.partner-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.partner-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; transition: var(--t); }
.partner-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.partner-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-dim); border: 2px solid var(--border-gold); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.partner-ns { font-family: 'JetBrains Mono',monospace; font-size: 0.78rem; color: var(--gold); margin-bottom: 0.25rem; }
.partner-name { font-weight: 700; font-size: 1rem; }
.partner-title { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }
.partner-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.p-tag { font-size: 0.72rem; padding: 0.2rem 0.55rem; Border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); border-radius: 6px; }
.partner-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.partner-rate { font-weight: 700; font-size: 0.9rem; }
.partner-rate span { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.partner-stars { color: var(--gold); font-size: 0.8rem; }

/* FILTER BAR */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.9rem; font-size: 0.82rem; color: var(--muted); cursor: pointer; transition: var(--t); }
.filter-btn:hover, .filter-btn.active { border-color: var(--border-gold); color: var(--gold); background: var(--gold-dim); }

/* DOCS */
.docs-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.docs-sidebar { position: sticky; top: 5.5rem; }
.docs-nav-section { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); padding: 1rem 0.75rem 0.3rem; }
.docs-nav a { display: block; padding: 0.4rem 0.75rem; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 0.875rem; transition: var(--t); }
.docs-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.docs-nav a.active { color: var(--gold); background: var(--gold-dim); }
.docs-content h2 { margin: 2.5rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.docs-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.docs-content h3 { margin: 1.75rem 0 0.75rem; color: var(--text2); font-size: 1.1rem; }
.docs-content p { color: var(--muted); margin-bottom: 1rem; line-height: 1.8; font-size: 0.95rem; }
.docs-content ul { padding-left: 1.2rem; color: var(--muted); margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; }
.docs-content ul li { list-style: disc; }
.code-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1.25rem 1.5rem; font-family: 'JetBrains Mono',monospace; font-size: 0.8rem; color: var(--text2); overflow-x: auto; margin: 1.25rem 0; line-height: 1.75; }
.code-block .kw { color: var(--purple); }
.code-block .str { color: var(--green); }
.code-block .num { color: var(--blue); }
.code-block .key { color: var(--gold); }
.code-block .cmt { color: var(--subtle); }

/* PROCESS STEPS */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; position: relative; }
.step { text-align: center; position: relative; padding-top: 1.5rem; }
.step:not(:last-child)::after { content: '→'; position: absolute; right: -1rem; top: 2.2rem; font-size: 1.4rem; color: var(--subtle); }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-dim); border: 2px solid var(--border-gold); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; color: var(--gold); font-family: 'Syne',sans-serif; margin: 0 auto 1.25rem; }
.step h4 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.875rem; max-width: 220px; margin: 0 auto; }

/* X402 FLOW DIAGRAM */
.x402-flow { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; gap: 0.75rem; align-items: center; }
.flow-node { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; text-align: center; transition: var(--t); }
.flow-node:hover { border-color: var(--border-gold); }
.flow-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.flow-label { font-weight: 700; font-size: 0.925rem; margin-bottom: 0.3rem; }
.flow-sub { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.flow-arrow { text-align: center; font-size: 1.3rem; color: var(--gold); opacity: 0.6; }

/* TICKER */
.ticker { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.65rem 0; overflow: hidden; }
.ticker-inner { display: flex; gap: 3rem; animation: ticker 35s linear infinite; width: max-content; }
.ticker-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.ticker-item .t-name { font-family: 'JetBrains Mono',monospace; color: var(--gold); font-weight: 500; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.75rem; }
.testistar { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.75rem; }
.testimonial blockquote { color: var(--text2); font-size: 0.925rem; line-height: 1.7; margin-bottom: 1.25rem; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-dim); display: flex; align-items: center; justify-content: center; font-size: 1rem; border: 1px solid var(--border-gold); }
.testi-name { font-weight: 700; font-size: 0.875rem; }
.testi-role { font-size: 0.78rem; color: var(--muted); }

/* CTA SECTION */
.cta-section { text-align: center; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 70%); padding: 8rem 0; }
.cta-section h2 { margin-bottom: 1.25rem; }
.cta-section p { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; max-width: 280px; margin-top: 0.85rem; line-height: 1.65; }
.footer-col h5 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--subtle); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: var(--t); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom a { color: var(--subtle); font-size: 0.825rem; text-decoration: none; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--muted); transition: var(--t); text-decoration: none; }
.footer-social a:hover { background: var(--gold-dim); color: var(--gold); border-color: var(--border-gold); }

/* DIVIDERS */
.divider { height: 1px; background: var(--border); }
.gradient-divider { height: 1px; background: linear-gradient(90deg,transparent,var(--border-gold),transparent); }

/* SCROLL ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* STELLAR CHAIN VIZ */
.chain-card { background: var(--card); border: 1px solid var(--border-gold); border-radius: var(--r-lg); padding: 2rem; }
.chain-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--r-sm); border: 1px solid var(--border); margin-bottom: 0.5rem; background: var(--surface); }
.chain-row:last-child { margin-bottom: 0; }
.chain-icon { font-size: 1.2rem; }
.chain-info { flex: 1; }
.chain-name { font-weight: 700; font-size: 0.9rem; font-family: 'JetBrains Mono',monospace; color: var(--gold); }
.chain-meta { font-size: 0.78rem; color: var(--muted); }
.chain-status { font-size: 0.72rem; font-weight: 700; color: var(--green); background: var(--green-dim); padding: 0.2rem 0.6rem; border-radius: 6px; }

/* SUBSCRIPTION HIGHLIGHT */
.sub-highlight { background: linear-gradient(135deg,rgba(201,168,76,0.08) 0%,rgba(59,130,246,0.06) 100%); border: 1px solid var(--border-gold); border-radius: var(--r-lg); padding: 3rem; text-align: center; }

/* RESPONSIVE */
@media(max-width:1100px) {
  .pricing-grid { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .docs-wrap { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  body.menu-open .nav-links { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; padding: 1.5rem; background: var(--bg); z-index: 99; border-bottom: 1px solid var(--border); }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ns-pills { display: none; }
  .features-grid, .grid-3, .grid-4, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .case-types { grid-template-columns: repeat(2,1fr); }
  .partner-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .x402-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .step:not(:last-child)::after { content: '↓'; right: auto; bottom: -1.5rem; top: auto; left: 50%; }
}
