/* ==========================================================
   xcodex — Xcode Developer Toolbox Light
   Website Styles
   ========================================================== */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  /* Colors — Light Mode */
  --bg:            #fafafa;
  --bg-alt:        #ffffff;
  --bg-subtle:     #f2f2f7;
  --ink:           #1a1a1f;
  --ink-soft:      #3a3a44;
  --ink-muted:     #8a8a95;
  --accent:        #00a878;
  --accent-light:  #00b386;
  --accent-soft:   #e8f7f2;
  --accent-dark:   #008f66;
  --border:        #e5e5ea;
  --border-subtle: #f0f0f5;

  /* Terminal Colors */
  --term-bg:       #0d1117;
  --term-bar:      #161b22;
  --term-border:   #30363d;
  --term-text:     #e6edf3;
  --term-muted:    #545d68;
  --term-green:    #3fb950;
  --term-amber:    #d29922;
  --term-blue:     #58a6ff;
  --term-accent:   #39d353;
  --term-sel:      rgba(0, 168, 120, 0.18);
  --term-sel-brd:  rgba(0, 168, 120, 0.5);

  /* Layout */
  --wrap:          1120px;
  --narrow:        740px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  /* Typography */
  --font-sans:     -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                   "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:     "SF Mono", "JetBrains Mono", "Menlo", "Monaco", "Consolas", monospace;

  /* Spacing */
  --section-y:     clamp(72px, 10vw, 128px);

  /* Motion */
  --ease:          cubic-bezier(0.25, 0, 0, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --dur:           0.22s;
  --dur-slow:      0.4s;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0d0d10;
    --bg-alt:        #141418;
    --bg-subtle:     #1a1a20;
    --ink:           #f0f0f5;
    --ink-soft:      #b0b0b8;
    --ink-muted:     #5a5a65;
    --accent:        #30d158;
    --accent-light:  #42e06a;
    --accent-soft:   #0a2018;
    --accent-dark:   #52f07a;
    --border:        #2a2a35;
    --border-subtle: #1e1e28;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.25);
  }
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Skip Link ─────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  padding: 0.5rem 1rem; background: var(--accent);
  color: #fff; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; z-index: 999;
  transition: top var(--dur);
}
.skip-link:focus { top: 1rem; }

/* ── Progress Bar ──────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); width: 0%;
  z-index: 1000; transition: width 0.1s linear;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 56px;
  display: flex; align-items: center;
  background: rgba(250,250,250,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), background var(--dur);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250,250,250,0.95);
}
@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(13,13,16,0.85);
  }
  .site-header.scrolled {
    background: rgba(13,13,16,0.95);
  }
}

.header-inner {
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 650;
  letter-spacing: -0.3px; color: var(--ink);
  flex-shrink: 0;
  transition: opacity var(--dur);
}
.logo:hover { opacity: 0.75; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 14px; height: 14px; }
.logo-text { color: var(--ink); }
.logo-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--accent); background: var(--accent-soft);
  padding: 1px 6px; border-radius: 4px;
  text-transform: uppercase;
}

.site-nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 5px 10px; border-radius: 8px;
  transition: color var(--dur), background var(--dur);
}
.site-nav a:hover { color: var(--ink); background: var(--bg-subtle); }

.header-actions {
  display: flex; align-items: center; gap: 8px;
}
.lang-btns {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 2px;
}
.lang-btn {
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--ink-muted); padding: 3px 8px;
  border-radius: 6px; transition: all var(--dur);
}
.lang-btn[aria-pressed="true"] {
  color: var(--ink); background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.lang-btn:hover:not([aria-pressed="true"]) { color: var(--ink-soft); }

.btn-github-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft); padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-alt);
  transition: all var(--dur);
}
.btn-github-header:hover {
  color: var(--ink); border-color: var(--ink-muted);
  background: var(--bg-subtle);
}
.btn-github-header svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 768px) {
  .site-nav { display: none; }
  .btn-github-header span { display: none; }
}
@media (max-width: 480px) {
  .logo-badge { display: none; }
}

/* ── Wrappers ───────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.wrap--narrow { max-width: var(--narrow); }

/* ── Section Base ──────────────────────────────────────── */
.section {
  padding: var(--section-y) clamp(20px, 4vw, 48px);
}
.section--alt { background: var(--bg-alt); }
.section--subtle { background: var(--bg-subtle); }

