/* GeoEngineOptimise — Main Stylesheet */
/* Design System: Dark navy base, Cyan accent, Indigo secondary */

:root {
  color-scheme: light;
  --bg: #0a0e1a;
  --bg-2: #111827;
  --bg-3: #1a2235;
  --surface: #1e293b;
  --border: #334155;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #a78bfa;
  --success: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --font-main: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container-max: 1280px;
  --nav-height: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grid background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  z-index: 1000;
  border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

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

.logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--text-dim); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: #67e8f9 !important; color: var(--bg) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-2);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .menu-toggle { display: block; }
}

/* ========================================
   TYPOGRAPHY & SECTIONS
   ======================================== */
section { padding: 80px 0; position: relative; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -2px; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -1.5px; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.75rem; }

.section-sub { font-size: 1.1rem; color: var(--text-dim); max-width: 600px; margin-bottom: 3rem; }

.accent-text { color: var(--accent); }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #67e8f9; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ========================================
   HERO
   ======================================== */
.hero { padding: calc(var(--nav-height) + 60px) 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-sub { font-size: 1.2rem; color: var(--text-dim); max-width: 560px; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ========================================
   TERMINAL VISUAL
   ======================================== */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(34,211,238,0.1);
}
.terminal-header { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }
.term-line { margin-bottom: 0.75rem; color: var(--text-dim); }
.term-prompt { color: var(--accent); }
.term-key { color: var(--accent-2); }
.term-val { color: var(--success); }
.term-warn { color: var(--warn); }
.term-citation { color: var(--accent-3); }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); animation: blink 1s infinite; vertical-align: middle; margin-left: 4px; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* ========================================
   PROBLEM CARDS
   ======================================== */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.problem-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}
.problem-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.problem-icon { width: 48px; height: 48px; background: rgba(248,113,113,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }
.problem-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.problem-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ========================================
   SERVICES
   ======================================== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.service-card::before { content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 200px; background: radial-gradient(circle, rgba(34,211,238,0.1), transparent 70%); pointer-events: none; }
.service-card:hover { border-color: var(--accent); }
.service-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-dim); margin-bottom: 1.5rem; }
.service-features { list-style: none; }
.service-features li { color: var(--text-dim); font-size: 0.9rem; padding: 0.4rem 0; display: flex; align-items: center; gap: 0.5rem; }
.service-features li::before { content: '→'; color: var(--accent); font-weight: 700; }
.service-price { font-family: var(--font-mono); font-size: 1.1rem; color: var(--success); margin-top: 1.5rem; font-weight: 600; }

/* Service Detail (services.html) */
.service-detail {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.service-detail::before { content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px; background: radial-gradient(circle, rgba(34,211,238,0.08), transparent 70%); pointer-events: none; }
.service-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.service-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); background: rgba(34,211,238,0.1); padding: 0.3rem 0.8rem; border-radius: 100px; border: 1px solid rgba(34,211,238,0.3); }
.service-price-big { font-family: var(--font-mono); font-size: 1.5rem; color: var(--success); font-weight: 700; }
.service-body { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
.feature-list { list-style: none; }
.feature-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); color: var(--text-dim); display: flex; gap: 0.75rem; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.deliverables h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; }
.deliverables ul { list-style: none; }
.deliverables li { padding: 0.5rem 0; color: var(--text-dim); font-size: 0.9rem; display: flex; gap: 0.5rem; }
.deliverables li::before { content: '→'; color: var(--accent); }

/* ========================================
   PROCESS
   ======================================== */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; position: relative; }
.step-num { font-family: var(--font-mono); font-size: 3rem; font-weight: 700; color: rgba(34,211,238,0.15); position: absolute; top: 1rem; right: 1.5rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.step p { color: var(--text-dim); font-size: 0.9rem; }

/* ========================================
   COMPARISON TABLE
   ======================================== */
.compare { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--bg-2); border-radius: 12px; overflow: hidden; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-3); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
td { color: var(--text-dim); font-size: 0.9rem; }
.check { color: var(--success); font-weight: 700; }
.cross { color: var(--danger); font-weight: 700; }

/* ========================================
   FAQ
   ======================================== */
.faq-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; }
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.faq-a { color: var(--text-dim); font-size: 0.95rem; }

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  color: var(--bg);
}
.cta-banner h2 { color: var(--bg); }
.cta-banner p { color: rgba(10,14,26,0.8); max-width: 600px; margin: 0 auto 2rem; }
.cta-banner .btn { background: var(--bg); color: var(--accent); }
.cta-banner .btn:hover { background: var(--bg-2); }

/* ========================================
   AUDIT TOOL
   ======================================== */
