/* Phycademy — shared styles */
:root {
  --navy: #071633;
  --navy-2: #0E2A5C;
  --gold: #D4AF37;
  --gold-light: #F6E3A1;
  --cyan: #5CE1E6;
  --blue: #3B82F6;
  --ink: #0A1F44;
  --text: #3E4A5E;
  --paper: #F7F9FC;
  --line: #E1E8F0;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: #0E7C74; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: "Orbitron", "Inter", sans-serif; line-height: 1.25; margin: 0 0 12px; }

/* Header */
.site-header { background: var(--navy); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; }
.brand-name { font-family: "Orbitron", sans-serif; font-weight: 700; font-size: 22px; color: #fff; letter-spacing: 1px; }
.brand-sub { display: block; font-size: 12px; color: var(--gold-light); letter-spacing: 0.5px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.1); color: var(--gold-light); }
.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 12px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); color: var(--ink); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% 10%, #14347A 0%, var(--navy) 60%); color: #fff; padding: 72px 0; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 999 1 480px; min-width: 0; }
.hero-logo { flex: 1 1 260px; display: flex; justify-content: center; }
.hero-logo img { width: 320px; filter: drop-shadow(0 0 30px rgba(92,225,230,0.25)); }
.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
.hero h1 { font-size: clamp(30px, 4.5vw, 46px); color: #fff; }
.hero p { font-size: 18px; color: #D6E1F2; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--text); max-width: 620px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; }
.card p { color: var(--text); margin: 0 0 12px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #E7F8F9; color: #0E6E73; }
.card .tag.soon { background: #FBF3DA; color: #7A5E12; }
.card a.card-link { font-weight: 600; text-decoration: none; }
.card.feature { border-top: 4px solid var(--gold); }
.icon { width: 40px; height: 40px; margin-bottom: 12px; color: var(--blue); }
.dark { background: var(--navy); color: #fff; }
.dark .section-title p { color: #C9D6EA; }
.dark .card { background: var(--navy-2); border-color: #1E3D78; }
.dark .card p { color: #C9D6EA; }
.dark .card h3 { color: #fff; }
.dark .card a { color: var(--gold-light); }

/* Topic list */
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topic-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.topic-list .num { font-family: "Orbitron", sans-serif; font-weight: 700; color: var(--gold); margin-right: 10px; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h1 { font-size: 32px; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose p, .prose li { color: var(--text); }

/* Footer */
.site-footer { background: var(--navy); color: #C9D6EA; padding: 40px 0; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--gold-light); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .motto { font-style: italic; color: var(--gold-light); }

@media (max-width: 600px) {
  .hero { padding: 48px 0; }
  .brand-sub { display: none; }
  section { padding: 48px 0; }
}

/* Breadcrumbs & path cards */
.crumbs { font-size: 14px; color: #C9D6EA; margin-bottom: 10px; }
.crumbs a { color: var(--gold-light); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.path-card { display: block; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.path-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(10,31,68,0.12); }
.path-card .code { font-size: 13px; color: #6B7A90; font-weight: 600; letter-spacing: .5px; }
.card.muted { opacity: .7; }
.lesson-group { margin-bottom: 36px; }
.lesson-group h3 { font-size: 20px; margin-bottom: 14px; }
.topic-list li.ready { border-left: 4px solid var(--cyan); }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.soon { background: #FBF3DA; color: #7A5E12; }
.badge.cp { background: #E7EEFC; color: #1E4FA8; }
.info-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.info-strip span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; padding: 8px 14px; font-size: 14px; color: #E3EBF7; }