.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 650; letter-spacing: -0.5px; line-height: 1.15;
  color: var(--ink); margin-bottom: 16px;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-soft); max-width: 600px; line-height: 1.7;
}
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal].visible {
  opacity: 1; transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }
[data-reveal][data-delay="6"] { transition-delay: 0.48s; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: clamp(56px, 9vw, 104px) clamp(20px, 4vw, 48px) clamp(48px, 7vw, 80px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(0,168,120,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(0,168,120,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-name {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 700; letter-spacing: -2px; line-height: 1;
  color: var(--ink); margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.hero-name-accent { color: var(--accent); }

.hero-tagline {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500; color: var(--ink-soft);
  line-height: 1.5; margin-bottom: 28px;
  letter-spacing: -0.2px;
}

.hero-actions {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 40px;
}

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.1px;
  padding: 10px 22px; border-radius: 10px;
  transition: all var(--dur) var(--ease);
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(0,168,120,0.3), 0 4px 12px rgba(0,168,120,0.2);
}
.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 2px 6px rgba(0,168,120,0.35), 0 8px 20px rgba(0,168,120,0.25);
  transform: translateY(-1px);
}
.btn--secondary {
  background: var(--bg-alt); color: var(--ink-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  color: var(--ink); border-color: var(--ink-muted);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.hero-stat-item {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-stat-value {
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--ink); line-height: 1;
}
.hero-stat-label {
  font-size: 12px; color: var(--ink-muted);
  font-weight: 500; letter-spacing: 0.1px;
}

/* ── Terminal Mockup ───────────────────────────────────── */
.hero-terminal {
  position: relative; z-index: 1;
}

.terminal {
  background: var(--term-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--term-border);
  box-shadow:
    0 0 0 1px rgba(48,54,61,0.5),
    0 20px 60px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.05);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
}

.terminal-chrome {
  background: var(--term-bar);
  border-bottom: 1px solid var(--term-border);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.term-dots { display: flex; gap: 6px; }
.term-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.term-dot--r { background: #ff5f56; }
.term-dot--y { background: #ffbd2e; }
.term-dot--g { background: #27c93f; }
.term-title {
  font-size: 12px; color: var(--term-muted);
  margin: 0 auto; letter-spacing: -0.2px;
}

.terminal-body { padding: 0; }

.term-header-bar {
  padding: 8px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--term-border);
  display: flex; gap: 16px;
}
.term-header-cell {
  font-size: 11px; color: var(--term-muted); letter-spacing: 0.3px;
}
.term-header-cell strong {
  color: var(--term-text); font-weight: 600;
}

.term-split {
  display: grid; grid-template-columns: 175px 1px 1fr;
  min-height: 200px;
}

.term-categories {
  padding: 8px 0;
  border-right: 1px solid var(--term-border);
}
.term-divider-v {
  background: var(--term-border);
}
.term-actions {
  padding: 8px 0;
}

.term-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px;
  color: var(--term-muted);
  font-size: 12.5px; line-height: 1.5;
  cursor: default;
  transition: color 0.15s, background 0.15s;
}
.term-row .term-arrow { opacity: 0; color: var(--accent-light); }
.term-row.active {
  background: var(--term-sel);
  color: var(--term-text);
  border-left: 2px solid var(--term-sel-brd);
  padding-left: 10px;
}
.term-row.active .term-arrow { opacity: 1; }
.term-row.dim { opacity: 0.4; }

.term-status-bar {
  padding: 7px 14px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--term-border);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.term-status-item {
  font-size: 11px; color: var(--term-muted);
}
.term-status-item strong { color: var(--term-accent); font-weight: 600; }
.term-status-key {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px; padding: 0 4px;
  font-size: 10px; color: var(--term-muted);
  margin: 0 2px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-terminal { order: -1; }
}
@media (max-width: 600px) {
  .hero-name { letter-spacing: -1.5px; }
  .hero-stats { gap: 20px; }
  .term-status-bar { display: none; }
}

/* ── Why Section ───────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-card {
  background: var(--bg-alt);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 36px);
}
.why-icon {
  font-size: 28px; margin-bottom: 16px; line-height: 1;
}
.why-title {
  font-size: 17px; font-weight: 650; letter-spacing: -0.2px;
  color: var(--ink); margin-bottom: 8px;
}
.why-body {
  font-size: 15px; color: var(--ink-muted); line-height: 1.65;
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── Features Section ──────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 2.5vw, 28px);
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.feature-card:hover {
  border-color: rgba(0,168,120,0.3);
  box-shadow: 0 0 0 1px rgba(0,168,120,0.15), var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 26px; line-height: 1;
  margin-bottom: 14px;
}
.feature-title {
  font-size: 16px; font-weight: 650; letter-spacing: -0.2px;
  color: var(--ink); margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px; color: var(--ink-muted); line-height: 1.65;
  margin-bottom: 16px;
}
.feature-actions {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.feature-action-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-mono);
}
.feature-action-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; opacity: 0.6;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Scope (Not Included) Section ──────────────────────── */
.scope-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}
.scope-included, .scope-excluded {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
}
.scope-included {
  border-color: rgba(0,168,120,0.3);
  box-shadow: 0 0 0 1px rgba(0,168,120,0.1);
}

.scope-subtitle {
  font-size: 12px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 20px;
}
.scope-subtitle--included { color: var(--accent); }

.scope-list { display: flex; flex-direction: column; gap: 10px; }
.scope-list-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; line-height: 1.5;
}
.scope-list-icon { flex-shrink: 0; margin-top: 1px; font-size: 16px; }

.scope-excluded .scope-list { gap: 8px; }
.scope-excluded .scope-list-item { color: var(--ink-muted); font-size: 14px; }

.scope-cta {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.scope-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  transition: gap var(--dur);
}
.scope-link:hover { gap: 9px; }
.scope-link svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .scope-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Install Section ───────────────────────────────────── */
.install-grid {
  display: grid; gap: 12px;
}
.install-step {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  align-items: start;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.install-step:hover {
  border-color: rgba(0,168,120,0.25);
  box-shadow: 0 0 0 1px rgba(0,168,120,0.1), var(--shadow-sm);
}

.install-step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(0,168,120,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--accent);
  flex-shrink: 0; margin-top: 2px;
}

.install-step-content {}
.install-step-title {
  font-size: 16px; font-weight: 650; color: var(--ink);
  margin-bottom: 10px; letter-spacing: -0.1px;
}
.install-step-note {
  font-size: 13.5px; color: var(--ink-muted);
  margin-top: 8px; line-height: 1.6;
}

.code-block {
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: 8px; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--term-text);
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  margin-top: 8px;
}
.code-block code { flex: 1; }
.copy-btn {
  flex-shrink: 0;
  font-size: 11px; font-weight: 600;
  color: var(--term-muted); padding: 3px 8px;
  border: 1px solid var(--term-border); border-radius: 5px;
  background: rgba(255,255,255,0.05);
  transition: all 0.15s;
  cursor: pointer;
}
.copy-btn:hover { color: var(--term-text); border-color: rgba(255,255,255,0.2); }
.copy-btn.copied {
  color: var(--term-green); border-color: rgba(63,185,80,0.4);
  background: rgba(63,185,80,0.07);
}

.code-block--multiline {
  flex-direction: column; align-items: stretch;
}
.code-block--multiline code { display: block; }
.code-block--multiline .copy-btn { align-self: flex-end; }

.code-comment { color: var(--term-muted); }
.code-cmd { color: var(--term-green); }
.code-arg { color: var(--term-blue); }

.install-update {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.5vw, 24px) clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: 40px 1fr;
  gap: 20px; align-items: center;
  margin-top: 12px;
}
.install-update-icon {
  font-size: 22px; line-height: 1;
}
.install-update-title {
  font-size: 14px; font-weight: 650; color: var(--ink);
  margin-bottom: 6px;
}

/* ── Controls Section ──────────────────────────────────── */
.controls-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.controls-table th {
  text-align: left; padding: 10px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}
.controls-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--ink-soft); vertical-align: middle;
}
.controls-table tr:last-child td { border-bottom: none; }
.controls-table tr:hover td { background: var(--bg-subtle); }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px; padding: 0 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 1px 0 var(--border);
}
.kbd-group { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.controls-wrapper {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Author Section ────────────────────────────────────── */

/* ── License Section ───────────────────────────────────── */
.lic-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.lic-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
}
.lic-card--green {
  border-color: rgba(0,168,120,0.3);
  box-shadow: 0 0 0 1px rgba(0,168,120,0.08);
}

.lic-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.lic-icon--green {
  background: var(--accent-soft);
  color: var(--accent);
}
.lic-icon--neutral {
  background: var(--bg-subtle);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.lic-title {
  font-size: 16px; font-weight: 650; letter-spacing: -0.2px;
  color: var(--ink); margin-bottom: 8px;
}
.lic-body {
  font-size: 14px; color: var(--ink-muted); line-height: 1.7;
  margin-bottom: 16px;
}
.lic-checklist {
  display: flex; flex-direction: column; gap: 6px;
  list-style: none; padding: 0;
}
.lic-checklist li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-soft);
}
.lic-checklist li::before {
  content: '✓';
  font-size: 12px; font-weight: 700;
  color: var(--accent); flex-shrink: 0;
  width: 16px; text-align: center;
}
.lic-checklist--no li::before {
  content: '✕';
  color: var(--ink-muted);
}

