/* ═══════════════════════════════════════════════════════════════
   Steel Waste Prediction System — NEXUS Design
   Design System (from design for thewebsite) + app overrides
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bg-base:        #020408;
  --bg-surface:     #050c14;
  --bg-card:        rgba(8, 20, 36, 0.7);
  --bg-card-hover:  rgba(12, 28, 50, 0.9);

  --emerald:        #10b981;
  --emerald-dim:    rgba(16, 185, 129, 0.15);
  --emerald-glow:   rgba(16, 185, 129, 0.4);

  --cyan:           #06b6d4;
  --cyan-dim:       rgba(6, 182, 212, 0.12);
  --cyan-glow:      rgba(6, 182, 212, 0.35);

  --blue:           #3b82f6;
  --blue-dim:       rgba(59, 130, 246, 0.12);

  --gold:           #f59e0b;
  --gold-dim:       rgba(245, 158, 11, 0.12);
  --gold-glow:      rgba(245, 158, 11, 0.3);

  --purple:         #8b5cf6;
  --purple-dim:     rgba(139, 92, 246, 0.12);

  --text-primary:   #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;
  --text-accent:    #64748b;

  --border-subtle:  rgba(148, 163, 184, 0.06);
  --border-card:    rgba(148, 163, 184, 0.1);
  --border-active:  rgba(16, 185, 129, 0.3);

  --font-sans:  'Space Grotesk', 'Inter', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  --nav-h:      72px;
  --section-px: clamp(1.5rem, 5vw, 6rem);
  --section-py: clamp(4rem, 8vw, 9rem);

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-circ:  cubic-bezier(0.37, 0, 0.63, 1);

  --shadow-card:    0 4px 24px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-glow-em: 0 0 40px rgba(16,185,129,0.2), 0 0 80px rgba(16,185,129,0.08);
  --shadow-glow-cy: 0 0 40px rgba(6,182,212,0.2), 0 0 80px rgba(6,182,212,0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (pointer: fine) {
  body.has-cursor-dock { cursor: none; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; }
canvas { display: block; }

/* ─── CUSTOM CURSOR ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--emerald);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out),
              background 0.2s, opacity 0.2s;
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.35s, transform 0.12s linear;
}

.cursor.expanded { width: 20px; height: 20px; opacity: 0.5; }
.cursor-follower.expanded { width: 60px; height: 60px; border-color: rgba(16,185,129,0.2); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--cyan) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text { color: var(--gold); }
.cyan-text { color: var(--cyan); }
.emerald-text { color: var(--emerald); }

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.nav-dock {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 1.5rem;
  height: 56px;
  background: rgba(5, 12, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}

.nav-dock.scrolled {
  background: rgba(2, 4, 8, 0.95);
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 80px rgba(16,185,129,0.03);
}

.nav-logo { display: flex; align-items: center; gap: 8px; }

.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  color: #000;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  padding: 6px 14px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-btn {
  padding: 7px 18px;
  background: var(--emerald);
  color: #000;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.03em;
  transition: all 0.2s var(--ease-out);
}

.nav-btn:hover {
  background: #34d399;
  box-shadow: 0 0 20px var(--emerald-glow);
}

.nav-status { display: flex; align-items: center; gap: 6px; }

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--emerald); }
  50% { opacity: 0.6; box-shadow: 0 0 2px var(--emerald); }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--emerald);
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--emerald);
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 40px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn-primary.large { padding: 18px 36px; font-size: 1rem; }

.btn-primary:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-em);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover .btn-icon { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 40px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.btn-ghost.large { padding: 18px 36px; font-size: 1rem; }

.btn-ghost:hover {
  border-color: rgba(148,163,184,0.3);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 40px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: rgba(148,163,184,0.3);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

/* ─── GLASS CARDS ────────────────────────────────────────────── */
.glass-card,
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.glass-card:hover,
.card:hover {
  border-color: rgba(148,163,184,0.18);
  box-shadow: var(--shadow-card), 0 0 60px rgba(16,185,129,0.06);
}

.card-body { padding: 2rem; }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.revealed { opacity: 1 !important; transform: none !important; }

[data-delay="100"] { transition-delay: 0.1s !important; }
[data-delay="200"] { transition-delay: 0.2s !important; }
[data-delay="300"] { transition-delay: 0.3s !important; }
[data-delay="400"] { transition-delay: 0.4s !important; }

/* ─── SECTION SHARED ─────────────────────────────────────────── */
section {
  padding: var(--section-py) var(--section-px);
  position: relative;
  overflow: hidden;
}

.section-header { text-align: center; margin-bottom: clamp(3rem, 6vw, 6rem); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--emerald);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--emerald);
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(16,185,129,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.03;
  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");
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--emerald);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald));
}
.eyebrow-line:last-child { background: linear-gradient(270deg, transparent, var(--emerald)); }

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.title-line { display: block; }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(8,20,36,0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--r-xl);
  padding: 1.5rem 2.5rem;
  gap: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-unit {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-card);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--emerald), transparent);
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.hero-corner-info {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.corner-item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES SECTION (feature cards grid)
   ═══════════════════════════════════════════════════════════════ */
.features { background: var(--bg-surface); }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: 2rem;
  transition: all 0.3s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 60px rgba(16,185,129,0.08);
}

