/* ============ base ============ */
:root {
  --bg: #05060a;
  --ink: #eef0ff;
  --muted: #97a0b8;
  --hell: #ff5a2b;
  --hell-2: #ffb03a;
  --heaven: #38e1ff;
  --heaven-2: #7b6cff;
  --line: rgba(255, 255, 255, .09);
  --radius: 26px;
  --maxw: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --px: 0px;
  --py: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ============ background ============ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.bg__glow {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; will-change: transform;
}
.bg__glow--hell {
  top: -30vmax; left: -25vmax;
  background: radial-gradient(circle, rgba(255, 90, 43, .85), transparent 62%);
  animation: drift 22s ease-in-out infinite alternate;
}
.bg__glow--heaven {
  bottom: -35vmax; right: -25vmax;
  background: radial-gradient(circle, rgba(56, 225, 255, .8), transparent 62%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}

.bg__grid {
  position: absolute; left: 50%; bottom: -18%; width: 220%; height: 65%;
  transform: translateX(-50%) perspective(620px) rotateX(74deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 45%, transparent 88%);
  mask-image: linear-gradient(to top, transparent 2%, #000 45%, transparent 88%);
  opacity: .5;
}

.bg__grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
}

/* ============ topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(5, 6, 10, .55);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .18em; font-size: 13px; }
.brand__mark {
  width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(from 180deg, var(--hell), var(--hell-2), var(--heaven), var(--heaven-2), var(--hell));
  box-shadow: 0 0 18px rgba(56, 225, 255, .45), 0 0 22px rgba(255, 90, 43, .35);
}
.brand__text { opacity: .92; }

.nav { display: none; gap: 26px; font-size: 14px; color: var(--muted); }
.nav a { position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: linear-gradient(90deg, var(--hell), var(--heaven));
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

@media (min-width: 860px) { .nav { display: flex; } }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--heaven); outline-offset: 3px; }

.btn--primary {
  border: 0; color: #0a0a10;
  background: linear-gradient(100deg, var(--hell-2), var(--hell) 42%, var(--heaven) 100%);
  box-shadow: 0 8px 30px -10px rgba(255, 90, 43, .65), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.btn--primary:hover { box-shadow: 0 14px 40px -12px rgba(56, 225, 255, .6), 0 10px 34px -12px rgba(255, 90, 43, .6); }
.btn--ghost { color: var(--ink); }
.btn--small { padding: 9px 16px; font-size: 13px; }
.btn--big { padding: 16px 30px; font-size: 15px; }

.btn[aria-disabled="true"] {
  opacity: .7;
}

/* ============ hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(64px, 12vh, 140px) clamp(16px, 4vw, 40px) clamp(80px, 14vh, 160px);
  text-align: center; overflow: hidden;
  isolation: isolate;
}

.hero__stage {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; z-index: -1;
  perspective: 900px;
}

.ring {
  position: absolute; width: min(74vmin, 660px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  transform-style: preserve-3d;
  will-change: transform;
}
.ring--hell {
  border-color: rgba(255, 90, 43, .45);
  box-shadow: 0 0 60px -18px rgba(255, 90, 43, .8), inset 0 0 70px -30px rgba(255, 90, 43, .9);
  animation: spin 26s linear infinite;
}
.ring--heaven {
  width: min(54vmin, 470px);
  border-color: rgba(56, 225, 255, .4);
  box-shadow: 0 0 60px -18px rgba(56, 225, 255, .75), inset 0 0 70px -30px rgba(56, 225, 255, .8);
  animation: spin-rev 19s linear infinite;
}
.ring::before, .ring::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .10);
}
.ring::after { inset: 26%; border-style: solid; border-color: rgba(255, 255, 255, .06); }

.orb {
  position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95), transparent 34%),
    radial-gradient(circle at 62% 68%, var(--heaven) 0%, transparent 58%),
    radial-gradient(circle at 40% 40%, var(--hell) 0%, #2a0a05 70%);
  box-shadow: 0 0 70px rgba(255, 90, 43, .5), 0 0 120px rgba(56, 225, 255, .28);
  animation: float 9s ease-in-out infinite;
  opacity: .9;
}
.orb--small {
  width: 26px; height: 26px;
  top: 26%; left: 22%;
  background: radial-gradient(circle at 40% 35%, #fff, var(--heaven) 55%, transparent 72%);
  box-shadow: 0 0 30px rgba(56, 225, 255, .8);
  animation: float 7s ease-in-out infinite reverse;
  opacity: .8;
}

@keyframes spin { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes spin-rev { to { transform: rotateX(58deg) rotateY(12deg) rotateZ(-360deg); } }
@keyframes float {
  0%, 100% { transform: translate3d(0, -8px, 0); }
  50% { transform: translate3d(0, 12px, 0); }
}

.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 940px; margin-inline: auto;
  display: grid; justify-items: center; gap: clamp(14px, 2.2vh, 22px);
  transform: translate3d(var(--px), var(--py), 0);
  transition: transform .3s var(--ease);
  will-change: transform;
}
.hero__inner > * { max-width: 100%; }

.hero__inner::before {
  content: "";
  position: absolute; inset: -14% -8%;
  z-index: -1; border-radius: 50%;
  background: radial-gradient(58% 58% at 50% 46%, rgba(5, 6, 10, .88), rgba(5, 6, 10, .35) 62%, transparent 78%);
  filter: blur(18px);
}

.eyebrow {
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
}

.hero__title {
  max-width: 18ch;
  font-size: clamp(42px, 7.4vw, 104px);
  color: transparent;
  background: linear-gradient(100deg, #fff 8%, var(--hell-2) 38%, var(--hell) 60%, var(--heaven) 98%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 16px 44px rgba(255, 90, 43, .22));
}

.hero__lead {
  max-width: 56ch; color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.hero__meta {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(151, 160, 184, .75);
  display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 8px;
}
.scroll-hint span {
  width: 3px; height: 8px; border-radius: 2px; background: var(--muted);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============ sections ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 40px);
}
.section__head { max-width: 660px; margin-bottom: clamp(28px, 5vw, 48px); display: grid; gap: 14px; }
.section__head h2 { font-size: clamp(28px, 4.6vw, 48px); }
.section__sub { color: var(--muted); font-size: clamp(14px, 1.6vw, 17px); max-width: 56ch; }

/* cards */
.split { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 820px) { .split { gap: 24px; } }

.card {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .035));
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .18s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.card:hover { border-color: rgba(255, 255, 255, .2); }

.card__glow {
  position: absolute; inset: -40% -10% auto; height: 70%;
  filter: blur(60px); opacity: .5; pointer-events: none;
  transform: translateZ(-20px);
}
.card--hell .card__glow { background: radial-gradient(circle at 30% 20%, rgba(255, 90, 43, .55), transparent 60%); }
.card--heaven .card__glow { background: radial-gradient(circle at 70% 20%, rgba(56, 225, 255, .5), transparent 60%); }

.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .12), transparent 60%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.card:hover::after { opacity: 1; }

