/* ==========================================================================
   IBM Project4i — showcase website
   Design system: "Deep Space" (matches the p4i VS Code extension palette)
   Static, self-hosted, zero external dependencies.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #0b0d12;              /* base near-black background */
  --surface-1: #12151d;      /* elevated surface */
  --surface-2: #171b26;      /* higher elevated surface */

  /* Text */
  --fg: #e6e9f2;             /* primary text */
  --fg-muted: #8b93a7;       /* muted / secondary text */

  /* Brand */
  --brand-blue: #2f6bff;
  --brand-violet: #7c5cff;
  --brand-cyan: #38bdf8;
  --accent-hover: #4a80ff;
  --ok: #3fb950;             /* success / checkmark green */

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #2f6bff 0%, #7c5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(47, 107, 255, .16), rgba(124, 92, 255, .16));

  /* Borders & glow */
  --border: rgba(124, 92, 255, .20);
  --glow: 0 0 24px rgba(124, 92, 255, .18);
  --shadow: 0 8px 30px rgba(15, 20, 40, .35);

  /* Shape */
  --radius-card: 13px;
  --radius-pill: 999px;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Cascadia Code', Consolas, monospace;

  /* Layout */
  --maxw: 1120px;
  --header-h: 64px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand-cyan); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

/* Offset anchored targets for the sticky header */
section[id],
.doc-item[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

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

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface-2);
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-card) 0;
}
.skip-link:focus { left: 0; }

/* Visible focus ring for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: .98rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: .9rem; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(124, 92, 255, .32);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover {
  color: var(--fg);
  border-color: var(--brand-violet);
  background: var(--grad-soft);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 13, 18, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand:hover { color: var(--fg); }
.brand-logo { filter: drop-shadow(0 0 8px rgba(124, 92, 255, .35)); }

.site-nav { display: flex; align-items: center; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--fg-muted); font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.nav-links .btn-primary { color: #fff; }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background: var(--bg);
}

/* Animated brand glow blob */
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  max-width: 140vw;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(124, 92, 255, .28) 0%,
    rgba(47, 107, 255, .18) 38%,
    rgba(11, 13, 18, 0) 68%);
  filter: blur(20px);
  animation: glowPulse 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

/* Subtle grid overlay for the "Deep Space" feel */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--fg-muted);
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-sub strong { color: var(--fg); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.hero-note {
  color: var(--fg-muted);
  font-size: .88rem;
  margin: 0;
}

/* Runs-on strip: VS Code + IBM BOB, side by side, equal size */
.runs-on {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.runs-on-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg-muted);
}
.runs-on-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.runs-on-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
}
.runs-on-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 9px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.runs-on-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.runs-on-name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--fg);
}

/* Hero mascot art */
.hero-art { display: flex; justify-content: center; }
.mascot-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 300px;
  height: 300px;
  max-width: 80vw;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--glow);
}
.mascot-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand-blue), var(--brand-violet), var(--brand-cyan), var(--brand-blue));
  filter: blur(14px);
  opacity: .5;
  z-index: -1;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-mascot { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-1); border-block: 1px solid var(--border); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-lead {
  color: var(--fg-muted);
  font-size: 1.08rem;
  margin: 0;
}
.section-lead strong { color: var(--fg); }

/* What is Project4i — highlights */
.highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.highlights li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--fg);
  font-weight: 500;
}
.hl-num {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand-cyan);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
}

/* ==========================================================================
   Feature grid
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-violet);
  box-shadow: var(--shadow), var(--glow);
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--brand-cyan);
  margin-bottom: 16px;
}
.card-title { font-size: 1.18rem; font-weight: 700; }
.card-text { color: var(--fg-muted); margin: 0; font-size: .98rem; }
.card-text em { color: var(--fg); font-style: normal; font-weight: 600; }

/* ==========================================================================
   Feature explorer (macro topics)
   ========================================================================== */
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}

.macro-wrap { max-width: 980px; margin: 0 auto; }

.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.macro-grid[hidden] { display: none; }

