/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }
code, pre { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --border:       rgba(0,0,0,0.08);
  --border-mid:   rgba(0,0,0,0.14);

  --blue:         #2563eb;
  --blue-light:   #3b82f6;
  --purple:       #7c3aed;
  --teal:         #0d9488;
  --amber:        #d97706;
  --rose:         #e11d48;
  --green:        #059669;

  --glow-blue:    rgba(37,99,235,0.07);
  --glow-purple:  rgba(124,58,237,0.05);

  --text:         #0f172a;
  --text-dim:     #475569;
  --text-muted:   #94a3b8;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10);
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p { color: var(--text-dim); max-width: 65ch; }

.gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-warm {
  background: linear-gradient(135deg, #0f172a 0%, #d97706 55%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { margin: 16px auto 0; max-width: 52ch; font-size: 1.1rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.22);
  color: var(--blue); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 20px;
}
.badge .dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; animation: pulse 2s infinite; }

/* ─── BACKGROUND ORBS ────────────────────────────────────────────────────── */
.orbs {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5;
}
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(79,142,247,0.3) 0%, transparent 70%); top: -200px; left: -100px; animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(167,139,250,0.25) 0%, transparent 70%); top: 100px; right: -100px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(45,212,191,0.15) 0%, transparent 70%); bottom: 0; left: 50%; animation: drift 16s ease-in-out infinite alternate; }

@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

