@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --bg-app: #07080c;
  --bg-surface: #0d0f15;
  --bg-raised: #151820;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5f8;
  --text-muted: #9aa3b4;
  --accent: #ff2e43;
  --accent-hover: #ff4f62;
  --accent-dim: rgba(255, 16, 47, 0.16);
  --radius: 10px;
  --radius-lg: 18px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--font);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 16, 47, 0.18), transparent 32rem),
    linear-gradient(135deg, #050506 0%, #0d0f15 48%, #171016 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
  animation: grid-drift 22s linear infinite;
}

a {
  color: inherit;
}

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.animated-bg span {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 16, 47, 0.2);
  filter: blur(36px);
  opacity: 0.65;
  animation: orb-float 12s ease-in-out infinite alternate;
}

.animated-bg span:nth-child(1) {
  top: 10%;
  left: 8%;
}

.animated-bg span:nth-child(2) {
  right: 8%;
  top: 28%;
  width: 320px;
  height: 320px;
  background: rgba(255, 59, 84, 0.14);
  animation-delay: -4s;
}

.animated-bg span:nth-child(3) {
  left: 24%;
  bottom: 8%;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  animation-delay: -8s;
}

.animated-bg span:nth-child(4) {
  right: 30%;
  bottom: 16%;
  width: 140px;
  height: 140px;
  animation-delay: -2s;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.76);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3), var(--shadow);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--accent);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
}

.site-brand img {
  width: 64px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 46, 67, 0.34)) drop-shadow(3px 3px 0 #000);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.secondary-btn,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.site-nav a,
.secondary-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.site-nav a:hover,
.secondary-btn:hover {
  border-color: rgba(255, 16, 47, 0.36);
  background: var(--accent-dim);
}

.site-nav .nav-download,
.download-btn {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 36px rgba(255, 16, 47, 0.24), var(--shadow);
}

.site-nav .nav-download:hover,
.download-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(255, 16, 47, 0.34), var(--shadow);
}

button.download-btn {
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.download-btn.download-btn--soon:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  box-shadow: none;
  transform: none;
}

.download-btn.download-btn--soon:disabled:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: none;
  box-shadow: none;
}

.hero {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 16, 47, 0.055), rgba(255, 255, 255, 0.016)),
    rgba(9, 10, 14, 0.82);
  box-shadow: var(--shadow), 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.hero--home {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 42px;
  padding: clamp(34px, 6vw, 70px);
}

.hero-content {
  min-width: 0;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-copy,
.section-heading p,
.showcase-copy p,
.feature-card p,
.site-footer p,
.download-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 0;
  font-size: clamp(17px, 2.2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  min-width: 0;
}

.hero-zoom-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.hero-zoom-hint__badge {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 16, 47, 0.5);
  background: linear-gradient(180deg, rgba(255, 16, 47, 0.22), rgba(255, 16, 47, 0.07));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.42) inset,
    0 12px 32px rgba(255, 16, 47, 0.15),
    0 3px 0 rgba(0, 0, 0, 0.55),
    0 0 32px rgba(255, 16, 47, 0.12);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.hero-zoom-hint__arrow {
  display: block;
  width: 40px;
  height: auto;
  margin-right: clamp(72px, 22%, 160px);
  filter:
    drop-shadow(0 0 10px rgba(255, 16, 47, 0.45))
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.85));
}

.launcher-preview {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #0a0c11;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), 0 0 60px rgba(255, 16, 47, 0.16);
}

.launcher-preview img,
.screenshot-gallery img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

.hero-screenshot img {
  aspect-ratio: 1024 / 647;
  object-fit: cover;
}

.feature-card,
.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.section {
  padding: clamp(70px, 10vw, 120px) 0 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(9, 10, 14, 0.78);
}

.feature-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 4px 4px 0 #000, 0 0 28px rgba(255, 16, 47, 0.34);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(24px, 6vw, 74px);
  align-items: start;
}

