:root {
  /* Palette */
  --bg-1: #0e1b2e; /* Midnight Blue */
  --bg-2: #15325a; /* Alpine Dusk */
  --bg-3: #0b182b; /* Deeper blend */
  --ink: #e6f1ff; /* Light Ink */
  --muted: #9db0c9; /* Muted Slate */
  --primary: #60a5fa; /* Tech Glow Cyan */
  --accent: #7dd3fc; /* Ice Blue Glow */
  --violet: #a78bfa; /* Aurora Violet */
  --glow: rgba(125, 211, 252, 0.35);
  --container: 1100px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1000px 800px at 80% -10%, rgba(167, 139, 250, 0.22) 0%, rgba(167, 139, 250, 0) 60%),
    radial-gradient(900px 700px at 10% -20%, rgba(125, 211, 252, 0.22) 0%, rgba(125, 211, 252, 0) 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 40%, var(--bg-3) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

header.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(1.2) blur(8px);
  background: linear-gradient(180deg, rgba(14, 27, 46, 0.75), rgba(14, 27, 46, 0.4));
  border-bottom: 1px solid rgba(230, 241, 255, 0.06);
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.5rem;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: conic-gradient(from 140deg, var(--accent), var(--primary), var(--violet), var(--accent));
  box-shadow: 0 0 0 2px rgba(230, 241, 255, 0.05), 0 0 18px var(--glow);
}
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
}
nav a:hover {
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
}

.hero .backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Parallax layers */
.layer {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}
@property --x {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
.layer.mountains {
  transform: translateY(calc(var(--scroll, 0) * 0.12)) translateX(var(--x));
  animation: drift 40s ease-in-out infinite;
}
.layer.circuits {
  mix-blend-mode: screen;
  opacity: 0.85;
  transform: translateY(calc(var(--scroll, 0) * 0.05));
}
.layer.snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.9;
}
@keyframes drift {
  0% { --x: -12px; }
  50% { --x: 12px; }
  100% { --x: -12px; }
}

.hero h1 {
  font-family: Newsreader, Georgia, 'Times New Roman', serif;
  font-size: clamp(2.1rem, 4vw + 1rem, 4rem);
  line-height: 1.1;
  margin: 0 0 0.75rem 0;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.hero p.lede {
  color: var(--muted);
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.25rem);
  max-width: 60ch;
  margin: 0 0 1.35rem 0;
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  --ring: 0 0 0 0 rgba(93, 231, 255, 0);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #001118;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 28px rgba(96, 165, 250, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(96, 165, 250, 0.35), 0 0 0 6px rgba(125, 211, 252, 0.14);
}

.ghost {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.18), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: inset 0 0 18px rgba(125, 211, 252, 0.16);
}

/* Sections */
section {
  padding: 2.8rem 0;
}
section.alt {
  background: linear-gradient(180deg, rgba(21, 50, 90, 0.24), rgba(14, 27, 46, 0));
}

h2 {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.6rem, 1.2vw + 1rem, 2.1rem);
  margin: 0 0 0.6rem 0;
}
p {
  margin: 0.25rem 0 0.75rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 840px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 50, 90, 0.9), rgba(14, 27, 46, 0.95));
  border: 1px solid rgba(230, 241, 255, 0.06);
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto -20%;
  height: 160%;
  background: radial-gradient(600px 300px at 20% 20%, rgba(125, 211, 252, 0.16), rgba(125, 211, 252, 0) 60%),
    radial-gradient(400px 260px at 90% 20%, rgba(167, 139, 250, 0.22), rgba(167, 139, 250, 0) 60%);
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translateY(10px);
  transition: transform 0.6s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 14px 38px rgba(11, 24, 43, 0.65), 0 0 0 6px rgba(125, 211, 252, 0.08);
}
.card:hover::before {
  transform: translateY(0);
}

.list {
  padding-left: 1rem;
  margin: 0.5rem 0 0 0;
  color: var(--muted);
}
.list li {
  margin: 0.25rem 0;
}

.cta {
  text-align: center;
  padding: 3rem 0 3.5rem 0;
}
.cta .btn {
  font-size: 1.05rem;
}

footer {
  border-top: 1px solid rgba(230, 241, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.2rem 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative dot grid background to add texture */
.texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.2;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Accessibility tweaks */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .card,
  .btn,
  .layer {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

