:root {
  /* APK palette: DemonMainActivity.java, res/values/colors.xml */
  --bg: #0a0608;
  --bg-2: #140c0e;
  --card: #201216;
  --card-2: #301a1e;
  --header-a: #2a060a;
  --header-b: #781018;
  --line: #8c2a32;
  --line-soft: rgba(248, 240, 240, 0.09);
  --text: #f8f0f0;
  --muted: #b09498;
  --body: #d6c3c6; /* paragraphs: app muted, lifted for long reading */
  --red: #be1c28;
  --red-2: #e03340; /* accent, lifted for large text on the dark background */
  --pink: #ffb4b8;
  --max: 1180px;
  --f-display: "Cinzel", Georgia, serif;
  --f-body: "Inter", "Segoe UI", sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 7px 0 -1px #120a0c, 0 26px 50px -12px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(190, 28, 40, 0.38), transparent 62%),
    radial-gradient(800px 560px at -10% 34%, rgba(120, 16, 24, 0.34), transparent 62%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(5vw, calc((100vw - var(--max)) / 2));
  background: linear-gradient(90deg, rgba(42, 6, 10, 0.92), rgba(120, 16, 24, 0.82));
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: 0.03em;
}
.brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: rgba(248, 240, 240, 0.82); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a.btn { color: #fff; }
.menu-btn {
  display: none;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px;
  padding: 7px 14px; font-size: 14px; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; cursor: pointer;
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  padding: 13px 22px;
  border: 1px solid transparent; border-radius: 14px;
  transition: transform 0.18s, box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-red {
  color: #fff;
  background: linear-gradient(180deg, #d0222f, var(--red));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 0 #6d0e15, 0 16px 34px -8px rgba(190, 28, 40, 0.7);
}
.btn-red:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 0 #6d0e15, 0 22px 44px -8px rgba(224, 51, 64, 0.85); }
.btn-red:active { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 0 #6d0e15; }
.btn-ghost { color: var(--text); background: rgba(48, 26, 30, 0.7); border-color: rgba(248, 240, 240, 0.16); }
.btn-ghost:hover { border-color: var(--pink); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 12px; }
.nav .btn-red { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 3px 0 #4e0a10; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: 72px 5vw 64px;
  min-height: 640px;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 22px; padding: 6px 14px;
  font-size: 13px; font-weight: 500; color: var(--pink);
  background: rgba(120, 16, 24, 0.28);
  border: 1px solid rgba(255, 180, 184, 0.22);
  border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 10px var(--red-2); }
h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: 1.06; letter-spacing: -0.005em;
  margin: 0 0 22px;
}
h1 span { color: var(--red-2); }
.lede { font-size: 19px; color: var(--body); max-width: 540px; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.file-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.trust {
  list-style: none; padding: 22px 0 0; margin: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px; color: var(--body);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ico { color: var(--pink); }

/* 3D card stack */
.stack-wrap { perspective: 1400px; display: grid; place-items: center; min-height: 460px; }
.stack {
  position: relative;
  width: min(300px, 62vw); aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transform: rotateX(var(--sx, 10deg)) rotateY(var(--sy, -20deg));
  transition: transform 0.35s ease-out;
}
.stack-card {
  position: absolute; inset: 0;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(160deg, var(--card-2), var(--card) 55%, #170c0f);
  border: 1px solid rgba(248, 240, 240, 0.12);
  border-radius: 26px;
  box-shadow: 0 40px 70px -18px rgba(0, 0, 0, 0.9);
}
.stack-card img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 16px; background: #000; }
.stack-top { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.stack-top b {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 22px; border-radius: 10px;
  font-size: 13px; color: #2a080c; background: #ffc4c4;
}
.front { transform: translateZ(70px); border-color: rgba(255, 180, 184, 0.4); box-shadow: 0 0 70px -6px rgba(190, 28, 40, 0.65), 0 40px 70px -18px #000; }
.back-1 { transform: translate3d(46px, -26px, -10px); opacity: 0.9; }
.back-2 { transform: translate3d(92px, -52px, -90px); opacity: 0.7; }
.back-1 img, .back-2 img { filter: saturate(0.7) brightness(0.7); }

/* ---------- tilt cards ---------- */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
}
.tilt.tilting { --lift: -6px; transition: transform 0.08s linear, box-shadow 0.3s, border-color 0.3s; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 180, 184, 0.16), transparent 62%);
  opacity: 0; transition: opacity 0.3s;
}
.tilt.tilting::after { opacity: 1; }
.depth { transform: translateZ(26px); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:not(.in) .tilt { opacity: 0; }
.js .reveal.in .tilt:not(.tilt-soft) { animation: card-in 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes card-in {
  from { opacity: 0; transform: perspective(1000px) rotateX(22deg) translateY(36px); }
}

/* ---------- stats ---------- */
.band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 0 5vw;
}
.stat {
  padding: 22px;
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft); border-radius: 18px;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-family: var(--f-display); font-weight: 700;
  font-size: 34px; line-height: 1.2; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
section { max-width: var(--max); margin: 0 auto; padding: 84px 5vw 0; }
.eyebrow { margin: 0 0 10px; color: var(--pink); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.section-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15; margin: 0 0 14px;
}
.section-copy { color: var(--body); max-width: 680px; margin: 0 0 36px; font-size: 17px; }

.card, .step, .price, .support-card {
  background: linear-gradient(170deg, var(--card-2) -20%, var(--card) 55%);
  border: 1px solid var(--line-soft); border-radius: 18px;
  box-shadow: var(--shadow);
}
.card:hover, .step:hover, .support-card:hover, .stat:hover { border-color: rgba(255, 180, 184, 0.34); }
h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.card p, .step p, .support-card p, .know p { margin: 0; color: var(--body); font-size: 15px; }
.icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  color: var(--pink); font-size: 17px;
  background: linear-gradient(160deg, rgba(190, 28, 40, 0.45), rgba(120, 16, 24, 0.25));
  border: 1px solid rgba(255, 180, 184, 0.2); border-radius: 13px;
}

/* ---------- video ---------- */
.how { display: grid; grid-template-columns: 1.75fr 1fr; gap: 22px; align-items: stretch; }
.video-frame {
  position: relative; align-self: start;
  padding: 10px;
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid rgba(255, 180, 184, 0.2); border-radius: 22px;
  box-shadow: 0 0 80px -16px rgba(190, 28, 40, 0.55), 0 7px 0 -1px #120a0c, 0 34px 60px -16px #000;
  transform: perspective(1500px) rotateX(3deg);
  transition: transform 0.5s ease;
}
.video-frame:hover, .video-frame.playing { transform: none; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 84px; height: 84px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--red); border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(190, 28, 40, 0.28), 0 14px 34px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.play:hover { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(190, 28, 40, 0.28), 0 14px 34px rgba(0, 0, 0, 0.6); }
.play span { margin-left: 6px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #fff; }
.video-frame.playing .play { display: none; }
.how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.how-steps li { flex: 1; display: flex; }
.how-steps button {
  flex: 1; display: flex; gap: 14px; align-items: center;
  padding: 12px 14px; text-align: left; cursor: pointer;
  background: rgba(32, 18, 22, 0.75);
  border: 1px solid var(--line-soft); border-radius: 14px;
  font-size: 14px; color: var(--muted); line-height: 1.4;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.how-steps button:hover { border-color: rgba(255, 180, 184, 0.34); transform: translateX(3px); }
.how-steps button.active { background: rgba(120, 16, 24, 0.5); border-color: var(--red-2); color: var(--body); }
.how-steps b { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.how-steps em {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  font-style: normal; font-weight: 700; font-size: 14px; color: #2a080c; background: #ffc4c4;
}
.video-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- power ---------- */
.power {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: center;
  padding: 44px;
  background: linear-gradient(120deg, var(--header-a), #3f0a10 55%, var(--card));
  border: 1px solid rgba(255, 180, 184, 0.16); border-radius: 26px;
  box-shadow: var(--shadow);
}
.power .section-copy { margin-bottom: 22px; }
.swarm-wrap { background: rgba(10, 6, 8, 0.6); border: 1px solid var(--line-soft); border-radius: 18px; padding: 18px; }
.swarm-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.swarm-head b { font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.swarm { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; aspect-ratio: 1; }
.swarm i { background: rgba(248, 240, 240, 0.06); border-radius: 2px; transition: background 0.35s, box-shadow 0.35s; }
.swarm i.on { background: var(--red); box-shadow: 0 0 5px rgba(224, 51, 64, 0.6); }

/* ---------- features ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 24px; }

/* ---------- google steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 24px; }
.step em {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 16px; border-radius: 12px;
  font-style: normal; font-weight: 700; color: #2a080c; background: #ffc4c4;
}

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { padding: 28px; }
.price h3 { margin: 0; font-size: 17px; color: var(--body); }
.price .amount { font-family: var(--f-display); font-weight: 700; font-size: 48px; line-height: 1.2; margin: 4px 0 16px; }
.price ul { margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line-soft); color: var(--body); font-size: 15px; }
.price li { display: flex; gap: 10px; margin: 10px 0; }
.price li .ico { margin-top: 3px; color: var(--pink); }
.price.hot {
  background: linear-gradient(165deg, var(--header-b), #3f0a10 50%, var(--card));
  border-color: rgba(255, 180, 184, 0.45);
  box-shadow: 0 0 70px -14px rgba(224, 51, 64, 0.7), 0 7px 0 -1px #120a0c, 0 26px 50px -12px #000;
  --lift: -8px;
}
.price.hot.tilting { --lift: -12px; }
.tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 11px;
  font-size: 12px; font-weight: 700; color: #2a080c; background: #ffc4c4; border-radius: 999px;
}

/* ---------- know ---------- */
.knows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.know { padding: 22px 0; border-top: 1px solid var(--line-soft); }
.know h3 { font-size: 17px; }

/* ---------- support ---------- */
.support-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-card { padding: 28px; text-decoration: none; display: block; }
.support-card b { display: block; font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.support-card .link { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--pink); word-break: break-all; }

/* ---------- final ---------- */
.final { padding-bottom: 84px; }
.final-card {
  text-align: center; padding: 54px 24px;
  background: radial-gradient(600px 300px at 50% 0, rgba(190, 28, 40, 0.5), transparent 70%), var(--card);
  border: 1px solid rgba(255, 180, 184, 0.16); border-radius: 26px;
  box-shadow: var(--shadow);
}
.final-card img { width: 88px; height: 88px; margin: 0 auto 18px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 40px rgba(190, 28, 40, 0.7); }
.final-card p { margin: 0 0 24px; color: var(--body); font-size: 17px; }

footer { border-top: 1px solid var(--line-soft); padding: 30px 5vw 44px; color: var(--muted); font-size: 13px; background: var(--bg-2); }
footer .inner { max-width: var(--max); margin: 0 auto; }
footer p { margin: 8px 0; }
.foot-brand { font-weight: 600; color: var(--body); }
footer a { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { gap: 18px; }
  .how { grid-template-columns: 1fr; }
  .how-steps { display: grid; grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .power { grid-template-columns: 1fr; }
  .swarm-wrap { max-width: 420px; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 14px;
    padding: 18px 5vw 22px;
    background: var(--header-a);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 40px; min-height: 0; }
  .stack-wrap { min-height: 380px; order: -1; }
  .stack { width: min(210px, 50vw); margin-left: -70px; }
  .band { grid-template-columns: 1fr 1fr; }
  .steps, .prices, .knows, .support-row { grid-template-columns: 1fr; }
  .price.hot { --lift: 0; }
  .video-frame { transform: none; }
  section { padding-top: 64px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .nav { padding: 10px 16px; }
  .hero, .band, section { padding-left: 16px; padding-right: 16px; }
  .grid, .how-steps { grid-template-columns: 1fr; }
  .stat { padding: 16px; }
  .stat b { font-size: 26px; }
  .power { padding: 24px 18px; }
  .play { width: 62px; height: 62px; }
  .play span { border-width: 11px 0 11px 18px; margin-left: 4px; }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal:not(.in) .tilt { opacity: 1; transform: none; }
}
