/* ==========================================================================
   CARTIOLOGY E-COMMERCE : "Vampire Rage" design system
   Gothic-Brutalism x Modern-Noir. Void black base, blood red structure.
   Sharp 0px corners everywhere. Tonal stacking + red outlines for depth.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: 'New Rocker';
  src: url('../fonts/new-rocker-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/space-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/space-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* base + tonal stack */
  --void: #000000;
  --surface-1: #0c0f0f;
  --surface-2: #121414;
  --surface-3: #1a1c1c;
  --surface-4: #1e2020;
  --surface-5: #282a2b;

  /* blood */
  --blood: #cc0000;          /* structural red: rules, borders, headline fills */
  --blood-deep: #930000;     /* darkened structural red */
  --blood-dark: #560000;     /* ghost numerals, faint fills */
  --blood-bright: #ff0000;   /* electric accent: hover, active, alerts only */
  --btn-red: #ee0000;        /* solid button fill (passes AA with black text) */
  --ember: #ff5540;          /* readable red for small mono labels on black */
  --rose: #ffb4a8;           /* red-tinted highlight text */
  --rose-dim: #e8bdb6;       /* red-tinted secondary text */

  /* ink */
  --ink: #e2e2e2;
  --ink-dim: #adadad;
  --ink-faint: #7c7c7c;

  /* outlines */
  --line: #5e3f3a;           /* quiet card / input borders */
  --line-faint: #2e2320;

  /* layout */
  --container: 1200px;
  --gutter: 24px;
  --margin: 48px;

  /* type */
  --font-display: 'New Rocker', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Menlo, monospace;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale: 10 sticky-cta / 20 header / 30 mobile-nav / 90 grain */
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; border-radius: 0; }
button { cursor: pointer; }

body {
  background-color: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* light leaks: red gradients bleeding from corners */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 88% -12%, rgba(204, 0, 0, 0.13), transparent 62%),
    radial-gradient(900px 640px at -14% 108%, rgba(204, 0, 0, 0.09), transparent 60%);
}

/* film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--blood); color: #000; }

/* scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--surface-5); border: 2px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: var(--blood); }

/* ---------- Typography ---------- */
h1, h2, h3, .display, .h-display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--blood);
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1, .display { font-size: clamp(2.4rem, 5.2vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--ink); }

p { max-width: 65ch; }
.lead { font-size: 1.125rem; color: var(--ink-dim); }
strong { color: var(--ink); }
small { font-size: 0.8125rem; }

a { color: var(--rose); text-decoration-color: var(--blood-deep); text-underline-offset: 3px; transition: color 0.18s ease; }
a:hover { color: var(--ember); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blood-bright);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ember);
  display: block;
  margin-bottom: 14px;
}

.muted { color: var(--ink-dim); }
.mono { font-family: var(--font-mono); }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blood);
  color: #000;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #000; }

/* thick red rules between large sections (brand: rules over whitespace) */
.rule {
  border: 0;
  height: 3px;
  background: var(--blood);
  margin: 0;
}
.rule--deep { background: var(--blood-deep); height: 2px; }
.rule--distressed {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blood) 0 16px, transparent 16px 26px, var(--blood-deep) 26px 34px, transparent 34px 44px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.2;
  white-space: nowrap;
  padding: 15px 26px;
  background: var(--btn-red);
  color: #000;
  border: 2px solid var(--btn-red);
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.25s ease, transform 0.18s var(--ease), color 0.18s ease;
}
.btn:hover {
  background: var(--blood-bright);
  border-color: var(--blood-bright);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.55), 0 0 64px rgba(255, 0, 0, 0.22);
  transform: translateY(-1px);
}
.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  border: 2px solid var(--blood);
  color: var(--rose);
}
.btn--ghost:hover {
  background: rgba(204, 0, 0, 0.12);
  border-color: var(--blood-bright);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.35);
}

.btn--sm { padding: 10px 18px; font-size: 0.8125rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { animation: btn-flicker 0.5s steps(2, end) 1; }
  @keyframes btn-flicker {
    0% { opacity: 1; } 30% { opacity: 0.82; } 45% { opacity: 1; } 60% { opacity: 0.9; } 100% { opacity: 1; }
  }
}

