/* ============ Tokens ============ */
:root {
  /* Primitive palette */
  --color-black-900: #06070a;
  --color-black-800: #0b0c10;
  --color-black-700: #14161c;
  --color-silver-100: #f5f5f7;
  --color-silver-300: #c7c9d1;
  --color-silver-500: #8a8d99;
  --color-silver-700: #2c2e36;
  --color-red-500: #e1261c;
  --color-red-400: #ff6a3d;
  --color-red-700: #8c0f09;

  /* Semantic */
  --bg-page: var(--color-black-900);
  --bg-surface: var(--color-black-800);
  --bg-surface-raised: var(--color-black-700);
  --text-primary: var(--color-silver-100);
  --text-secondary: var(--color-silver-300);
  --text-muted: var(--color-silver-500);
  --border-subtle: var(--color-silver-700);
  --brand-accent: var(--color-red-500);
  --brand-accent-hover: var(--color-red-400);
  --focus-ring: var(--color-red-400);

  /* Per-platform brand colors */
  --brand-telegram: #229ED9;
  --brand-whatsapp: #25D366;
  --brand-instagram-mid: #dd2a7b;
  --brand-linkedin: #0A66C2;
  --brand-facebook: #1877F2;
  --brand-youtube: #FFD400;

  /* Fonts */
  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --fs-hero: clamp(2.25rem, 4.5vw + 1rem, 3.75rem);
  --fs-h1: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  --fs-stat: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --lh-tight: 1.15;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --container-max: 1200px;
  --container-pad: var(--space-4);

  --transition-fast: 150ms ease;
}

@media (min-width: 900px) {
  :root { --container-pad: var(--space-8); }
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Eyebrow / section title ============ */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-accent-hover);
  margin: 0 0 var(--space-4);
}
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  color: var(--text-primary);
  margin: 0 0 var(--space-8);
  max-width: 36ch;
}
.section-title--center { text-align: center; margin-inline: auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-5);
  font-size: var(--fs-small);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}
.btn--sm { padding: var(--space-2) var(--space-4); font-size: 0.8125rem; }
.btn--lg { padding: var(--space-3) var(--space-6); font-size: var(--fs-body); }
.btn--accent {
  background: var(--brand-accent);
  color: #fff;
}
.btn--accent:hover { background: var(--brand-accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn--ghost:hover { border-color: var(--text-secondary); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo-mark { display: inline-flex; align-items: center; line-height: 0; }
.site-header__cta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: nowrap; }
.logo-mark img {
  height: 30px;
  width: auto;
  filter: url(#logo-black-to-alpha);
}
.logo-mark--footer img { height: 26px; }

/* ============ Hero ============ */
.hero {
  background: var(--bg-page);
}
.hero__content {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding-top: var(--space-20);
  padding-bottom: var(--space-16);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
.hero__title .tm { font-size: 0.4em; vertical-align: super; }
.hero__tagline {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto var(--space-8);
  line-height: var(--lh-relaxed);
}
.hero__actions {
  display: flex;
  justify-content: center;
}

/* ============ Channels ============ */
section { position: relative; }
.channels { padding: var(--space-16) 0; background: #000; border-top: 1px solid var(--border-subtle); }
.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-small);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.channel-pill__icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-secondary); transition: color var(--transition-fast); }

.channel-pill--telegram:hover { border-color: var(--brand-telegram); }
.channel-pill--telegram:hover .channel-pill__icon { color: var(--brand-telegram); }
.channel-pill--whatsapp:hover { border-color: var(--brand-whatsapp); }
.channel-pill--whatsapp:hover .channel-pill__icon { color: var(--brand-whatsapp); }
.channel-pill--linkedin:hover { border-color: var(--brand-linkedin); }
.channel-pill--linkedin:hover .channel-pill__icon { color: var(--brand-linkedin); }
.channel-pill--facebook:hover { border-color: var(--brand-facebook); }
.channel-pill--facebook:hover .channel-pill__icon { color: var(--brand-facebook); }
.channel-pill--instagram:hover { border-color: var(--brand-instagram-mid); }
.channel-pill--instagram:hover .channel-pill__icon { color: var(--brand-instagram-mid); }
.channel-pill--youtube:hover { border-color: var(--brand-youtube); }
.channel-pill--youtube:hover .channel-pill__icon { color: var(--brand-youtube); }

/* ---- Smoke-ring social icons (replaces the pill row) ---- */
.ring-row {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2px, 1vw, 16px);
}
.ring-item {
  /* fluid so all 7 fit one row on any width; capped at 88px on desktop */
  --cell: clamp(34px, 11.5vw, 88px);
  --refl-offset: calc(var(--cell) * -0.27); /* reflection hug, scales with size */
  position: relative;
  display: grid;
  place-items: center;
  width: var(--cell);
  height: var(--cell);
  border-radius: 12px;
  text-decoration: none;
  -webkit-box-reflect: below var(--refl-offset)
    linear-gradient(to bottom, rgba(255,255,255,.5), rgba(255,255,255,.12) 42%, transparent 72%);
}
/* rest: still ring (transparent WebP) */
.ring-item::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  background: url('/home-assets/smoke-ring.webp') center / contain no-repeat;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s ease;
}
/* hover: real footage plays (same framing, starts on the ring) */
.ring-item__vid {
  position: absolute;
  left: 50%; top: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.ring-item__glyph {
  position: relative;
  z-index: 1;
  width: 31%; height: 31%;
  transform: translate(1.5%, -1%);
  color: var(--text-primary);
  fill: currentColor;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), filter .3s ease;
}
.ring-item:hover::before,
.ring-item:focus-visible::before { opacity: 0; }
.ring-item:hover .ring-item__vid,
.ring-item:focus-visible .ring-item__vid { opacity: 1; }
.ring-item:hover .ring-item__glyph,
.ring-item:focus-visible .ring-item__glyph {
  transform: translate(1.5%, -1%) scale(1.09);
  filter: drop-shadow(0 0 11px rgba(255,255,255,.42));
}
.ring-item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .ring-item:hover::before,
  .ring-item:focus-visible::before { opacity: 1; }
  .ring-item:hover .ring-item__vid,
  .ring-item:focus-visible .ring-item__vid { opacity: 0; }
}
.channel-boost {
  margin: var(--space-6) 0 0;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.channel-boost a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.channel-boost a:hover { color: var(--text-primary); }

/* ============ Stats ============ */
.stats { padding: var(--space-16) 0; background: var(--bg-page); }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  text-align: center;
}
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-stat);
  margin: 0;
  color: var(--text-primary);
}
.stat-card__label {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
}

