/* ============================================
   EON DESIGN SYSTEM — Standoff 2 Private Tool
   Premium dark theme with high contrast
   ============================================ */

:root {
  /* COLOR PALETTE — графит + тёмно-красный акцент */
  --bg: #121216;
  --surface: #18181d;
  --surface-2: #1f1f26;
  --line: #212128;
  --line-2: #2b2b34;
  --text: #f4f4f6;
  --text-2: #a6a6b4;
  --text-3: #6d6d7b;
  --accent: #c92a39;
  --accent-soft: rgba(201, 42, 57, .12);
  --accent-ink: #f4f4f6;
  --success: #2ec4b6;
  --warning: #fb8500;
  --danger: #e71d36;
  
  /* TYPOGRAPHY */
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', var(--sans);
  
  /* SPACING & SIZES */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
}

/* RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* SELECTION */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* FOCUS RING */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* BUTTONS */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* IMAGES & SVG */
img, svg {
  display: block;
}

/* MONOSPACE HELPER */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ACCENT TEXT */
.accent {
  color: var(--accent);
}

/* ============================================
   BACKGROUND — тихая точечная текстура
   ============================================ */

body {
  background:
    linear-gradient(180deg, #141419 0%, var(--bg) 320px);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ============================================
   COMPONENTS
   ============================================ */

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* TAG/BADGE */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid transparent;
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.tag:hover::before {
  background: var(--text);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  transition: 
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: #e03a4b;
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn .arr {
  transition: transform 0.18s ease;
}

.btn:hover .arr {
  transform: translateX(3px);
}

.btn-sm {
  padding: 10px 18px;
}

.btn-block {
  width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */

.sec {
  padding: 110px 0;
}

.sec-compact {
  padding-top: 40px;
}

.sec-tight {
  padding-top: 20px;
}

section[id] {
  scroll-margin-top: 92px;
}

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 64px;
  max-width: 640px;
}

.sec-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.sec-head p {
  color: var(--text-2);
  font-size: 16px;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */

.tag-cta {
  margin-bottom: 24px;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 9px 16px;
  transition: background 0.18s ease;
}

.notice:hover {
  background: #d63547;
}

.notice .pulse {
  background: #fff;
}

.notice-arr {
  opacity: .85;
  transition: transform 0.18s ease;
}

.notice:hover .notice-arr {
  transform: translateX(3px);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 22, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    padding-top 0.3s ease;
}

header.scrolled {
  background: transparent;
  border-bottom-color: transparent;
  padding-top: 20px;
}

header.hide-on-scroll {
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  margin-top: 0;
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    margin-top 0.3s ease,
    border-radius 0.3s ease,
    padding 0.3s ease,
    height 0.3s ease;
}

/* Парящая капсула при скролле */
header.scrolled .nav {
  height: 54px;
  border-radius: 999px;
  padding-left: 24px;
  padding-right: 24px;
  background: rgba(24, 24, 29, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, .07);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: filter 0.2s ease;
}

.logo:hover {
  filter: brightness(1.1);
}

.logo .br {
  color: var(--accent);
}

.logo svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.15s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.18s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  width: 100%;
}

/* STATUS INDICATOR */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--text-2);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(201, 42, 57, 0.5);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px rgba(201, 42, 57, 0);
  }
}

/* BURGER MENU */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 72px 0 84px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: center;
  perspective: 1200px;
}

.hero .tag {
  margin-bottom: 34px;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 68px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 24px;
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  opacity: .85;
}

.hero .sub {
  color: var(--text-2);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-meta {
  display: flex;
  gap: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  width: fit-content;
  overflow: hidden;
  background: var(--surface);
}

.hero-meta .cell {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  transition: background 0.18s ease;
}

.hero-meta .cell:last-child {
  border-right: none;
}

.hero-meta .cell:hover {
  background: var(--surface-2);
}

.hero-meta .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-meta .v {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

/* TERMINAL PREVIEW */
.term {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), #0a0a0d);
  overflow: hidden;
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.9);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(.2, .8, .3, 1);
  will-change: transform;
}

