/* ==========================================================================
   Adept Compile — shared design tokens & component styles
   Palette:
     --ink        #0B1120  deep navy-black (dark surfaces, headline text on light)
     --paper      #F5F6F8  cool off-white (light surfaces)
     --signal     #2F5DFF  primary brand blue (CTAs, links, focus)
     --slate      #4B5565  secondary text / graphite
     --slate-200  #E2E5EA  hairlines / borders on light
     --academics  #1F9D6C  emerald — used only for School/Academics track content
     --innovate   #F2A93B  amber — used only for Tech/Design track content
   Type: 'Space Grotesk' for display/headlines, 'Inter' for body & UI.
   ========================================================================== */

:root {
  --ink: #0B1120;
  --ink-soft: #121B2E;
  --paper: #F5F6F8;
  --paper-dim: #ECEEF2;
  --signal: #2F5DFF;
  --signal-dim: #EAF0FF;
  --slate: #4B5565;
  --slate-200: #E2E5EA;
  --academics: #1F9D6C;
  --academics-dim: #E7F6EF;
  --innovate: #C97A17;
  --innovate-dim: #FBF0DE;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Thin structural rule, used to separate sections instead of shadowed cards everywhere */
.rule { border-top: 1px solid var(--slate-200); }

/* Primary button */
.btn-primary {
  background: var(--signal);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: background 150ms ease, transform 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { background: #2249d6; }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: border-color 150ms ease, background 150ms ease;
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(11,17,32,0.03); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
}
.btn-dark:hover { background: var(--ink-soft); }

/* Track badges — the only place color-coding appears, since it encodes real category info */
.badge-academics { background: var(--academics-dim); color: #146B4B; border: 1px solid rgba(31,157,108,0.25); }
.badge-innovate { background: var(--innovate-dim); color: #96590E; border: 1px solid rgba(201,122,23,0.3); }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 999px;
}

/* Course row — bordered, not a floating shadow card, to keep the page quiet */
.course-row {
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: #fff;
  transition: border-color 150ms ease;
}
.course-row:hover { border-color: var(--slate); }

/* Dashboard panel */
.panel {
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #fff;
}

/* Grid texture used once, behind the hero only, to nod at "compile / build" without tech-gimmick icons */
.grid-texture {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.wordmark-dot { color: var(--signal); }

::selection { background: var(--signal); color: #fff; }

/* Line length control for long-form text blocks */
.measure { max-width: 62ch; }

/* Simple fade for auth panel toggle (single orchestrated moment, not scattered hovers) */
.panel-slide { transition: transform 400ms cubic-bezier(0.65,0,0.35,1), opacity 300ms ease; }