.fc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 1.25rem;
}

.fc-icon svg { width: 100%; height: 100%; }
.fc-icon.emerald { background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }
.fc-icon.cyan    { background: var(--cyan-dim);    color: var(--cyan);    border: 1px solid rgba(6,182,212,0.2); }
.fc-icon.blue    { background: var(--blue-dim);    color: var(--blue);    border: 1px solid rgba(59,130,246,0.2); }
.fc-icon.purple  { background: var(--purple-dim);  color: var(--purple);  border: 1px solid rgba(139,92,246,0.2); }
.fc-icon.gold    { background: var(--gold-dim);    color: var(--gold);    border: 1px solid rgba(245,158,11,0.2); }

.fc-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.fc-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.fc-link {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--emerald);
  transition: gap 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-link span { transition: transform 0.2s; }
.feature-card:hover .fc-link span { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  background: var(--bg-base);
  text-align: center;
  overflow: hidden;
}

.cta-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; }

.cta-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem var(--section-px) 2rem;
}

.footer-top { display: flex; gap: 4rem; margin-bottom: 3rem; flex-wrap: wrap; }

.footer-brand { flex: 0 0 240px; }

.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; }

.footer-tagline { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

.footer-links { display: flex; gap: 4rem; flex: 1; flex-wrap: wrap; }

.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--text-secondary); }

.footer-status-bar { display: flex; align-items: center; gap: 6px; }

/* ─── TILT CARD ───────────────────────────────────────────────── */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ─── SCROLLBAR & SELECTION ───────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(16,185,129,0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(16,185,129,0.6); }

::selection { background: rgba(16,185,129,0.25); color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════
   STEEL WASTE APP — Layout & Forms
   ═══════════════════════════════════════════════════════════════ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}

.row.justify-content-center { justify-content: center; }

.row > [class*="col-"] { padding: 0.5rem; }

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }

@media (max-width: 768px) {
  .col-md-4, .col-md-6, .col-lg-6, .col-lg-8, .col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .feature-cards { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 40px; height: 1px; }
  .nav-dock { top: 10px; width: calc(100% - 2rem); padding: 0 1rem; }
  .nav-links { display: none; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 2rem; }
}

/* Page header (About, Features) */
.page-header {
  padding: var(--section-py) var(--section-px);
  text-align: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-header .lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Form sections */
.form-section {
  background: rgba(8, 20, 36, 0.5);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title-form {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-dim);
}

.form-control::placeholder { color: var(--text-muted); }

.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.small, small { font-size: 0.8rem; color: var(--text-muted); }

/* Predict button */
.btn-predict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  background: var(--emerald);
  color: #000;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-predict:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-em);
  color: #000;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* Result card */
.result-card {
  animation: fadeIn 0.5s var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.waste-badge {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: var(--r-md);
  display: inline-block;
}

.waste-badge.bg-success { background: var(--emerald); color: #000; }
.waste-badge.bg-warning { background: var(--gold); color: #000; }
.waste-badge.bg-danger { background: #ef4444; color: #fff; }

.info-box {
  background: rgba(8, 20, 36, 0.6);
  border-left: 4px solid var(--emerald);
  padding: 1.25rem;
  border-radius: var(--r-sm);
  margin: 1rem 0;
}

.info-box h6 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: 1.25rem;
  transition: all 0.3s var(--ease-out);
  height: 100%;
}

.impact-card:hover {
  border-color: rgba(16,185,129,0.2);
  box-shadow: 0 0 30px rgba(16,185,129,0.08);
}

.impact-card .card-title { font-size: 0.9rem; margin-bottom: 0.5rem; }
.impact-card .text-danger { color: #f87171 !important; }
.impact-card .text-warning { color: var(--gold) !important; }
.impact-card .text-success { color: var(--emerald) !important; }
.impact-card .text-info { color: var(--cyan) !important; }
.impact-card h4 { font-size: 1.5rem; font-weight: 700; margin: 0.25rem 0; }

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 20px;
}

.badge.bg-success { background: var(--emerald); color: #000; }
.badge.bg-warning { background: var(--gold); color: #000; }
.badge.bg-danger { background: #ef4444; color: #fff; }
.badge.bg-info { background: var(--cyan); color: #000; }

.loading {
  text-align: center;
  padding: 2rem;
}

.loading .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--border-card);
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading p { margin-top: 1rem; color: var(--text-secondary); }

/* Table (About page) */
.table-responsive { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-secondary);
}

.table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.table td { color: var(--text-primary); }

/* Utilities */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.me-2 { margin-right: 0.5rem; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1px solid;
  font-size: 0.9rem;
}

.alert-info {
  background: var(--cyan-dim);
  border-color: rgba(6,182,212,0.3);
  color: var(--text-secondary);
}

.section { padding: var(--section-py) 0; }

.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--r-md); }
