/* ============================================================
   BLACK TERMINAL SOCIETY — OBSIDIAN PROTOCOL DESIGN SYSTEM
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Core Colors */
  --clr-bg: #0a0a0a;
  --clr-surface-0: #0a0a0a;
  --clr-surface-1: #121212;
  --clr-surface-2: #1a1a1a;
  --clr-surface-3: #201f1f;
  --clr-border: #262626;
  --clr-border-subtle: #1a1a1a;

  /* Accent Colors */
  --clr-primary: #00ff41;
  --clr-primary-light: #4dff79;
  --clr-secondary: #0ea5e9;
  --clr-tertiary: #10b981;
  --clr-success: #00ff41;
  --clr-warning: #f59e0b;

  /* Text Colors */
  --clr-text: #e5e2e1;
  --clr-text-secondary: #a09c9a;
  --clr-text-muted: #6b6966;
  --clr-text-accent: #cbc3d7;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00ff41, #0ea5e9);
  --gradient-primary-r: linear-gradient(to right, #00ff41, #0ea5e9);
  --gradient-dark: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, #0a0a0a 100%);

  /* Spacing */
  --sp-base: 4px;
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --sp-xl: 64px;
  --sp-2xl: 96px;
  --sp-3xl: 128px;
  --gutter: 24px;
  --margin-edge: 32px;

  /* Typography */
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizes */
  --max-width: 1280px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-display);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--clr-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-logo {
  width: 80px;
  height: auto;
  margin-bottom: var(--sp-md);
  animation: pulse-glow 2s infinite, float 3s ease-in-out infinite;
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--clr-primary);
  text-transform: uppercase;
}

.preloader-text::after {
  content: '_';
  animation: blink 1s step-end infinite;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-edge);
  width: 100%;
}

.section {
  padding: var(--sp-3xl) 0;
  position: relative;
  border-top: 1px solid var(--clr-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 150px);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  animation: pulse-glow 2s infinite;
}

.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--clr-text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

.gradient-text {
  background: var(--gradient-primary-r);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Grid Background ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--clr-border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--clr-border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.3;
}

/* ---------- Animations ---------- */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 4px currentColor; }
  50% { opacity: 1; box-shadow: 0 0 12px currentColor; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes scan-line {
  0% { top: -10%; }
  100% { top: 110%; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.3), 0 0 80px rgba(14, 165, 233, 0.1); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes count-up {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reveal animation for scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  z-index: 1001;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--clr-text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--gutter);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary-r);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-primary-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: var(--clr-primary);
  padding: 10px 20px;
  border: none;
  transition: all var(--transition-base);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--sp-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu .nav-link {
  font-size: 18px;
  letter-spacing: 0.15em;
}

.mobile-menu .nav-cta {
  font-size: 14px;
  padding: 14px 32px;
  margin-top: var(--sp-md);
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + var(--sp-xl));
  padding-bottom: var(--sp-xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 255, 65, 0.08) 0%, transparent 70%),
              var(--gradient-dark);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: fade-in 1s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 8px 16px;
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-success);
  margin-bottom: var(--sp-lg);
  animation: slide-up 0.8s ease 0.2s both;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-glow 2s infinite;
  color: var(--clr-success);
}

.hero-title {
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
  animation: slide-up 0.8s ease 0.4s both;
}

.hero-title .line-2 {
  display: block;
  background: var(--gradient-primary-r);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--clr-text-secondary);
  max-width: 700px;
  margin: 0 auto var(--sp-lg);
  line-height: 1.7;
  animation: slide-up 0.8s ease 0.6s both;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
  animation: slide-up 0.8s ease 0.8s both;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  color: var(--clr-text);
  background: linear-gradient(var(--clr-surface-1), var(--clr-surface-1)) padding-box,
              var(--gradient-primary-r) border-box;
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.hero-tag:hover {
  background: linear-gradient(var(--clr-surface-2), var(--clr-surface-2)) padding-box,
              var(--gradient-primary-r) border-box;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
  animation: slide-up 0.8s ease 1s both;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  background: var(--gradient-primary-r);
  padding: 16px 36px;
  border: none;
  transition: all var(--transition-base);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.4), 0 0 80px rgba(14, 165, 233, 0.15);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text);
  padding: 16px 36px;
  background: linear-gradient(var(--clr-surface-0), var(--clr-surface-0)) padding-box,
              var(--gradient-primary-r) border-box;
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.btn-outline:hover {
  background: linear-gradient(var(--clr-surface-2), var(--clr-surface-2)) padding-box,
              var(--gradient-primary-r) border-box;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
}

