:root {
  --bg: #0f0f0f;
  --bg-raised: #141414;
  --bg-card: #161616;
  --bg-button: #121212;
  --bg-button-hover: #262626;
  --border: #262626;
  --border-strong: #454545;
  --text: #ffffff;
  --muted: #aaaaaa;
  --faint: #666666;
  --accent: #8B93FF;
  --font: 'Work Sans', system-ui, -apple-system, sans-serif;
  --mono: 'Cascadia Code', Consolas, 'Courier New', monospace;
  --nav-height: 60px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body { font-family: var(--font); line-height: 1.6; color: var(--text); background-color: var(--bg); -webkit-font-smoothing: antialiased; position: relative; }
::selection { background-color: rgba(139, 147, 255, 0.35); }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; padding: 1px 6px; border-radius: 3px; background-color: #1e1e1e; color: #e5e5e5; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

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

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-width: 152px; padding: 12px 22px; border: none; border-radius: 3px;
  background: var(--bg-button); color: var(--text); font-family: inherit;
  font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer; outline: 1px solid var(--border-strong);
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
  transition: background-color 0.2s ease, color 0.2s ease, outline-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.button:hover { background-color: var(--bg-button-hover); outline-color: #5a5a5a; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.5); }
.button:active { transform: translateY(0) scale(0.985); box-shadow: 0 2px 4px rgba(0,0,0,0.5); transition-duration: 0.08s; }
.button svg { width: 17px; height: 17px; flex: none; }
.button.primary { background-color: #ffffff; color: #0f0f0f; outline-color: #ffffff; }
.button.primary:hover { background-color: #dcdcdc; }

.nav {
  position: sticky; top: 0; z-index: 10; height: var(--nav-height);
  background-color: rgba(15,15,15,0.7); border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.nav.is-scrolled { background-color: rgba(15,15,15,0.85); border-bottom-color: var(--border); }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; height: 100%; gap: 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; color: var(--text); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.nav-cta:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { position: relative; padding: 140px 24px 0; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 120px; z-index: -1;
  background-image: radial-gradient(circle, #2c2c2c 1px, transparent 1.2px);
  background-size: 26px 26px; background-position: center top;
  mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
}
.hero > * { position: relative; }
.hero h1 { font-size: 5rem; font-weight: 700; line-height: 1.05; margin-bottom: 14px; cursor: default; user-select: none; display: inline-block; }
.hero p { max-width: 600px; margin: 0 auto 32px; font-size: 1.15rem; color: var(--muted); }
.hero-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero-shot { max-width: 965px; margin: 84px auto 0; padding: 0 24px; }

.wordmark-intro {
  background-image: linear-gradient(108deg, #ffffff 0%, #ffffff 34%, #b59dff 45%, #8b93ff 50%, #d4b8ff 55%, #ffffff 66%, #ffffff 100%);
  background-size: 280% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation:
    wordmark-rise 0.55s var(--ease-out) forwards,
    wordmark-sweep 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.14s 1 forwards;
}

@keyframes wordmark-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wordmark-sweep {
  0% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 0 rgba(139, 147, 255, 0));
  }
  42% {
    filter: drop-shadow(0 0 26px rgba(155, 135, 255, 0.75)) drop-shadow(0 0 10px rgba(139, 147, 255, 0.55));
  }
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 0 rgba(139, 147, 255, 0));
  }
}

.window { overflow: hidden; border: 1px solid #2a2a2a; border-radius: 8px; background-color: #0e0f11; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.window img { display: block; width: 100%; height: auto; }

.facts { margin: 56px auto 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 24px; border-left: 1px solid var(--border); }
.fact:first-child { border-left: none; padding-left: 0; }
.fact strong { display: block; font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 0.95rem; }

.features { padding: 96px 0 24px; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2, .themes h2, .grid-section h2, .faq h2 { font-size: 2.5rem; font-weight: 600; line-height: 1.15; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--border); }
.feature-flip { grid-template-columns: 7fr 5fr; }
.feature-flip .feature-text { order: 2; }
.feature h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 1.05rem; margin-bottom: 18px; }
.feature ul { list-style: none; }
.feature li { position: relative; padding-left: 18px; margin-bottom: 8px; color: #cfcfcf; font-size: 1rem; }
.feature li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 1px; background-color: var(--faint); }
.feature .window { box-shadow: 0 20px 50px rgba(0,0,0,0.45); }

.themes { padding: 96px 0; border-top: 1px solid var(--border); }
.themes > .wrap > p { max-width: 640px; color: var(--muted); font-size: 1.1rem; margin-bottom: 48px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.theme-tile .window { border-radius: 6px; box-shadow: none; transition: border-color 0.25s ease, transform 0.35s var(--ease-out); }
.theme-tile:hover .window { border-color: var(--border-strong); transform: translateY(-3px); }
.theme-tile figcaption { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.theme-list { margin-top: 40px; color: var(--faint); font-size: 0.95rem; line-height: 1.8; }
.theme-list strong { color: var(--muted); font-weight: 500; }

.grid-section { padding: 96px 0; border-top: 1px solid var(--border); }
.grid-section > .wrap > p { max-width: 640px; color: var(--muted); font-size: 1.1rem; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 24px 22px;
  border: 1px solid var(--border); border-radius: 6px; background-color: var(--bg-card);
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out), background-color 0.25s ease;
}
.feature-item:hover { border-color: var(--border-strong); background-color: #1a1a1a; transform: translateY(-2px); }
.feature-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--muted); transition: color 0.25s ease; }
.feature-item:hover .feature-icon { color: var(--text); }
.feature-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.feature-item p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.faq { padding: 96px 0; border-top: 1px solid var(--border); }
.faq .wrap { max-width: 960px; }
.faq h2 { margin-bottom: 36px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 0;
  font-size: 1.1rem; font-weight: 500; cursor: pointer; list-style: none;
  user-select: none; -webkit-user-select: none; transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform 0.3s var(--ease-out), color 0.2s ease; }
.faq summary:hover::after { color: var(--text); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq.is-enhanced details[open]:not(.is-open) summary::after { transform: none; }
.faq.is-enhanced details p { opacity: 0; transform: translateY(-4px); transition: opacity 0.25s ease, transform 0.3s var(--ease-out); }
.faq.is-enhanced details.is-open p { opacity: 1; transform: none; }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 1rem; max-width: 760px; }
.faq a { color: var(--text); text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }

.footer { padding: 22px 0 28px; border-top: 1px solid #333; color: var(--faint); font-size: 0.9rem; user-select: none; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: #888; text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--text); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise-window { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }
.fade-in { opacity: 0; animation: rise 0.9s var(--ease-out) forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation: rise-window 1.1s var(--ease-out) forwards; animation-delay: 0.3s; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group:not(.is-visible) > * { opacity: 0; transform: translateY(18px); }
.reveal-group.is-visible > * { animation: reveal-rise 0.8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes reveal-rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-delay-3, .wordmark-intro { opacity: 1; animation: none; background-image: none; color: var(--text); filter: none; }
  .reveal, .reveal-group:not(.is-visible) > * { opacity: 1; transform: none; transition: none; }
  .reveal-group.is-visible > * { animation: none; }
  #snow { display: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 960px) {
  .feature, .feature-flip { grid-template-columns: 1fr; gap: 32px; }
  .feature-flip .feature-text { order: 0; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: none; padding-left: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero { padding-top: 96px; }
  .hero h1 { font-size: 3.2rem; }
  .hero p { font-size: 1.05rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .button { width: 100%; max-width: 300px; }
  .section-head h2, .themes h2, .grid-section h2, .faq h2 { font-size: 2rem; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact { border-left: none; padding-left: 0; border-bottom: 1px solid var(--border); }
  .fact:last-child { border-bottom: none; }
  .hero-shot { display: none; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}
