/* ═══════════════════════════════════════════════════════
   Sentinel IDS Visualiser — Showcase Site
   Theme: matches the app's dark security-dashboard aesthetic
   Inter + JetBrains Mono · GitHub-dark palette · Blue accent
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

/* ── Design tokens ── */
:root {
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(2.5rem,   1.5rem  + 4vw,    5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;

  --transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 300ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-default: 1140px;
}

/* ── Color themes ── */
:root, [data-theme="dark"] {
  --bg:              #0d1117;
  --surface:         #161b22;
  --surface-2:       #1c2128;
  --surface-offset:  #1a1f27;
  --surface-hover:   #21262d;
  --border:          #30363d;
  --divider:         #21262d;

  --text:            #e6edf3;
  --text-muted:      #8b949e;
  --text-faint:      #484f58;
  --text-inverse:    #0d1117;

  --accent:          #58a6ff;
  --accent-hover:    #79b8ff;
  --accent-active:   #388bfd;
  --accent-glow:     rgba(88, 166, 255, 0.15);
  --accent-line:     rgba(88, 166, 255, 0.3);

  --danger:          #f85149;
  --danger-bg:       rgba(248, 81, 73, 0.1);
  --warning:         #fb923c;
  --warning-bg:      rgba(251, 146, 60, 0.1);
  --success:         #3fb950;
  --success-bg:      rgba(63, 185, 80, 0.1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(88, 166, 255, 0.12);
}

[data-theme="light"] {
  --bg:              #f0f2f5;
  --surface:         #ffffff;
  --surface-2:       #f8f9fa;
  --surface-offset:  #eef0f3;
  --surface-hover:   #e9ecef;
  --border:          #d0d7de;
  --divider:         #e4e7ec;

  --text:            #111827;
  --text-muted:      #57606a;
  --text-faint:      #9ca3af;
  --text-inverse:    #f9fafb;

  --accent:          #0969da;
  --accent-hover:    #0550ae;
  --accent-active:   #033d8b;
  --accent-glow:     rgba(9, 105, 218, 0.1);
  --accent-line:     rgba(9, 105, 218, 0.25);

  --danger:          #cf222e;
  --danger-bg:       rgba(207, 34, 46, 0.08);
  --warning:         #bf8700;
  --warning-bg:      rgba(191, 135, 0, 0.08);
  --success:         #116329;
  --success-bg:      rgba(17, 99, 41, 0.08);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(9, 105, 218, 0.08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg:              #f0f2f5;
    --surface:         #ffffff;
    --surface-2:       #f8f9fa;
    --surface-offset:  #eef0f3;
    --surface-hover:   #e9ecef;
    --border:          #d0d7de;
    --divider:         #e4e7ec;
    --text:            #111827;
    --text-muted:      #57606a;
    --text-faint:      #9ca3af;
    --text-inverse:    #f9fafb;
    --accent:          #0969da;
    --accent-hover:    #0550ae;
    --accent-active:   #033d8b;
    --accent-glow:     rgba(9, 105, 218, 0.1);
    --accent-line:     rgba(9, 105, 218, 0.25);
    --danger:          #cf222e;
    --danger-bg:       rgba(207, 34, 46, 0.08);
    --warning:         #bf8700;
    --warning-bg:      rgba(191, 135, 0, 0.08);
    --success:         #116329;
    --success-bg:      rgba(17, 99, 41, 0.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(9, 105, 218, 0.08);
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent-glow); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Utilities ── */
.mono { font-family: var(--font-mono); }
.accent-text { color: var(--accent); }
.container { max-width: var(--content-default); margin: 0 auto; padding: 0 var(--space-6); }

/* ═══ HEADER ═══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition-slow);
}
.header-inner {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 60px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.logo {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--text);
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo-text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-accent { color: var(--accent); }

.site-nav {
  display: flex; align-items: center; gap: var(--space-1);
  flex: 1;
}
.site-nav a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--surface-hover); }
.site-nav a.nav-active { color: var(--accent); background: var(--accent-glow); }

.header-actions {
  display: flex; align-items: center; gap: var(--space-3);
  flex-shrink: 0;
}
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent-line); background: var(--surface-hover); }

.btn-primary-sm {
  display: inline-flex; align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: var(--text-inverse) !important;
  font-size: var(--text-sm); font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary-sm:hover { background: var(--accent-hover); transform: translateY(-1px); color: var(--text-inverse) !important; }

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: var(--space-2); margin-left: auto;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav a {
  padding: var(--space-3) 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--divider);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .site-nav, .header-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-inner { gap: var(--space-4); }
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
  background: var(--bg);
}

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
}

.hero-scan-line {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent-glow) 48%,
    var(--accent-glow) 52%,
    transparent 100%
  );
  opacity: 0.4;
  animation: scanline 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanline {
  0%, 100% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
}

.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-6);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-xs); font-family: var(--font-mono);
  color: var(--text-muted);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 14ch;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 55ch;
  line-height: 1.6;
}

.hero-stats {
  display: flex; align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 0;
}
.stat-card {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--space-1);
  padding: var(--space-4) var(--space-6);
}
.stat-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-cta {
  display: flex; align-items: center; gap: var(--space-4);
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center;
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  color: #fff !important;
  font-size: var(--text-sm); font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
  color: #fff !important;
}
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: var(--space-3) var(--space-6);
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
  font-size: var(--text-sm); font-weight: 500;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { color: var(--text) !important; border-color: var(--accent-line); background: var(--surface-hover); }

/* Terminal card */
.terminal-preview {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  margin-top: var(--space-4);
}
.terminal-bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.term-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.term-red    { background: #ff5f56; }
.term-yellow { background: #ffbd2e; }
.term-green  { background: #27c93f; }
.term-title {
  margin-left: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.terminal-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.term-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--divider);
}
.term-row:last-of-type { border-bottom: none; }
.term-label {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-faint); letter-spacing: 0.05em;
}
.term-value { font-size: var(--text-sm); font-weight: 500; }
.term-value.success { color: var(--success); }
.term-value.danger  { color: var(--danger); }
.term-value.warning { color: var(--warning); }
.term-value.accent  { color: var(--accent); }
.term-cursor {
  font-size: var(--text-sm);
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
  margin-top: var(--space-1);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero-inner { align-items: center; text-align: center; }
  .hero-title { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .hero-cta { justify-content: center; }
  .terminal-preview { max-width: 100%; }
}

/* ═══ SECTIONS ═══ */
.section { padding: clamp(var(--space-12), 8vw, var(--space-24)) 0; }
.section-header { margin-bottom: var(--space-12); }
.section-header.center { text-align: center; }
.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}
.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.section-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
}

/* ═══ ABOUT ═══ */
.about-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.about-text p { font-size: var(--text-base); color: var(--text-muted); margin-bottom: var(--space-4); max-width: 60ch; }
.about-text p:last-child { margin-bottom: 0; }
.about-text .lead { font-size: var(--text-lg); color: var(--text); font-weight: 500; line-height: 1.5; }
.about-text strong { color: var(--text); }

.about-callouts { display: flex; flex-direction: column; gap: var(--space-4); }
.callout {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius-lg);
}
.callout-danger  { border-left-color: var(--danger);  }
.callout-warning { border-left-color: var(--warning); }
.callout-success { border-left-color: var(--success); }
.callout-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
}
.callout-danger  .callout-icon { color: var(--danger);  background: var(--danger-bg); }
.callout-warning .callout-icon { color: var(--warning); background: var(--warning-bg); }
.callout-success .callout-icon { color: var(--success); background: var(--success-bg); }
.callout strong { display: block; color: var(--text); font-size: var(--text-sm); margin-bottom: var(--space-1); }
.callout p { font-size: var(--text-sm); color: var(--text-muted); margin: 0; max-width: 100%; }

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

/* ═══ FEATURES ═══ */
.features-section { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card--large {
  grid-column: span 2;
  background: var(--surface);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 100%;
}
.feature-bullets {
  list-style: none;
  margin-top: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.feature-bullets li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-left: var(--space-5);
  position: relative;
  max-width: 100%;
}
.feature-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
  color: var(--accent);
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--large { grid-column: span 2; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
}

/* ═══ ARCHITECTURE ═══ */
.arch-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-12);
  align-items: start;
}

.arch-diagram {
  display: flex; flex-direction: column; gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.arch-layer {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.arch-layer:last-child { border-bottom: none; }
.layer-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.arch-nodes {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
}
.arch-node {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs); font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition);
}
.arch-node:hover { border-color: var(--accent-line); color: var(--text); }
.primary-node { border-color: var(--accent-line); color: var(--accent) !important; background: var(--accent-glow) !important; }
.node-icon { font-size: 14px; }
.arch-arrow {
  text-align: center;
  color: var(--accent);
  font-size: var(--text-lg);
  margin-top: var(--space-3);
  opacity: 0.6;
}

.arch-stack h3 { font-size: var(--text-lg); font-weight: 600; color: var(--text); margin-bottom: var(--space-5); }
.stack-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.stack-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stack-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.tag-backend  { background: rgba(88, 166, 255, 0.15); color: var(--accent); }
.tag-frontend { background: rgba(63, 185, 80, 0.15);  color: var(--success); }
.tag-data     { background: rgba(251, 146, 60, 0.15); color: var(--warning); }
.tag-ids      { background: rgba(248, 81, 73, 0.15);  color: var(--danger); }
.tag-fonts    { background: var(--surface-hover); color: var(--text-muted); }
.stack-detail { font-size: var(--text-sm); color: var(--text-muted); }

.scope-note {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.scope-note h4 { font-size: var(--text-sm); font-weight: 600; color: var(--text); margin-bottom: var(--space-2); }
.scope-note p  { font-size: var(--text-sm); color: var(--text-muted); max-width: 100%; }

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

/* ═══ DOCUMENTS ═══ */
.docs-section { background: var(--bg); }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.doc-card .doc-desc { flex: 1; }
.doc-available { border-color: var(--border); }
.doc-available:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.doc-pending { opacity: 0.7; }

.doc-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-3);
}
.doc-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  color: var(--accent);
  flex-shrink: 0;
}
.doc-icon--muted {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-faint);
}
.doc-status {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
}
.doc-status.available { background: var(--success-bg); color: var(--success); }
.doc-status.pending   { background: var(--warning-bg); color: var(--warning); }

