/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0a0c10;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0c10; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:       #0a0c10;
  --bg2:      #0f1420;
  --bg3:      #1a2535;
  --border:   #1e293b;
  --accent:   #00c8ff;
  --accent2:  #0ea5e9;
  --text:     #e2e8f0;
  --muted:    #64748b;
  --mono:     'JetBrains Mono', monospace;
  --sans:     'Inter', sans-serif;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,12,16,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; align-items: center; height: 60px; gap: 32px;
}
.nav-logo {
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  color: var(--accent); letter-spacing: -0.02em; white-space: nowrap;
}
.logo-bracket { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 6px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }
.nav-link.active { color: var(--accent); }
.nav-cta {
  margin-left: 8px; padding: 7px 16px; border-radius: 7px;
  background: var(--accent); color: #000;
  font-size: 13px; font-weight: 700;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }
.nav-hamburger {
  display: none; background: none; border: none;
  color: var(--muted); font-size: 20px; cursor: pointer; margin-left: auto;
}
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link, .nav-mobile .nav-cta { font-size: 15px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, #00c8ff0d 0%, transparent 70%);
}
.hero-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-terminal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 60px #00c8ff12, 0 24px 48px #00000040;
}
.terminal-bar {
  background: var(--bg3); padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #28ca41; }
.t-title { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.terminal-body {
  padding: 20px; font-family: var(--mono); font-size: 13px;
  min-height: 240px; line-height: 1.8;
  background: var(--bg2);
}
.t-prompt { color: var(--accent); }
.cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-line { display: block; }
.t-line.out { color: #94a3b8; padding-left: 0; }
.t-line.err { color: #f87171; }
.t-line.ok { color: #4ade80; }
.t-line.hi { color: var(--accent); }

.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 20px;
}
.hero-desc { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; max-width: 440px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-primary {
  padding: 12px 24px; border-radius: 8px;
  background: var(--accent); color: #000;
  font-weight: 700; font-size: 14px; display: inline-block;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  padding: 11px 22px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text);
  font-weight: 600; font-size: 14px; display: inline-block;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: var(--bg3); border-color: var(--accent); }
.hero-stats { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-n { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--accent); }
.stat-l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-eyebrow {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px); font-weight: 800;
  letter-spacing: -0.02em; color: var(--text);
}
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px;
}
.see-all { font-size: 13px; color: var(--accent); font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* ── Topics ──────────────────────────────────────────────────────────────── */
.topics-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.topics-section .section-title { margin-bottom: 40px; }
.topics-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.topic-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; transition: border-color 0.2s, transform 0.2s;
}
.topic-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.topic-icon { font-size: 26px; margin-bottom: 12px; }
.topic-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.topic-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Videos ──────────────────────────────────────────────────────────────── */
.videos-section .section-title, .videos-section .section-eyebrow { margin-bottom: 0; }
.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
  margin-top: 0;
}
.video-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.video-thumb-wrap { position: relative; aspect-ratio: 16/9; background: var(--bg3); overflow: hidden; }
.video-thumb-wrap 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.4); opacity: 0; transition: opacity 0.2s;
  font-size: 40px;
}
.video-card:hover .video-play { opacity: 1; }
.video-info { padding: 14px 16px; }
.video-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.video-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; }
.video-skeleton {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  aspect-ratio: 16/10; animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.load-more-wrap { text-align: center; margin-top: 32px; }

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.filter-bar { border-bottom: 1px solid var(--border); background: var(--bg2); }
.filter-inner { display: flex; gap: 4px; padding: 12px 0; overflow-x: auto; }
.filter-btn {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap; font-family: var(--mono);
  transition: all 0.15s;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }

/* ── Blog ────────────────────────────────────────────────────────────────── */
.blog-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  background: #00c8ff18; padding: 3px 8px; border-radius: 4px;
  display: inline-block; align-self: flex-start;
}
.blog-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; }
.blog-card-desc { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.blog-date { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.blog-read { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ── Blog page ───────────────────────────────────────────────────────────── */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.blog-full-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 16px;
}
.blog-full-title { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.3; }
.blog-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.blog-full-excerpt { font-size: 15px; color: #94a3b8; line-height: 1.7; }
.blog-code-block {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.code-bar {
  background: var(--bg3); padding: 8px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.code-pre {
  font-family: var(--mono); font-size: 12px; color: #94a3b8;
  padding: 16px; overflow-x: auto; line-height: 1.7;
  white-space: pre;
}
.code-hi { color: #f87171; font-weight: 700; }
.code-kw { color: var(--accent); }
.code-str { color: #4ade80; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.blog-sidebar, .about-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 80px; }
.sidebar-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 20px;
}
.sidebar-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono); }
.sidebar-text { font-size: 13px; color: var(--muted); line-height: 1.6; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.s-tag {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 4px; cursor: default;
}
.quick-cmd { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.quick-cmd:last-child { border-bottom: none; }
.qc-label { font-size: 11px; color: var(--muted); }
.quick-cmd code { font-family: var(--mono); font-size: 11px; color: var(--accent); }

/* ── CTA Banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #00c8ff08 0%, #0ea5e908 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 60px 0; text-align: center;
}
.cta-terminal-tag { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.cta-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-desc { font-size: 15px; color: var(--muted); margin-bottom: 28px; }

/* ── Page hero ───────────────────────────────────────────────────────────── */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 80% at 20% 50%, #00c8ff08 0%, transparent 70%);
}
.page-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.page-desc { font-size: 15px; color: var(--muted); margin-top: 10px; max-width: 560px; line-height: 1.7; }

/* ── About ───────────────────────────────────────────────────────────────── */
.about-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.about-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; margin-bottom: 20px;
}
.about-card p { font-size: 14px; color: #94a3b8; line-height: 1.8; margin-top: 12px; }
.about-heading { font-size: 17px; font-weight: 700; color: var(--text); }
.exp-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.exp-item { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.exp-role { font-size: 14px; font-weight: 700; color: var(--text); }
.exp-detail { font-size: 12px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }
.stack-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.stack-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; font-family: var(--mono); }
.stack-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cert-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cert-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #94a3b8; }
.cert-badge { font-family: var(--mono); font-size: 14px; color: #4ade80; font-weight: 700; }
.cert-wip .cert-badge.wip { color: var(--accent); }
.cert-wip { color: var(--muted); }
.connect-card { display: flex; flex-direction: column; gap: 12px; }
.connect-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 13px; color: var(--text); font-weight: 500;
  transition: border-color 0.15s;
}
.connect-link:hover { border-color: var(--accent); color: var(--accent); }
.connect-icon { font-size: 14px; color: var(--accent); font-weight: 700; font-family: var(--mono); width: 20px; text-align: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.footer-links a {
  padding: 4px 10px; font-size: 13px; color: var(--muted);
  border-radius: 4px; transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-terminal { order: -1; }
  .blog-layout, .about-layout { grid-template-columns: 1fr; }
  .blog-sidebar, .about-sidebar { position: static; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav { padding: 0 20px; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 20px; }
  .section { padding: 48px 0; }
  .hero-stats { gap: 12px; }
}
