:root {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --bg-soft: #111827;
  --accent: #f97373;
  --accent-soft: rgba(249, 115, 115, 0.15);
  --accent-secondary: #fb7185;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f97373, #db2777);
  color: #0b1120;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(248, 113, 113, 0.6);
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 0.75rem;
}

.nav-link {
  position: relative;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.12s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: radial-gradient(circle at center, var(--accent), transparent);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-link:hover {
  color: var(--text);
  background-color: rgba(15, 23, 42, 0.75);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #f9fafb;
  background: radial-gradient(circle at top, #f97373, #db2777);
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-main {
  flex: 1;
  padding-block: 2.5rem 3.5rem;
}

.hero {
  padding-block: 1.5rem 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2.25rem, 3vw + 1.5rem, 3.3rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.hero-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn.primary {
  background: radial-gradient(circle at top left, #f97373, #db2777);
  color: #0b1120;
  box-shadow: 0 15px 40px rgba(248, 113, 113, 0.7);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(248, 113, 113, 0.9);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
}

.btn.ghost:hover {
  border-color: rgba(248, 113, 113, 0.9);
  background: rgba(15, 23, 42, 0.95);
}

.hero-card {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(circle at 0% 0%, rgba(248, 113, 113, 0.16), transparent 55%),
    radial-gradient(circle at 120% -10%, rgba(219, 39, 119, 0.18), transparent
          45%);
  opacity: 0.85;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: flex-start;
}

.hero-list h3 {
  margin: 0 0 0.1rem;
  font-size: 0.98rem;
}

.hero-list p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f97373, #db2777);
  box-shadow: 0 0 0 4px var(--accent-soft);
  margin-top: 0.35rem;
}

.section {
  margin-top: 1rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.card {
  display: block;
  padding: 1.2rem 1.3rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, #020617, #020617);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.85);
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    border-color 0.12s ease, background 0.16s ease;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.card p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-cta {
  font-size: 0.85rem;
  color: var(--accent-secondary);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 113, 113, 0.85);
  background: radial-gradient(circle at top left, #020617, #020617);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 1);
}

.site-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  padding-block: 1.4rem 1.8rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

.footer-content {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-note {
  margin-top: 0.2rem;
  font-size: 0.78rem;
}

/* Pac-Man page shared layout tweaks */
.page-header {
  padding-block: 1.2rem 0.6rem;
}

.page-header h1 {
  font-size: 1.9rem;
}

.page-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-main {
  padding-block: 0.5rem 2.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

@media (max-width: 800px) {
  .header-content {
    padding-block: 0.75rem;
  }

  .nav {
    gap: 0.4rem;
  }

  .nav-link {
    padding-inline: 0.6rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 2.1rem, 560px);
  }

  .nav {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

