:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-soft: #0c1226;
  --panel: rgba(12, 18, 38, 0.78);
  --edge: rgba(151, 170, 214, 0.18);
  --edge-strong: rgba(151, 170, 214, 0.32);
  --text: #eef3ff;
  --muted: #a1aecf;
  --accent: #7db6ff;
  --accent-strong: #afd4ff;
  --accent-warm: #f0ba72;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  font-family: 'Aptos Display', 'Segoe UI Variable Display', 'Trebuchet MS', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(125, 182, 255, 0.2), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(240, 186, 114, 0.12), transparent 20%),
    linear-gradient(180deg, #050816 0%, #070d1d 38%, #03050e 100%);
  color: var(--text);
}

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

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

code {
  font-family: 'Cascadia Code', 'Consolas', monospace;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: '';
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.7;
}

.site-shell::before {
  top: 8rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(86, 153, 255, 0.16);
}

.site-shell::after {
  top: 22rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(240, 186, 114, 0.12);
}

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

.hero {
  padding: 1.5rem 0 4.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 3rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.55);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--muted);
}

.topbar-links a:hover {
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.hero-copy h1,
.section-heading h2,
.cta h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-text,
.panel p,
.tour-step p,
.cta p,
.shot-placeholder,
.floating-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #09101f;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  box-shadow: 0 18px 45px rgba(125, 182, 255, 0.2);
}

.button-secondary {
  border: 1px solid var(--edge-strong);
  background: rgba(255, 255, 255, 0.04);
}

.hero-points {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 1.8rem 0 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.hero-points li::before {
  content: '';
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
}

.hero-preview {
  position: relative;
  min-height: 35rem;
}

.browser-shot {
  position: relative;
  padding: 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 12, 26, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.browser-shot::before {
  content: '';
  position: absolute;
  inset: 0.8rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.browser-shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #101930 0%, #070a14 100%);
}

.shot-placeholder {
  position: absolute;
  inset: 1.8rem;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px dashed var(--edge-strong);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top, rgba(125, 182, 255, 0.16), transparent 36%),
    rgba(5, 8, 22, 0.82);
  text-align: center;
  padding: 2rem;
}

.browser-shot.is-missing .shot-placeholder {
  display: flex;
}

.browser-shot.is-missing img {
  opacity: 0;
}

.shot-placeholder code {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.floating-card {
  position: absolute;
  width: min(15rem, 42vw);
  padding: 1rem 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 1.4rem;
  background: rgba(7, 12, 24, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: floatCard 7s ease-in-out infinite;
}

.floating-card-left {
  bottom: 3rem;
  left: -1rem;
}

.floating-card-right {
  top: 4rem;
  right: -1.2rem;
  animation-delay: -3s;
}

.card-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--accent-strong);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.floating-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.section {
  padding: 2rem 0 4rem;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.feature-grid,
.tour-grid,
.shortcut-list {
  display: grid;
  gap: 1rem;
}

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

.panel,
.tour-step,
.shortcut-item,
.cta {
  border: 1px solid var(--edge);
  border-radius: 1.8rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.4rem;
}

.panel h3,
.tour-step h3 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.panel p,
.tour-step p {
  margin: 0;
}

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

.tour-step {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.tour-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(125, 182, 255, 0.2), rgba(240, 186, 114, 0.2));
  color: var(--accent-strong);
  font-weight: 700;
}

.shortcut-section {
  padding-top: 0;
}

.shortcut-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem;
}

.shortcut-item code {
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-strong);
}

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

.cta {
  padding: 2rem;
  text-align: center;
}

.cta p {
  max-width: 38rem;
  margin: 1rem auto 1.6rem;
}

.latest-version {
  margin-top: -0.2rem;
  margin-bottom: 1.2rem;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .shortcut-list {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .floating-card {
    position: static;
    width: auto;
    margin-top: 1rem;
  }
}

@media (max-width: 760px) {
  .hero,
  .section,
  .footer {
    width: min(100% - 1.2rem, 1180px);
  }

  .topbar,
  .hero-grid,
  .feature-grid,
  .shortcut-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 1.4rem;
    padding: 1rem;
  }

  .topbar-links {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-preview {
    margin-top: 1rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