.card__tag { display: inline-block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.card--hell .card__tag { color: #ffb08f; }
.card--heaven .card__tag { color: #9ceeff; }

.card h3 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.card__text { color: var(--muted); font-size: 15px; max-width: 46ch; }

.card__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.card__list li { position: relative; padding-left: 20px; color: rgba(238, 240, 255, .82); }
.card__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; }
.card--hell .card__list li::before { background: var(--hell); box-shadow: 0 0 12px var(--hell); }
.card--heaven .card__list li::before { background: var(--heaven); box-shadow: 0 0 12px var(--heaven); }

/* features */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.feature {
  padding: 26px; border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: rgba(56, 225, 255, .28); background: linear-gradient(180deg, rgba(56, 225, 255, .08), rgba(255, 255, 255, .015)); }
.feature__num { display: block; font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 26px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* download */
.download {
  position: relative; overflow: hidden;
  border-radius: 32px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255, 90, 43, .16), transparent 55%),
    radial-gradient(120% 140% at 85% 100%, rgba(56, 225, 255, .14), transparent 55%),
    rgba(255, 255, 255, .02);
  padding: clamp(28px, 5vw, 56px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .download { grid-template-columns: 1.1fr .9fr; gap: 40px; } }
.download__text { display: grid; gap: 14px; }
.download h2 { font-size: clamp(28px, 4.4vw, 44px); }

.download__box {
  display: grid; gap: 14px; padding: 24px; border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 10, .5);
  justify-items: start;
}
.download__file { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
.download__name { color: var(--ink); font-weight: 600; font-size: 14px; word-break: break-all; }
.download__hint { font-size: 12px; color: rgba(151, 160, 184, .8); }
.download .btn--big { width: 100%; }

/* footer */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 40px) 46px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--muted);
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .16em; color: var(--ink); }
.footer__links { display: flex; gap: 18px; }
.footer__links a { transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* mobile */
@media (max-width: 640px) {
  .hero { padding-inline: 20px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .2em; }
  .hero__title { font-size: clamp(38px, 12vw, 64px); }
  .hero__lead { font-size: 14.5px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { font-size: 10.5px; letter-spacing: .1em; }
  .section { padding-inline: 20px; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
