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

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #050508;
  --bg2:       #0c0c14;
  --bg3:       #12121e;
  --bg4:       #1a1a2e;
  --border:    rgba(255,255,255,0.06);
  --border-h:  rgba(255,255,255,0.12);
  --text:      #e4e4f0;
  --muted:     #6b7094;
  --accent:    #7c3aed;
  --accent2:   #3b82f6;
  --cyan:      #06b6d4;
  --green:     #10b981;
  --pink:      #ec4899;
  --radius:    16px;
  --radius-sm: 10px;
  --glass:     rgba(255,255,255,0.03);
  --glass-h:   rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== CODE ===== */
code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
}

pre {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
  position: relative;
}

pre::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: var(--radius) var(--radius) 0 0;
}

pre code { background: none; border: none; padding: 0; color: #e4e4f0; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }

/* ===== GRADIENT BACKGROUNDS ===== */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-pink {
  background: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== AURORA BACKGROUND ===== */
.aurora {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: float 20s infinite ease-in-out;
}

.aurora-orb:nth-child(1) {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.aurora-orb:nth-child(2) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #3b82f6, transparent);
  top: 20%; right: -100px;
  animation-delay: -7s;
  opacity: 0.1;
}
.aurora-orb:nth-child(3) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: 10%; left: 20%;
  animation-delay: -14s;
  opacity: 0.08;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== DOT GRID PATTERN ===== */
.dot-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
}

body > * { position: relative; z-index: 1; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  background: rgba(5,5,8,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 8px 32px rgba(0,0,0,0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 16px rgba(124,58,237,0.5);
}

.logo span { color: var(--muted); }
.logo strong { color: #fff; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  background: linear-gradient(135deg, #7c3aed, #3b82f6) !important;
  color: #fff !important;
  padding: 6px 18px !important;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(124,58,237,0.5) !important;
  background: rgba(0,0,0,0) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  padding: 180px 0 120px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: pulse-badge 3s infinite;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  box-shadow: 0 0 6px #a78bfa;
}

@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.2; } }
@keyframes pulse-badge { 0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.3); } 50% { box-shadow: 0 0 0 4px rgba(124,58,237,0.1); } }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  border: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #fff;
  box-shadow: 0 0 24px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(124,58,237,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
}

.btn-outline {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--glass-h);
  border-color: var(--border-h);
  transform: translateY(-2px);
  color: #fff;
}

/* ===== AD SLOTS ===== */
.ad-slot { margin: 32px auto; text-align: center; }
.ad-banner { max-width: 728px; }

.ad-placeholder {
  border: 1px dashed rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.01);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 56px;
}

/* ===== TOPICS — BENTO GRID ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: block;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(124,58,237,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover::before { opacity: 1; }

.bento-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-4px);
  background: var(--glass-h);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,58,237,0.15);
  color: var(--text);
}

.bento-card.large {
  grid-column: span 2;
}

.bento-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  width: 52px; height: 52px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.bento-card:hover .bento-icon {
  background: rgba(124,58,237,0.2);
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.bento-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

.bento-arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  color: var(--muted);
  font-size: 1.1rem;
  transition: all 0.2s;
  opacity: 0;
}

.bento-card:hover .bento-arrow {
  opacity: 1;
  color: #a78bfa;
  transform: translate(2px, -2px);
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.article-card:hover::after { opacity: 1; }

.article-card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 40px rgba(124,58,237,0.08);
}

.article-card-body { padding: 24px; flex: 1; }

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 0.975rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.45;
  transition: color 0.2s;
}

.article-card:hover h3 { color: #a78bfa; }

.article-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.article-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.read-more {
  color: #a78bfa;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.article-card:hover .read-more { gap: 8px; }

/* skeleton */
.article-skeleton {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 220px;
  position: relative;
  overflow: hidden;
}

.article-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ===== SECTION DIVIDER ===== */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.feature-item {
  flex: 1;
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--glass-h); }

.feature-item .fi-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.feature-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.feature-item p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* ===== MARQUEE ===== */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--glass);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marquee-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--border-h); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: #e4e4f0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
}

.faq-q span {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.25s;
  color: var(--muted);
}

.faq-q.open span {
  transform: rotate(45deg);
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  color: #a78bfa;
}

.faq-a {
  display: none;
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

.faq-a.open { display: block; }

/* ===== NEWSLETTER ===== */
.newsletter-box {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  pointer-events: none;
}

.newsletter-box h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.newsletter-box p { color: var(--muted); margin-bottom: 32px; }

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.9rem;
  width: 280px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}

