/* ============================================================
   Panos Khan — main.css
   Premium Dark UI Design System
   ============================================================ */

/* ── 1. Design Tokens ────────────────────────────────────── */
:root {
  --bg:           #070b14;
  --bg-alt:       #050910;
  --surface:      #0f172a;
  --surface-2:    #111c33;
  --surface-3:    #0a1020;
  --text:         #e6edf7;
  --text-muted:   #9aa9c4;
  --text-subtle:  #6b7d9e;
  --border:       #1e2d4d;
  --border-soft:  rgba(30, 45, 77, 0.6);
  --neon:         #00e5ff;
  --neon-glow:    rgba(0, 229, 255, 0.18);
  --neon-dim:     rgba(0, 229, 255, 0.08);
  --purple:       #7c3aed;
  --purple-glow:  rgba(124, 58, 237, 0.18);
  --grad-brand:   linear-gradient(135deg, #00e5ff 0%, #7c3aed 100%);
  --grad-card:    linear-gradient(160deg, rgba(15,23,42,0.9) 0%, rgba(11,20,40,0.95) 100%);
  --max-w:        1200px;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --t:            0.3s ease;
  --t-slow:       0.6s ease;
}

/* ── 2. Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: var(--neon); text-decoration: none; transition: color var(--t), text-shadow var(--t); }
a:hover { text-shadow: 0 0 10px rgba(0,229,255,.4); }
a:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

/* ── 3. Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 12px; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.kicker {
  display: inline-block;
  color: var(--neon);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(0,229,255,.25);
  border-radius: 999px;
  background: rgba(0,229,255,.05);
}
.lead { font-size: 1.1rem; color: #ccd9f0; line-height: 1.7; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

.gradient-text {
  background: var(--grad-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 4. Layout ───────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; scroll-margin-top: 90px; }
.section-sm { padding: 56px 0; }

.grid   { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.col-60-40 { grid-template-columns: 60fr 40fr; }

@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .grid-3  { grid-template-columns: 1fr 1fr; }
  .col-60-40 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-header h2 { margin-bottom: 14px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 24px 0 36px;
  color: var(--text-muted);
  font-size: .9rem;
}
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.content-grid h2 { font-size: 1.35rem; }
.content-grid h3 { margin-top: 20px; }
.content-meta { display: flex; gap: 24px; margin: 20px 0; }
.content-meta div { display: grid; gap: 2px; }
.content-meta dt { color: var(--text-subtle); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.content-meta dd { margin: 0; color: var(--text-muted); font-size: .9rem; }
@media (max-width: 840px) { .content-grid { grid-template-columns: 1fr; } }

/* Global search is progressively added by site.js. */
.global-search-trigger {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(0,229,255,.35);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
}
.global-search-trigger kbd { color: var(--neon); font: inherit; }
.global-search-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.global-search-dialog::backdrop { background: rgba(0,0,0,.72); }
.global-search-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px; }
.global-search-close { border: 0; background: transparent; color: var(--text); font-size: 1.6rem; cursor: pointer; }
.global-search-dialog input { width: calc(100% - 40px); margin: 0 20px 16px; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; }
.global-search-results { max-height: 340px; margin: 0; padding: 0; overflow: auto; list-style: none; border-top: 1px solid var(--border); }
.global-search-results a { display: grid; gap: 3px; padding: 13px 20px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.global-search-results a:hover { background: var(--neon-dim); text-shadow: none; }
.global-search-results small, .search-empty { color: var(--text-muted); }
.search-empty { padding: 18px 20px; }

/* ── 5. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), background var(--t), transform var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  border-color: rgba(0,229,255,.4);
  box-shadow: 0 0 18px var(--neon-glow);
  transform: translateY(-1px);
  text-shadow: none;
}
.btn-primary {
  border-color: var(--neon);
  background: linear-gradient(120deg, #062636 0%, #1a2044 100%);
  box-shadow: 0 0 18px var(--neon-glow);
  color: #dff9ff;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,229,255,.35);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(0,229,255,.3);
  color: var(--neon);
}
.btn-ghost:hover { background: var(--neon-dim); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }

/* ── 6. Cards ────────────────────────────────────────────── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover {
  border-color: rgba(0,229,255,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.36), 0 0 20px var(--neon-dim);
  transform: translateY(-3px);
}
.card-glass {
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0,229,255,.12);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--neon-dim);
  border: 1px solid rgba(0,229,255,.2);
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.card-icon.purple {
  background: var(--purple-glow);
  border-color: rgba(124,58,237,.25);
}
.card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--neon-dim);
  border: 1px solid rgba(0,229,255,.18);
  color: var(--neon);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card-tag.purple {
  background: var(--purple-glow);
  border-color: rgba(124,58,237,.25);
  color: #c4b5fd;
}

/* ── 7. Pills / Badges ───────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #ccd9f0;
  font-size: 0.82rem;
  margin: 3px 4px 3px 0;
  transition: border-color var(--t), color var(--t);
}
.pill:hover { border-color: rgba(0,229,255,.35); color: #dff9ff; }
.badge-cert {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-active { background: rgba(0,229,255,.12); color: var(--neon); border: 1px solid rgba(0,229,255,.3); }
.badge-history { background: rgba(148,163,184,.1); color: #94a3b8; border: 1px solid rgba(148,163,184,.2); }

/* ── 8. Background FX ────────────────────────────────────── */
.cyber-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.cyber-grid {
  position: absolute; inset: -20%;
  background:
    linear-gradient(rgba(0,229,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(700px) rotateX(58deg) translateY(8%);
  animation: gridDrift 22s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 130px, 130px 0; }
}
.cyber-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.2;
  will-change: transform;
}
.orb1 { width: 38vmax; height: 38vmax; left: -12vmax; top: 5vh; background: #00e5ff; }
.orb2 { width: 34vmax; height: 34vmax; right: -10vmax; top: 25vh; background: #7c3aed; }
.orb3 { width: 30vmax; height: 30vmax; left: 30vw; bottom: -10vmax; background: #22d3ee; opacity: 0.12; }
.emoji-field { position: absolute; inset: 0; overflow: hidden; }
.float-emoji {
  position: absolute;
  font-size: clamp(12px, 1.6vw, 20px);
  opacity: 0.15;
  animation: emojiFloat linear infinite;
}
@keyframes emojiFloat {
  0%   { transform: translateY(110vh) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.16; }
  92%  { opacity: 0.16; }
  100% { transform: translateY(-20vh) translateX(20px) rotate(10deg); opacity: 0; }
}
header, main, footer, .langbar, .topbar { position: relative; z-index: 2; }

/* ── 9. Language Bar ─────────────────────────────────────── */
.langbar {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7,11,20,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.langbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 7px 24px;
  display: flex; justify-content: flex-end; gap: 8px;
}
.toggle-btn {
  border: 1px solid rgba(0,229,255,.4);
  background: var(--surface);
  color: #dff8ff;
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.toggle-btn[aria-pressed="true"] {
  background: linear-gradient(90deg, #083642, #1a2044);
  border-color: var(--neon);
  box-shadow: 0 0 12px var(--neon-glow);
}
[data-lang="el"] { display: none; }

/* ── 10. Navigation ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 38px; z-index: 90;
  background: rgba(8,13,26,.93);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,229,255,.1);
}
.site-header[data-site-nav],
.site-header.site-header-top {
  top: 0;
}
@media (max-width: 1100px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 9px; font-size: 0.8rem; }
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--neon); }
.nav-links {
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap;
}
.nav-links a {
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.87rem;
  font-weight: 600;
  transition: color var(--t), border-color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-2);
  text-shadow: none;
}
.nav-links a.nav-cta {
  border-color: var(--neon);
  color: #dff9ff;
  background: rgba(0,229,255,.08);
  box-shadow: 0 0 12px var(--neon-glow);
}
.nav-links a.nav-cta:hover { box-shadow: 0 0 20px rgba(0,229,255,.3); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--text-muted);
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
}
.nav-drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(5,9,16,.7);
  backdrop-filter: blur(4px);
}
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: #0a1020;
  border-left: 1px solid var(--border);
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.nav-drawer.open { display: block; }
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-close {
  display: flex; align-items: center; justify-content: flex-end;
  margin-bottom: 24px;
}
.nav-drawer-close button {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 8px; padding: 6px 10px; cursor: pointer;
  font-size: 1rem;
}
.nav-drawer-links {
  display: flex; flex-direction: column; gap: 4px;
}
.nav-drawer-links a {
  display: block; padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  border: 1px solid transparent;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.nav-drawer-links a:hover {
  color: var(--text); border-color: var(--border); background: var(--surface-2); text-shadow: none;
}
.nav-drawer-links a.nav-cta {
  border-color: var(--neon); color: #dff9ff;
  background: rgba(0,229,255,.08); margin-top: 10px;
  box-shadow: 0 0 12px var(--neon-glow);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── 11. Hero Section ────────────────────────────────────── */
.hero {
  padding: 90px 0 64px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 840px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
.hero-content { max-width: 720px; }
.hero h1 { margin: 10px 0 18px; }
.hero .lead { max-width: 600px; }
.hero-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: left; }
.stat-num { font-size: 1.7rem; font-weight: 900; color: var(--neon); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.03em; }

/* Hero Visual */
.hero-visual {
  position: relative; width: 220px;
}
.hero-avatar-ring {
  width: 200px; height: 200px; border-radius: 50%;
  border: 2px solid rgba(0,229,255,.3);
  padding: 6px;
  background: radial-gradient(circle at center, rgba(0,229,255,.06) 0%, transparent 70%);
  animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,.0); }
  50% { box-shadow: 0 0 30px 8px rgba(0,229,255,.12); }
}
.hero-avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #0d1e3a 0%, #1a0e3d 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── 12. Section: About ─────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 60fr 40fr; gap: 40px; align-items: start; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
.about-bio p { margin-bottom: 14px; }
.about-facts { display: flex; flex-direction: column; gap: 12px; }
.fact-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.fact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.fact-label { font-size: 0.78rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.fact-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* ── 13. Section: Transformation ───────────────────────── */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-3);
  text-align: center;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.pillar-card:hover {
  border-color: rgba(0,229,255,.3);
  box-shadow: 0 8px 30px var(--neon-dim);
  transform: translateY(-4px);
}
.pillar-icon { font-size: 2rem; margin-bottom: 12px; }
.pillar-card h3 { font-size: 0.95rem; margin-bottom: 8px; }

/* ── 14. Section: AI Tools / Panos Khan AI ─────────────── */
.tool-card { position: relative; overflow: hidden; }
.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--t);
}
.tool-card:hover::before { opacity: 1; }
.tool-card .tool-icon { font-size: 1.8rem; margin-bottom: 14px; }
.tool-card .tool-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: #4ade80; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 8px;
}
.tool-card .tool-status::before {
  content: ''; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── 15. Section: Projects ─────────────────────────────── */
.project-card .project-meta {
  display: flex; gap: 8px; align-items: center; margin-bottom: 12px;
}
.project-card h3 { margin-bottom: 8px; }
.project-card .project-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}
.tag.cyan { background: var(--neon-dim); border-color: rgba(0,229,255,.2); color: var(--neon); }
.tag.purple { background: var(--purple-glow); border-color: rgba(124,58,237,.25); color: #c4b5fd; }

/* ── 16. Section: Research & Insights ─────────────────── */
.insight-card { border-left: 3px solid var(--neon); padding-left: 20px; }
.insight-card.purple { border-left-color: var(--purple); }

/* ── 17. Section: Articles ─────────────────────────────── */
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card .article-date { font-size: 0.78rem; color: var(--text-subtle); margin-bottom: 8px; }
.article-card h3 { font-size: 1rem; margin-bottom: 8px; }
.article-card p { flex: 1; }
.article-card .article-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.article-cat { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--neon-dim); border: 1px solid rgba(0,229,255,.18); color: var(--neon); }

/* ── 18. Section: Certifications ───────────────────────── */
.cert-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cert-list li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 14px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.cert-list li:hover { border-color: rgba(0,229,255,.2); }
.cert-list li .cert-year { color: var(--neon); font-weight: 700; font-size: 0.78rem; flex-shrink: 0; }

/* ── 19. Section: Contact ──────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { margin-bottom: 14px; }
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.contact-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: border-color var(--t), color var(--t), background var(--t);
  text-decoration: none;
}
.contact-link:hover { border-color: rgba(0,229,255,.3); color: var(--text); background: var(--surface-2); text-shadow: none; }
.contact-link .contact-link-icon { font-size: 1rem; flex-shrink: 0; }
.contact-link .contact-link-label { font-size: 0.78rem; color: var(--text-subtle); margin-bottom: 1px; }
.contact-link .contact-link-value { font-size: 0.88rem; font-weight: 600; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,229,255,.12); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.83rem; color: var(--text-subtle); margin-top: 8px; }

/* ── 20. Timeline ───────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-step {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--neon-dim);
  border: 1px solid rgba(0,229,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900; color: var(--neon);
}
.timeline-body { flex: 1; padding-top: 6px; }
.timeline-body strong { display: block; margin-bottom: 4px; }

/* ── 21. Links Registry ─────────────────────────────────── */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 800px) { .links-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .links-grid { grid-template-columns: 1fr; } }
.link-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.link-card:hover { border-color: rgba(0,229,255,.3); color: var(--text); background: var(--surface-2); text-shadow: none; }
.link-card-icon { font-size: 1.1rem; flex-shrink: 0; }
.link-card-label { font-size: 0.78rem; color: var(--text-subtle); margin-bottom: 1px; }
.link-card-value { font-size: 0.85rem; font-weight: 600; }

