:root {
  color-scheme: dark;
  --bg: #020204;
  --ink: #f8fafc;
  --muted: #b8c1d2;
  --dim: #7d8798;
  --panel: rgba(15, 18, 27, 0.86);
  --panel-solid: #111827;
  --panel-raised: #171f2f;
  --line: rgba(255, 255, 255, 0.13);
  --line-red: rgba(255, 49, 49, 0.34);
  --red: #ff3131;
  --red-dark: #9d0707;
  --red-soft: #ff8078;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    linear-gradient(180deg, rgba(2, 2, 4, 0.22), rgba(2, 2, 4, 0.9) 62%, #020204),
    url("/assets/vein-game-bg.webp") center top / cover fixed,
    #020204;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 17%, rgba(255, 49, 49, 0.2), transparent 26%),
    radial-gradient(circle at 12% 72%, rgba(255, 49, 49, 0.14), transparent 28%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(0, 0, 0, 0.48);
  background-size: 58px 58px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 72px);
  background: rgba(4, 7, 12, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(255, 49, 49, 0.45);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--red-soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav,
.auth-actions {
  display: flex;
  align-items: center;
}

.site-nav {
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.site-nav a {
  color: #d6deec;
  font-size: 0.86rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: #fff;
}

.auth-actions {
  justify-content: flex-end;
  gap: 10px;
}

.login-link,
.register-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
}

.login-link {
  padding: 0 14px;
  color: #d6deec;
}

.register-link,
.primary-action {
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff3131, #a90707);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(255, 49, 49, 0.28);
}

.secondary-action {
  padding: 0 18px;
  color: #f8fafc;
  background: rgba(15, 18, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d6deec;
  background: rgba(17, 24, 39, 0.74);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

main {
  overflow: hidden;
}

.hero-landing {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  width: min(1260px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 104px) 0 clamp(48px, 7vw, 82px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.feature-grid small {
  margin: 0 0 12px;
  color: var(--red-soft);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lede,
.section-heading p,
.showcase-copy p,
.auth-preview p {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.62;
}

.hero-lede {
  max-width: 650px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .primary-action,
.hero-actions .secondary-action {
  min-width: 158px;
}

.hero-panel {
  position: relative;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line-red);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(3, 5, 9, 0.92)),
    url("/assets/vein-shell-logo.png") center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 49, 49, 0.14), transparent 32%),
    rgba(0, 0, 0, 0.36);
}

.hero-panel > * {
  position: relative;
}

.hero-logo {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: auto;
  box-shadow: 0 0 42px rgba(255, 49, 49, 0.58);
}

.panel-status {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.78rem;
  font-weight: 900;
}

.panel-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 49, 49, 0.9);
}

.hero-panel h2 {
  max-width: 440px;
  color: #fff;
  font-size: clamp(1.72rem, 3vw, 2.6rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.launch-grid a {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 24, 39, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
}

.stat-strip,
.section-heading,
.feature-grid,
.showcase-section,
.auth-preview,
.landing-footer {
  width: min(1260px, calc(100% - 36px));
  margin-inline: auto;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 70px;
}

.stat-strip article {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255, 49, 49, 0.22);
  border-radius: 10px;
  background: rgba(8, 12, 20, 0.76);
}

.stat-strip strong {
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.stat-strip span {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2,
.showcase-copy h2,
.auth-preview h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p {
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 90px;
}

.feature-grid article {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 49, 49, 0.2);
  border-radius: 12px;
  background: rgba(12, 17, 26, 0.88);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-grid div {
  padding: 22px;
}

.feature-grid h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-grid p {
  margin-top: 14px;
  color: #aeb9cc;
  line-height: 1.58;
}

.showcase-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
  padding: 36px;
  border: 1px solid rgba(255, 49, 49, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 49, 49, 0.11), transparent 34%),
    rgba(8, 12, 20, 0.88);
}

.showcase-copy p {
  margin-top: 18px;
}

.showcase-copy .secondary-action {
  margin-top: 24px;
}

.map-preview {
  margin: 0;
}

.map-preview img {
  width: 100%;
  border: 1px solid rgba(255, 49, 49, 0.26);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.auth-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  margin-bottom: 56px;
  padding: 24px;
  border: 1px solid rgba(255, 49, 49, 0.26);
  border-radius: 14px;
  background: rgba(16, 22, 34, 0.92);
}

.auth-preview img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 34px rgba(255, 49, 49, 0.44);
}

.auth-preview p:not(.eyebrow) {
  margin-top: 12px;
  font-size: 1rem;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 34px;
  color: var(--dim);
}

.landing-footer span {
  color: #fff;
  font-weight: 900;
}

.landing-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .landing-header {
    grid-template-columns: auto auto auto;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(7, 10, 18, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: rgba(255, 49, 49, 0.13);
  }

  .auth-actions {
    grid-column: 3;
  }

  .hero-landing,
  .showcase-section {
    grid-template-columns: 1fr;
  }

  .hero-landing {
    min-height: auto;
  }

  .hero-panel {
    min-height: 420px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
  }

  .feature-grid img {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 760px) {
  .landing-header {
    min-height: 68px;
    grid-template-columns: auto auto;
    gap: 10px;
    padding: 12px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .menu-button {
    justify-self: end;
  }

  .auth-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 8px;
  }

  .login-link,
  .register-link {
    flex: 1;
  }

  .hero-landing,
  .stat-strip,
  .section-heading,
  .feature-grid,
  .showcase-section,
  .auth-preview,
  .landing-footer {
    width: min(100% - 24px, 1260px);
  }

  .hero-landing {
    padding-top: 46px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 360px;
    padding: 20px;
  }

  .hero-logo {
    width: 84px;
    height: 84px;
  }

  .launch-grid,
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip {
    padding-bottom: 52px;
  }

  .feature-grid {
    padding-bottom: 56px;
  }

  .feature-grid img {
    aspect-ratio: 16 / 10;
  }

  .showcase-section,
  .auth-preview {
    padding: 20px;
  }

  .auth-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .auth-preview img {
    margin-inline: auto;
  }

  .landing-footer {
    display: grid;
  }

  .landing-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .launch-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .site-nav {
    left: 12px;
    right: 12px;
  }
}
