/* ═══ REQUIEM landing — shop-matched warm palette ═════════════════
   Palette pulled from requiem-2u6.pages.dev (shop DB):
   bg #150f12 · card #241a1f · line #3d2d34 · txt #f4ede9
   tan #c29a74→#d9b591 · berry #913768→#b04a83
   gold #e6bc6e · gem #7fd4e8 · ok #7cc79a · red #e77f8b        */

:root {
  --bg: #150f12;
  --bg-2: #1c1418;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.055);
  --card: #241a1f;
  --line: #3d2d34;
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f4ede9;
  --muted: #a6928f;
  --dim: #6f5e5b;
  --tan: #c29a74;
  --tan-2: #d9b591;
  --berry: #913768;
  --berry-2: #b04a83;
  --gold: #e6bc6e;
  --gem: #7fd4e8;
  --ok: #7cc79a;
  --red: #e77f8b;
  --ink: #2a1c10;
  --grad: linear-gradient(120deg, var(--tan-2) 0%, var(--tan) 45%, var(--berry-2) 100%);
  --grad-solid: linear-gradient(135deg, var(--tan), var(--tan-2));
  --grad-berry: linear-gradient(135deg, var(--berry), var(--berry-2));
  --r-lg: 22px;
  --r-md: 14px;
  --font: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(145,55,104,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(194,154,116,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection { background: rgba(176, 74, 131, .45); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--tan), var(--berry-2));
  border-radius: 8px;
}

/* anchored sections must clear the fixed nav */
section[id] { scroll-margin-top: 84px; }

/* ── background layers ─────────────────────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0; z-index: -3;
  width: 100%; height: 100%;
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; z-index: -2; pointer-events: none;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(145,55,104,.16), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  left: 50%; top: 30%;
}

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(194,154,116,.5);
}

/* ── nav ───────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  transition: background .35s, border .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(21, 15, 18, .87);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 10px clamp(20px, 5vw, 56px);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad); color: var(--ink);
  font-weight: 800; font-size: 17px;
  box-shadow: 0 0 24px rgba(145, 55, 104, .5);
}
.logo-text {
  font-weight: 800; letter-spacing: .22em; font-size: 15px;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  font-weight: 500; position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 2px; background: var(--grad);
  border-radius: 2px; transition: width .3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-burger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: .3s;
}

/* ── buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  text-decoration: none; border-radius: 12px; cursor: pointer;
  padding: 14px 26px;
  transition: transform .25s, box-shadow .25s, background .25s, border .25s;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 19px; height: 19px; fill: currentColor; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-primary {
  background: var(--grad-solid); color: var(--ink);
  box-shadow: 0 6px 30px rgba(194, 154, 116, .3);
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 42px rgba(194, 154, 116, .5);
}
.btn-ghost {
  color: var(--text); background: var(--panel);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--tan); background: rgba(194,154,116,.08); color: var(--tan-2); }

/* ── hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; position: relative;
  padding: 130px clamp(20px, 5vw, 56px) 80px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 6vw, 80px); align-items: center;
  width: 100%; max-width: 1240px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--tan-2);
  background: rgba(194, 154, 116, .08);
  border: 1px solid rgba(194, 154, 116, .3);
  padding: 7px 15px; border-radius: 100px; margin-bottom: 26px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); display: inline-block;
  box-shadow: 0 0 0 0 rgba(124, 199, 154, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(124, 199, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 199, 154, 0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.02em;
  margin-bottom: 22px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.13rem);
  max-width: 52ch; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; align-items: center; gap: 22px; }
.hstat b {
  font-size: 26px; font-weight: 800;
  font-family: var(--mono); color: var(--tan-2);
}
.hstat span { color: var(--dim); font-size: 13px; display: block; }
.hstat-sep { width: 1px; height: 34px; background: var(--line); }

/* telegram window mockup */
.hero-visual { position: relative; display: grid; place-items: center; }
.tg-window {
  width: min(380px, 100%);
  background: linear-gradient(160deg, #241a1f, #180f13);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 60px rgba(145,55,104,.14);
  overflow: hidden;
  transform-style: preserve-3d;
}
.tg-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.tg-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: var(--ink);
  display: grid; place-items: center; font-weight: 800;
}
.tg-name { font-weight: 700; font-size: 14.5px; }
.tg-status {
  font-size: 12px; color: var(--ok);
  display: flex; align-items: center; gap: 6px;
}
.tg-check { margin-inline-start: auto; color: var(--gem); font-size: 13px; }
.tg-body { padding: 18px 16px; }
.tg-msg {
  background: rgba(145, 55, 104, .1);
  border: 1px solid rgba(176, 74, 131, .25);
  border-radius: 14px; padding: 14px 16px;
  font-size: 13.5px;
}
.card-title { font-size: 14px; margin-bottom: 8px; }
.card-sep {
  height: 1px; margin: 8px 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.card-line { padding: 2px 0; font-family: var(--mono); font-size: 12.5px; }
.card-line.dim { color: var(--muted); font-family: var(--font); font-style: italic; }
.card-xpbar {
  height: 6px; border-radius: 4px; margin: 8px 0;
  background: rgba(255,255,255,.07); overflow: hidden;
}
.card-xpbar i {
  display: block; height: 100%; width: 0%;
  background: var(--grad); border-radius: 4px;
  transition: width .6s ease;
}
.card-foot {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--dim); font-family: var(--mono);
}
.card-foot .live { color: var(--ok); }
.tg-kb { margin-top: 10px; display: flex; justify-content: center; }
.tg-kb span {
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  padding: 8px 26px; border-radius: 10px; font-size: 13px; color: var(--red);
}
.tg-chip {
  position: absolute; z-index: 2;
  background: rgba(36, 26, 31, .94);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 10px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.chip-1 { top: 6%; right: 2%; color: var(--gold); }
.chip-2 { bottom: 14%; left: -4%; }
.chip-3 { bottom: -2%; right: 8%; color: var(--gem); }
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 6s ease-in-out infinite 1.2s; }
.float-c { animation: floaty 8s ease-in-out infinite .6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-13px) rotate(.4deg); }
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 140px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* ── marquee ───────────────────────────────────────────────────── */
.marquee {
  overflow: hidden; padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 38px; width: max-content;
  animation: scroll 26s linear infinite;
}
.marquee-track span {
  font-weight: 700; font-size: 15px; letter-spacing: .06em;
  color: var(--muted); white-space: nowrap;
}
.marquee-track i { color: var(--berry-2); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── sections ──────────────────────────────────────────────────── */
.section { padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 56px); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.tag {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tan-2); margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* features grid */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1180px; margin: 0 auto;
}
.feat-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .3s, border .3s, box-shadow .3s;
  overflow: hidden;
}
.feat-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%),
              rgba(194,154,116,.10), transparent 55%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.feat-card:hover::before { opacity: 1; }