/* text-link CTA with arrow */
.link-cta {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose);
  text-decoration: none;
  border-bottom: 2px solid var(--blood);
  padding-bottom: 3px;
}
.link-cta:hover { color: #fff; border-color: var(--blood-bright); text-shadow: 0 0 14px rgba(255, 0, 0, 0.6); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--blood);
  color: #000;
  padding: 4px 10px;
}
.chip--outline {
  background: transparent;
  color: var(--ember);
  border: 1px solid var(--blood-deep);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blood);
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s var(--ease);
}
.card:hover {
  border-color: var(--blood);
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.14);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-dim); font-size: 0.9375rem; }

/* cross-marked lists (brand: crosses instead of bullets) */
.xlist { list-style: none; padding: 0; }
.xlist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-dim);
}
.xlist li::before {
  content: "\2715"; /* ✕ */
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--blood-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
}
.xlist strong { color: var(--ink); }

/* ---------- Image placeholders ----------
   Every .ph block marks a real image slot. The visible text describes the
   asset to produce; keep it as the alt text when the real image lands. */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  background:
    repeating-linear-gradient(-45deg, rgba(204, 0, 0, 0.05) 0 2px, transparent 2px 14px),
    var(--surface-2);
  border: 1px solid var(--line);
  outline: 1px dashed rgba(204, 0, 0, 0.35);
  outline-offset: -8px;
  padding: 20px;
  min-height: 180px;
  overflow: hidden;
}
.ph__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  background: var(--blood);
  padding: 3px 8px;
}
.ph__desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 46ch;
}
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--3x4 { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 21 / 9; }

/* ---------- Real images (replace .ph placeholders) ---------- */
.media { display: block; width: 100%; height: auto; object-fit: cover; background: #000; }
.post-card__media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line-faint); }
.media--hero { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-top: 3px solid var(--blood); }
.media--43 { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.media--cover { border: 1px solid var(--line); border-top: 3px solid var(--blood); }
.wins .media { height: 100%; min-height: 200px; border: 1px solid var(--line); }

/* ---------- Team portraits ---------- */
.team-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- Announcement bar ---------- */
.ann-bar {
  background: var(--void);
  border-bottom: 1px solid var(--blood-deep);
  max-width: none;
  text-align: center;
  padding: 8px var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--rose-dim);
}
.ann-bar a { color: var(--ember); font-weight: 700; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--blood);
}
.site-head__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--blood);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--blood-bright); text-shadow: 0 0 16px rgba(255, 0, 0, 0.55); }

.site-nav { display: flex; align-items: center; gap: 22px; margin-inline: auto; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ember); }
.site-nav a[aria-current="page"] { color: var(--rose); border-bottom-color: var(--blood); }

.head-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.head-actions .book-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose-dim);
  text-decoration: none;
}
.head-actions .book-link:hover { color: var(--ember); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--blood);
  color: var(--rose);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 12px;
}
.nav-toggle:hover { border-color: var(--blood-bright); color: #fff; }

@media (max-width: 1120px) {
  .head-actions .book-link { display: none; }
}
@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface-1);
    border-bottom: 3px solid var(--blood);
    padding: 8px 0;
    z-index: 30;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px var(--margin); border-bottom: 1px solid var(--line-faint); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line-faint); background: rgba(204, 0, 0, 0.08); }
  .nav-toggle { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 64px 72px; }
.hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gutter);
  align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; font-size: 1.1875rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { display: grid; gap: 14px; }
.hero__visual > :nth-child(2) { margin-left: 32px; }

/* stat strip (trust data lives below the hero, not inside it) */
.stat-strip { border-block: 2px solid var(--blood); background: var(--surface-1); }
.stat-strip__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--margin);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.stat { font-family: var(--font-mono); }
.stat b { display: block; font-size: 1.35rem; color: var(--rose); letter-spacing: 0.02em; }
.stat span { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); }