.showcase-copy .secondary-btn {
  margin-top: 12px;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-gallery__cell {
  min-width: 0;
}

.screenshot-gallery__cell > figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #0a0c11;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38), var(--shadow);
}

.screenshot-gallery__cell--side-hint {
  position: relative;
  overflow: visible;
}

.gallery-side-hint {
  position: absolute;
  z-index: 2;
  top: clamp(52px, 15%, 118px);
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  pointer-events: none;
  transform: translateX(calc(-100% - clamp(10px, 1.4vw, 16px)));
}

.gallery-side-hint__badge {
  font-size: 10px;
  padding: 6px 10px;
  letter-spacing: 0.09em;
  max-width: 8rem;
  text-wrap: balance;
  text-align: center;
}

.gallery-side-hint__arrow {
  display: block;
  width: min(74px, 100%);
  height: auto;
  overflow: visible;
  vertical-align: middle;
  color: inherit;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

.screenshot-gallery figcaption {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.download-page {
  display: grid;
  min-height: calc(100vh - 96px);
  place-items: center;
  padding: 42px 0;
}

.download-hero {
  width: min(760px, 100%);
  padding: clamp(34px, 7vw, 70px);
  text-align: center;
}

.download-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
  width: 100%;
  text-align: left;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 22px);
  margin: 0;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 78px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.78), 0 0 34px rgba(255, 16, 47, 0.42);
}

.hero-logo {
  display: block;
  width: clamp(84px, 14vw, 120px);
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 18px 34px rgba(255, 16, 47, 0.32));
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
  padding: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
}

.download-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 20px;
}

.download-card p {
  margin-bottom: 0;
}

body.lightbox-open {
  overflow: hidden;
}

img.lightbox-zoom {
  cursor: zoom-in;
}

img.lightbox-zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding:
    max(16px, env(safe-area-inset-top, 0))
    max(16px, env(safe-area-inset-right, 0))
    max(28px, env(safe-area-inset-bottom, 0))
    max(16px, env(safe-area-inset-left, 0));
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(4, 5, 8, 0.94);
  cursor: zoom-out;
}

.image-lightbox__frame {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1660px);
  max-height: calc(94vh - 24px);
  margin: 0;
}

.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(calc(90vh - 56px), 1200px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.6),
    0 0 48px rgba(255, 16, 47, 0.12);
  image-rendering: auto;
}

.image-lightbox__close {
  position: absolute;
  top: clamp(-44px, -5vw, -12px);
  right: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(12, 14, 20, 0.95);
  color: var(--text);
  font: inherit;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.image-lightbox__close:hover {
  border-color: rgba(255, 16, 47, 0.42);
  background: rgba(255, 16, 47, 0.12);
}

.image-lightbox__caption {
  margin: 12px auto 0;
  padding: 0 8px;
  max-width: 56rem;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 58px 0 30px;
  color: var(--text-muted);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 72px 72px;
  }
}

@keyframes orb-float {
  from {
    transform: translate3d(-24px, 18px, 0) scale(0.95);
  }

  to {
    transform: translate3d(28px, -24px, 0) scale(1.08);
  }
}

@media (max-width: 920px) {
  .hero--home,
  .showcase,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-zoom-hint__arrow {
    margin-right: 0;
    width: 36px;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-side-hint {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
  }

  .gallery-side-hint__arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 760px) {
  .image-lightbox__close {
    top: 8px;
    right: 8px;
    transform: none;
    z-index: 2;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  }

  .image-lightbox__img {
    max-height: min(calc(86vh - 56px), 1200px);
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    position: static;
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    padding: 0 10px;
  }

  .hero--home {
    margin-top: 22px;
    padding: 28px;
  }

  .hero-actions,
  .download-card,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .download-btn,
  .secondary-btn {
    width: 100%;
  }

  .brand-lockup {
    gap: 10px;
    font-size: clamp(38px, 13vw, 52px);
  }

  .hero-logo {
    width: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
