
html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  overflow-y: hidden;
}

.modal {
  overflow-y: auto;
}


:root {
  color-scheme: dark;
  --bg: #02070d;
  --panel: rgba(5, 20, 34, .78);
  --navy: #062d4f;
  --red: #f10a21;
  --text: #f7f9fb;
  --muted: #9eabb8;
  --line: rgba(255,255,255,.12);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, rgba(8,56,94,.34), transparent 32rem),
    linear-gradient(180deg, #030a11 0%, #010407 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .01em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero {
  position: relative;
  width: min(100% - 36px, 880px);
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 54px 0 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.logo-stage {
  position: relative;
  width: min(620px, 91vw);
  display: grid;
  place-items: center;
}
.logo-red-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  opacity: .48;
  filter: blur(24px);
  transform: scale(1.015);
  animation: sm2-red-logo-glow 4.2s ease-in-out 1.1s infinite;
}
.logo {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.55));
}
.intro { margin-top: -20px; }
h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .18em;
  text-indent: .18em;
}
.tagline {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: clamp(.98rem, 2vw, 1.08rem);
}
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.links a, .nav-button, .report-button {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  background: rgba(255,255,255,.035);
  font-family: inherit;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.links a:hover, .links a:focus-visible, .nav-button:hover, .nav-button:focus-visible, .report-button:hover, .report-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241,10,33,.72);
  background: rgba(241,10,33,.09);
  outline: none;
}
.about-card,
.bug-card {
  width: min(100%, 620px);
  margin-top: 52px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(7,30,50,.78), rgba(3,14,24,.82));
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.eyebrow {
  color: var(--red);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .22em;
}
h2 { margin: 7px 0 7px; font-size: 1.55rem; }
.email { color: #fff; font-weight: 750; text-underline-offset: 4px; }
.about-card p,
.bug-card p {
  max-width: 500px;
  margin: 17px auto 22px;
  color: var(--muted);
  line-height: 1.65;
  font-size: .93rem;
}
.about-card strong, .bug-card strong { color: var(--text); }
.about-card {
  width: min(100%, 700px);
  margin-top: 48px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(7,30,50,.62), rgba(3,14,24,.72));
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy);
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  scroll-margin-top: 28px;
}
.about-card p { max-width: 640px; margin-bottom: 0; }
.report-button {
  display: inline-block;
  border-color: rgba(241,10,33,.6);
  background: linear-gradient(180deg, rgba(241,10,33,.20), rgba(241,10,33,.09));
}
footer {
  min-height: 78px;
  padding: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #657382;
  border-top: 1px solid rgba(255,255,255,.055);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dot { color: var(--red); }
@media (max-width: 560px) {
  .hero { padding-top: 30px; min-height: auto; }
  .intro { margin-top: -5px; }
  .about-card,
.about-card, .bug-card { margin-top: 38px; padding: 24px 18px; }
  .links { width: 100%; }
  .links a { flex: 1 1 135px; }
  footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


body.modal-open { overflow: hidden; }
.nav-button { appearance: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 3, 7, .76);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity .22s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.is-open { opacity: 1; }
.about-modal {
  position: relative;
  width: min(700px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  padding: 34px 34px 30px;
  text-align: left;
  background: linear-gradient(180deg, rgba(7,30,50,.98), rgba(3,14,24,.99));
  border: 1px solid rgba(255,255,255,.14);
  border-top: 2px solid var(--red);
  border-radius: 14px;
  box-shadow: 0 30px 100px rgba(0,0,0,.7), 0 0 55px rgba(241,10,33,.09);
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.modal-backdrop.is-open .about-modal { transform: translateY(0) scale(1); opacity: 1; }
.about-modal h2 { margin-right: 38px; }
.about-modal p { margin: 18px 0 0; color: var(--muted); line-height: 1.72; font-size: .96rem; }
.about-modal strong { color: var(--text); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.modal-close:hover, .modal-close:focus-visible {
  border-color: rgba(241,10,33,.72);
  background: rgba(241,10,33,.10);
  transform: scale(1.04);
  outline: none;
}
@media (max-width: 560px) {
  .links .nav-button { flex: 1 1 135px; }
  .about-modal { padding: 30px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .about-modal { transition: none !important; }
}

/* Landing-page motion */
@keyframes sm2-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sm2-logo-enter {
  from { opacity: 0; transform: translateY(20px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sm2-red-logo-glow {
  0%, 100% {
    opacity: .34;
    filter: blur(22px);
    transform: scale(1.01);
  }
  50% {
    opacity: .82;
    filter: blur(30px);
    transform: scale(1.035);
  }
}

.logo {
  opacity: 0;
  animation: sm2-logo-enter .8s cubic-bezier(.2,.8,.2,1) .08s forwards;
}
.intro h1,
.intro .tagline,
.links,
.bug-card,
footer {
  opacity: 0;
  animation: sm2-enter .65s cubic-bezier(.2,.8,.2,1) forwards;
}
.intro h1 { animation-delay: .38s; }
.intro .tagline { animation-delay: .52s; }
.links { animation-delay: .66s; }
.bug-card { animation-delay: .82s; }
footer { animation-delay: .96s; }

.links a, .nav-button, .report-button {
  transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s ease,
              background .18s ease, box-shadow .18s ease;
}
.links a:hover, .links a:focus-visible,
.nav-button:hover, .nav-button:focus-visible,
.report-button:hover, .report-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(241,10,33,.13), 0 0 18px rgba(241,10,33,.08);
}
.links a:active, .nav-button:active, .report-button:active {
  transform: translateY(-1px) scale(.985);
}

@media (prefers-reduced-motion: reduce) {
  .logo-red-glow, .logo, .intro h1, .intro .tagline, .links, .bug-card, footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
