/* ─── VARIABLES ─── */
:root {
  --bg: #070B14;
  --bg2: #0C1220;
  --bg3: #111827;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.12);
  --text: #E8E6E0;
  --muted: #8A8880;
  --muted2: #B0AEA4;
  --cyan: #22D3EE;
  --violet: #A78BFA;
  --emerald: #34D399;
  --amber: #FBBF24;
  --cyan-bg: rgba(34,211,238,0.08);
  --violet-bg: rgba(167,139,250,0.08);
  --emerald-bg: rgba(52,211,153,0.08);
  --amber-bg: rgba(251,191,36,0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ─── UTILITY ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
section { padding: 80px 5%; position: relative; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: fadeUp 0.7s forwards; }
.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.3s; }
.reveal-d4 { animation-delay: 0.4s; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,11,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.nav-logo img { height: 28px; width: 28px; border-radius: 50%; }
.nav-logo span { color: var(--cyan); font-weight: 400; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(167,139,250,0.15));
  border: 1px solid rgba(34,211,238,0.2);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text) !important;
  transition: border-color 0.2s;
}
.nav-cta:hover { border-color: var(--cyan); }

/* ─── HERO ─── */
#hero {
  min-height: auto;
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,211,238,0.06) 0%, transparent 70%);
  top: -100px; left: 30%;
}
.hero-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  animation: heroFloat 3s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 20px;
  background: rgba(34,211,238,0.05);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
#hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#hero .hero-desc {
  font-size: 17px;
  color: var(--muted2);
  max-width: 600px;
  margin: 0 auto 28px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
}
.hero-stat span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── SUBSCRIBE INLINE ─── */
.subscribe-inline {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.subscribe-inline input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-inline input:focus { border-color: var(--cyan); }
.subscribe-inline button {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(167,139,250,0.2));
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.subscribe-inline button:hover { opacity: 0.85; }

/* ─── LEARNING PATH (Premium) ─── */
#learning-path { background: var(--bg2); border-top: 1px solid var(--border); padding: 80px 5% 100px; }
.path-header { text-align: center; margin-bottom: 56px; }
.path-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 16px;
  background: rgba(34,211,238,0.04);
}
.path-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.path-header p { color: var(--muted2); font-size: 15px; }

.path-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Rail — horizontal connecting line */
.path-rail {
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.path-rail-glow {
  position: absolute;
  inset: -2px 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(52,211,153,0.15) 20%,
    rgba(251,191,36,0.15) 40%,
    rgba(167,139,250,0.15) 60%,
    rgba(34,211,238,0.15) 80%,
    transparent 100%
  );
  filter: blur(3px);
}
.path-beam {
  position: absolute;
  top: -1px;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: beamTravel 4s ease-in-out infinite;
}
@keyframes beamTravel {
  0% { left: -5%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}

/* Node */
.path-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.path-node:hover .path-card { transform: translateY(-6px); border-color: var(--border2); }

/* Node dot — glowing circle */
.path-node-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}
.path-node-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid;
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
}
.path-node-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: relative;
}
.path-node-core::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  filter: blur(6px);
}

/* Color variants for dots */
.pemula-dot { background: rgba(52,211,153,0.1); }
.pemula-dot .path-node-ring { border-color: var(--emerald); }
.pemula-dot .path-node-core { background: var(--emerald); box-shadow: 0 0 12px var(--emerald); }
.pemula-dot .path-node-core::after { background: var(--emerald); opacity: 0.3; }