.audit-tool { max-width: 800px; margin: 0 auto; }
.step-indicator { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.step-dot { flex: 1; height: 4px; background: var(--border); border-radius: 2px; transition: background 0.3s; }
.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--success); }
.audit-step { display: none; }
.audit-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.audit-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.5rem; font-weight: 500; }
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus { outline: none; border-color: var(--accent); }
.input-group input::placeholder { color: var(--text-muted); }
.input-group select option { background: var(--bg-2); }
.input-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Results */
.results { display: none; }
.results:not([hidden]) { display: block; animation: fadeIn 0.4s ease; }
.score-ring { width: 200px; height: 200px; margin: 0 auto 2rem; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .bg { fill: none; stroke: var(--border); stroke-width: 8; }
.score-ring .progress { fill: none; stroke: var(--warn); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease, stroke 0.5s; }
.score-num { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--font-mono); font-size: 3rem; font-weight: 700; }
.score-label { position: absolute; top: 65%; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: var(--text-muted); }
.engine-bars { display: grid; gap: 1rem; }
.engine-bar { display: grid; grid-template-columns: 120px 1fr 60px; align-items: center; gap: 1rem; }
.engine-name { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-dim); }
.bar-track { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 1.5s ease; }
.bar-val { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; text-align: right; }
.gap-list { list-style: none; margin-top: 2rem; }
.gap-item { display: flex; gap: 0.75rem; padding: 1rem; background: var(--bg-3); border-radius: 8px; margin-bottom: 0.75rem; border-left: 3px solid var(--danger); }
.gap-sev { font-family: var(--font-mono); font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 600; flex-shrink: 0; }
.gap-critical { background: rgba(248,113,113,0.2); color: var(--danger); }
.gap-warning { background: rgba(251,191,36,0.2); color: var(--warn); }
.gap-info { background: rgba(34,211,238,0.2); color: var(--accent); }
.gap-text h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.gap-text p { font-size: 0.85rem; color: var(--text-dim); }
.email-cta { margin-top: 2rem; padding: 2rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 12px; text-align: center; color: var(--bg); }
.email-cta h3 { color: var(--bg); margin-bottom: 0.5rem; }
.email-cta p { color: rgba(10,14,26,0.8); font-size: 0.9rem; margin-bottom: 1rem; }
.email-form { display: flex; gap: 0.5rem; max-width: 400px; margin: 0 auto; }
.email-form input { flex: 1; padding: 0.7rem 1rem; border-radius: 6px; border: none; font-size: 0.9rem; }
.email-form button { padding: 0.7rem 1.5rem; background: var(--bg); color: var(--accent); border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.9rem; }

/* ========================================
   CASE STUDIES
   ======================================== */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.case-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.3s; }
.case-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.case-img { height: 240px; background: var(--bg-3); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.case-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2), transparent); }
.case-badge { position: absolute; top: 1.5rem; left: 1.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); background: rgba(34,211,238,0.1); padding: 0.3rem 0.8rem; border-radius: 100px; border: 1px solid rgba(34,211,238,0.3); z-index: 2; }
.case-content { padding: 2rem; }
.case-content h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.case-content p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.5rem; }
.case-stats { display: flex; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.case-stat-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--success); }
.case-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ========================================
   STORY / ABOUT
   ======================================== */
.story-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.story-content p { margin-bottom: 1.5rem; color: var(--text-dim); font-size: 1.1rem; }
.story-visual { background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; padding: 3rem; text-align: center; position: relative; }
.quote { font-size: 1.5rem; font-weight: 500; font-style: italic; margin-bottom: 1.5rem; color: var(--text); }
.quote-author { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent); }

/* ========================================
   BLOG
   ======================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.blog-img { height: 180px; background: var(--bg-3); position: relative; overflow: hidden; }
.blog-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); margin-bottom: 0.75rem; text-transform: uppercase; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; line-height: 1.3; }
.blog-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; flex: 1; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); padding-top: 1rem; border-top: 1px solid var(--border); }
.blog-card a { text-decoration: none; color: inherit; }

.featured-post { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; padding: 3rem; margin-bottom: 4rem; align-items: center; }
.featured-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.featured-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--success); margin-bottom: 1rem; padding: 0.2rem 0.6rem; background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); border-radius: 4px; }

/* ========================================
   CONTACT
   ======================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-info h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-dim); margin-bottom: 2rem; font-size: 1.1rem; }
.contact-list { list-style: none; margin-bottom: 3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-icon { width: 40px; height: 40px; background: rgba(34,211,238,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact-list h4 { font-size: 0.9rem; color: var(--text); }
.contact-list p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0; }
.contact-form { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; }

/* ========================================
   FOOTER
   ======================================== */
.footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-dim); margin-top: 1rem; max-width: 300px; font-size: 0.9rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; gap: 1rem; }

/* ========================================
   404 PAGE
   ======================================== */
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 2rem; }
.error-code { font-family: var(--font-mono); font-size: 8rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.error-message { font-size: 1.5rem; color: var(--text-dim); margin-bottom: 2rem; max-width: 400px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .hero-grid,
  .problem-grid,
  .services-grid,
  .process-steps,
  .service-body,
  .case-grid,
  .story-grid,
  .featured-post,
  .contact-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .hero { padding: calc(var(--nav-height) + 40px) 0 60px; }
  section { padding: 60px 0; }
  .cta-banner { padding: 2rem; }
  .terminal { font-size: 0.75rem; padding: 1rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .engine-bar { grid-template-columns: 80px 1fr 40px; }
  .contact-form { padding: 1.5rem; }
  .audit-card { padding: 1.5rem; }
  .service-detail { padding: 1.5rem; }
}

/* ========================================
   UTILITIES
   ======================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }