:root {
  --navy: #09253d;
  --navy-dark: #061a2b;
  --sky: #22b7ed;
  --blue: #0878b9;
  --cream: #fff5dc;
  --yellow: #ffd43b;
  --coral: #ff765f;
  --green: #61d486;
  --white: #fff;
  --shadow: 0 7px 0 rgba(6, 26, 43, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1rem;
  overflow-x: hidden;
}

a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-shell { min-height: 100vh; }

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 5.5rem);
}

.brand { text-decoration: none; }
.brand-word,
.footer-brand {
  display: inline-block;
  color: var(--yellow);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -.12em;
  -webkit-text-stroke: 2px var(--navy);
  text-shadow: 3px 3px 0 var(--navy), 5px 5px 0 rgba(6, 26, 43, .2);
  transform: skew(-4deg) rotate(-1deg);
}

.server-status {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  color: white;
  background: rgba(6, 26, 43, .72);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: .85rem;
  font-weight: 900;
}

.status-light {
  width: .65rem;
  height: .65rem;
  background: var(--yellow);
  border: 2px solid #8f7110;
  box-shadow: 0 0 0 3px rgba(255,212,59,.2);
  border-radius: 2px;
  animation: blink 1.5s steps(2, end) infinite;
}

.hero {
  position: relative;
  min-height: min(930px, 100svh);
  display: flex;
  align-items: center;
  padding: 7rem clamp(1.25rem, 5vw, 5.5rem) 5rem;
  background: var(--sky);
  isolation: isolate;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: url("assets/habbud-rooftop.png");
  background-size: cover;
  background-position: center;
  image-rendering: auto;
  transform: scale(1.015);
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 36, 59, .9) 0%, rgba(6, 54, 83, .67) 35%, rgba(5, 36, 59, .12) 67%, rgba(5, 36, 59, .03) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--cream) 0 18px, transparent 18px 27px);
  clip-path: polygon(0 45%, 1% 45%, 1% 0, 2% 0, 2% 70%, 3% 70%, 3% 30%, 4% 30%, 4% 100%, 100% 100%, 100% 45%);
}

.hero-content {
  width: min(610px, 100%);
  color: white;
  text-shadow: 0 2px 0 rgba(6, 26, 43, .25);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.25rem;
  font-family: "Press Start 2P", monospace;
  font-size: .72rem;
  line-height: 1.6;
  letter-spacing: .04em;
}

.eyebrow span { color: var(--yellow); }

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 7.6rem);
  line-height: .84;
  letter-spacing: -.065em;
  font-weight: 900;
}

h1 span { color: var(--yellow); }

.hero-copy {
  max-width: 34rem;
  margin: 1.75rem 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  font-weight: 800;
}

.launch-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  color: var(--navy);
  background: rgba(255,255,255,.93);
  border: 3px solid var(--navy);
  border-radius: 9px;
  box-shadow: var(--shadow);
  text-shadow: none;
}

.launch-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 6px;
  font-size: 1.5rem;
}

.launch-card p { margin: 0; }
.launch-label { font-family: "Press Start 2P", monospace; font-size: .6rem; color: var(--blue); }
.launch-title { margin-top: .3rem !important; font-size: 1.1rem; font-weight: 900; }
.launch-note { color: #476176; font-size: .88rem; font-weight: 800; }

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1rem .95rem 1.3rem;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 7px;
  box-shadow: 0 6px 0 var(--navy);
  text-decoration: none;
  text-shadow: none;
  font-weight: 900;
  transition: transform .15s ease, box-shadow .15s ease;
}

.primary-button:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--navy); }
.primary-button:focus-visible { outline: 4px solid white; outline-offset: 3px; }
.button-arrow { display: grid; place-items: center; width: 2rem; height: 2rem; color: white; background: var(--navy); border-radius: 4px; }

.sky-decor { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.spark { position: absolute; color: var(--yellow); font-family: monospace; font-size: 2rem; text-shadow: 2px 2px 0 var(--navy); animation: float 3s ease-in-out infinite; }
.spark-one { top: 22%; left: 48%; }
.spark-two { top: 13%; left: 42%; animation-delay: -1.3s; }

.intro { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5.5rem); background: var(--cream); }
.intro-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin: 0 auto 3rem; max-width: 1240px; }
.section-kicker { color: var(--blue); }
.intro h2 { margin: 0; font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: .95; letter-spacing: -.055em; font-weight: 900; text-align: right; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; max-width: 1240px; margin: 0 auto; }
.feature-card { position: relative; min-height: 310px; padding: 2rem; border: 3px solid var(--navy); border-radius: 9px; box-shadow: var(--shadow); overflow: hidden; }
.feature-yellow { background: var(--yellow); }
.feature-coral { background: var(--coral); }
.feature-green { background: var(--green); }
.feature-number { position: absolute; top: 1.5rem; right: 1.5rem; font-family: "Press Start 2P", monospace; font-size: .7rem; opacity: .5; }
.pixel-icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 3.75rem; color: white; background: var(--navy); border-radius: 6px; box-shadow: 5px 5px 0 rgba(255,255,255,.55); font-size: 2rem; }
.feature-card h3 { margin: 0 0 .65rem; font-size: 1.5rem; font-weight: 900; }
.feature-card p { margin: 0; max-width: 24rem; line-height: 1.55; font-weight: 800; }

footer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem 2rem; padding: 2.5rem clamp(1.25rem, 5vw, 5.5rem); color: white; background: var(--navy-dark); }
.footer-brand { font-size: 1rem; -webkit-text-stroke-width: 1px; text-shadow: 2px 2px 0 #000; text-decoration: none; }
footer p { margin: 0; font-size: .9rem; }
.legal { grid-column: 2; color: #a9bfd0; font-size: .76rem; font-weight: 700; }

@keyframes blink { 50% { opacity: .4; } }
@keyframes float { 50% { transform: translateY(-8px) rotate(10deg); } }

@media (max-width: 800px) {
  .topbar { align-items: flex-start; }
  .server-status span:last-child { display: none; }
  .server-status { padding: .65rem; }
  .hero { min-height: 900px; align-items: flex-end; padding-bottom: 4.5rem; }
  .hero-scene { background-position: 63% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(5, 28, 46, .96) 0%, rgba(6, 45, 70, .7) 48%, rgba(6, 45, 70, .08) 80%); }
  .hero-content { width: 100%; }
  h1 { font-size: clamp(3.25rem, 14vw, 5.75rem); }
  .intro-heading { display: block; }
  .intro h2 { text-align: left; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 260px; }
  footer { grid-template-columns: 1fr; }
  .legal { grid-column: auto; }
}

@media (max-width: 430px) {
  .brand-word { font-size: 1.15rem; }
  .hero { min-height: 850px; }
  .hero-copy { font-size: 1rem; }
  .launch-card { grid-template-columns: 1fr; }
  .launch-icon { width: 3rem; height: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