/* ---------- TECH MARQUEE ---------- */
.marquee-section {
  padding: var(--sp-xl) 0;
  overflow: hidden;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  z-index: 1;
}

.marquee-wrapper {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

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

.marquee-item {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
  padding: 0 var(--sp-lg);
  white-space: nowrap;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.marquee-item::before {
  content: '◈';
  color: var(--clr-primary);
  font-size: 10px;
}

.marquee-item:hover {
  color: var(--clr-primary-light);
}

/* ---------- STATS SECTION ---------- */
.stats-section {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.stat-card {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  padding: var(--sp-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary-r);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-card:hover {
  border-color: rgba(0, 255, 65, 0.3);
  transform: translateY(-4px);
}

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

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
}

.stat-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-glow 2s infinite;
  color: var(--clr-success);
}

.stat-badge.live { color: var(--clr-success); }
.stat-badge.active { color: var(--clr-primary); }
.stat-badge.active .dot { background: var(--clr-primary); color: var(--clr-primary); }
.stat-badge.verified { color: var(--clr-secondary); }
.stat-badge.verified .dot { background: var(--clr-secondary); color: var(--clr-secondary); }
.stat-badge.online { color: var(--clr-tertiary); }
.stat-badge.online .dot { background: var(--clr-tertiary); color: var(--clr-tertiary); }

.stat-growth {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clr-success);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.stat-growth small {
  font-size: 9px;
  color: var(--clr-text-muted);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.stat-value .number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--clr-text);
}

.stat-value .suffix {
  font-size: 24px;
  font-weight: 700;
  color: var(--clr-text-secondary);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 13px;
  color: var(--clr-text-muted);
}

/* ---------- CERTIFICATIONS SECTION ---------- */
.certs-section {
  position: relative;
  z-index: 1;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--sp-lg);
}

.cert-card {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  padding: var(--sp-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  border-color: rgba(0, 255, 65, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
}

.cert-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
}

.cert-icon {
  font-size: 36px;
  line-height: 1;
}

.cert-verified {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-success);
  padding: 4px 10px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cert-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-xs);
}

.cert-desc {
  font-size: 14px;
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-md);
  flex-grow: 1;
}

.cert-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xs);
  margin-bottom: var(--sp-md);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--clr-border);
}

.cert-meta-item {
  text-align: center;
}

.cert-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 4px;
  display: block;
}

.cert-meta-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-text);
}

.cert-progress {
  margin-bottom: var(--sp-sm);
}

.cert-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--clr-border);
  position: relative;
  overflow: hidden;
}

.cert-progress-fill {
  height: 100%;
  background: var(--gradient-primary-r);
  width: 0%;
  transition: width 1.5s ease;
}

.cert-progress-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--clr-text-muted);
  text-align: right;
  margin-top: 4px;
}

.cert-btn {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text);
  padding: 12px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  text-align: center;
  transition: all var(--transition-base);
}

.cert-btn:hover {
  background: var(--clr-primary);
  color: #000;
  border-color: var(--clr-primary);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* ---------- LABS SECTION ---------- */
.labs-section {
  position: relative;
  z-index: 1;
}

.labs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
  align-items: start;
}

/* Terminal Window */
.terminal-window {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm);
  background: var(--clr-surface-2);
  border-bottom: 1px solid var(--clr-border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
}

.terminal-stats {
  display: flex;
  gap: var(--sp-sm);
}

.terminal-stat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.terminal-stat .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-glow 2s infinite;
  color: var(--clr-success);
}

.terminal-body {
  padding: var(--sp-md);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 200px;
}

.terminal-line {
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.terminal-prompt {
  color: var(--clr-success);
}

.terminal-command {
  color: var(--clr-text);
}

.terminal-output {
  color: var(--clr-text-muted);
  padding-left: 20px;
}

.terminal-warning {
  color: var(--clr-warning);
}

.terminal-error {
  color: #ef4444;
}

.terminal-success {
  color: var(--clr-success);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--clr-success);
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 4px;
}

/* Lab Cards */
.lab-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
}

.lab-card {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  padding: var(--sp-md);
  transition: all var(--transition-base);
}

.lab-card:hover {
  border-color: rgba(0, 255, 65, 0.3);
  transform: translateX(4px);
}

.lab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-xs);
}

.lab-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: var(--sp-sm);
  border: 1px solid var(--clr-border);
  position: relative;
}

.lab-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.lab-card:hover .lab-card-img img {
  transform: scale(1.05);
}

.lab-range-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lab-range-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-glow 2s infinite;
  color: var(--clr-success);
}

.lab-difficulty {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
}

.lab-difficulty.easy {
  color: var(--clr-success);
  border-color: rgba(16, 185, 129, 0.3);
}