.newsletter-form input:focus {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.newsletter-form input::placeholder { color: var(--muted); }

/* ===== ARTICLE PAGE ===== */
.article-page { padding: 40px 0 100px; }

.article-header { margin-bottom: 48px; }

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

.article-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.article-excerpt {
  font-size: 1.05rem;
  color: var(--muted);
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #7c3aed, #3b82f6) 1;
  padding-left: 20px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e4e4f0;
  margin: 28px 0 12px;
}

.article-content p { margin-bottom: 18px; color: var(--muted); line-height: 1.85; }
.article-content ul, .article-content ol { margin: 16px 0 16px 24px; color: var(--muted); }
.article-content li { margin-bottom: 10px; line-height: 1.75; }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.875rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-content th {
  background: rgba(124,58,237,0.1);
  border-bottom: 1px solid rgba(124,58,237,0.3);
  padding: 12px 16px;
  text-align: left;
  color: #fff;
  font-weight: 600;
}

.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.article-content tr:hover td { background: rgba(255,255,255,0.02); }

/* Sidebar */
.sidebar { position: sticky; top: 96px; }

.sidebar-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.sidebar-card h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.toc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.toc-list a {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: 6px;
  display: block;
  transition: all 0.2s;
}

.toc-list a:hover {
  color: #a78bfa;
  background: rgba(124,58,237,0.08);
}

/* ===== SECTION VARIANTS ===== */
.section-dark { background: var(--bg2); }

/* ===== PAGES ===== */
.page-hero {
  padding: 140px 0 72px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero p { color: var(--muted); font-size: 1.05rem; }

.page-content { padding: 60px 0 100px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 40px 0 16px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--muted); margin-bottom: 14px; line-height: 1.85; }
.prose ul { margin-left: 24px; }
.prose a { color: #a78bfa; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #e4e4f0; }

/* Contact form */
.contact-form {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 20px 0;
}

.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: #a78bfa; }

/* ===== MODEL CARDS ===== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.model-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
}

.model-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-3px);
  background: var(--glass-h);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(124,58,237,0.1);
  color: var(--text);
}

.model-card-head { display: flex; align-items: center; gap: 14px; }

.model-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.model-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
  line-height: 1.3;
}

.model-org {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.model-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.meta-tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-tag.meta-open { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #10b981; }
.meta-tag.meta-api { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #60a5fa; }

/* ===== FRAMEWORK CARDS ===== */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.framework-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
  position: relative;
}

.framework-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-3px);
  background: var(--glass-h);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  color: var(--text);
}

.framework-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.framework-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.framework-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; flex: 1; }

.framework-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.topic-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(236,72,153,0.12);
  border: 1px solid rgba(236,72,153,0.3);
  color: #f472b6;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== ROADMAP TIMELINE ===== */
.roadmap-timeline {
  position: relative;
  padding: 40px 0 40px 40px;
  border-left: 2px dashed var(--border);
  margin-top: 32px;
}

.roadmap-step {
  position: relative;
  margin-bottom: 32px;
  padding-left: 12px;
}

.roadmap-step::before {
  content: '';
  position: absolute;
  left: -50px;
  top: 4px;
  width: 16px; height: 16px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}

.roadmap-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.roadmap-step .step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  display: block;
}

.roadmap-step p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }

.roadmap-step ul {
  margin: 8px 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.roadmap-step li { margin-bottom: 4px; }

.roadmap-section-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.roadmap-section-card .head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.roadmap-section-card .head .icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 16px rgba(124,58,237,0.4);
}

.roadmap-section-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.roadmap-section-card .subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ===== CAREER CARDS ===== */
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.career-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  color: var(--text);
}

.career-card:hover {
  border-color: rgba(124,58,237,0.4);
  background: var(--glass-h);
  transform: translateY(-3px);
  color: var(--text);
}

.career-card .role {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.career-card .salary {
  font-size: 0.95rem;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 12px;
}

.career-card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }

.career-card .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== FILTER / SEARCH ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover { border-color: var(--border-h); color: #fff; background: var(--glass-h); }
.filter-btn.active { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.4); color: #a78bfa; }

.search-bar { display: flex; gap: 12px; margin-bottom: 32px; }

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}

.search-bar input:focus {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 240px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-links div { display: flex; flex-direction: column; gap: 12px; }

.footer-links h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-links a { color: var(--muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: #a78bfa; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-header .section-title { margin-bottom: 0; }

.view-all {
  color: #a78bfa;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  white-space: nowrap;
  padding-bottom: 4px;
}

.view-all:hover { gap: 10px; color: #a78bfa; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.large { grid-column: span 1; }
  .features-strip { flex-direction: column; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .site-header { width: calc(100% - 24px); top: 8px; }
  .nav { padding: 0 14px; height: 50px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 12px; right: 12px;
    background: rgba(12,12,20,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }
  .nav-links.open a { padding: 10px 16px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .hero { padding: 130px 0 80px; }
  .bento-grid { grid-template-columns: 1fr; }
  .stats-strip { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .section { padding: 72px 0; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .newsletter-box { padding: 40px 24px; }
  .articles-grid { grid-template-columns: 1fr; }
}
