:root {
  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --deep-ink: #17202A;
  --data-blue: #2F6B8F;
  --signal-green: #3D7A5F;
  --warm-sand: #D8C5A3;
  --grid-line: #D8E0DD;
  --alert-amber: #C48A3A;
  --muted: #65706C;
  --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1200px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--deep-ink);
  line-height: 1.6;
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.surface-wrapper {
  background-color: rgba(245, 247, 246, 0.9);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--deep-ink);
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; border-bottom: 1px solid var(--grid-line); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--deep-ink); }
.muted-text { color: var(--muted); font-size: 0.95rem; }

a {
  color: var(--data-blue);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--deep-ink); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--grid-line);
  background-color: var(--surface);
}

/* Header & Nav */
header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--grid-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-ink);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--deep-ink);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--deep-ink);
}

/* Hero Section */
.hero {
  background-color: var(--surface);
  padding: 6rem 0;
  border-bottom: 1px solid var(--grid-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--deep-ink);
  color: var(--surface);
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  border: 1px solid var(--deep-ink);
  cursor: pointer;
}
.btn:hover {
  background-color: var(--surface);
  color: var(--deep-ink);
}
.btn-secondary {
  background-color: var(--surface);
  color: var(--deep-ink);
}
.btn-secondary:hover {
  background-color: var(--grid-line);
}

/* Service Finder / Grid Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  border: 1px solid var(--grid-line);
  background-color: var(--surface);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--data-blue);
  box-shadow: 0 4px 12px rgba(23, 32, 42, 0.05);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--data-blue);
}

/* Maturity Map */
.maturity-map {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.maturity-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--grid-line);
  background-color: var(--surface);
}

.step-number {
  background-color: var(--bg);
  color: var(--muted);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid var(--grid-line);
}

/* Dashboard Wireframe */
.dashboard-wireframe {
  border: 1px solid var(--grid-line);
  padding: 2rem;
  background-color: var(--bg);
  margin: 2rem 0;
}
.dw-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.dw-kpi {
  border: 1px solid var(--grid-line);
  background: var(--surface);
  padding: 1rem;
  height: 80px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}
.dw-kpi-title { font-size: 0.8rem; color: var(--muted); text-transform: uppercase;}
.dw-kpi-line { width: 60%; height: 8px; background: var(--grid-line); margin-top: 0.5rem; }
.dw-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.dw-chart { border: 1px solid var(--grid-line); background: var(--surface); height: 200px; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:0.9rem;}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--grid-line);
  background-color: var(--bg);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--data-blue);
}

/* Footer */
footer {
  background-color: var(--deep-ink);
  color: var(--surface);
  padding: 4rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--surface);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.8rem;
}
.footer-col a {
  color: var(--muted);
}
.footer-col a:hover {
  color: var(--surface);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  border-top: 1px solid var(--grid-line);
  padding: 1.5rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}
.cookie-actions {
  display: flex;
  gap: 1rem;
}
.cookie-btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  border: 1px solid var(--deep-ink);
  cursor: pointer;
  background: var(--surface);
  color: var(--deep-ink);
}
.cookie-btn.primary {
  background: var(--deep-ink);
  color: var(--surface);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .container { padding: 0 1.5rem; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .mobile-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--grid-line);
    display: none;
  }
  .nav-links.active { display: flex; }
  .nav-links li { border-top: 1px solid var(--grid-line); }
  .nav-links a { display: block; padding: 1.5rem; }
  
  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .cookie-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .dw-header { grid-template-columns: 1fr; }
  .dw-body { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}