/* ---------- Pain points (text trio over red rules) ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.pain { border-top: 3px solid var(--blood-deep); padding-top: 18px; }
.pain h3 { color: var(--rose); font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.pain p { color: var(--ink-dim); font-size: 0.9375rem; }

/* ---------- Two-weapon split ---------- */
.weapons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.weapon { background: var(--surface-1); border: 1px solid var(--line); padding: 34px; position: relative; }
.weapon--intel { border-left: 4px solid var(--blood); }
.weapon--crew { border-left: 4px solid var(--blood); background: linear-gradient(160deg, rgba(204, 0, 0, 0.10), transparent 55%), var(--surface-1); }
.weapon h3 { margin-bottom: 6px; }
.weapon .tagline { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ember); margin-bottom: 16px; }
.weapon p { color: var(--ink-dim); margin-bottom: 16px; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); }
.post-grid__side { display: grid; gap: var(--gutter); align-content: start; }
.post-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s var(--ease);
}
.post-card:hover { border-color: var(--blood); box-shadow: 0 0 24px rgba(255, 0, 0, 0.14); transform: translateY(-2px); }
.post-card__body { padding: 20px 22px 22px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.post-card__meta time, .post-card__meta .read {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-card h3 { color: var(--rose); font-size: 1.25rem; margin-bottom: 8px; }
.post-card:hover h3 { color: #fff; }
.post-card p { color: var(--ink-dim); font-size: 0.9rem; }
.post-card--featured h3 { font-size: 1.6rem; }

/* blog index grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }

/* category filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.filter-bar button {
  background: transparent;
  border: 1px solid var(--blood-deep);
  color: var(--rose-dim);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px;
}
.filter-bar button:hover { border-color: var(--blood-bright); color: #fff; }
.filter-bar button[aria-pressed="true"] { background: var(--blood); border-color: var(--blood); color: #000; }

.search-field { position: relative; max-width: 420px; margin-bottom: 34px; }
.search-field input { width: 100%; }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.bento .card { display: flex; flex-direction: column; gap: 8px; }
.bento .card .mono-price { margin-top: auto; padding-top: 14px; }
.b-7 { grid-column: span 7; }
.b-5 { grid-column: span 5; }
.b-6 { grid-column: span 6; }
.b-4 { grid-column: span 4; }
.b-8 { grid-column: span 8; }
.b-12 { grid-column: span 12; }
.card--ember { background: linear-gradient(150deg, rgba(204, 0, 0, 0.16), transparent 60%), var(--surface-1); }
.card--ash { background: var(--surface-3); }

.mono-price {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Quotes / wins ---------- */
.wins { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.quote {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blood);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote blockquote { font-size: 1rem; color: var(--ink); line-height: 1.55; }
.quote figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quote figcaption b { color: var(--rose); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.step { position: relative; padding: 26px 24px 24px; background: var(--surface-1); border: 1px solid var(--line-faint); overflow: hidden; }
.step__numeral {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--blood-dark);
  position: absolute;
  right: 10px;
  top: -6px;
  user-select: none;
}
.step h3 { position: relative; margin-bottom: 8px; }
.step p { position: relative; color: var(--ink-dim); font-size: 0.9375rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-block: 3px solid var(--blood);
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(204, 0, 0, 0.28), transparent 70%),
    var(--surface-1);
  text-align: center;
  padding: 72px var(--gutter);
}
.cta-banner h2 { max-width: 800px; margin-inline: auto; margin-bottom: 14px; }
.cta-banner p { margin-inline: auto; margin-bottom: 28px; color: var(--ink-dim); }
.cta-banner .aux { display: block; margin-top: 18px; font-family: var(--font-mono); font-size: 0.8125rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--surface-1); border-top: 3px solid var(--blood); margin-top: 0; }
.site-foot__grid {
  max-width: var(--container);
  margin-inline: auto;
  padding: 56px var(--margin) 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px var(--gutter);
}
.site-foot h2 { font-size: 1.3rem; margin-bottom: 10px; }
.site-foot h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-foot ul a { color: var(--ink-dim); text-decoration: none; font-size: 0.9rem; }
.site-foot ul a:hover { color: var(--ember); }
.newsletter { margin-top: 18px; }
.newsletter p { font-size: 0.9rem; color: var(--ink-dim); margin-bottom: 12px; }
.newsletter form { display: flex; gap: 0; max-width: 380px; }
.newsletter input { flex: 1; min-width: 0; border-right: 0; }
.site-foot__legal {
  max-width: var(--container);
  margin-inline: auto;
  padding: 20px var(--margin) 28px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rose-dim);
}
.field .hint { font-size: 0.8125rem; color: var(--ink-faint); }
.field .error { font-size: 0.8125rem; color: var(--ember); display: none; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  background: var(--surface-1);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 14px;
  width: 100%;
  caret-color: var(--blood-bright);
  transition: border-color 0.18s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  border-color: var(--blood-bright);
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.25);
  outline: none;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff5540' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
textarea { min-height: 140px; resize: vertical; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.form-grid .field--full { grid-column: 1 / -1; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--blood-deep); }
.faq details { border-bottom: 1px solid var(--line-faint); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ember);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2715"; }
.faq details[open] summary { color: var(--rose); }
.faq .faq__a { padding: 0 4px 22px; color: var(--ink-dim); max-width: 70ch; }

/* ---------- Article / prose ---------- */
.article-head { max-width: 760px; margin-inline: auto; padding-block: 56px 32px; }
.article-head h1 { text-transform: none; font-size: clamp(2rem, 4vw, 3rem); margin-block: 16px 18px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.article-meta b { color: var(--rose); font-weight: 700; }
.prose { max-width: 760px; margin-inline: auto; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { text-transform: none; font-size: 1.75rem; margin-top: 2em; }
.prose h3 { font-family: var(--font-body); font-weight: 700; color: var(--rose); font-size: 1.15rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-dim); font-size: 1.0625rem; line-height: 1.75; }
.prose li { margin-bottom: 0.5em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  color: var(--blood-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
}
.prose ol { padding-left: 1.3em; }
.prose ol li::marker { color: var(--ember); font-family: var(--font-mono); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--blood);
  padding: 6px 0 6px 22px;
  color: var(--ink);
  font-size: 1.1rem;
}
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.prose th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember);
  text-align: left;
  border-bottom: 2px solid var(--blood);
  padding: 10px 14px 8px 0;
}
.prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-faint); color: var(--ink-dim); vertical-align: top; }