/* ── 22. Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand .brand { font-size: 1.2rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--t); }
.footer-col ul li a:hover { color: var(--neon); text-shadow: none; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.83rem; color: var(--text-subtle); margin: 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.footer-social a:hover { border-color: rgba(0,229,255,.3); color: var(--neon); background: var(--neon-dim); text-shadow: none; }

/* ── 23. Section Dividers / Misc ────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.section-cta {
  text-align: center;
  margin-top: 36px;
}

/* ── 24. Scroll Reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.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; }

/* ── 25. Back to Top / Breadcrumb ───────────────────────── */
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: 0.83rem; color: var(--text-subtle);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--neon); text-shadow: none; }
.breadcrumb-sep { color: var(--border); }

/* ── 26. Utility ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-neon { color: var(--neon); }
.text-purple { color: #c4b5fd; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── 27. CTA Band ───────────────────────────────────────── */
.cta-band {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,229,255,.04) 0%, rgba(124,58,237,.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-muted); max-width: 500px; margin: 0 auto 28px; }
.cta-band-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 28. Sub-page shared header ─────────────────────────── */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-top: 10px; }

/* ── 29. Ecosystem / product hubs ───────────────────────── */
.product-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.product-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}
.product-subnav a:hover,
.product-subnav a[aria-current="page"] {
  color: var(--neon);
  border-color: rgba(0,229,255,.35);
  background: var(--neon-dim);
  text-shadow: none;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) {
  .ecosystem-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
}
.ecosystem-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}
.ecosystem-card .card-icon { margin-bottom: 4px; }
.ecosystem-card h3 { margin-bottom: 0; }
.ecosystem-card .ecosystem-meta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon);
}