@media (max-width: 860px) {
  .lic-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lic-grid { grid-template-columns: 1fr; }
}

/* ── Support Section ───────────────────────────────────── */
.support-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
}
.support-email {
  margin-top: 20px;
}
.support-email-label {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 8px;
}
.support-email-block {
  max-width: 280px;
}
.support-note {
  margin-top: 24px;
  font-size: 13.5px; color: var(--ink-muted); line-height: 1.7;
  max-width: 520px;
}

.btn--ghost {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 16px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-subtle);
  transition: all var(--dur);
}
.btn--ghost:hover {
  color: var(--ink); border-color: var(--ink-muted);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-logo {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--ink-muted);
  transition: color var(--dur);
}
.footer-logo:hover { color: var(--ink); }
.footer-logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.footer-links {
  display: flex; align-items: center; gap: 4px;
}
.footer-links a {
  font-size: 13px; color: var(--ink-muted); padding: 4px 8px;
  border-radius: 6px; transition: color var(--dur), background var(--dur);
}
.footer-links a:hover { color: var(--ink); background: var(--bg-alt); }
.footer-meta {
  font-size: 13px; color: var(--ink-muted);
}

/* ── xcodex Name Coloring ───────────────────────────────── */
.hero-name-dark   { color: var(--ink); }
.logo-x-accent    { color: var(--accent); }
.logo-x-dark      { color: var(--ink); }