/* ─── NAVIGATION ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition), padding var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--border);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; gap: 32px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo .logo-text { color: var(--text); }
.nav-logo .logo-accent { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  color: var(--text-dim); font-size: 0.9rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(0,0,0,0.05); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-dim); border-radius: 2px; transition: var(--transition); }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(79,142,247,0.3), 0 4px 16px rgba(79,142,247,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(79,142,247,0.5), 0 8px 28px rgba(79,142,247,0.4);
}
.btn-ghost {
  color: var(--text-dim); border: 1px solid var(--border);
  background: transparent;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-mid); background: rgba(0,0,0,0.04); }
.btn-login {
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
  font-weight: 700;
}
.btn-login:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220,38,38,0.4);
}
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--r-md); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

.btn-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-light); font-size: 0.9rem; font-weight: 500; transition: gap var(--transition); }
.btn-arrow:hover { gap: 10px; }
.btn-arrow svg { transition: transform var(--transition); }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(79,142,247,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero-eyebrow .line { flex: 1; height: 1px; background: linear-gradient(to right, rgba(79,142,247,0.4), transparent); max-width: 60px; }
.hero-eyebrow span { color: var(--blue-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.hero h1 { margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-dim); max-width: 54ch; margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.hero-stat .label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.hero-stat-sep { width: 1px; height: 32px; background: var(--border); }

/* Browser Mockup */
.hero-visual {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 52%; max-width: 640px;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}
.browser {
  background: var(--surface); border: 1px solid var(--border-mid);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #0a1020; border-bottom: 1px solid var(--border);
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.red   { background: #ff5f57; }
.browser-dot.amber { background: #febc2e; }
.browser-dot.green { background: #28c840; }
.browser-url {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px 12px; font-size: 0.72rem;
  color: var(--text-muted); font-family: monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { display: flex; height: 360px; overflow: hidden; }
.app-sidebar {
  width: 180px; flex-shrink: 0; border-right: 1px solid var(--border);
  padding: 12px 10px; background: #090d1a;
}
.sidebar-search {
  height: 28px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 6px; margin-bottom: 14px;
  display: flex; align-items: center; padding: 0 8px; gap: 6px;
}
.sidebar-search span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.sidebar-search .bar { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.facet { margin-bottom: 12px; }
.facet-label { font-size: 0.62rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; padding-left: 4px; }
.facet-item { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 4px; }
.facet-check { width: 11px; height: 11px; border: 1px solid rgba(255,255,255,0.2); border-radius: 2px; flex-shrink: 0; }
.facet-check.on { background: var(--blue); border-color: var(--blue); }
.facet-bar-wrap { flex: 1; display: flex; align-items: center; gap: 4px; }
.facet-bar-bg { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.facet-bar { height: 100%; border-radius: 2px; background: linear-gradient(to right, var(--blue), var(--purple)); }
.facet-count { font-size: 0.58rem; color: var(--text-muted); }
.app-tiles { flex: 1; padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-content: start; background: #06080f; overflow: hidden; }
.tile {
  aspect-ratio: 3/4; border-radius: 6px; border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden; position: relative;
}
.tile::before { content: ''; position: absolute; inset: 0; }
.tile::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 28px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.t1::before { background: linear-gradient(135deg, #1a3a5c 0%, #2a5298 60%, #1a3a5c 100%); }
.t2::before { background: linear-gradient(135deg, #3d1a5c 0%, #6b3fa0 60%, #3d1a5c 100%); }
.t3::before { background: linear-gradient(135deg, #1a4a2a 0%, #2d7a4f 60%, #1a4a2a 100%); }
.t4::before { background: linear-gradient(135deg, #5c3a1a 0%, #a06b2a 60%, #5c3a1a 100%); }
.t5::before { background: linear-gradient(135deg, #1a2a5c 0%, #3a5298 60%, #1a2a4c 100%); }
.t6::before { background: linear-gradient(135deg, #4a1a3a 0%, #8a2a6a 60%, #4a1a3a 100%); }
.t7::before { background: linear-gradient(135deg, #1a4a4a 0%, #2a8080 60%, #1a4a4a 100%); }
.t8::before { background: linear-gradient(135deg, #4a3a1a 0%, #8a7030 60%, #4a3a1a 100%); }
.toolbar-mock {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-top: 1px solid var(--border); background: #090d1a;
}
.tab { padding: 4px 10px; border-radius: 4px; font-size: 0.65rem; font-weight: 500; color: var(--text-muted); }
.tab.active { background: rgba(79,142,247,0.15); color: var(--blue-light); }

/* ─── GRID DOT BACKGROUND ────────────────────────────────────────────────── */
.dot-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ─── LOGOS STRIP ────────────────────────────────────────────────────────── */
.logos-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px 0; background: var(--bg-alt);
}
.logos-strip .inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; }
.logos-strip .label { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.logos-strip .orgs { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.logos-strip .org { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; opacity: 0.6; transition: opacity var(--transition); }
.logos-strip .org:hover { opacity: 1; }

/* ─── FEATURES GRID ──────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at top left, var(--glow-blue), transparent 60%);
  transition: opacity var(--transition);
}
.feature-card:hover { border-color: var(--border-mid); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.3rem;
}
.feature-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; color: var(--text-dim); max-width: none; line-height: 1.65; }

/* ─── VIEWS SHOWCASE ─────────────────────────────────────────────────────── */
.views-showcase { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.views-tabs { display: flex; flex-direction: column; gap: 6px; }
.view-tab {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition); text-align: left;
}
.view-tab:hover { background: rgba(0,0,0,0.03); border-color: var(--border); }
.view-tab.active { background: var(--surface); border-color: var(--border-mid); }
.view-tab-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem;
}
.view-tab-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.view-tab-info p { font-size: 0.8rem; color: var(--text-muted); max-width: none; line-height: 1.4; margin-top: 2px; }
.view-preview {
  background: var(--surface); border: 1px solid var(--border-mid);
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/10;
  box-shadow: var(--shadow-lg);
}
.view-preview-inner { width: 100%; height: 100%; display: none; }
.view-preview-inner.active { display: flex; }
.vp-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; padding: 12px; background: #06080f; width: 100%; }
.vp-tile { border-radius: 5px; border: 1px solid rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.vp-tile::before { content: ''; position: absolute; inset: 0; }
.c1::before { background: linear-gradient(135deg, #0d2b4d, #1a4a8a); }
.c2::before { background: linear-gradient(135deg, #2d0d4d, #5a1a8a); }
.c3::before { background: linear-gradient(135deg, #0d3d1a, #1a6a2d); }
.c4::before { background: linear-gradient(135deg, #4d2d0d, #8a5a1a); }
.c5::before { background: linear-gradient(135deg, #0d3d4d, #1a6a7a); }
.c6::before { background: linear-gradient(135deg, #4d0d2d, #8a1a5a); }
.c7::before { background: linear-gradient(135deg, #3d4d0d, #6a7a1a); }
.c8::before { background: linear-gradient(135deg, #0d1a4d, #1a2d8a); }
.c9::before { background: linear-gradient(135deg, #4d3d0d, #8a6a1a); }
.c10::before { background: linear-gradient(135deg, #1a0d4d, #3a1a8a); }
.c11::before { background: linear-gradient(135deg, #0d4d3d, #1a8a6a); }
.c12::before { background: linear-gradient(135deg, #4d0d0d, #8a1a1a); }
.c13::before { background: linear-gradient(135deg, #0d4d0d, #1a8a1a); }
.c14::before { background: linear-gradient(135deg, #4d4d0d, #8a8a1a); }
.c15::before { background: linear-gradient(135deg, #0d0d4d, #1a1a8a); }

/* Map preview */
.vp-map { position: relative; width: 100%; height: 100%; background: #0a1628; overflow: hidden; }
.map-lines { position: absolute; inset: 0; }
.map-coast { position: absolute; border: 1px solid rgba(100,148,200,0.3); }
.map-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.4); transform: translate(-50%,-50%); }
.map-cluster { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 700; color: #fff; transform: translate(-50%,-50%); }

/* Bar preview */
.vp-bars { display: flex; align-items: flex-end; gap: 6px; padding: 16px 12px 24px; background: #06080f; width: 100%; height: 100%; }
.bar-group { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.bar-col { width: 100%; border-radius: 4px 4px 0 0; min-height: 4px; }
.bar-label { font-size: 0.5rem; color: var(--text-muted); text-align: center; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Heatmap preview */
.vp-heatmap { display: grid; padding: 12px; gap: 3px; background: #06080f; width: 100%; height: 100%; }
.hm-cell { border-radius: 3px; }

/* ─── GALLERY PAGE ────────────────────────────────────────────────────────── */
.gallery-filter {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
}
.filter-btn {
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-dim); font-size: 0.82rem; font-weight: 500;
  transition: all var(--transition); cursor: pointer;
}
.filter-btn:hover { border-color: var(--border-mid); color: var(--text); }
.filter-btn.active { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.35); color: var(--blue); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.example-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.example-card:hover { border-color: var(--border-mid); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.example-thumb {
  aspect-ratio: 16/9; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.example-thumb-inner { position: absolute; inset: 0; }
.example-overlay {
  position: absolute; inset: 0; background: rgba(6,8,15,0); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all var(--transition);
}
.example-card:hover .example-overlay { opacity: 1; background: rgba(6,8,15,0.5); }
.example-body { padding: 20px; }
.example-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 0.7rem; font-weight: 600; padding: 3px 9px;
  border-radius: 100px; letter-spacing: 0.04em;
  border: 1px solid transparent;
}
/* Each label maps to one class (see gallery cards); backgrounds are kept at a
   visible tint with a matching border so distinct tags never read as the same
   swatch. Hues are spread around the wheel for maximum separation. */
.tag-blue   { background: rgba(37,99,235,0.16);  border-color: rgba(37,99,235,0.32);  color: #1d4ed8; }
.tag-sky    { background: rgba(14,165,233,0.16); border-color: rgba(14,165,233,0.34); color: #0369a1; }
.tag-cyan   { background: rgba(6,182,212,0.18);  border-color: rgba(6,182,212,0.38);  color: #0e7490; }
.tag-teal   { background: rgba(20,184,166,0.18); border-color: rgba(20,184,166,0.38); color: #0f766e; }
.tag-green  { background: rgba(16,185,129,0.16); border-color: rgba(16,185,129,0.34); color: #047857; }
.tag-lime   { background: rgba(132,204,22,0.20); border-color: rgba(132,204,22,0.42); color: #4d7c0f; }
.tag-yellow { background: rgba(234,179,8,0.22);  border-color: rgba(234,179,8,0.44);  color: #a16207; }
.tag-amber  { background: rgba(245,158,11,0.20); border-color: rgba(245,158,11,0.42); color: #b45309; }
.tag-orange { background: rgba(249,115,22,0.18); border-color: rgba(249,115,22,0.38); color: #c2410c; }
.tag-red    { background: rgba(239,68,68,0.16);  border-color: rgba(239,68,68,0.34);  color: #b91c1c; }
.tag-rose   { background: rgba(244,63,94,0.16);  border-color: rgba(244,63,94,0.34);  color: #be123c; }
.tag-pink   { background: rgba(236,72,153,0.16); border-color: rgba(236,72,153,0.34); color: #be185d; }
.tag-fuchsia{ background: rgba(217,70,239,0.15); border-color: rgba(217,70,239,0.32); color: #a21caf; }
.tag-purple { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.32); color: #7e22ce; }
.tag-violet { background: rgba(129,90,246,0.15); border-color: rgba(129,90,246,0.32); color: #6d28d9; }
.tag-indigo { background: rgba(79,70,229,0.15);  border-color: rgba(79,70,229,0.32);  color: #4338ca; }
.tag-brown  { background: rgba(120,113,108,0.18);border-color: rgba(120,113,108,0.36); color: #78716c; }
.tag-slate  { background: rgba(100,116,139,0.16);border-color: rgba(100,116,139,0.34); color: #475569; }
.example-body h3 { font-size: 0.98rem; margin-bottom: 6px; color: var(--text); }
.example-body h3 a { color: inherit; text-decoration: none; }
.example-body h3 a:hover { text-decoration: underline; }
.example-body p { font-size: 0.82rem; color: var(--text-dim); max-width: none; line-height: 1.55; }
.example-body p a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.example-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.example-meta { font-size: 0.75rem; color: var(--text-muted); }
.example-count, .example-vars { font-weight: 600; color: var(--text-dim); }
.example-vars { font-weight: 500; font-size: 0.82rem; color: var(--text-muted); }

/* ─── DOCS PAGE ──────────────────────────────────────────────────────────── */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.docs-sidebar {
  position: sticky; top: 88px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px; overflow-y: auto; max-height: calc(100vh - 120px);
}
.docs-sidebar h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; margin-top: 16px; padding-left: 8px; }
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-nav-link {
  display: block; padding: 6px 8px; border-radius: var(--r-sm);
  font-size: 0.84rem; color: var(--text-dim);
  transition: all var(--transition);
}
.docs-nav-link:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.docs-nav-link.active { color: var(--blue); background: rgba(37,99,235,0.08); }
.docs-content { min-width: 0; }
.docs-section { padding: 48px 0; border-bottom: 1px solid var(--border); }
.docs-section:first-child { padding-top: 0; }
.docs-section:last-child { border-bottom: none; }
.docs-section h2 { font-size: 1.6rem; margin-bottom: 16px; color: var(--text); }
.docs-section h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--text); }
.docs-section p { font-size: 0.92rem; max-width: 72ch; line-height: 1.75; color: var(--text-dim); margin-bottom: 12px; }
.docs-section ul { padding-left: 20px; }
.docs-section ul li { font-size: 0.92rem; color: var(--text-dim); line-height: 1.7; list-style: disc; margin-bottom: 4px; }
.docs-section ul li strong { color: var(--text); }
.code-block {
  background: #04060e; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px; margin: 16px 0;
  overflow-x: auto; font-size: 0.82rem; line-height: 1.7;
  color: #c9d1d9;
}
.code-block .kw  { color: #ff79c6; }
.code-block .str { color: #f1fa8c; }
.code-block .cm  { color: #6272a4; }
.code-block .nu  { color: #bd93f9; }
.annotation-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.84rem; }
.annotation-table th { text-align: left; padding: 10px 14px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.annotation-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-dim); vertical-align: top; }
.annotation-table tr:last-child td { border-bottom: none; }
.annotation-table code { background: rgba(37,99,235,0.07); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; color: var(--blue); }
.annotation-table td:first-child { white-space: nowrap; }
.callout {
  display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md);
  border: 1px solid; margin: 16px 0;
}
.callout-info { background: rgba(79,142,247,0.06); border-color: rgba(79,142,247,0.2); }
.callout-tip  { background: rgba(52,211,153,0.06); border-color: rgba(52,211,153,0.2); }
.callout-icon { font-size: 1rem; line-height: 1.4; flex-shrink: 0; }
.callout p { font-size: 0.86rem; max-width: none; margin: 0; }
.callout-info p { color: var(--blue); }
.callout-tip  p { color: var(--green); }

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────────── */
.about-hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color var(--transition);
}
.team-card:hover { border-color: var(--border-mid); }
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: #fff;
}
.team-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 2px; }
.team-card .role { font-size: 0.78rem; color: var(--blue-light); margin-bottom: 12px; }
.team-card p { font-size: 0.83rem; max-width: none; line-height: 1.6; }
.affil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.affil-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; align-items: flex-start; gap: 16px;
}
.affil-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.affil-card h4 { font-size: 0.92rem; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.affil-card p { font-size: 0.82rem; max-width: none; }

/* ─── CTA SECTION ────────────────────────────────────────────────────────── */
.cta-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(79,142,247,0.08) 0%, rgba(167,139,250,0.06) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-section .inner { text-align: center; position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { margin: 0 auto 36px; font-size: 1.1rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.84rem; color: var(--text-muted); margin-top: 10px; max-width: 28ch; line-height: 1.6; }
.footer-col h5 { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.84rem; color: var(--text-muted); margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); margin: 0; max-width: none; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.78rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-dim); }

/* ─── SCROLL ANIMATIONS ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.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; }

/* ─── PAGE HERO (interior pages) ─────────────────────────────────────────── */
.page-hero { padding: 140px 0 72px; position: relative; overflow: hidden; }
.page-hero .page-hero-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-light); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 56ch; }

/* ─── SHOWCASE (mini-SuAVE catalog) ──────────────────────────────────────── */
.sc-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.sc-topbar {
  flex-shrink: 0; display: flex; align-items: center; gap: 16px;
  padding: 0 20px; height: 56px;
  background: var(--surface); border-bottom: 1px solid var(--border-mid);
}
.sc-topbar .nav-logo { flex-shrink: 0; }
.sc-topbar h1 { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: 0; white-space: nowrap; }
.sc-search-wrap {
  flex: 1; max-width: 440px; position: relative;
}
.sc-search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.sc-search {
  width: 100%; padding: 8px 12px 8px 36px;
  background: var(--bg); border: 1px solid var(--border-mid); border-radius: var(--r-md);
  color: var(--text); font-size: 0.88rem;
  transition: border-color var(--transition);
}
.sc-search:focus { outline: none; border-color: var(--blue); }
.sc-search::placeholder { color: var(--text-muted); }
.sc-count { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; margin-left: auto; }

.sc-body { display: flex; flex: 1; overflow: hidden; }

.sc-sidebar {
  width: 220px; flex-shrink: 0; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 16px;
}
.sc-sidebar::-webkit-scrollbar { width: 4px; }
.sc-sidebar::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
.sc-filter-group { margin-bottom: 24px; }
.sc-filter-group h4 {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.sc-filter-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px; border-radius: var(--r-sm); cursor: pointer;
  transition: background var(--transition); margin-bottom: 2px;
}
.sc-filter-item:hover { background: rgba(0,0,0,0.04); }
.sc-filter-item input[type="checkbox"] { display: none; }
.sc-checkbox {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
  border: 1px solid var(--border-mid); background: transparent;
  position: relative; transition: all var(--transition);
}
.sc-filter-item.active .sc-checkbox {
  border-color: var(--blue); background: var(--blue);
}
.sc-filter-item.active .sc-checkbox::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 5px; height: 8px; border: 2px solid #fff;
  border-top: none; border-left: none; transform: rotate(45deg);
}
.sc-filter-label { font-size: 0.8rem; color: var(--text-dim); flex: 1; }
.sc-filter-badge {
  font-size: 0.68rem; color: var(--text-muted); background: rgba(0,0,0,0.05);
  border-radius: 10px; padding: 1px 6px;
}
.sc-clear { font-size: 0.75rem; color: var(--blue); cursor: pointer; margin-bottom: 16px; display: none; }
.sc-clear.visible { display: block; }

.sc-main { flex: 1; overflow-y: auto; padding: 24px; }
.sc-main::-webkit-scrollbar { width: 6px; }
.sc-main::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.app-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  position: relative;
}
.app-tile:hover { transform: translateY(-3px); border-color: var(--border-mid); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.app-tile-thumb {
  height: 120px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.app-tile-icon { font-size: 2.4rem; position: relative; z-index: 1; }
.app-tile-body { padding: 12px; }
.app-tile-title { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.app-tile-meta { font-size: 0.72rem; color: var(--text-muted); }
.app-tile-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.app-tag {
  font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 10px; border: 1px solid;
}
.sc-empty { grid-column: 1/-1; text-align: center; padding: 80px 0; color: var(--text-muted); }
.sc-empty svg { margin: 0 auto 16px; opacity: 0.3; }

/* detail panel */
.sc-detail {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; background: var(--surface);
  border-left: 1px solid var(--border-mid);
  transform: translateX(100%); transition: transform 320ms cubic-bezier(0.4,0,0.2,1);
  z-index: 200; display: flex; flex-direction: column; overflow: hidden;
}
.sc-detail.open { transform: translateX(0); }
.sc-detail-header {
  flex-shrink: 0; padding: 20px 20px 0;
  border-bottom: 1px solid var(--border); padding-bottom: 16px;
}
.sc-detail-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.05); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: background var(--transition);
}
.sc-detail-close:hover { background: rgba(0,0,0,0.10); }
.sc-detail-thumb {
  width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; margin-bottom: 16px; border-radius: var(--r-md); overflow: hidden;
  flex-shrink: 0;
}
.sc-detail-inner { flex: 1; overflow-y: auto; padding: 20px; }
.sc-detail-inner::-webkit-scrollbar { width: 4px; }
.sc-detail-inner::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
.sc-detail-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sc-detail-inst { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.sc-detail-story { font-size: 0.88rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 20px; max-width: none; }
.sc-detail-insights { margin-bottom: 24px; }
.sc-detail-insights h5 { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }
.sc-insight {
  display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-dim); line-height: 1.5;
}
.sc-insight:last-child { border-bottom: none; }
.sc-insight::before { content: '→'; color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.sc-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.sc-detail-cta {
  display: block; text-align: center;
  background: var(--blue); color: #fff; font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px; border-radius: var(--r-md);
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 8px;
}
.sc-detail-cta:hover { background: #3a7de8; transform: translateY(-1px); }
.sc-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 199; backdrop-filter: blur(2px);
}
.sc-overlay.open { display: block; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { width: 46%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .views-showcase { grid-template-columns: 1fr; }
  .views-tabs { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .section { padding: 64px 0; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .features-grid, .gallery-grid, .team-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .annotation-table { display: block; max-width: 100%; overflow-x: auto; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6,8,15,0.97);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    gap: 12px;
    z-index: 99;
  }
  .nav.open .nav-links a {
    color: #fff;
    background: rgba(255,255,255,0.06);
  }
  .nav.open .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .affil-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .sc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .sc-sidebar { width: 180px; }
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-detail { width: 100%; }
}
@media (max-width: 600px) {
  .sc-sidebar { display: none; }
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
}
