:root {
  --accent: #409bff;
  --sky: #8cc3ff;
  --ink: #17311f;
  --muted: #587163;
  --cream: #fbfff7;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(64, 155, 255, 0.18);
}

@font-face {
  font-family: "Titan One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/titanone/v17/mFTzWbsGxbbS_J5cQcjykw.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sky);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 45%, var(--sky) 100%);
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
.brand span {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 900;
}

p {
  margin: 0;
}

.hero,
.simple-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  flex: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(64, 155, 255, 0.24);
}

.brand span {
  font-family: "Titan One", ui-rounded, system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.wordmark span {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.game-nav {
  gap: 0.55rem;
}

.nav-home-link,
.nav-game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(64, 155, 255, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.nav-home-link {
  width: 34px;
}

.nav-home-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-game-link {
  gap: 0.35rem;
  padding: 0.3rem 0.6rem 0.3rem 0.35rem;
  font-size: 0.88rem;
}

.nav-game-link img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
}

.nav-home-link:hover,
.nav-game-link:hover {
  border-color: rgba(64, 155, 255, 0.48);
  text-decoration: none;
  background: var(--white);
}

.nav-game-link.active {
  border-color: var(--accent);
  background: rgba(64, 155, 255, 0.12);
}

.centered {
  justify-content: center;
  margin: 2rem auto 1.25rem;
}

.hero-content {
  display: block;
  max-width: none;
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(4.5rem, 12vw, 7.5rem);
  text-align: center;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
  justify-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.landing-hero {
  display: grid;
  align-content: center;
  gap: clamp(2.5rem, 8vw, 5rem);
  min-height: clamp(560px, 72vh, 780px);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  text-align: center;
}

.landing-copy {
  display: grid;
  gap: 1.3rem;
  justify-items: center;
}

.thinktwice-page h1 {
  font-size: clamp(3.6rem, 11vw, 7rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1rem;
  place-items: center;
  width: min(100%, 960px);
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: min(100%, 520px);
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(64, 155, 255, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(64, 155, 255, 0.08);
  text-align: left;
}

.project-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.project-card img {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(64, 155, 255, 0.24);
}

.project-card span {
  display: grid;
  gap: 0.25rem;
}

.project-card strong {
  font-family: "Titan One", ui-rounded, system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.project-card small {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-weight: 900;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(64, 155, 255, 0.26);
}

.secondary {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.74);
}

.play-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--white);
}

.play-badge svg {
  width: 18px;
  height: 18px;
}

.play-blue {
  fill: #3bccff;
}

.play-green {
  fill: #00d084;
}

.play-yellow {
  fill: #ffce45;
}

.play-red {
  fill: #ff5a5f;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 0 2.5rem;
}

.features article,
.panel,
.policy {
  border: 1px solid rgba(64, 155, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(64, 155, 255, 0.08);
}

.features article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  padding: 1.35rem;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  grid-row: span 2;
  align-self: center;
  width: 58px;
  height: 58px;
  color: var(--accent);
}

.feature-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features p,
.policy p,
.policy li,
.panel p {
  color: var(--muted);
}

.simple-page {
  padding-bottom: 3rem;
}

.policy {
  max-width: 840px;
  margin: 1rem auto 0;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.policy h1 {
  max-width: none;
  margin: 0.35rem 0 1.5rem;
  font-size: clamp(2.35rem, 6vw, 4.2rem);
  letter-spacing: 0;
}

.policy h2 {
  margin-top: 2rem;
}

.policy h3 {
  margin: 1.4rem 0 0.35rem;
  font-size: 1.05rem;
}

.policy p + p,
.policy ul + p,
.policy p + ul {
  margin-top: 0.85rem;
}

.policy ul {
  padding-left: 1.3rem;
}

.panel {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.panel h1 {
  max-width: none;
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
}

.panel .button {
  margin-top: 1.5rem;
}

.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: clamp(1rem, 5vh, 4rem) auto 0;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.site-footer div {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero-content,
  .features {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
    padding-top: 1rem;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }
}

@media (max-width: 520px) {
  .hero,
  .simple-page,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-nav,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .actions,
  .button {
    width: 100%;
  }

  .project-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