.macro-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 22px 22px 18px;
  text-align: left;
  font-family: var(--font);
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, background .2s ease;
}
.macro-tile:hover {
  transform: translateY(-4px);
  border-color: var(--brand-violet);
  box-shadow: var(--shadow), var(--glow);
}
.macro-tile.is-active {
  transform: translateY(-4px);
  border-color: var(--brand-violet);
  background: var(--surface-1);
  box-shadow: var(--glow), 0 0 0 1px var(--brand-violet) inset;
}
.macro-tile.is-active .macro-badge { color: var(--brand-violet); }
.macro-ico { color: var(--brand-cyan); }
.macro-ico svg { display: block; width: 28px; height: 28px; }
.macro-name { font-size: 1.12rem; font-weight: 700; color: var(--fg); line-height: 1.2; }
.macro-badge {
  margin-top: auto;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-cyan);
}

/* Keep the opened detail clear of the sticky header when scrolled into view */
#macroDetail,
.macro-detail-card { scroll-margin-top: calc(var(--header-h) + 16px); }

.macro-detail {
  grid-column: 1 / -1;          /* full-width band inside the topic grid */
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows .34s cubic-bezier(.22, .61, .36, 1),
    opacity .26s ease,
    visibility 0s linear .34s;
}
/* Parked while closed: out of the grid flow, so it adds no phantom row gap. */
.macro-detail.is-parked { display: none; }
.macro-detail.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows .34s cubic-bezier(.22, .61, .36, 1),
    opacity .3s ease .04s,
    visibility 0s linear 0s;
}
.macro-detail-inner {
  min-height: 0;
  overflow: hidden;
}
.macro-detail-card {
  position: relative;
  padding: 22px 26px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.macro-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.macro-close:hover {
  color: var(--fg);
  border-color: var(--brand-violet);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.macro-close svg { display: block; width: 14px; height: 14px; }

.macro-group[hidden] { display: none; }
.macro-group { transition: opacity .18s ease; }
.macro-group.is-leaving { opacity: 0; }
.macro-group h3,
.macro-group .feat-line {
  animation: feat-in .38s cubic-bezier(.22, .61, .36, 1) both;
}
.macro-group .feat-line:nth-child(2) { animation-delay: .05s; }
.macro-group .feat-line:nth-child(3) { animation-delay: .10s; }
.macro-group .feat-line:nth-child(4) { animation-delay: .15s; }
.macro-group .feat-line:nth-child(5) { animation-delay: .20s; }
.macro-group .feat-line:nth-child(6) { animation-delay: .25s; }
.macro-group .feat-line:nth-child(7) { animation-delay: .30s; }
.macro-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding-right: 88px;
  font-size: 1.3rem;
  color: var(--fg);
}
.macro-group h3 svg { flex: none; color: var(--brand-cyan); }

.feat-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.5;
}
.feat-line:last-child { border-bottom: none; }
.feat-line .fx { flex-shrink: 0; margin-top: 1px; color: var(--ok); font-weight: 700; }
.feat-line b { color: var(--fg); font-weight: 600; }

@keyframes feat-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   How it works — steps
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 22px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--glow);
  margin-bottom: 16px;
}
.step-title { font-size: 1.1rem; font-weight: 700; }
.step-text { color: var(--fg-muted); margin: 0; font-size: .96rem; }

/* ==========================================================================
   Get started
   ========================================================================== */
.get-started-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px 32px;
  box-shadow: var(--shadow);
}
.requirement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin: 8px 0 28px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
  font-size: .95rem;
}
.requirement strong { color: var(--fg); }
.requirement svg { color: var(--brand-cyan); flex: none; }

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ==========================================================================
   Free accent + alternate brand button + hero badges
   ========================================================================== */
.free-accent {
  color: var(--brand-cyan);
  font-weight: 800;
}

/* Second brand-colored CTA (Open VSX) — distinct violet→cyan gradient */
.btn-brand-alt {
  background: linear-gradient(135deg, #7c5cff 0%, #38bdf8 100%);
}
.btn-brand-alt:hover {
  box-shadow: 0 0 30px rgba(56, 189, 248, .32);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-badges .badge { margin-bottom: 0; }

/* "100% Free & open-source" pill */
.badge-free {
  background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(47, 107, 255, .18));
  color: var(--fg);
}
.badge-free svg { color: var(--brand-cyan); flex: none; }

/* ALM lead line under the hero title */
.hero-lead {
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 14px;
}
.hero-lead strong { color: var(--brand-cyan); }

/* ==========================================================================
   Documentation (user manual)
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sticky topic index */
.docs-index {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 16px;
}
.docs-index-title {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}
.docs-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-index a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--fg-muted);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.35;
}
.docs-index a:hover {
  color: var(--fg);
  background: var(--grad-soft);
}