/* in-article CTA box */
.article-cta {
  border: 1px solid var(--blood);
  background: linear-gradient(140deg, rgba(204, 0, 0, 0.14), transparent 60%), var(--surface-1);
  padding: 26px 28px;
  margin-block: 2.2em !important;
}
.article-cta h3 { margin: 0 0 6px !important; font-family: var(--font-display); color: var(--blood); font-size: 1.35rem; }
.article-cta p { margin-bottom: 16px; }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.case { background: var(--surface-1); border: 1px solid var(--line); padding: 30px; }
.case__row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; margin-top: 14px; font-size: 0.9375rem; }
.case__row dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  padding-top: 3px;
}
.case__row dd { margin: 0; color: var(--ink-dim); }
.case__result { border-top: 2px solid var(--blood); margin-top: 18px; padding-top: 14px; }
.case__result b { font-family: var(--font-mono); color: var(--rose); font-size: 1.05rem; }

/* ---------- Channels list (community) ---------- */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px var(--gutter); }
.channel { display: flex; gap: 14px; align-items: baseline; border-bottom: 1px solid var(--line-faint); padding-bottom: 12px; }
.channel .tag { font-family: var(--font-mono); font-weight: 700; color: var(--ember); white-space: nowrap; font-size: 0.875rem; }
.channel p { font-size: 0.875rem; color: var(--ink-faint); }

/* timeline of early calls */
.calls { border-left: 3px solid var(--blood); padding-left: 28px; display: grid; gap: 26px; }
.call { position: relative; }
.call::before {
  content: "\2715";
  position: absolute;
  left: -39px;
  top: 2px;
  color: var(--blood-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
  background: var(--void);
  padding-block: 2px;
}
.call time { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); display: block; margin-bottom: 4px; }
.call h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--rose); margin-bottom: 4px; }
.call p { color: var(--ink-dim); font-size: 0.9375rem; }

