/* Core Web Services — Default Theme (permanent, spec §28.3).
   All colors are theme variables so the Theme Manager (spec §28)
   can restyle the site without touching components. */

:root {
  --midnight: #080F20;
  --deep-navy: #12264B;
  --royal-blue: #2563EB;
  --electric-blue: #3B82F6;
  --ice-white: #F1F5F9;

  --bg: var(--midnight);
  --surface: var(--deep-navy);
  --text: var(--ice-white);
  --text-muted: #9FB3D1;
  --accent: var(--electric-blue);
  --accent-strong: var(--royal-blue);
  --border: rgba(241, 245, 249, 0.12);
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
  background: rgba(8, 15, 32, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent); }
.btn-secondary { border-color: var(--border); color: var(--text); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--accent); }
.nav-cta { white-space: nowrap; }

/* Hero */
.hero {
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(60% 80% at 70% 10%, rgba(37, 99, 235, 0.25), transparent),
    var(--bg);
}
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 1rem; }
.hero-sub { color: var(--text-muted); font-size: 1.15rem; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h2 { margin-top: 0; font-size: 1.2rem; color: var(--accent); }
.card p { color: var(--text-muted); margin-bottom: 0; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav-links { display: none; } /* mobile menu arrives with portal phase */
}