/* Accordion content */
.docs-content { display: flex; flex-direction: column; gap: 14px; }

.doc-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.doc-item[open] {
  border-color: var(--brand-violet);
  box-shadow: var(--glow);
}
.doc-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--fg);
  list-style: none;
}
.doc-item summary::-webkit-details-marker { display: none; }
.doc-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: none;
}
.doc-item[open] summary::after { transform: rotate(-135deg); }
.doc-item summary:hover { color: var(--brand-cyan); }

.doc-step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--brand-cyan);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
}

.doc-body {
  padding: 0 20px 22px;
  color: var(--fg-muted);
}
.doc-body p { margin: 0 0 12px; }
.doc-body strong { color: var(--fg); }
.doc-body em { color: var(--fg); font-style: normal; font-weight: 600; }
.doc-body ul,
.doc-body ol { margin: 0; padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--fg);
}
.doc-note {
  margin-top: 4px;
  font-size: .92rem;
  color: var(--fg-muted);
}

.docs-more {
  margin: 6px 0 0;
  padding: 16px 20px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--fg-muted);
  font-size: .96rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 44px 32px;
  box-shadow: var(--shadow);
}
.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--brand-cyan);
}
.contact-cta {
  display: flex;
  justify-content: center;
  margin: 22px 0 12px;
}
.contact-mail { color: var(--fg-muted); margin: 0; font-size: .95rem; }

/* ==========================================================================
   About
   ========================================================================== */
.about-card {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow);
}
.about-photo-frame {
  position: relative;
  border-radius: 18px;
  padding: 6px;
  background: var(--grad-brand);
  box-shadow: 0 0 28px rgba(124, 92, 255, .35);
}
.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 13px;
  /* Soft placeholder so the layout stays graceful if the image is missing */
  background: var(--grad-soft);
}
.about-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.about-headline {
  color: var(--brand-cyan);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 16px;
}
.about-bio {
  color: var(--fg-muted);
  margin: 0 0 20px;
}
.about-bio strong { color: var(--fg); }
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.about-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: .82rem;
  font-weight: 600;
}
.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--fg);
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.about-social-link:hover {
  color: var(--fg);
  border-color: var(--brand-violet);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.about-social-link svg { flex: none; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  max-width: 920px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.team-photo-frame {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 18px;
  padding: 6px;
  background: var(--grad-brand);
  box-shadow: 0 0 28px rgba(124, 92, 255, .35);
  margin-bottom: 20px;
}
.team-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 13px;
  /* Soft placeholder so the layout stays graceful if the image is missing */
  background: var(--grad-soft);
}
.team-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.team-role {
  color: var(--brand-cyan);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 16px;
}
.team-bio {
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.team-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { filter: drop-shadow(0 0 8px rgba(124, 92, 255, .35)); }
.footer-name { font-weight: 700; margin: 0; font-size: 1.1rem; }
.footer-tagline { color: var(--fg-muted); margin: 0; font-size: .92rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a { color: var(--fg-muted); font-weight: 500; }
.footer-links a:hover { color: var(--fg); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding-top: 22px;
  color: var(--fg-muted);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Scroll-reveal animation (progressively enhanced by main.js)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .runs-on { flex-direction: column; align-items: center; }
  .runs-on-list { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  /* About: photo stacks above the bio, centered */
  .about-card {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    justify-items: center;
  }
  .about-photo-frame { max-width: 260px; width: 100%; }
  .about-skills,
  .about-social { justify-content: center; }

  /* Team: cards stack into a single column */
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* Documentation: index stacks above the content, non-sticky */
  .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .docs-index { position: static; top: auto; }
  .docs-index ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .docs-index a { padding: 6px 12px; border: 1px solid var(--border); }
}

@media (max-width: 640px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(11, 13, 18, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.is-open { max-height: 460px; }
  .nav-links li { padding: 6px 0; }
  .nav-links .btn { width: 100%; }

  .feature-grid,
  .steps,
  .highlights { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
}

/* ==========================================================================
   Reduced motion — respect user preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover,
  .card:hover { transform: none; }
  .macro-detail,
  .macro-detail.is-open,
  .macro-group { transition: none !important; }
}