/* ---------- Sticky CTA (services) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}
@media (max-width: 640px) {
  .sticky-cta { left: 16px; right: 16px; bottom: 12px; }
  .sticky-cta .btn { width: 100%; }
}

/* ---------- Service sections ---------- */
.svc { display: grid; grid-template-columns: 5fr 7fr; gap: 40px var(--gutter); align-items: start; }
.svc + .svc { margin-top: 64px; padding-top: 64px; border-top: 2px solid var(--blood-deep); }
.svc__intro h3 { font-size: 1.7rem; margin-bottom: 12px; }
.svc__intro .mono-price { display: inline-block; margin-top: 16px; border: 1px solid var(--blood-deep); padding: 8px 14px; }
.svc__detail { display: grid; gap: 26px; }
.svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.svc h4 { margin-bottom: 10px; }
.svc .mini-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 10px; }
.svc .mini-steps li { position: relative; padding-left: 40px; color: var(--ink-dim); font-size: 0.9375rem; }
.svc .mini-steps li::before {
  counter-increment: step;
  content: counter(step, upper-roman);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  color: var(--blood);
  font-size: 1.1rem;
}

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .post-card { transition: none; }
  .btn:hover { animation: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; }
}

/* ==========================================================================
   Product catalog (services page) : cards, pricing, warmup sliders, Telegram
   ========================================================================== */
.cat-head { max-width: 780px; margin-bottom: 32px; }
.cat-head h2 { margin-bottom: 12px; }
.cat-head p { color: var(--ink-dim); }
.cat + .cat { margin-top: 76px; }

/* 3-column catalog grid */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); align-items: stretch; }

/* product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blood);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s var(--ease);
}
.product-card:hover {
  border-color: var(--blood);
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.14);
  transform: translateY(-2px);
}
.pcard__media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-faint);
  background: #000;
}
.pcard__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.pcard--wide .pcard__media img { aspect-ratio: 16 / 9; }
.pcard__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  color: #000;
  background: var(--blood);
}
.pill--ghost { background: rgba(0, 0, 0, 0.72); color: var(--ember); border: 1px solid var(--blood-deep); }

.pcard__body { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; flex: 1; }
.pcard__title { font-size: 1.3rem; line-height: 1.2; }
.pcard__type { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: -6px; }
.pcard__desc { color: var(--ink-dim); font-size: 0.9375rem; }
.pcard__feats { list-style: none; padding: 0; display: grid; gap: 7px; }
.pcard__feats li { position: relative; padding-left: 20px; font-size: 0.875rem; color: var(--ink-dim); }
.pcard__feats li::before { content: "\2715"; position: absolute; left: 0; top: 1px; color: var(--blood-bright); font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; }
.pcard__feats strong { color: var(--ink); font-weight: 600; }
.pcard__kyc { font-size: 0.8125rem; color: var(--rose-dim); border-left: 2px solid var(--blood-deep); padding-left: 12px; }

/* segmented offer / variant selector */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--blood-deep); }
.seg .seg__opt { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  color: var(--rose-dim);
  border-right: 1px solid var(--blood-deep);
  transition: background 0.15s ease, color 0.15s ease;
}
.seg label:last-of-type { border-right: 0; }
.seg .seg__opt:checked + label { background: var(--blood); color: #000; }
.seg .seg__opt:focus-visible + label { outline: 2px solid var(--blood-bright); outline-offset: 2px; }

/* bank picker */
.bank-select {
  width: 100%;
  background: var(--surface-3);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.bank-select:focus-visible { outline: 2px solid var(--blood); outline-offset: 1px; }
.field-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 7px; }

/* price */
.price-block { margin-top: auto; padding-top: 6px; }
.price__from { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.price__amount { font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem; color: var(--ember); letter-spacing: 0.01em; line-height: 1.1; }
.price__unit { font-size: 0.8125rem; color: var(--ink-dim); }
.price__note { font-size: 0.75rem; color: var(--ink-faint); margin-top: 2px; }

/* warmup slider */
.warmup { border: 1px solid var(--line-faint); background: var(--surface-2); padding: 14px 16px; display: grid; gap: 10px; }
.warmup__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.warmup__label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); }
.warmup__val { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; color: var(--ember); }
.warmup__range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: var(--surface-5); outline-offset: 4px; }
.warmup__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: var(--btn-red); border: 2px solid #000; box-shadow: 0 0 10px rgba(255,0,0,0.5); cursor: pointer; }
.warmup__range::-moz-range-thumb { width: 18px; height: 18px; background: var(--btn-red); border: 2px solid #000; box-shadow: 0 0 10px rgba(255,0,0,0.5); cursor: pointer; border-radius: 0; }
.warmup__range::-webkit-slider-runnable-track { height: 4px; }
.warmup__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.625rem; color: var(--ink-faint); }