.menengah-dot { background: rgba(251,191,36,0.1); }
.menengah-dot .path-node-ring { border-color: var(--amber); animation-delay: 0.5s; }
.menengah-dot .path-node-core { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.menengah-dot .path-node-core::after { background: var(--amber); opacity: 0.3; }

.lanjut-dot { background: rgba(167,139,250,0.1); }
.lanjut-dot .path-node-ring { border-color: var(--violet); animation-delay: 1s; }
.lanjut-dot .path-node-core { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.lanjut-dot .path-node-core::after { background: var(--violet); opacity: 0.3; }

.coding-dot { background: rgba(34,211,238,0.1); }
.coding-dot .path-node-ring { border-color: var(--cyan); animation-delay: 1.5s; }
.coding-dot .path-node-core { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.coding-dot .path-node-core::after { background: var(--cyan); opacity: 0.3; }

/* Card */
.path-card {
  width: 100%;
  max-width: 220px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.path-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.path-card-visual {
  width: 100%;
  height: 56px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}
.path-card-visual svg { width: 80px; height: 56px; }

.path-card-level {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.path-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 4px 0 8px;
}
.path-card p {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.path-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.path-card-topics span {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}

/* Card color accents */
.pemula-card { border-top: 2px solid rgba(52,211,153,0.3); }
.pemula-card h3 { color: var(--emerald); }
.pemula-card .path-card-topics span { border-color: rgba(52,211,153,0.15); }

.menengah-card { border-top: 2px solid rgba(251,191,36,0.3); }
.menengah-card h3 { color: var(--amber); }
.menengah-card .path-card-topics span { border-color: rgba(251,191,36,0.15); }

.lanjut-card { border-top: 2px solid rgba(167,139,250,0.3); }
.lanjut-card h3 { color: var(--violet); }
.lanjut-card .path-card-topics span { border-color: rgba(167,139,250,0.15); }

.coding-card { border-top: 2px solid rgba(34,211,238,0.3); }
.coding-card h3 { color: var(--cyan); }
.coding-card .path-card-topics span { border-color: rgba(34,211,238,0.15); }

/* ─── FILTER TABS ─── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted2);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--cyan); color: var(--text); }
.filter-btn.active {
  background: rgba(34,211,238,0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 500;
}

/* ─── FEATURED ARTICLE ─── */
#featured { background: linear-gradient(180deg, var(--bg) 0%, #0a0f1e 100%); }
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
  transition: border-color 0.3s;
}
.featured-card:hover { border-color: var(--border2); }
.featured-cover {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg2);
}
.featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-info .level-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag-pemula { background: var(--emerald-bg); color: var(--emerald); border: 1px solid rgba(52,211,153,0.2); }
.tag-menengah { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }
.tag-lanjut { background: var(--violet-bg); color: var(--violet); border: 1px solid rgba(167,139,250,0.2); }
.tag-coding { background: var(--cyan-bg); color: var(--cyan); border: 1px solid rgba(34,211,238,0.2); }

.featured-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.featured-info p {
  color: var(--muted2);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.featured-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(167,139,250,0.15));
  border: 1px solid rgba(34,211,238,0.2);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-read:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* ─── ARTICLES GRID ─── */
#articles { background: var(--bg2); border-top: 1px solid var(--border); }
.articles-header { text-align: center; margin-bottom: 16px; }
.articles-header h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
}
.articles-header p { color: var(--muted2); font-size: 15px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.article-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}
.article-card-cover {
  aspect-ratio: 16/10;
  background: var(--bg3);
  overflow: hidden;
}
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-card-cover img { transform: scale(1.05); }
.article-card-body { padding: 18px; }
.article-card-body .level-tag { margin-bottom: 8px; }
.article-card-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}
.article-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.no-articles {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ─── VIDEOS ─── */
#videos { background: linear-gradient(180deg, var(--bg) 0%, #0a0f1e 100%); }
.videos-header { text-align: center; margin-bottom: 40px; }
.videos-header h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.video-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.video-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg3);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}
.video-card:hover .video-play { opacity: 1; }
.video-play::after {
  content: '▶';
  color: #fff;
  font-size: 24px;
}
.video-title {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7,11,20,0.85);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.video-badge-playlist { color: var(--amber); }
.video-playlist-bg {
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(167,139,250,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}
.playlist-icon {
  font-size: 32px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.video-playlist-cta:hover .playlist-icon { opacity: 1; }

/* ─── BOOK CTA ─── */
#book-cta {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.book-banner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.book-banner-cover {
  width: 160px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.book-banner-cover img { width: 100%; display: block; }
.book-banner-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.book-banner-info p {
  color: var(--muted2);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ─── MID SUBSCRIBE ─── */
#mid-subscribe {
  background: linear-gradient(180deg, var(--bg) 0%, #0a0f1e 100%);
  text-align: center;
}
#mid-subscribe h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 8px;
}
#mid-subscribe p {
  color: var(--muted2);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ─── RELATED PILLARS ─── */
#related { background: var(--bg2); border-top: 1px solid var(--border); }
.related-header { text-align: center; margin-bottom: 40px; }
.related-header h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.related-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.related-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.related-card .r-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.related-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.related-card p { font-size: 12px; color: var(--muted); }

/* ─── FOOTER ─── */
footer {
  background: linear-gradient(180deg, #050910 0%, #030508 100%);
  border-top: 1px solid var(--border);
  padding: 0 5% 32px;
}
.footer-subscribe {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-subscribe-text h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-subscribe-text p { font-size: 13px; color: var(--muted); font-weight: 300; }
.footer-subscribe .ck-form { max-width: 400px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 0;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--muted2);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.3s, color 0.2s;
}
.social-btn:hover { border-color: var(--border2); background: var(--bg3); color: var(--text); }
.social-btn:nth-child(1):hover { border-color: #FF0000; box-shadow: 0 0 12px rgba(255,0,0,0.3); color: #FF0000; }
.social-btn:nth-child(2):hover { border-color: #0A66C2; box-shadow: 0 0 12px rgba(10,102,194,0.3); color: #0A66C2; }
.social-btn:nth-child(3):hover { border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.15); color: #fff; }
.social-btn:nth-child(4):hover { border-color: #1877F2; box-shadow: 0 0 12px rgba(24,119,242,0.3); color: #1877F2; }
.social-btn:nth-child(5):hover { border-color: #25D366; box-shadow: 0 0 12px rgba(37,211,102,0.3); color: #25D366; }
.social-btn:nth-child(6):hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(34,211,238,0.3); color: var(--cyan); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.footer-built { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.footer-built a { color: var(--cyan); text-decoration: none; }

/* Orbiting atoms */
.footer-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.footer-atom {
  position: absolute;
  border-radius: 50%;
  animation: atomOrbit linear infinite;
}
.footer-atom-1 {
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(34,211,238,0.3);
  top: 30%;
  animation-duration: 7s;
}
.footer-atom-2 {
  width: 6px; height: 6px;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet), 0 0 20px rgba(167,139,250,0.3);
  top: 60%;
  animation-duration: 9s;
  animation-delay: -3s;
}
.footer-atom-3 {
  width: 7px; height: 7px;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald), 0 0 20px rgba(52,211,153,0.3);
  top: 45%;
  animation-duration: 11s;
  animation-delay: -5s;
}
.footer-atom::before {
  content: '';
  position: absolute;
  top: 50%; right: 100%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.4;
}
.footer-atom-1::before { color: var(--cyan); width: 80px; }
.footer-atom-2::before { color: var(--violet); width: 50px; }
.footer-atom-3::before { color: var(--emerald); width: 65px; }
@keyframes atomOrbit {
  0% { left: -5%; opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translateY(-8px); }
  92% { opacity: 1; }
  100% { left: 105%; opacity: 0; transform: translateY(0); }
}
.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.15), rgba(167,139,250,0.15), transparent);
  animation: footerLineGlow 4s ease-in-out infinite;
}
@keyframes footerLineGlow {
  0%, 100% { opacity: 0.4; width: 200px; }
  50% { opacity: 1; width: 400px; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .videos-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .book-banner { flex-direction: column; text-align: center; }
  .book-banner-cover { width: 120px; }
  .path-track { flex-direction: column; gap: 16px; }
  .path-timeline { flex-direction: column; gap: 24px; align-items: center; }
  .path-rail { display: none; }
  .path-node { flex-direction: row; gap: 16px; width: 100%; max-width: 400px; }
  .path-node-dot { margin-bottom: 0; flex-shrink: 0; }
  .path-card { max-width: none; text-align: left; }
  .path-card-topics { justify-content: flex-start; }
  .path-line { width: 2px; height: 30px; }
  .path-line::after { right: -12px; top: 8px; transform: rotate(90deg); }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-subscribe { flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
  .articles-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .subscribe-inline { flex-direction: column; }
}
