:root {
  color-scheme: dark;
  --bg: #07080a;
  --panel: #111318;
  --panel-2: #18141f;
  --ink: #fff8e8;
  --muted: #c6bdcf;
  --soft: #8d86a0;
  --line: #fff1bf;
  --dim-line: #4b4356;
  --gold: #f2e84d;
  --amber: #f3aa42;
  --purple: #9d55ff;
  --green: #4ee68c;
  --red: #f05267;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #11111a 0%, var(--bg) 46%, #050506 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 241, 191, 0.2);
  background: rgba(7, 8, 10, 0.76);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  image-rendering: pixelated;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav a {
  padding: 0.42rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav a.active {
  color: var(--gold);
  border-color: var(--dim-line);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-color: rgba(255, 241, 191, 0.42);
  outline: none;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 3.55rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 241, 191, 0.14);
  background: #08080b;
}

.hero-stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.94) 0%, rgba(7, 8, 10, 0.68) 44%, rgba(7, 8, 10, 0.36) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.1) 0%, rgba(7, 8, 10, 0.92) 100%),
    url("/assets/daydream-cat/screenshots/01_choose-your-first-dream.png") center / cover no-repeat;
  filter: saturate(1.08) contrast(1.04);
}

.hero-stage::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  min-height: calc(100vh - 3.55rem);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.2rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 45rem;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero-mark {
  width: clamp(3.4rem, 7vw, 5rem);
  height: clamp(3.4rem, 7vw, 5rem);
  border: 2px solid rgba(255, 241, 191, 0.8);
  border-radius: 8px;
  background: rgba(7, 8, 10, 0.78);
  box-shadow: 0 12px 34px var(--shadow);
  image-rendering: pixelated;
}

.hero-title-note {
  margin: 0;
  color: rgba(255, 248, 232, 0.8);
  font-size: 0.98rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10.5ch;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 7px 28px rgba(0, 0, 0, 0.56);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  line-height: 1.2;
}

.dek {
  max-width: 43rem;
  color: rgba(255, 248, 232, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--ink);
  color: #09090b;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.button.secondary {
  background: rgba(7, 8, 10, 0.42);
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  border-color: var(--gold);
  outline: none;
  transform: translateY(-1px);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-strip li {
  padding: 0.38rem 0.6rem;
  border: 1px solid rgba(255, 241, 191, 0.24);
  border-radius: 6px;
  background: rgba(7, 8, 10, 0.48);
  color: rgba(255, 248, 232, 0.78);
  font-size: 0.86rem;
  backdrop-filter: blur(10px);
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 241, 191, 0.24);
  border-radius: 8px;
  background: rgba(7, 8, 10, 0.55);
  backdrop-filter: blur(10px);
}

.lang-switch a {
  min-width: 4.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  background: var(--gold);
  color: #09090b;
  font-weight: 850;
}

.hero-card,
.fact-card {
  border: 2px solid rgba(255, 241, 191, 0.78);
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.88);
  box-shadow: 0 24px 70px var(--shadow), 0 0 0 6px rgba(17, 19, 24, 0.45);
}

.hero-card {
  overflow: hidden;
}

.hero-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.caption {
  margin: 0;
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.media-strip {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  padding-bottom: clamp(2.4rem, 5vw, 4.2rem);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.82fr 0.82fr;
  gap: 0.85rem;
}

.media-tile {
  position: relative;
  min-height: 13rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 241, 191, 0.24);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.media-tile img {
  width: 100%;
  height: 100%;
  min-height: 13rem;
  object-fit: cover;
  transition: transform 220ms ease;
}

.media-tile:hover img {
  transform: scale(1.025);
}

.media-tile figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.7rem;
  left: 0.75rem;
  margin: 0;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255, 241, 191, 0.22);
  border-radius: 6px;
  background: rgba(7, 8, 10, 0.76);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.section {
  padding: clamp(2.4rem, 6vw, 5rem) 0;
  border-top: 1px solid rgba(255, 241, 191, 0.13);
}

.section:nth-of-type(odd) {
  background: rgba(255, 241, 191, 0.025);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 0.55fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
}

.copy p {
  color: var(--muted);
}

.lead {
  color: var(--ink);
  font-size: 1.18rem;
}

.fact-card {
  padding: 1rem;
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.62rem 0;
  border-top: 1px solid var(--dim-line);
}

.fact-row:first-child {
  border-top: 0;
}

.fact-row dt {
  color: var(--soft);
  font-size: 0.9rem;
}

.fact-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.feature-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature {
  min-height: 9.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 241, 191, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(242, 232, 77, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(24, 20, 31, 0.92), rgba(12, 12, 15, 0.95));
}

.feature strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-size: 1.55rem;
  line-height: 1;
}

.feature span {
  color: var(--muted);
}

.showcase {
  background:
    linear-gradient(90deg, rgba(78, 230, 140, 0.06), transparent 38%),
    rgba(255, 241, 191, 0.025);
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 0.72fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.showcase-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 241, 191, 0.24);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.showcase-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.showcase-media figcaption {
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.showcase-copy {
  max-width: 34rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.shot {
  overflow: hidden;
  border: 1px solid rgba(255, 241, 191, 0.2);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.shot:first-child {
  grid-row: span 2;
}

.shot:first-child img {
  aspect-ratio: 16 / 18.5;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 220ms ease;
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.025);
}

.shot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.shot span {
  display: block;
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.download-card {
  background: transparent;
}

.asset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 11rem;
  padding: 1rem;
  border: 1px solid rgba(255, 241, 191, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(157, 85, 255, 0.08), transparent 48%),
    var(--panel);
}

.asset-card p {
  margin-bottom: auto;
  color: var(--muted);
}

.asset-card a {
  color: var(--gold);
  font-weight: 800;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 241, 191, 0.13);
}

.home {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.88), rgba(7, 8, 10, 0.64)),
    url("/assets/daydream-cat/key-art/daydream-cat-library-hero.png") center / cover no-repeat;
}

.home-panel {
  width: min(760px, 100%);
  border: 2px solid rgba(255, 241, 191, 0.74);
  border-radius: 8px;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: rgba(17, 19, 24, 0.9);
  box-shadow: 0 24px 70px var(--shadow);
}

.home-panel h1 {
  max-width: none;
  font-size: clamp(2.7rem, 8vw, 5.5rem);
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-stage,
  .hero {
    min-height: 0;
  }

  .hero,
  .two-col,
  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage::before {
    background:
      linear-gradient(180deg, rgba(7, 8, 10, 0.88), rgba(7, 8, 10, 0.76) 56%, rgba(7, 8, 10, 0.96)),
      url("/assets/daydream-cat/screenshots/01_choose-your-first-dream.png") center / cover no-repeat;
  }

  h1 {
    max-width: 12ch;
  }

  .media-strip {
    margin-top: 0;
    padding-top: 1rem;
  }

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

  .feature-grid,
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-copy {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 1rem, 1180px);
  }

  .actions,
  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .nav a {
    width: 100%;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-lockup {
    align-items: flex-start;
  }

  .fact-row,
  .feature-grid,
  .asset-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .fact-row {
    gap: 0.15rem;
  }

  .shot:first-child {
    grid-row: auto;
  }

  .shot:first-child img {
    aspect-ratio: 16 / 9;
  }
}
