@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy: #0b2a4a;
  --navy-deep: #081d35;
  --charcoal: #161b24;
  --cyan: #4fe3e8;
  --cyan-dim: #2fa8ad;
  --amber: #ffb648;
  --fog: #e7ebf0;
  --fog-dim: #a9b4c2;
  --brick: #1f2630;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--fog);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  color: #fff;
}

p { margin: 0 0 1rem; max-width: 62ch; color: var(--fog-dim); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 29, 53, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(79, 227, 232, 0.14);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: block;
}

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

.navlinks {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}

.navlinks a { color: var(--fog); }
.navlinks a:hover { color: var(--cyan); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 108px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(79,227,232,0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(255,182,72,0.08), transparent 60%),
    var(--navy-deep);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 64px);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cyan);
  text-shadow:
    0 0 10px rgba(79,227,232,0.55),
    0 0 28px rgba(79,227,232,0.25);
  animation: flicker 2.4s ease-in-out 0.2s 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; }
}

@keyframes flicker {
  0% { opacity: 0; }
  6% { opacity: 1; }
  8% { opacity: 0.4; }
  10% { opacity: 1; }
  28% { opacity: 1; }
  30% { opacity: 0.6; }
  32% { opacity: 1; }
  100% { opacity: 1; }
}

.hero .tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--amber);
  margin-top: 10px;
  text-shadow: 0 0 16px rgba(255,182,72,0.35);
}

.hero .lede {
  margin-top: 22px;
  font-size: 1.08rem;
  max-width: 54ch;
  color: var(--fog);
}

/* ---------- Featured doorway ---------- */

.featured {
  position: relative;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(79,227,232,0.22);
  background: var(--charcoal);
}

.featured-art {
  background:
    radial-gradient(ellipse at 50% 30%, #ffe3f3 0%, #bfe9ff 55%, #9fd8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  position: relative;
  min-height: 260px;
}

.featured-art img.wordmark {
  max-width: 78%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
}

.featured-art .mascot {
  position: absolute;
  width: 92px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18));
}

.featured-art .mascot.one { left: 6%; bottom: 8%; transform: rotate(-6deg); }
.featured-art .mascot.two { right: 8%; bottom: 10%; width: 78px; transform: rotate(5deg); }

.featured-copy {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--amber);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.featured-copy h2 { font-size: 1.6rem; color: #fff; margin-bottom: 10px; }
.featured-copy p { color: var(--fog-dim); margin-bottom: 20px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  width: fit-content;
}

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

.btn-cyan {
  background: var(--cyan);
  color: var(--navy-deep);
}
.btn-cyan:hover { background: #71ecef; }

.btn-ghost {
  background: transparent;
  color: var(--fog);
  border-color: rgba(231,235,240,0.3);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Section heading ---------- */

.section { padding: 86px 0; }

.section-head { max-width: 58ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.section-head p { color: var(--fog-dim); }

/* ---------- Doors grid ---------- */

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.door {
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.door-game {
  background: linear-gradient(160deg, #2a1f3d 0%, var(--charcoal) 60%);
  border-color: rgba(255,182,72,0.22);
}

.door-tool {
  background: var(--brick);
}

.door-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.door-game .door-icon { background: rgba(255,182,72,0.14); }
.door-tool .door-icon { background: rgba(79,227,232,0.14); }

.door-icon svg { width: 26px; height: 26px; }

.door h3 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.door .status { font-size: 0.82rem; color: var(--amber); font-weight: 600; margin-bottom: 14px; }
.door-tool .status { color: var(--cyan); }
.door p { flex-grow: 1; color: var(--fog-dim); }

/* ---------- Flyer / about ---------- */

.flyer {
  background: var(--charcoal);
  border: 1px dashed rgba(231,235,240,0.25);
  border-radius: 16px;
  padding: 44px;
  position: relative;
}

.flyer::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 40px;
  width: 36px;
  height: 16px;
  background: rgba(255,182,72,0.65);
  transform: rotate(-4deg);
  border-radius: 2px;
}

.flyer h2 { font-size: 1.5rem; margin-bottom: 14px; }
.flyer p { color: var(--fog-dim); max-width: 66ch; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 36px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer p { margin: 0; color: var(--fog-dim); font-size: 0.9rem; }

.footlinks { display: flex; gap: 20px; font-size: 0.9rem; }

/* ---------- Simple pages (privacy policy etc) ---------- */

.doc {
  padding: 72px 0 100px;
}

.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; color: var(--cyan); }
.doc .updated { color: var(--fog-dim); font-size: 0.9rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 12px; color: #fff; }
.doc p, .doc li { color: var(--fog-dim); max-width: 72ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .navlinks { gap: 18px; font-size: 0.88rem; }
}

@media (max-width: 560px) {
  .nav .wrap { height: 60px; }
  .hero { padding: 70px 0 60px; }
  .featured-copy { padding: 28px 24px; }
  .section { padding: 60px 0; }
  .flyer { padding: 30px 24px; }
}