/* ============ About ============ */
.about { padding: var(--space-16) 0 var(--space-20); background: var(--bg-surface); border-top: 1px solid var(--border-subtle); }
.about__lead {
  max-width: 65ch;
  margin: 0 auto var(--space-12);
  text-align: center;
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

ul.benefit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 700px) { ul.benefit-row { grid-template-columns: repeat(3, 1fr); } }
.benefit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); }
.benefit__chip { width: 60px; height: 60px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 18px rgba(225,38,28,.55); transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s; }
.benefit__chip::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(from 0deg, #e1261c, #ff6a3d, transparent 55%, #e1261c); filter: blur(3px); z-index: 0; animation: benefitSpin 3s linear infinite; }
.benefit__chip-inner { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: #140409; display: flex; align-items: center; justify-content: center; transition: background .28s; }
.benefit__chip-inner::after { content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.92), transparent); transform: skewX(-18deg); animation: benefitSweep 3.4s ease-in-out infinite; }
.benefit__icon { width: 27px; height: 27px; color: var(--brand-accent-hover); transition: color .28s; }
.benefit__chip:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 40px 11px rgba(255,106,61,.85); }
.benefit__chip:hover .benefit__chip-inner { background: rgba(225,38,28,.92); }
.benefit__chip:hover .benefit__icon { color: #fff; }
.benefit__chip:active { transform: scale(.95); }
@keyframes benefitSpin { to { transform: rotate(360deg); } }
@keyframes benefitSweep { 0% { left: -130%; } 42%, 100% { left: 175%; } }
.benefit-row.pre-anim .benefit { opacity: 0; transform: translateY(18px); }
.benefit-row.is-inview .benefit { animation: benefitRise .5s cubic-bezier(.22,1,.36,1) forwards; }
.benefit-row.is-inview .benefit:nth-child(2) { animation-delay: 90ms; }
.benefit-row.is-inview .benefit:nth-child(3) { animation-delay: 180ms; }
@keyframes benefitRise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .benefit-row.pre-anim .benefit { opacity: 1; transform: none; }
  .benefit-row.is-inview .benefit { animation: none; }
  .benefit__chip, .benefit__chip::before, .benefit__chip-inner::after { animation: none; transition: none; }
}
.benefit h3 { margin: 0 0 var(--space-1); font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.benefit p { margin: 0; color: var(--text-secondary); font-size: var(--fs-small); line-height: var(--lh-relaxed); }

/* ============ Footer ============ */
.site-footer { padding: var(--space-12) 0 var(--space-8); background: var(--bg-page); border-top: 1px solid var(--border-subtle); }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}
.footer-social { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.footer-social__link svg { width: 17px; height: 17px; }
.footer-social__link--telegram:hover { color: var(--brand-telegram); border-color: var(--brand-telegram); }
.footer-social__link--whatsapp:hover { color: var(--brand-whatsapp); border-color: var(--brand-whatsapp); }
.footer-social__link--linkedin:hover { color: var(--brand-linkedin); border-color: var(--brand-linkedin); }
.footer-social__link--facebook:hover { color: var(--brand-facebook); border-color: var(--brand-facebook); }
.footer-social__link--instagram:hover { color: var(--brand-instagram-mid); border-color: var(--brand-instagram-mid); }
.footer-social__link--youtube:hover { color: var(--brand-youtube); border-color: var(--brand-youtube); }

.footer-legal { display: flex; gap: var(--space-6); }
.footer-legal a { color: var(--text-secondary); font-size: var(--fs-small); }
.footer-legal a:hover { color: var(--text-primary); }

.footer-copy { color: var(--text-muted); font-size: var(--fs-small); margin: 0; }

/* ============ Mobile refinements ============ */
@media (max-width: 600px) {
  .hero__content { padding-top: var(--space-16); padding-bottom: var(--space-12); }

  .channels, .stats { padding: var(--space-12) 0; }
  .about { padding: var(--space-12) 0 var(--space-16); }

  .channel-pill { padding: var(--space-2) var(--space-3); font-size: 0.8125rem; }
  .channel-pill__icon { width: 16px; height: 16px; }

  .footer-social__link { width: 40px; height: 40px; }
  .footer-legal { flex-wrap: wrap; justify-content: center; row-gap: var(--space-2); }
}

@media (max-width: 420px) {
  .site-header__inner { gap: var(--space-2); }
  .site-header .btn--sm { padding: var(--space-1) var(--space-3); font-size: 0.75rem; }
  .site-header__cta { gap: var(--space-2); }
  .logo-mark img { height: 26px; }
}