.lab-difficulty.medium {
  color: var(--clr-warning);
  border-color: rgba(245, 158, 11, 0.3);
}

.lab-difficulty.hard {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.lab-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.lab-card-desc {
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
}

.lab-card-stats {
  display: flex;
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
}

.lab-stat {
  text-align: center;
}

.lab-stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text);
}

.lab-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lab-launch-btn {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text);
  padding: 10px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  text-align: center;
  transition: all var(--transition-base);
}

.lab-launch-btn:hover {
  background: var(--clr-primary);
  color: #000;
  border-color: var(--clr-primary);
}

/* ---------- EVENTS SECTION ---------- */
.events-section {
  position: relative;
  z-index: 1;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--sp-lg);
}

.event-card {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  border-color: rgba(0, 255, 65, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-sm);
  background: var(--clr-surface-2);
  border-bottom: 1px solid var(--clr-border);
}

.event-date .day {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--clr-text);
}

.event-date .month {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-primary);
}

.event-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border);
  position: relative;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-img img {
  transform: scale(1.05);
}

.event-body {
  padding: var(--sp-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  margin-bottom: var(--sp-xs);
}

.event-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-xs);
}

.event-desc {
  font-size: 13px;
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-md);
  flex-grow: 1;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xs);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--clr-border);
  margin-bottom: var(--sp-sm);
}

.event-meta-item {
  text-align: center;
}

.event-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  display: block;
  margin-bottom: 2px;
}

.event-meta-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-text);
}

.event-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-glow 2s infinite;
  color: var(--clr-success);
}

.event-register-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  padding: 6px 14px;
  border: 1px solid var(--clr-border);
  transition: all var(--transition-base);
}

.event-register-btn:hover {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  position: relative;
  z-index: 1;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 500px;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), transparent);
}

.about-image .overlay-badge {
  position: absolute;
  bottom: var(--sp-md);
  left: var(--sp-md);
  right: var(--sp-md);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: var(--sp-sm);
  border: 1px solid var(--clr-border);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}

.about-stat {
  text-align: center;
}

.about-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--clr-text);
}

.about-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.about-mission-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-primary);
}

.about-mission-text {
  font-size: 16px;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
}

.about-feature {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  padding: var(--sp-sm);
  transition: all var(--transition-base);
}

.about-feature:hover {
  border-color: rgba(0, 255, 65, 0.3);
  transform: translateY(-2px);
}

.about-feature-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 6px;
}

.about-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 4px;
}

.about-feature-desc {
  font-size: 12px;
  color: var(--clr-text-muted);
}

/* ---------- ACCESS / CTA SECTION ---------- */
.access-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.access-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 255, 65, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.access-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.access-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.access-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.access-desc {
  font-size: 16px;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

.access-stats {
  display: flex;
  gap: var(--sp-lg);
  margin: var(--sp-sm) 0;
}

.access-stat {
  text-align: left;
}

.access-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--clr-text);
}

.access-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.access-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xs);
}

.access-check {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clr-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.access-check::before {
  content: '✓';
  color: var(--clr-success);
  font-weight: bold;
}

.access-join-btn {
  display: inline-flex;
  align-self: flex-start;
}

/* Login Card */
.login-card {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  max-width: 420px;
  margin-left: auto;
  animation: glow-pulse 4s infinite;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm);
  background: var(--clr-surface-2);
  border-bottom: 1px solid var(--clr-border);
}

.login-header-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.login-close {
  font-size: 18px;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.login-close:hover {
  color: var(--clr-text);
}

.login-body {
  padding: var(--sp-lg);
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
}

.login-field {
  margin-bottom: var(--sp-md);
}

.login-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-secondary);
  display: block;
  margin-bottom: var(--sp-xs);
}

.login-input {
  width: 100%;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  background: transparent;
  transition: border-color var(--transition-base);
}

.login-input::placeholder {
  color: var(--clr-text-muted);
}

.login-input:focus {
  border-image: var(--gradient-primary-r) 1;
}

.login-submit {
  width: 100%;
  margin-top: var(--sp-sm);
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-sm);
}

.login-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

.login-link:hover {
  color: var(--clr-primary);
}

.login-footer {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  padding: var(--sp-sm);
  border-top: 1px solid var(--clr-border);
}

.login-footer span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-3xl) 0 var(--sp-lg);
  background: var(--clr-surface-0);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.footer-brand-logo img {
  height: 40px;
}

.footer-brand-logo span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--clr-text-muted);
  max-width: 300px;
  line-height: 1.6;
}