/* info tooltip */
.tip { position: relative; display: inline-flex; }
.tip__btn {
  width: 16px; height: 16px; padding: 0; border: 1px solid var(--blood-deep); background: transparent;
  color: var(--ember); font-family: var(--font-mono); font-size: 0.625rem; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.tip__btn:hover, .tip__btn:focus-visible { border-color: var(--blood-bright); color: #fff; }
.tip__bubble {
  position: absolute; bottom: calc(100% + 10px); left: 0;
  width: 240px; max-width: 62vw; z-index: 5;
  background: var(--surface-4); border: 1px solid var(--blood-deep); color: var(--ink-dim);
  font-family: var(--font-body); font-size: 0.75rem; line-height: 1.5; letter-spacing: 0; text-transform: none; font-weight: 400;
  padding: 12px 14px; box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.tip__bubble::after { content: ""; position: absolute; top: 100%; left: 14px; border: 6px solid transparent; border-top-color: var(--blood-deep); }
.tip:hover .tip__bubble, .tip:focus-within .tip__bubble, .tip.is-open .tip__bubble { opacity: 1; visibility: visible; transform: translateY(0); }

/* card actions */
.pcard__actions { display: grid; gap: 10px; margin-top: 4px; }
.tg-btn { width: 100%; }
.tg-ico { width: 18px; height: 18px; flex: none; }
.link-more { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rose-dim); text-decoration: none; text-align: center; }
.link-more:hover { color: #fff; }

/* clipboard toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(16px);
  z-index: 40; max-width: 92vw;
  background: var(--surface-4); border: 1px solid var(--blood); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.8125rem; padding: 13px 18px;
  box-shadow: 0 0 26px rgba(255,0,0,0.2);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* product detail hero */
.product-hero { display: grid; grid-template-columns: 5fr 6fr; gap: 40px var(--margin); align-items: start; }
.product-hero__media { border: 1px solid var(--line); border-top: 3px solid var(--blood); background: #000; }
.product-hero__media img { width: 100%; height: auto; }
.product-hero .price__amount { font-size: 2rem; }
.product-hero .pcard__feats { margin: 4px 0 2px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--gutter); margin-top: 8px; }

/* breadcrumb (product detail) */
.crumb { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 20px; }
.crumb a { color: var(--rose-dim); text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb span[aria-hidden] { color: var(--blood-deep); padding: 0 6px; }

/* prose sections (product detail) */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-dim); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }

/* related setups grid */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gutter); }
.related-card { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: var(--surface-1); border: 1px solid var(--line); border-top: 3px solid var(--blood-deep); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.25s ease; }
.related-card:hover { border-color: var(--blood); transform: translateY(-2px); box-shadow: 0 0 18px rgba(255, 0, 0, 0.12); }
.related-card h3 { font-size: 1.15rem; line-height: 1.2; color: var(--ink); }
.related-card .link-more { text-align: left; margin-top: 4px; }

/* ---------- Responsive collapses ---------- */
@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr 1fr; }
  .product-hero { grid-template-columns: 1fr; gap: 28px; }
  .container { padding-inline: 24px; }
  .site-head__inner { padding-inline: 24px; }
  .site-foot__grid, .site-foot__legal { padding-inline: 24px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual > :nth-child(2) { margin-left: 0; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .wins { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .bento .b-7, .bento .b-5, .bento .b-6, .bento .b-4, .bento .b-8 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .site-head__inner { padding-inline: 16px; }
  .site-foot__grid, .site-foot__legal { padding-inline: 16px; }
  .section { padding-block: 48px; }
  .hero { padding-block: 40px 48px; }
  .pains, .steps, .weapons, .blog-grid, .wins, .case-grid, .channels, .svc__cols, .form-grid, .catalog, .spec-grid { grid-template-columns: 1fr; }
  .stat-strip__inner { grid-template-columns: 1fr; gap: 12px; padding-inline: 16px; }
  .bento .b-7, .bento .b-5, .bento .b-6, .bento .b-4, .bento .b-8, .bento .b-12 { grid-column: span 12; }
  .site-foot__grid { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .newsletter input { border-right: 1px solid var(--line); }
  .case__row { grid-template-columns: 1fr; gap: 4px; }
}