.feat-card:hover {
  border-color: rgba(194,154,116,.5);
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
  transform: translateY(-4px);
}
.feat-hot { border-color: rgba(176,74,131,.35); }
.feat-icon {
  font-size: 26px; margin-bottom: 16px;
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line);
}
.feat-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.feat-card ul { list-style: none; }
.feat-card li {
  color: var(--muted); font-size: 14px; padding: 4.5px 0 4.5px 20px;
  position: relative;
}
.feat-card li::before {
  content: "▸"; position: absolute; left: 0; color: var(--tan);
}
.feat-link { color: var(--tan-2); text-decoration: none; font-weight: 600; }
.feat-link:hover { text-decoration: underline; }
.feat-count {
  position: absolute; top: 24px; inset-inline-end: 24px;
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px;
}

/* ── spotlight ─────────────────────────────────────────────────── */
.spotlight { background: var(--bg-2); border-block: 1px solid var(--line); }
.spot-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px); align-items: center;
  max-width: 1180px; margin: 0 auto;
}
.spot-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.14; margin-bottom: 18px;
}
.spot-copy > p { color: var(--muted); margin-bottom: 26px; font-size: 1.04rem; }
.spot-list { list-style: none; }
.spot-list li {
  padding: 11px 0 11px 30px; position: relative;
  color: var(--muted); font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.spot-list li:last-child { border-bottom: 0; }
.spot-list li::before {
  content: "✦"; position: absolute; left: 0; color: var(--tan);
}
.spot-list b { color: var(--text); font-weight: 600; }

/* terminal window */
.term-window {
  background: #170f13;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 50px rgba(194,154,116,.07);
  overflow: hidden;
}
.term-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.term-head i { width: 11px; height: 11px; border-radius: 50%; }
.term-head i:nth-child(1) { background: #ff5f57; }
.term-head i:nth-child(2) { background: #febc2e; }
.term-head i:nth-child(3) { background: #28c840; }
.term-head span {
  margin-inline-start: auto; font-family: var(--mono);
  font-size: 11.5px; color: var(--dim);
}
.term-body {
  padding: 18px; font-family: var(--mono); font-size: 12.8px;
  line-height: 1.85; min-height: 320px;
}
.term-body .tl { display: block; opacity: 0; animation: tlIn .3s forwards; }
@keyframes tlIn { to { opacity: 1; } }
.tl-time { color: var(--dim); }
.tl-ok { color: var(--ok); }
.tl-info { color: var(--gem); }
.tl-warn { color: var(--gold); }
.tl-xp { color: var(--tan-2); }

/* ── steps ─────────────────────────────────────────────────────── */
.steps {
  display: flex; align-items: stretch; justify-content: center;
  gap: 18px; max-width: 1100px; margin: 0 auto;
}
.step {
  flex: 1; max-width: 320px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 26px;
  transition: border .3s, transform .3s;
}
.step:hover { border-color: rgba(194,154,116,.45); transform: translateY(-4px); }
.step-num {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--tan-2); margin-bottom: 18px;
  display: inline-block; padding: 5px 12px;
  border: 1px solid rgba(194,154,116,.35); border-radius: 8px;
  background: rgba(194,154,116,.08);
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; }
.step-arrow { align-self: center; font-size: 26px; color: var(--dim); }

/* ── plans ─────────────────────────────────────────────────────── */
.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; max-width: 1060px; margin: 0 auto; align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: transform .3s, border .3s, box-shadow .3s;
}
.plan-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.plan-pop {
  border-color: rgba(176,74,131,.55);
  background: linear-gradient(170deg, rgba(145,55,104,.16), var(--card) 45%);
  box-shadow: 0 24px 70px rgba(145,55,104,.2);
}
.plan-flag {
  position: absolute; top: -13px; inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--grad-solid); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 16px; border-radius: 100px; white-space: nowrap;
}
.plan-card h3 { font-size: 21px; margin-bottom: 8px; }
.plan-price {
  font-size: 38px; font-weight: 800; font-family: var(--mono);
  margin-bottom: 24px; color: var(--tan-2);
}
.plan-price span { font-size: 14px; color: var(--dim); font-weight: 500; font-family: var(--font); }
.plan-card ul { list-style: none; margin-bottom: 30px; flex: 1; }
.plan-card li {
  color: var(--muted); font-size: 14.5px; padding: 7px 0 7px 26px;
  position: relative;
}
.plan-card li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--ok); font-weight: 700;
}
.plan-card li b { color: var(--text); }

