:root {
 --bg: #050816;
 --bg-soft: #0b1020;
 --text: #f9fafb;
 --muted: #9ca3af;
 --blush: #f9a8d4;
 --teal: #5eead4;
 --purple: #4c1d95;
 --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 48%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
  padding: 24px;
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
}

/* Layout container */
.container {
  max-width: 1080px;
  margin: 0 auto;
}

/* Header and nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 7, 18, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding: 8px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

/* Nav links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid transparent;
}

/* This is where blush + teal show up */
.nav-links a.active {
  background: linear-gradient(135deg, var(--blush), var(--teal));
  color: #020617;
  font-weight: 600;
}

.nav-links a:not(.active):hover {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text);
}

/* Keep hero from touching the very top */
.hero {
  padding-top: 48px;
}

/* Hero spacing */
.hero {
  padding-top: 56px;
  padding-bottom: 32px;
}

/* Grid layout for cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

/* Cards */
.card {
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.06), var(--bg-soft));
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.6);
}

.card h3 {
  margin-top: 0;
}

/* Buttons */
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blush), var(--teal));
  color: #020617;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
}

.button:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

/* Muted helper class for softer text */
.muted {
  color: var(--muted);
}

/* Small responsive tweak */
@media (max-width: 640px) {
  .hero {
    padding-top: 32px;
  }
}

/* Newsletter modal */

.newsletter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.newsletter-modal {
  max-width: 420px;
  width: 100%;
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.06), var(--bg-soft));
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.8);
  padding: 20px 18px 18px;
  position: relative;
}

.newsletter-modal h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.newsletter-modal p {
  margin-top: 0;
  margin-bottom: 10px;
}

.newsletter-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.newsletter-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: #020617;
  color: var(--text);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
}