.footer-brand-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-brand-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-glow 2s infinite;
  color: var(--clr-success);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--clr-primary-light);
}

.footer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  padding: var(--sp-md) 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-md);
}

.footer-stat {
  text-align: center;
}

.footer-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--clr-text);
}

.footer-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
}

/* ---------- Cart Badge ---------- */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

/* ---------- DECORATIVE ELEMENTS ---------- */
.cyber-symbols {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--clr-text-muted);
  opacity: 0.3;
  letter-spacing: 0.5em;
  text-align: center;
  padding: var(--sp-md) 0;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- RESPONSIVE ---------- */

/* ---- Large tablets / small desktops (1024px) ---- */
@media (max-width: 1200px) {
  .lab-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --margin-edge: 24px;
    --sp-3xl: 96px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .labs-layout {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    min-height: 300px;
    max-height: 400px;
  }

  .access-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .login-card {
    max-width: 100%;
    margin-left: 0;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand-logo span {
    font-size: 16px;
  }
}

/* ---- Tablets / iPad portrait (768px) ---- */
@media (max-width: 768px) {
  :root {
    --margin-edge: 16px;
    --nav-height: 60px;
    --sp-3xl: 64px;
    --sp-2xl: 56px;
    --sp-xl: 48px;
  }

  /* --- Nav --- */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-brand img {
    height: 36px;
  }

  .nav-brand span {
    font-size: 18px;
  }

  /* --- Sections --- */
  .section {
    padding: var(--sp-xl) 0;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .section-subtitle {
    font-size: 15px;
  }

  .section-label {
    font-size: 11px;
  }

  /* --- Hero --- */
  .hero {
    padding-top: calc(var(--nav-height) + var(--sp-lg));
    padding-bottom: var(--sp-lg);
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(32px, 10vw, 56px);
  }

  .hero-description {
    font-size: 15px;
    padding: 0 8px;
  }

  .hero-tags {
    gap: var(--sp-xs);
  }

  .hero-tag {
    font-size: 10px;
    padding: 8px 12px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 12px;
  }

  /* --- Marquee --- */
  .marquee-section {
    padding: var(--sp-lg) 0;
  }

  .marquee-item {
    font-size: 11px;
    padding: 0 var(--sp-md);
  }

  /* --- Stats --- */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-sm);
  }

  .stat-card {
    padding: var(--sp-sm);
  }

  .stat-value .number {
    font-size: 32px;
  }

  .stat-value .suffix {
    font-size: 18px;
  }

  .stat-desc {
    font-size: 12px;
  }

  /* --- Certifications --- */
  .certs-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }

  .cert-card {
    padding: var(--sp-sm);
  }

  .cert-title {
    font-size: 17px;
  }

  .cert-desc {
    font-size: 13px;
  }

  /* --- Labs / Terminal --- */
  .terminal-stats {
    display: none;
  }

  .terminal-title {
    font-size: 11px;
  }

  .terminal-body {
    padding: var(--sp-sm);
    font-size: 11px;
    min-height: 220px;
    overflow-x: auto;
  }

  .terminal-output {
    padding-left: 12px;
    word-break: break-all;
  }

  .lab-card {
    padding: var(--sp-sm);
  }

  .lab-card-title {
    font-size: 16px;
  }

  .lab-card-stats {
    gap: var(--sp-sm);
  }

  /* --- Events --- */
  .events-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }

  .event-body {
    padding: var(--sp-sm);
  }

  .event-title {
    font-size: 16px;
  }

  .event-cta {
    flex-direction: column;
    gap: var(--sp-xs);
    align-items: flex-start;
  }

  /* --- About --- */
  .about-image img {
    min-height: 250px;
    max-height: 300px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: var(--sp-xs);
  }

  .about-feature {
    padding: 12px;
  }

  .about-mission-text {
    font-size: 14px;
  }

  .about-content .btn-primary {
    width: 100%;
    text-align: center;
  }

  /* --- Access --- */
  .access-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .access-desc {
    font-size: 14px;
  }

  .access-stats {
    flex-wrap: wrap;
    gap: var(--sp-md);
  }

  .access-checklist {
    grid-template-columns: 1fr;
  }

  .access-check {
    font-size: 11px;
  }

  .access-join-btn {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }

  .login-body {
    padding: var(--sp-md);
  }

  .login-title {
    font-size: 20px;
  }

  .login-footer {
    flex-wrap: wrap;
    gap: var(--sp-xs);
    justify-content: center;
  }

  .login-footer span {
    font-size: 8px;
  }

  /* --- Cyber Symbols --- */
  .cyber-symbols {
    font-size: 11px;
    letter-spacing: 0.3em;
    padding: var(--sp-sm) 0;
  }

  /* --- Footer --- */
  .footer {
    padding: var(--sp-xl) 0 var(--sp-md);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand-logo {
    flex-wrap: wrap;
  }

  .footer-brand-logo span {
    font-size: 14px;
  }

  .footer-brand-desc {
    max-width: 100%;
  }

  .footer-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-sm);
  }

  .footer-stat-value {
    font-size: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-xs);
  }

  .footer-copyright,
  .footer-tagline {
    font-size: 10px;
  }
}