.term::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 28px 28px;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.term-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.term-bar .dot:first-child {
  background: var(--accent);
}

.term-bar .title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-3);
}

.term-bar .st {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
}

.term-body {
  padding: 20px 18px;
  position: relative;
}

.term-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  transition: background 0.15s ease;
}

.term-row:hover {
  background: var(--surface-2);
}

.term-row:last-child {
  border-bottom: none;
}

.term-row .tk {
  color: var(--text-3);
  min-width: 110px;
  font-size: 11px;
  letter-spacing: .06em;
}

.term-row .tv {
  color: var(--text);
}

.term-row .tv.accent {
  color: var(--accent);
}

.term-row .tv.good {
  color: var(--success);
}

.term-row .bar-v {
  flex: 1;
  height: 3px;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}

.term-row .bar-v i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.term-row .bar-v i.hp-fill {
  width: 82%;
}

/* PLATFORM CHIPS */
.hero-plat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-plat span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 12px;
}

/* ============================================
   PROMO
   ============================================ */

.promo {
  padding: 0 0 48px;
}

.promo-in {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
  border-radius: var(--radius-xl);
  background: var(--accent);
  padding: 48px 48px;
  position: relative;
  overflow: hidden;
}

.promo-in::before {
  content: 'FREE';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.promo-in .tag-accent {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}

.promo-in .tag-accent::before {
  background: #fff;
}

.promo-left h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #fff;
  margin: 18px 0 12px;
}

.promo-left p {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.btn-ink {
  background: #141419;
  color: #f4f4f6;
  font-weight: 600;
}

.btn-ink:hover {
  background: #000;
  transform: translateY(-2px);
}

.promo .btn-ink {
  animation: cta-pulse 2.4s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 20, 25, .4); }
  50% { box-shadow: 0 0 0 9px rgba(20, 20, 25, 0); }
}

.promo-timer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.promo-timer-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.promo-cells {
  display: flex;
  gap: 10px;
}