/* ── Brand Grid (Author Section) ────────────────────────── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.brand-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex; flex-direction: column;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.brand-card:hover {
  border-color: rgba(0,168,120,0.3);
  box-shadow: 0 0 0 1px rgba(0,168,120,0.1), var(--shadow-md);
  transform: translateY(-2px);
}

.brand-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.brand-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px; border-radius: 5px;
}
.brand-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
}

.brand-title {
  font-size: 14px; font-weight: 650; margin-bottom: 8px;
  letter-spacing: -0.1px;
}
.brand-title a {
  color: var(--ink);
  transition: color var(--dur);
}
.brand-title a:hover { color: var(--accent); }

.brand-desc {
  font-size: 13px; color: var(--ink-muted); line-height: 1.65;
  margin-bottom: 16px; flex: 1;
}

.brand-sublist {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px; margin-top: auto;
}
.brand-sublist li a {
  font-size: 12.5px; color: var(--ink-muted);
  display: flex; align-items: center; gap: 5px;
  transition: color var(--dur);
}
.brand-sublist li a::before {
  content: '→';
  font-size: 10px; color: var(--accent); opacity: 0.7;
}
.brand-sublist li a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .brand-grid { grid-template-columns: 1fr; }
}

/* ── Utilities ──────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--ink-muted); }
.mt-auto { margin-top: auto; }

/* Scroll Progress */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); width: 0%;
  z-index: 1001; pointer-events: none;
  transition: width 0.1s linear;
}