/* ---- Small phones (480px) ---- */
@media (max-width: 600px) {
  .lab-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --margin-edge: 12px;
    --sp-xl: 40px;
    --sp-3xl: 48px;
    --gutter: 16px;
  }

  /* --- Hero --- */
  .hero-title {
    font-size: clamp(28px, 10vw, 44px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-badge {
    font-size: 9px;
    padding: 6px 10px;
  }

  .hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tag {
    font-size: 9px;
    padding: 6px 10px;
    letter-spacing: 0.06em;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    padding: 12px 16px;
    font-size: 11px;
  }

  /* --- Stats --- */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-header {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .stat-growth {
    align-items: flex-start;
    flex-direction: row;
    gap: 4px;
  }

  .stat-value .number {
    font-size: 28px;
  }

  .stat-value .suffix {
    font-size: 16px;
  }

  .stat-label {
    font-size: 9px;
  }

  .stat-desc {
    font-size: 11px;
    display: none;
  }

  /* --- Certifications --- */
  .cert-meta {
    gap: 4px;
  }

  .cert-meta-label {
    font-size: 8px;
  }

  .cert-meta-value {
    font-size: 11px;
  }

  /* --- Terminal --- */
  .terminal-body {
    font-size: 10px;
    padding: 12px;
    min-height: 180px;
  }

  .terminal-dots span {
    width: 8px;
    height: 8px;
  }

  /* --- Events --- */
  .event-date .day {
    font-size: 24px;
  }

  .event-meta {
    gap: 4px;
  }

  .event-meta-label {
    font-size: 8px;
  }

  .event-meta-value {
    font-size: 11px;
  }

  /* --- About --- */
  .about-image img {
    min-height: 200px;
    max-height: 250px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xs);
  }

  .about-stat-value {
    font-size: 16px;
  }

  .about-stat-label {
    font-size: 8px;
  }

  .about-feature-title {
    font-size: 13px;
  }

  .about-feature-desc {
    font-size: 11px;
  }

  /* --- Access --- */
  .access-stats {
    gap: var(--sp-sm);
  }

  .access-stat-value {
    font-size: 20px;
  }

  .access-stat-label {
    font-size: 9px;
  }

  /* --- Footer --- */
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }

  .footer-col-title {
    font-size: 10px;
    margin-bottom: var(--sp-xs);
  }

  .footer-col ul {
    gap: 6px;
  }

  .footer-col ul li a {
    font-size: 12px;
  }

  .footer-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xs);
  }

  .footer-stat-value {
    font-size: 16px;
  }

  .footer-stat-label {
    font-size: 7px;
  }
}

/* ---- Ultra-small phones (360px) ---- */
@media (max-width: 360px) {
  :root {
    --margin-edge: 10px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-tag {
    font-size: 8px;
    padding: 5px 8px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    padding: 12px 12px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .stat-value .number {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
  }

  .nav-brand img {
    height: 30px;
  }

  .nav-brand span {
    font-size: 16px;
  }

  .mobile-menu .nav-link {
    font-size: 16px;
  }

  .footer-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Landscape phones ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--sp-md));
    padding-bottom: var(--sp-md);
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 14px;
    margin-bottom: var(--sp-sm);
  }

  .hero-tags {
    margin-bottom: var(--sp-md);
  }

  .mobile-menu {
    padding-top: var(--nav-height);
    justify-content: flex-start;
    gap: var(--sp-sm);
    overflow-y: auto;
  }
}

/* ---- iPad specific tweaks ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .labs-layout {
    gap: var(--sp-md);
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .access-stats {
    gap: var(--sp-lg);
  }

  .access-checklist {
    grid-template-columns: 1fr 1fr;
  }

  .terminal-stats {
    display: flex;
  }
}

/* ---- iPad Pro 12.9" ---- */
@media (min-width: 1024px) and (max-width: 1366px) {
  .hero-title {
    font-size: clamp(48px, 6vw, 72px);
  }

  .about-image img {
    min-height: 400px;
  }
}

/* ---------- Scrollbar Styling ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(0, 255, 65, 0.3);
  color: var(--clr-text);
}

