:root {
  --bg: #f7f8fc;
  --text: #172033;
  --muted: #667085;
  --card: #ffffff;
  --border: #d9e0ea;
  --accent: #365cff;
  --accent-dark: #243fd0;
  --shadow: 0 20px 60px rgba(23, 32, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ===============================
   NAVIGATION (shared across pages)
================================ */

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  width: fit-content;
  max-width: calc(100% - 48px);

  margin: 28px auto 36px;
  padding: 8px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);

  box-shadow:
    0 8px 24px rgba(23, 32, 51, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  font-weight: 600;
}

nav a {
  padding: 8px 14px;
  border-radius: 999px;

  color: var(--accent);
  font-size: 0.95rem;
  text-decoration: none;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

nav a:hover {
  background: #eef2ff;
  color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(54, 92, 255, 0.16);
}

nav a:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ===============================
   HOMEPAGE
================================ */

.hero {
  min-height: 72vh;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(54, 92, 255, 0.22), transparent 34rem),
    linear-gradient(135deg, #ffffff, #eef2ff);
  border-bottom: 1px solid var(--border);
}

.hero nav {
  margin-top: 0;
}

.hero-content {
  max-width: 900px;
  margin: 120px auto 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(54, 92, 255, 0.28);
}

.button:hover {
  background: var(--accent-dark);
}

/* ===============================
   GENERAL CONTENT
================================ */

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

/* FIXED: prevents guides page overlap */

.grid.two,
.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  min-width: 0;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card a {
  color: var(--accent);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--muted);
}

/* ===============================
   SUBPAGES
================================ */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.page nav {
  margin-top: 0;
  margin-bottom: 36px;
}

.page > .card:first-of-type {
  text-align: center;
  padding: 44px;
  background:
    radial-gradient(circle at top right, rgba(54, 92, 255, 0.12), transparent 26rem),
    linear-gradient(135deg, #ffffff, #f4f6ff);
}

.page > .card:first-of-type h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.page > .card:first-of-type p:not(.eyebrow) {
  max-width: 540px;
  margin: 16px auto 0;
}

.page .card + .card {
  margin-top: 22px;
}

.page .grid {
  margin-top: 22px;
}

.page .grid .card {
  height: 100%;
}

.link-card {
  border-color: rgba(54, 92, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(54, 92, 255, 0.08), transparent 18rem),
    var(--card);
}

ul {
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  line-height: 1.8;
  list-style: none;
}

li {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f7f8fc;
  overflow-wrap: anywhere;
}

li + li {
  margin-top: 8px;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 780px) {
  nav {
    flex-wrap: wrap;
    max-width: 100%;
    border-radius: 24px;
  }

  nav a {
    padding: 8px 12px;
  }

  .hero-content {
    margin-top: 80px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .page > .card:first-of-type {
    padding: 32px;
  }
}