.pcell {
  min-width: 76px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, .28);
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pcell .pv {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.pcell .pk {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

/* ============================================
   MODULES GRID
   ============================================ */

.mods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mod {
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mod::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.mod:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.mod:hover::after {
  transform: scaleX(1);
}

.mod-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mod-ic {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--bg);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.mod:hover .mod-ic {
  border-color: var(--accent);
}

.mod-ic svg {
  width: 22px;
  height: 22px;
}

.mod-n {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--text-3);
}

.mod h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.mod p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.mod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.mod-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.mod:hover .mod-tags span {
  color: var(--text-2);
  border-color: var(--line-2);
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.period {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 48px;
  gap: 4px;
  background: var(--bg);
}

.period button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 999px;
  color: var(--text-2);
  transition: all 0.18s ease;
  position: relative;
}

.period button:hover {
  color: var(--text);
}

.period button.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 44px 34px 38px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.plan.feat {
  border-color: var(--accent);
  background: var(--bg);
}

.plan:hover.feat {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.plan .ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan .ribbon-free {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  top: -11px;
  backdrop-filter: blur(6px);
}

.plan .name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.plan .tagline {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 26px;
}

.plan .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.plan .price .num {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.plan .price .cur {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text-2);
}

.plan .per {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 28px;
}

.plan ul {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
}

.plan li::before {
  content: '+';
  font-family: var(--mono);
  color: var(--accent);
  font-size: 14px;
  line-height: 1.4;
}

.plan li.off {
  color: var(--text-3);
}

.plan li.off::before {
  content: '–';
  color: var(--text-3);
}

.plan .btn {
  width: 100%;
}

/* ============================================
   STEPS / HOW TO
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  background: var(--surface);
  position: relative;
  transition: 
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.step:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.step .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 18px;
  display: block;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ============================================
   FAQ ACORDION
   ============================================ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.faq-item:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.faq-item.open {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s ease;
}

.faq-item.open .faq-q {
  color: var(--accent);
}

.faq-q .pm {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 20px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .pm {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a .inner {
  padding: 0 24px 24px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 720px;
  line-height: 1.65;
}

/* ============================================
   CTA BLOCK
   ============================================ */

.cta {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 70px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 16px;
  position: relative;
}

.cta p {
  color: var(--text-2);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 36px;
  position: relative;
}

.cta .btn {
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.foot .links {
  display: flex;
  gap: 24px;
}

.foot .links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.foot .links a:hover {
  color: var(--accent);
}

.foot small {
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================
   MODAL
   ============================================ */

.modal-ov {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 7, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-ov.open {
  display: flex;
  animation: fadein 0.2s ease;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  animation: slideup 0.28s cubic-bezier(.2, .8, .3, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

@keyframes slideup {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal .x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: color 0.15s ease;
}

.modal .x:hover {
  color: var(--text);
}

.modal h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 8px 0 4px;
}

.modal .pick {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 26px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 42, 57, 0.15);
}

.modal .note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

.note-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.note-link:hover {
  border-bottom-color: var(--accent);
}

/* ============================================
   ANIMATIONS (reveal on scroll)
   ============================================ */

.rv {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .7, .3, 1);
}

/* hidden only when JS is active and element is not yet revealed */
.js-active .rv:not(.in) {
  opacity: 0;
  transform: translateY(18px);
}

.js-active .rv.in {
  opacity: 1;
  transform: none;
}

/* ============================================
   ACCOUNT / ЛИЧНЫЙ КАБИНЕТ
   ============================================ */

.auth-wrap {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 36px;
}

.auth-card h1 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 16px 0 24px;
}

.atabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--bg);
}

.atab {
  flex: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 0;
  border-radius: 999px;
  color: var(--text-2);
  transition: all 0.18s ease;
}

.atab:hover {
  color: var(--text);
}

.atab.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.auth-error {
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.auth-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

/* DASHBOARD */
.acc {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: calc(100vh - 76px);
}

.acc-side {
  border-right: 1px solid var(--line);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  background: var(--surface);
}

.acc-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 6px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

.acc-user-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.au-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.au-since {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}

.snav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.snav button {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
}

.snav button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.snav button.active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line-2);
}

.snav-out {
  width: 100%;
}

.snav a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.snav a:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
}

/* DOWNLOAD PAGE */
.dl-sub {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin: -10px 0 22px;
}

.dl-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.dl-file {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: 14px 16px;
}

.dl-file-ic {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-file-ic svg {
  width: 20px;
  height: 20px;
}

.dl-file-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dl-file-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.dl-file-info {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}

.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.dl-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-2);
}

.dl-step span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.acc-main {
  padding: 48px 44px 96px;
  max-width: 880px;
  width: 100%;
}

