/* ============================================================
   KOMILAB.ORG — Design System
   Theme: Terminal Blueprint / Engineering Dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── VARIABLES ────────────────────────────────────────────── */
:root {
  --bg-deep:        #080C18;
  --bg-main:        #0A0E1A;
  --bg-card:        #0D1220;
  --bg-card-hover:  #111827;
  --bg-border:      #1a2340;
  --bg-input:       #0f1624;

  --cyan:           #00D4FF;
  --cyan-dim:       #00a8cc;
  --cyan-ghost:     rgba(0, 212, 255, 0.08);
  --cyan-glow:      rgba(0, 212, 255, 0.25);

  --blue-mid:       #1E3A5F;
  --blue-accent:    #2563EB;
  --green-ok:       #00FF94;
  --orange-warn:    #FF8C42;
  --red-alert:      #FF4C4C;
  --yellow-note:    #FFD166;

  --text-primary:   #E8EDF5;
  --text-secondary: #8899BB;
  --text-muted:     #4A5A7A;
  --text-accent:    #00D4FF;

  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
  --font-body:      'IBM Plex Sans', sans-serif;
  --font-code:      'IBM Plex Mono', monospace;

  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;

  --transition:     0.2s ease;
  --transition-slow: 0.4s ease;

  --shadow-card:    0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--bg-border);
  --shadow-glow:    0 0 20px var(--cyan-glow);
  --shadow-glow-sm: 0 0 8px rgba(0, 212, 255, 0.3);
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

/* ── NOISE TEXTURE OVERLAY ────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9999;
}

/* ── GRID BACKGROUND ──────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

.mono { font-family: var(--font-mono); }
.label-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 12, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-border);
  height: 64px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.nav-logo .logo-mark {
  width: 32px; height: 32px;
  background: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bg-deep);
}
.nav-logo .logo-text span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.05em;
}
.nav-link:hover, .nav-link.active {
  color: var(--cyan);
  background: var(--cyan-ghost);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--cyan);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), box-shadow var(--transition);
  letter-spacing: 0.05em;
}
.nav-cta:hover { opacity: 0.85; box-shadow: var(--shadow-glow-sm); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    var(--bg-deep);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan-ghost);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}
.hero-title .line-accent { color: var(--cyan); display: block; }
.hero-title .line-dim { color: var(--text-secondary); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.65s forwards;
}

.hero-stats {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  animation: fadeRight 0.8s ease 0.8s forwards;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cyan);
  border-radius: 0 2px 2px 0;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-family: var(--font-mono);
}

/* ── TERMINAL PROMPT ──────────────────────────────────────── */
.terminal-prompt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
}
.terminal-prompt .prompt-sym { color: var(--cyan); }
.terminal-prompt .prompt-cmd { color: var(--text-primary); }
.terminal-prompt .cursor {
  width: 8px; height: 16px;
  background: var(--cyan);
  display: inline-block;
  animation: blink 1.2s step-end infinite;
  border-radius: 1px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg-deep);
}
.btn-primary:hover {
  opacity: 0.88;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.35);
}
.btn-outline:hover {
  background: var(--cyan-ghost);
  border-color: var(--cyan);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--bg-border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--bg-border);
}
.section-header-left {}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.section-title {
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* ── LAB CARDS ────────────────────────────────────────────── */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}
.lab-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lab-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.lab-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.lab-card:hover::before { opacity: 1; }

.lab-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.lab-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.level-lab       { color: #00FF94; background: rgba(0,255,148,0.1); border: 1px solid rgba(0,255,148,0.2); }
.level-pilote    { color: #FFD166; background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.2); }
.level-production{ color: #00D4FF; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2); }
.level-expert    { color: #FF8C42; background: rgba(255,140,66,0.1); border: 1px solid rgba(255,140,66,0.2); }

.lab-env {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}
.lab-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  font-family: var(--font-mono);
}
.lab-card-excerpt {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.lab-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-border);
}
.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.lab-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bg-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}
.lab-duration {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.lab-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 1rem;
  transition: gap var(--transition);
}
.lab-card-link:hover { gap: 0.55rem; }

/* ── NEWS FEED ────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.news-col {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.news-col-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--bg-border);
  background: rgba(0,0,0,0.2);
}
.news-col-icon {
  font-size: 0.85rem;
}
.news-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.news-col-title span { color: var(--cyan); }

.news-items { padding: 0.5rem 0; }
.news-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(26,35,64,0.5);
  transition: background var(--transition);
  cursor: pointer;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--cyan-ghost); }
.news-item-title {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
}
.news-item:hover .news-item-title { color: var(--cyan); }
.news-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}
.news-item-source { color: var(--cyan-dim); }
.news-dot { font-size: 0.4rem; }
.news-loading {
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.news-loading-bar {
  width: 100%;
  height: 2px;
  background: var(--bg-border);
  border-radius: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
}
.news-loading-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--cyan);
  animation: loading-scan 1.5s ease infinite;
  border-radius: 2px;
}

/* ── DOMAINS SECTION ──────────────────────────────────────── */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
  cursor: pointer;
}
.domain-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  background: var(--bg-card-hover);
}
.domain-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.domain-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.domain-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
}

/* ── CODE BLOCKS ──────────────────────────────────────────── */
.code-block-wrapper {
  position: relative;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-border);
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--bg-border);
}
.code-block-lang {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--bg-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.05em;
}
.copy-btn:hover {
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.3);
  background: var(--cyan-ghost);
}
.copy-btn.copied {
  color: var(--green-ok);
  border-color: rgba(0, 255, 148, 0.3);
  background: rgba(0, 255, 148, 0.05);
}
.copy-btn svg { width: 12px; height: 12px; }
pre {
  background: rgba(0,0,0,0.25);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 0;
}
code {
  font-family: var(--font-code);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ── BADGES / PILLS ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}
.badge-cyan   { color: var(--cyan); background: var(--cyan-ghost); border: 1px solid rgba(0,212,255,0.2); }
.badge-green  { color: var(--green-ok); background: rgba(0,255,148,0.08); border: 1px solid rgba(0,255,148,0.2); }
.badge-orange { color: var(--orange-warn); background: rgba(255,140,66,0.08); border: 1px solid rgba(255,140,66,0.2); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--bg-border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.footer-brand-name span { color: var(--cyan); }
.footer-brand-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-socials {
  display: flex;
  gap: 0.5rem;
}
.footer-social {
  width: 32px; height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social:hover { color: var(--cyan); border-color: rgba(0,212,255,0.3); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-border);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.footer-copy span { color: var(--cyan); }
.footer-stack {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translate(20px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--cyan); }
  50% { box-shadow: 0 0 12px var(--cyan), 0 0 20px rgba(0,212,255,0.4); }
}
@keyframes loading-scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE NAV ───────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(8, 12, 24, 0.98);
  border-bottom: 1px solid var(--bg-border);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
  backdrop-filter: blur(16px);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-nav-link:hover { color: var(--cyan); background: var(--cyan-ghost); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-stats { display: none; }
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .labs-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .domains-grid { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .domains-grid { grid-template-columns: 1fr; }
}
