/* DVM Atlas — Under Construction · under-construction 1.0
   Palette: ink #0B1220 · panel #101B2E · jade #17A38F · bright jade #2FD3B8 · gold #D8A94A · paper #E8EDF5 */

:root {
  --ink: #0B1220;
  --ink-deep: #070D18;
  --panel: #101B2E;
  --panel-2: #132136;
  --line: #1E2D45;
  --line-soft: #182642;
  --jade: #17A38F;
  --jade-bright: #2FD3B8;
  --gold: #D8A94A;
  --gold-soft: #E8C56B;
  --paper: #E8EDF5;
  --muted: #9AA7BC;
  --wrap: 1120px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(47, 211, 184, 0.10), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(216, 169, 74, 0.07), transparent 55%),
    var(--ink);
  color: var(--paper);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #201503; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--jade-bright); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 64px; padding-block: 8px; }

.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--paper); }
.wordmark .mark { flex: none; }
.wordmark .word { font-size: 1.16rem; font-weight: 800; letter-spacing: 0.02em; }

.site-nav { display: flex; gap: 4px; margin-inline: auto; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color .18s ease, background .18s ease;
}
.site-nav a:hover { color: var(--paper); background: var(--panel); }

.current-link {
  flex: none; color: var(--jade-bright); text-decoration: none; font-size: 0.88rem; font-weight: 700;
  border: 1px solid rgba(47, 211, 184, 0.35); padding: 8px 14px; border-radius: 999px;
  transition: background .18s ease, border-color .18s ease;
}
.current-link:hover { background: rgba(47, 211, 184, 0.10); border-color: rgba(47, 211, 184, 0.6); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 48px; align-items: center; padding: 84px 0 96px;
}

.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; color: var(--gold-soft);
  border: 1px solid rgba(232, 197, 107, 0.38); background: rgba(216, 169, 74, 0.08);
  padding: 8px 16px; border-radius: 999px;
}
.pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(216, 169, 74, 0.55); } 50% { box-shadow: 0 0 0 6px rgba(216, 169, 74, 0); } }

h1 {
  margin: 0 0 22px; font-size: clamp(2.45rem, 5.6vw, 4rem); line-height: 1.06;
  font-weight: 800; letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(100deg, var(--jade-bright) 0%, #8BE3CF 35%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: 1.13rem; color: #C9D3E2; max-width: 34rem; margin: 0 0 30px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 750; font-size: 0.97rem; border-radius: 12px; padding: 13px 20px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #04241D; background: linear-gradient(160deg, var(--jade-bright), var(--jade));
  box-shadow: 0 12px 34px rgba(23, 163, 143, 0.30);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(47, 211, 184, 0.34); }
.btn-ghost { color: var(--paper); border: 1px solid var(--line); background: rgba(16, 27, 46, 0.55); }
.btn-ghost:hover { border-color: var(--jade); background: var(--panel); }

.micro { font-size: 0.83rem; color: var(--muted); margin: 6px 2px 0; max-width: 34rem; }

.hero-art { display: grid; place-items: center; }
.hero-art svg { width: min(100%, 400px); height: auto; }
.orbit { transform-origin: 160px 160px; }
.orbit-a { animation: spin 46s linear infinite; }
.orbit-b { animation: spin 30s linear infinite reverse; stroke-opacity: 0.8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- stats ---------- */
.stats { border-block: 1px solid var(--line-soft); background: rgba(16, 27, 46, 0.45); }
.stat-row {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px; margin: 0; padding: 30px 0 10px;
}
.stat-row li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-row strong { font-size: 1.85rem; font-weight: 800; color: var(--paper); letter-spacing: -0.01em; }
.stat-row span { font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-foot { text-align: center; font-size: 0.75rem; color: #6E7A90; margin: 0 0 20px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: linear-gradient(180deg, rgba(16, 27, 46, 0.35), rgba(16, 27, 46, 0)); border-top: 1px solid var(--line-soft); }

.kicker {
  color: var(--jade-bright); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 12px;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 16px; font-weight: 800; }
.section-lede { color: #C9D3E2; font-size: 1.05rem; max-width: 46rem; margin: 0 0 40px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(170deg, var(--panel) 0%, var(--panel-2) 130%);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px 22px 22px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #24405C; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--jade-bright); background: rgba(23, 163, 143, 0.12);
  border: 1px solid rgba(47, 211, 184, 0.25); margin-bottom: 16px;
}
.card:nth-child(4) .card-icon, .card:nth-child(6) .card-icon { color: var(--gold-soft); background: rgba(216, 169, 74, 0.10); border-color: rgba(232, 197, 107, 0.3); }
.card h3 { font-size: 1.06rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: #B9C4D6; font-size: 0.92rem; line-height: 1.6; }

/* ---------- semester 1 grid ---------- */
.s1-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.s1-grid li {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s ease;
}
.s1-grid li:hover { border-color: var(--jade); }
.s1-name { font-weight: 700; font-size: 0.97rem; }
.s1-meta { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* ---------- roadmap ---------- */
.steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px 22px;
}
.step.current { border-color: rgba(216, 169, 74, 0.45); background: linear-gradient(160deg, #151F33, var(--panel)); }
.step-num {
  flex: none; font-size: 0.9rem; font-weight: 800; color: var(--ink);
  background: var(--line); border-radius: 10px; width: 44px; height: 44px;
  display: grid; place-items: center; letter-spacing: 0.05em;
}
.step.current .step-num { background: var(--gold); }
.step h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: #B9C4D6; font-size: 0.93rem; }
.note { color: var(--muted); font-size: 0.88rem; border-left: 3px solid var(--jade); padding-left: 14px; max-width: 46rem; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; max-width: 52rem; }
details {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px;
  overflow: hidden;
}
summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; color: var(--jade-bright); font-size: 1.35rem; font-weight: 700; line-height: 1;
  transition: transform .2s ease; flex: none;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] { border-color: #24405C; }
details p { margin: 0; padding: 0 20px 18px; color: #B9C4D6; font-size: 0.95rem; border-top: 1px solid var(--line-soft); padding-top: 14px; }
details a { color: var(--jade-bright); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); border-top: 1px solid var(--line-soft); padding: 34px 0 30px; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.footer-word { font-weight: 800; margin: 0 0 8px; letter-spacing: 0.03em; }
.footer-line { color: var(--muted); font-size: 0.8rem; margin: 3px 0; max-width: 44rem; }
.footer-line a { color: var(--jade-bright); }
.footer-meta { text-align: right; color: #6E7A90; font-size: 0.78rem; }
.footer-meta p { margin: 3px 0; }

/* ---------- reveal on scroll (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .s1-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 36px; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(64vw, 260px); }
  .stat-row { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .current-link { display: none; }
}
@media (max-width: 560px) {
  .cards, .s1-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .footer-meta { text-align: left; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .grad { color: CanvasText; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
  .btn { border: 1px solid ButtonText; }
}