.hub-roadmap {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.hub-roadmap li {
  list-style: none;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
}
.hub-roadmap strong { color: var(--text); }

.status-pill,
.capability-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-live { background: rgba(0,229,255,.12); color: var(--neon); border: 1px solid rgba(0,229,255,.3); }
.status-planned { background: rgba(124,58,237,.12); color: #c4b5fd; border: 1px solid rgba(124,58,237,.28); }
.status-draft { background: rgba(148,163,184,.12); color: #94a3b8; border: 1px solid rgba(148,163,184,.25); }

.capability-controls {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.capability-search-wrap {
  position: relative;
}
.capability-search-wrap input,
.ai-search-input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.capability-search-wrap .ai-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.capability-filters,
.ai-categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-category-pill {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.ai-category-pill.active,
.ai-category-pill:hover {
  border-color: rgba(0,229,255,.35);
  color: var(--neon);
  background: var(--neon-dim);
}
.capability-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 840px) {
  .capability-grid { grid-template-columns: 1fr; }
}
.capability-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.capability-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 620px) {
  .capability-sections { grid-template-columns: 1fr; }
}
.capability-sections h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.capability-resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.capability-resource-list a { font-size: 0.92rem; }
.capability-empty { font-size: 0.88rem; margin: 0; }
.capability-keywords { margin-top: 16px; }

.safety-box {
  border: 1px solid rgba(0,229,255,.22);
  background: linear-gradient(160deg, rgba(0,229,255,.06), rgba(124,58,237,.05));
  border-radius: var(--radius);
  padding: 22px;
}
.safety-box ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-muted); }
.future-note {
  border-left: 3px solid var(--purple);
  padding: 12px 16px;
  background: rgba(124,58,237,.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}

/* Ensure injected drawer works when nested in header */
.site-header { position: relative; }
.site-header .nav-drawer,
.site-header .nav-overlay { /* positioned by existing nav drawer rules when present */ }

.nav-links a[aria-current="page"] { color: var(--neon); }

/* ── 30. Phase 2 shared components ─────────────────────── */
.section-header--start {
  text-align: left;
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
}

.alert {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 18px;
  color: var(--text-muted);
  background: var(--surface);
}
.alert strong { color: var(--text); }
.alert-info {
  border-color: rgba(0, 229, 255, 0.28);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.08), rgba(15, 23, 42, 0.9));
}
.alert-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.1), rgba(15, 23, 42, 0.9));
}
.alert-warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0.9));
}