.doc-card h3 { font-size: var(--text-lg); font-weight: 600; color: var(--text); }
.doc-desc    { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; flex: 1; max-width: 100%; }

.doc-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.doc-tag {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.doc-tag--muted { opacity: 0.6; }

.doc-highlights { display: flex; flex-direction: column; gap: var(--space-2); }
.doc-highlight-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--text-muted);
}
.highlight-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.highlight-dot--blue  { background: var(--accent); }
.highlight-dot--green { background: var(--success); }

.doc-download-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: auto;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-glow);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  color: var(--accent) !important;
  font-size: var(--text-xs); font-family: var(--font-mono); font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  align-self: flex-start;
}
.doc-download-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
  transform: translateY(-1px);
}

.doc-pending-notice {
  display: flex; align-items: flex-start; gap: var(--space-2);
  padding: var(--space-4);
  background: var(--warning-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--warning);
  font-size: var(--text-xs);
  line-height: 1.5;
}
.doc-pending-notice svg { flex-shrink: 0; margin-top: 1px; }

@media (max-width: 900px) {
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .docs-grid .doc-card:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .docs-grid { grid-template-columns: 1fr; }
  .docs-grid .doc-card:last-child { grid-column: span 1; }
}

/* ═══ STUDENT ═══ */
.student-section { background: var(--surface); border-top: 1px solid var(--border); }
.student-card {
  max-width: 800px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-6);
}
.student-avatar {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  border: 2px solid var(--accent-line);
  border-radius: 50%;
  color: var(--accent);
}
.student-info-grid {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-8);
}
.info-field { display: flex; flex-direction: column; gap: var(--space-1); }
.info-label {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.info-value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
}
.info-value a { color: var(--accent); }
.info-value a:hover { color: var(--accent-hover); }

@media (max-width: 600px) {
  .student-info-grid { grid-template-columns: 1fr; }
}

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-8) 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-3); text-align: center;
}
.footer-logo {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.footer-copy { font-size: var(--text-sm); color: var(--text-muted); }
.footer-note { font-size: var(--text-xs); color: var(--text-faint); }
