:root {
  --ink: #f5fbf8;
  --muted: #bedce4;
  --deep: #031116;
  --panel: rgba(4, 24, 32, 0.74);
  --panel-strong: rgba(4, 27, 37, 0.92);
  --line: rgba(184, 245, 255, 0.18);
  --leaf: #3ad6e6;
  --dew: #a4f4ff;
  --gold: #66e3ff;
  --coral: #4ebcff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --hero-image: url("assets/dewlight-horizon-hero-no-logo.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--deep);
  font-family: Inter, system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 17, 22, 0.08), rgba(3, 17, 22, 0.95) 78%),
    radial-gradient(circle at 8% 18%, rgba(102, 227, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 26%, rgba(58, 214, 230, 0.18), transparent 26%);
  z-index: 0;
}

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

.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;
}

.spark-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.82;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: #6f472a;
  border-bottom: 1px solid rgba(255, 229, 188, 0.22);
  box-shadow: 0 10px 28px rgba(20, 8, 2, 0.22);
}

.header-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 30px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(245, 251, 248, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(3, 17, 22, 0.5);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(245, 251, 248, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 251, 248, 0.2);
  border-radius: 50%;
  color: rgba(245, 251, 248, 0.88);
  background: rgba(3, 17, 22, 0.44);
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-links a:hover {
  color: #031116;
  border-color: rgba(164, 244, 255, 0.78);
  background: var(--dew);
}


.site-toast {
  position: fixed;
  top: 86px;
  right: clamp(14px, 4vw, 42px);
  z-index: 10;
  max-width: min(320px, calc(100% - 28px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 229, 188, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(23, 26, 33, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main,
footer {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 14, 19, 0.48), rgba(3, 14, 19, 0.02) 54%, rgba(3, 14, 19, 0.08)),
    linear-gradient(0deg, rgba(3, 17, 22, 0.68), rgba(3, 17, 22, 0) 44%, rgba(3, 17, 22, 0.06));
}

.hero-content {
  width: min(720px, calc(100% - 36px));
  margin: 0 0 clamp(54px, 9vh, 92px) clamp(18px, 7vw, 92px);
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(4rem, 11vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 14px 48px rgba(0, 0, 0, 0.44);
}

.hero-logo {
  width: min(760px, 90vw);
  margin-bottom: 22px;
  filter: drop-shadow(0 3px 3px rgba(3, 17, 22, 0.55)) drop-shadow(0 16px 24px rgba(3, 17, 22, 0.46));
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

h2 {
  margin-bottom: 18px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.05rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.hero-copy,
.wishlist p,
article p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-copy {
  max-width: 560px;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  color: #031116;
  background: linear-gradient(135deg, var(--dew), var(--gold));
  box-shadow: 0 18px 42px rgba(102, 227, 255, 0.24);
}

.steam-cta {
  min-height: 86px;
  gap: 22px;
  padding: 0 32px 0 36px;
  color: #ffffff;
  background: #171a21;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  font-size: 1.8rem;
  white-space: nowrap;
}

.steam-cta img {
  width: auto;
  height: 47px;
  max-width: 245px;
  object-fit: contain;
}

.secondary {
  color: var(--ink);
  background: rgba(245, 251, 248, 0.09);
  border-color: rgba(245, 251, 248, 0.22);
  backdrop-filter: blur(14px);
}

footer {
  color: rgba(245, 251, 248, 0.52);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 11vw, 132px) 0 0;
}

.intro {
  width: min(920px, calc(100% - 36px));
}

.intro-copy {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.26rem, 2.6vw, 2rem);
  line-height: 1.55;
  text-align: center;
}

.feature-showcase {
  display: grid;
  gap: 14px;
}

.feature-story,
.trailer,
.signup-embed {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-showcase {
  gap: clamp(26px, 5vw, 58px);
}

.feature-story {
  --feature-accent: var(--dew);
  --feature-glow: rgba(164, 244, 255, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(16px, 2.4vw, 24px);
  border-color: color-mix(in srgb, var(--feature-accent) 38%, transparent);
  background:
    radial-gradient(circle at 12% 18%, var(--feature-glow), transparent 34%),
    var(--panel);
}

.feature-story:nth-child(2) {
  --feature-accent: #f0ca75;
  --feature-glow: rgba(240, 202, 117, 0.15);
}

.feature-story:nth-child(3) {
  --feature-accent: #78d16f;
  --feature-glow: rgba(120, 209, 111, 0.14);
}

.feature-story:nth-child(4) {
  --feature-accent: #d9a7ff;
  --feature-glow: rgba(217, 167, 255, 0.14);
}

.feature-story:nth-child(even) {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.feature-story:nth-child(even) img {
  order: 2;
}

.feature-story img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--feature-accent) 46%, rgba(245, 251, 248, 0.12));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.feature-story div {
  padding: clamp(4px, 1vw, 10px);
}

.feature-story h3 {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.65rem, 3.2vw, 3rem);
  line-height: 1.04;
  color: var(--feature-accent);
}

.feature-story p {
  max-width: 560px;
}

.media {
  display: block;
}

.trailer {
  aspect-ratio: 16 / 9;
  min-height: 360px;
  overflow: hidden;
  background: #020b0f;
}

.trailer iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.wishlist {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  padding-bottom: clamp(84px, 12vw, 140px);
}

.signup-embed {
  padding: 18px;
  background: var(--panel-strong);
}

.signup-embed iframe {
  width: 100%;
  max-width: 540px;
  min-height: 305px;
  border: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #020b0f;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .header-links {
    position: relative;
    flex: 0 0 auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-links nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    min-width: 190px;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(245, 251, 248, 0.18);
    border-radius: 8px;
    background: rgba(3, 17, 22, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .header-links nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-links nav a {
    padding: 12px 14px;
    border-radius: 6px;
  }

  .header-links nav a:hover {
    background: rgba(164, 244, 255, 0.12);
  }

  .feature-story,
  .media,
  .wishlist {
    grid-template-columns: 1fr;
  }

  .feature-story:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature-story:nth-child(even) img {
    order: 0;
  }

  .feature-story {
    padding: 16px;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
  }

  .social-links {
    gap: 6px;
  }

  .social-links a {
    width: 34px;
    height: 34px;
  }

  .social-links svg {
    width: 16px;
    height: 16px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    margin: 0 auto 58px;
  }

  .hero-logo {
    width: min(100%, 560px);
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .hero-content {
    width: calc(100% - 24px);
    margin-bottom: 42px;
  }

  .hero-logo {
    width: 100%;
    margin-bottom: 16px;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
    margin-top: 24px;
  }

  .steam-cta {
    width: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    padding: 16px 14px;
    font-size: 1.22rem;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .steam-cta img {
    height: 36px;
    max-width: min(210px, 100%);
  }

  .trailer {
    min-height: 0;
  }
}