.faq {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 16px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
  padding: 14px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--neon);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
}
.docs-sidebar {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}
@media (max-width: 900px) {
  .docs-sidebar { position: static; }
}
.docs-sidebar-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 12px;
}
.docs-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.docs-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.docs-nav a:hover { color: var(--neon); text-shadow: none; }
.docs-content { min-width: 0; }

.code-block {
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: #d7e7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.related-products { margin-top: 40px; }
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 840px) {
  .related-products-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .related-products-grid { grid-template-columns: 1fr; }
}
.related-product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}
.related-product-card:hover {
  text-shadow: none;
  border-color: rgba(0, 229, 255, 0.35);
}
.related-product-card .muted { margin: 0; }
.related-product-card .ecosystem-meta { margin-top: auto; }

.download-card .content-meta,
.service-card .content-meta,
.tool-card .content-meta {
  margin-top: 14px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
}
.pagination [aria-current="page"] {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--neon);
  background: var(--neon-dim);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--neon);
  font: inherit;
  font-size: 0.85em;
}

/* ── Platform workspace and registry-driven catalogs ───────── */
.section-header--start { text-align: left; max-width: 760px; margin: 0 0 36px; }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.platform-shell { padding-top: 40px; }
.platform-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.platform-sidebar { position: sticky; top: 100px; height: fit-content; }
.platform-nav-list { display: grid; gap: 8px; margin-top: 12px; }
.platform-nav-list a { color: var(--text-muted); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 8px 10px; }
.platform-nav-list a[aria-current="page"], .platform-nav-list a:hover { color: var(--text); border-color: rgba(0,229,255,.35); background: rgba(0,229,255,.05); text-shadow: none; }
.platform-main .card { margin-bottom: 0; }
.workspace-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.workspace-stat h3 { font-size: 1.9rem; margin-bottom: 4px; }
.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.platform-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.platform-list li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.platform-list li:last-child { border-bottom: 0; }
.platform-list small { color: var(--text-subtle); }
.workspace-toggle { display: flex; gap: 8px; align-items: center; margin: 10px 0; color: var(--text-muted); }
.platform-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.favorite-toggle { border: 1px solid var(--border); background: var(--surface-3); color: var(--text); border-radius: 999px; min-width: 34px; height: 34px; cursor: pointer; }
.favorite-toggle:hover { border-color: rgba(0,229,255,.45); color: var(--neon); }
.platform-card-actions { font-size: .92rem; }
.service-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

@media (max-width: 980px) {
  .platform-layout { grid-template-columns: 1fr; }
  .platform-sidebar { position: static; }
  .workspace-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-stats { grid-template-columns: 1fr; }
}
