* {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --text: #171724;
  --muted: #667085;
  --line: #e7e8ee;
  --soft: #f1f5f9;
  --card: rgba(255, 255, 255, 0.88);
  --purple: #7c3aed;
  --cyan: #0891b2;
  --blue: #2563eb;
  --green: #16a34a;
  --shadow: 0 20px 60px rgba(25, 28, 45, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

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

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.container.narrow {
  width: min(832px, calc(100% - 64px));
}

.container.small {
  width: min(960px, calc(100% - 32px));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.25s ease;
}

.site-header.scrolled .nav,
.site-header.menu-active .nav {
  height: 56px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
}

.brand span:last-child {
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.2);
}

.brand-icon.small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:not(.nav-cta):hover,
.mobile-menu a:not(.button):hover,
.footer-links a:hover {
  color: var(--purple);
}

.nav-cta,
.button.primary {
  color: white;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.22);
}

.nav-cta {
  padding: 9px 22px;
  border-radius: 999px;
}

.menu-button,
.close-button {
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
}

.menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-button:hover,
.close-button:hover {
  background: rgba(241, 245, 249, 0.2);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.56);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(340px, 84vw);
  height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: white;
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.18);
}

.mobile-menu[hidden],
.mobile-overlay[hidden] {
  display: none;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mobile-menu h2 {
  margin: 0;
  font-size: 1.1rem;
}

.close-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
}

.hero-bg::before {
  top: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: rgba(168, 85, 247, 0.1);
}

.hero-bg::after {
  right: -10%;
  bottom: 10%;
  width: 30%;
  height: 30%;
  background: rgba(6, 182, 212, 0.1);
}

.hero-inner {
  text-align: center;
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 auto 32px;
  padding: 4px 16px;
  color: var(--purple);
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-weight: 400;
}

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

.hero h1 {
  margin-bottom: 32px;
  font-size: clamp(3rem, 5.625vw, 4.5rem);
  line-height: 1;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.4;
}

.download-grid {
  width: min(896px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 auto;
}

.download-card,
.feature-card,
.contact-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.download-card {
  padding: 24px;
  border-radius: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.button.full {
  width: 100%;
}

.button.primary {
  width: 100%;
  min-height: 54px;
  font-size: 1.05rem;
}

.button.primary.blue {
  background: linear-gradient(90deg, var(--blue), #4f46e5);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.button.outline {
  color: var(--text);
  background: white;
  border-color: var(--line);
}

.button.outline:hover {
  color: white;
  background: var(--purple);
}

.button.light {
  min-height: 34px;
  padding: 7px 14px;
  color: #3b176f;
  background: white;
  font-size: 0.86rem;
}

.download-sub-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 600;
}

.download-sub-link:hover {
  text-decoration: underline;
}

.meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.check {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--green);
  font-size: 0.75rem;
}

.showcase {
  position: relative;
  overflow: hidden;
  width: min(1152px, 100%);
  margin: 32px auto 0;
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow);
  background: white;
}

.scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s ease;
}

.showcase:hover .scene {
  transform: scale(1.1);
}

.characters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.character {
  position: absolute;
  bottom: 0;
  width: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
}

.character img {
  width: auto;
  height: 100%;
  max-width: none;
}

.character.left,
.character.right {
  height: 82%;
}

.character.left {
  left: 4%;
}

.character.center {
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
}

.character.right {
  right: 4%;
}

.showcase-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255,255,255,0.82), rgba(255,255,255,0) 38%), linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0), rgba(255,255,255,0.16));
  pointer-events: none;
}

.status-pills {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.status-pills span {
  padding: 8px 14px;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
}

.section {
  padding: 96px 0;
}

.section.muted {
  background: rgba(241, 245, 249, 0.2);
}

.section-title {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title h2,
.contact-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.section-title p,
.feature-card p,
.site-footer p {
  color: var(--muted);
}

.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.feature-card {
  min-height: 216px;
  padding: 24px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.32);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.2);
  font-weight: 800;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.purple { color: var(--purple); }
.feature-icon.yellow { color: #ca8a04; }
.feature-icon.red { color: #dc2626; }
.feature-icon.blue { color: var(--blue); }
.feature-icon.green { color: var(--green); }
.feature-icon.cyan { color: var(--cyan); }

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.feature-card p {
  margin-bottom: 0;
}

#changelog {
  background: white;
}

.timeline {
  display: grid;
  gap: 36px;
}

.release {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--line);
}

.release::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid white;
  background: var(--purple);
}

.release-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.release-head h3 {
  margin: 0;
  font-size: 1.55rem;
}

.release-head time {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  padding: 3px 9px;
  color: #334155;
  background: #eef2f7;
}

.badge.hot {
  color: white;
  background: var(--purple);
}

.release ul {
  margin: 0;
  padding: 24px 24px;
  list-style: none;
  border: 0;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.3);
  box-shadow: none;
}

.release li {
  position: relative;
  padding-left: 18px;
  color: #344054;
  font-size: 0.94rem;
}

.release li + li {
  margin-top: 10px;
}

.release li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

.center {
  margin-top: 44px;
  text-align: center;
}

.contact-section {
  padding: 80px 0;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  min-height: 454px;
  padding: 48px;
  color: white;
  text-align: center;
  border-radius: 24px;
  background-image: linear-gradient(to right bottom, rgba(88, 28, 135, 0.9), rgba(22, 78, 99, 0.9));
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
}

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

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 660px;
  margin: 30px auto 0;
}

.contact-card {
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.contact-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #581c87;
  background: white;
  border-radius: 50%;
  font-weight: 800;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-label {
  margin: 12px 0 2px;
  font-size: 0.9rem;
}

.contact-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.site-footer {
  min-height: 342px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: rgba(241, 245, 249, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid p {
  max-width: 380px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-links h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.copyright p {
  margin: 0;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease var(--delay, 0s), transform 0.5s ease var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .menu-button {
    display: flex;
  }

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

  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container,
  .container.narrow,
  .container.small {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    padding: 128px 0 80px;
  }

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

  .download-card,
  .feature-card {
    padding: 20px;
  }

  .showcase {
    aspect-ratio: 16 / 11;
    border-radius: 16px;
  }

  .character.left,
  .character.right {
    height: 68%;
  }

  .character.left {
    left: -7%;
  }

  .character.right {
    right: -7%;
  }

  .status-pills {
    top: 12px;
    right: 12px;
  }

  .status-pills span {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .section {
    padding: 96px 0;
  }

  .contact-section {
    padding: 80px 0;
  }

  .release {
    padding-left: 32px;
  }

  .release ul {
    padding: 24px 24px;
  }

  .contact-panel {
    padding: 48px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