/* ── faq ───────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 12px;
  overflow: hidden; transition: border .3s;
}
.faq-item[open] { border-color: rgba(194,154,116,.45); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 19px 24px; font-weight: 600; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 300; color: var(--tan);
  transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px; color: var(--muted); font-size: 14.5px;
}

/* ── final cta / footer ────────────────────────────────────────── */
.cta-final {
  text-align: center; padding: clamp(70px, 10vw, 120px) 20px;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px circle at 50% 120%, rgba(145,55,104,.22), transparent 65%);
}
.cta-final h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.cta-final p { color: var(--muted); margin-bottom: 34px; font-size: 1.06rem; }
.footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px,5vw,56px) 50px;
  text-align: center; color: var(--dim); font-size: 13.5px;
}
.footer .logo-text { color: var(--muted); display: block; margin-bottom: 10px; }
.footer-fine { font-size: 12px; margin-top: 8px; opacity: .7; }

/* ── reveal animation ──────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .tg-window { width: min(340px, 92vw); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .spot-inner { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 62px;
    flex-direction: column; gap: 0;
    background: rgba(21,15,18,.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-130%); transition: transform .35s;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-burger { display: flex; }
  .feat-grid, .plan-grid { grid-template-columns: 1fr; }
  .plan-pop { order: -1; }
  .chip-1 { right: -2%; } .chip-2 { left: -6%; }
  .hero-stats { flex-wrap: wrap; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
}