.acc-title {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

.acc-sub {
  font-size: 16px;
  font-weight: 700;
  margin: 36px 0 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.minicard {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.minicard .mk {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.minicard .mv {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.minicard .mv.ok { color: var(--success); }
.minicard .mv.bad { color: var(--danger); }

.act-list {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.act-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}

.act-item:last-child {
  border-bottom: none;
}

.act-item time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.act-empty {
  padding: 22px 18px;
  font-size: 14px;
  color: var(--text-3);
  text-align: center;
}

.acc-view .dcard {
  margin-bottom: 16px;
}

.dcard {
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dcard .dk {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.dcard .dv {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.dcard .dm {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.dcard .dm b {
  color: var(--text);
  font-weight: 600;
}

.dcard .ok { color: var(--success); }
.dcard .bad { color: var(--danger); }

.dkey {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--accent);
  word-break: break-all;
}

.dkey.big {
  font-size: 19px;
}

.key-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.key-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.key-badge.ok {
  color: var(--success);
  border: 1px solid var(--success);
  background: rgba(46, 196, 182, .08);
}

.key-badge.bad {
  color: var(--text-3);
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.msg.ok {
  border: 1px solid var(--success);
  color: var(--success);
}

.msg.err {
  border: 1px solid var(--danger);
  color: var(--danger);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  font-weight: 600;
}

.btn-danger:hover {
  background: #f03048;
  transform: translateY(-2px);
}

.danger-zone {
  border-color: var(--danger);
}

.bar-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

@media(max-width: 900px) {
  .acc {
    grid-template-columns: 1fr;
  }

  .acc-side {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 16px;
    gap: 18px;
  }

  .snav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .snav button {
    width: auto;
    white-space: nowrap;
  }

  .snav-out {
    width: auto;
  }

  .acc-main {
    padding: 32px 16px 64px;
  }
}

/* MODAL SUCCESS */
.modal-done p {
  color: var(--text-2);
  font-size: 14px;
  margin: 6px 0 24px;
  line-height: 1.6;
}

.modal-done .btn {
  width: 100%;
}

/* LEGAL PAGE */
.legal {
  padding: 72px 0 96px;
}

.legal-wrap {
  max-width: 720px;
}

.legal h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 18px 0 8px;
}

.legal-upd {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 48px;
}

.legal section {
  margin-bottom: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal h2 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal p:last-child {
  margin-bottom: 0;
}

/* CRYPTO PAYMENT */
.pay-methods {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--bg);
}

.pay-methods button {
  flex: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 0;
  border-radius: 999px;
  color: var(--text-2);
  transition: all 0.18s ease;
}

.pay-methods button:hover {
  color: var(--text);
}

.pay-methods button.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.pay-amount {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--accent);
}

.pay-addr {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.pay-addr span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  word-break: break-all;
  flex: 1;
}

.pay-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.pay-copy:hover {
  color: var(--text);
}

/* PAYMENT PLANS (dashboard) */
.pay-plans {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pay-plan {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.pay-plan:hover {
  border-color: var(--line-2);
}

.pay-plan.active {
  border-color: var(--accent);
  background: rgba(201, 42, 57, .08);
}

.pp-name {
  display: block;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.pp-price {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}

.pay-periods {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.pay-periods button {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pay-periods button:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.pay-periods button.active {
  border-color: var(--accent);
  background: rgba(201, 42, 57, .08);
  color: var(--text);
}

.pay-amount-lg {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  text-align: center;
}

.pay-hint {
  margin-top: -6px;
}

.pay-confirm {
  margin-top: 8px;
}

.pay-note {
  font-family: var(--mono);
  margin-top: 12px;
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.6;
}

/* ============================================
   DISPLAY TYPOGRAPHY
   ============================================ */

.hero h1,
.sec-head h2,
.mod h3,
.cta h2,
.modal h3,
.step h3,
.faq-q {
  font-family: var(--display);
}

.hero h1 {
  font-weight: 700;
  letter-spacing: -.035em;
}

.sec-head h2,
.cta h2 {
  font-weight: 700;
  letter-spacing: -.025em;
}

.sec-head p,
.hero .sub {
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media(max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  
  .plan.feat {
    order: -1;
  }
  
  .mods {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 16px;
    gap: 4px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  
  .burger {
    display: flex;
  }
  
  .nav-status {
    display: none;
  }
}

@media(max-width: 640px) {
  .sec {
    padding: 80px 0;
  }

  .promo-in {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .promo-timer {
    align-items: flex-start;
  }

  .pcell {
    min-width: 0;
    flex: 1;
  }

  .promo-cells {
    width: 100%;
  }
  
  .mods {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
  
  .hero-meta {
    width: 100%;
  }
  
  .hero-meta .cell {
    flex: 1;
    padding: 12px 14px;
  }
  
  .cta {
    padding: 48px 24px;
  }
  
  .wrap {
    padding: 0 16px;
  }
}
