﻿/* ================================================================
   AffMarketing World — Liquid Glass v3
   ================================================================
   Stage 1 — foundation
   • Dual theme: light by default, [data-theme="dark"] override on <html>
   • Glass primitives, static neutral blob background, scroll-driven flip
   • Header (floating glass nav), footer, hero, sections, modals, banners
   • Adaptive: 1100 / 900 / 640 / 480 / 360 px (down to 325)
   ============================================================== */

/* ===== 0. THEME TOKENS ========================================== */
:root {
  /* --- LIGHT theme (default) --- */
  --bg: #c0c1c2;
  --bg-2: #e4e8f0;
  --ink: #0c0d10;
  --ink-soft: #3a3d45;
  --ink-mute: #7d8290;
  --line: rgba(12, 13, 16, .08);
  --line-strong: rgba(12, 13, 16, .18);
  --image-filter: invert(0);

  /* accents */
  --blue: #0a84ff;
  --indigo: #5e5ce6;
  --pink: #ff2d92;
  --orange: #ff9f0a;
  --green: #30d158;
  --teal: #64d2ff;
  --purple: #bf5af2;
  --yellow: #ffd60a;
  --red: #ff453a;

  /* solid card bg — used for repeated cards to avoid GPU compositor overload */
  --card-bg: rgba(233, 233, 233, .72);

  /* glass tokens */
  --glass-bg: rgba(255, 255, 255, .55);
  --glass-bg-strong: rgba(233, 233, 233, 0.72);
  --glass-bg-soft: rgba(255, 255, 255, .38);
  --glass-border: rgba(255, 255, 255, .6);
  --glass-shadow:
    inset 6px 16px 6px -16px rgba(255, 255, 255, 0.35),
    inset 6px -16px 6px -16px rgba(255, 255, 255, 0.35),
    inset 16px 6px 6px -16px rgba(255, 255, 255, 0.35),
    inset -16px 6px 6px -16px rgba(255, 255, 255, 0.35);
  --glass-shadow-lg: 0 30px 80px -20px rgba(12, 13, 16, .25), 0 8px 24px rgba(12, 13, 16, .08);
  --highlight: linear-gradient(135deg, rgba(255, 255, 255, .7) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, .3) 100%);
  --highlight-strong: linear-gradient(135deg, rgba(255, 255, 255, .85) 0%, transparent 25%, transparent 70%, rgba(255, 255, 255, .4) 100%);

  /* solid-ish backgrounds for dropdowns / popovers — need clear contrast */
  --dropdown-bg: rgba(255, 255, 255, .94);
  --dropdown-border: rgba(12, 13, 16, .08);

  /* CTA + sticky */
  --cta-bg: #0c0d10;
  --cta-fg: #ffffff;
  --sticky-bg: rgba(255, 255, 255, .85);

  /* grain */
  --grain-blend: multiply;
  --grain-opacity: .04;

  /* fonts */
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Inter Tight", "Inter", sans-serif;

  /* radii */
  --r-xs: 8px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 100px;
}

[data-theme="dark"] {
  --bg: #0c0d10;
  --bg-2: #15171c;
  --ink: #f5f6f8;
  --ink-soft: #c8ccd4;
  --ink-mute: #8b909c;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .18);
  --image-filter: invert(1);
  --card-bg: rgba(28, 30, 38, 0.72);
  --glass-bg: rgba(255, 255, 255, .05);
  --glass-bg-strong: rgba(255, 255, 255, .01);
  --glass-bg-soft: rgba(255, 255, 255, .035);
  --glass-border: rgba(255, 255, 255, .12);
  --glass-shadow:
    inset 6px 16px 6px -16px rgba(255, 255, 255, 0.35),
    inset 6px -16px 6px -16px rgba(255, 255, 255, 0.35),
    inset 16px 6px 6px -16px rgba(255, 255, 255, 0.35),
    inset -16px 6px 6px -16px rgba(255, 255, 255, 0.35);
  --glass-shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 8px 24px rgba(0, 0, 0, .4);
  --highlight: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, .06) 100%);
  --highlight-strong: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, transparent 25%, transparent 70%, rgba(255, 255, 255, .08) 100%);

  --dropdown-bg: rgba(22, 24, 30, .94);
  --dropdown-border: rgba(255, 255, 255, .14);

  --cta-bg: #ffffff;
  --cta-fg: #0c0d10;
  --sticky-bg: rgba(20, 22, 28, .85);

  --grain-blend: overlay;
  --grain-opacity: .06;
}

/* ===== 1. GLOBAL RESET / SAFEGUARDS ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0 auto;
  padding: 20px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* ===== 2. STATIC BLOB BACKGROUND + GRAIN ======================= */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.bg-stage .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .75;
}

/* LIGHT theme — cold pastel blobs */
.bg-stage .blob.b1 {
  width: 55vw;
  height: 55vw;
  background: #c8dcf8;
  top: -15vw;
  left: -10vw;
}

.bg-stage .blob.b2 {
  width: 48vw;
  height: 48vw;
  background: #c4d8f8;
  top: 30vh;
  right: -15vw;
}

.bg-stage .blob.b3 {
  width: 52vw;
  height: 52vw;
  background: #daeaf8;
  bottom: -15vw;
  left: 25vw;
}

.bg-stage .blob.b4 {
  width: 35vw;
  height: 35vw;
  background: #ccdaf0;
  top: 55vh;
  left: 5vw;
  opacity: .55;
}

.bg-stage .blob.b5 {
  width: 30vw;
  height: 30vw;
  background: #c8d4ec;
  bottom: 20vh;
  right: 10vw;
  opacity: .5;
}

/* DARK theme — dark graphite blobs */
[data-theme="dark"] .bg-stage .blob.b1 {
  background: #2e3038;
}

[data-theme="dark"] .bg-stage .blob.b2 {
  background: #282a32;
}

[data-theme="dark"] .bg-stage .blob.b3 {
  background: #222430;
}

[data-theme="dark"] .bg-stage .blob.b4 {
  background: #2c2e38;
}

[data-theme="dark"] .bg-stage .blob.b5 {
  background: #242630;
}

[data-theme="dark"] .bg-stage .blob {
  opacity: .8;
}

/* SVG grain noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: var(--grain-blend);
  opacity: var(--grain-opacity);
}

/* ===== 3. GLASS PRIMITIVES ===================================== */
.glass,
.glass-strong {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow-lg);
}

.glass::before,
.glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
}

.glass-strong::before {
  background: var(--highlight-strong);
}

/* ===== 3b. GRADIENT TEXT UTILITY ================================ */
.gtext {
  background: linear-gradient(135deg, #0a84ff 0%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.12em;
  /* italic glyph overflows its inline-box on the right */
}

.gtext2 {
  background: linear-gradient(135deg, #0a84ff 0%, #bf5af2 20%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== 4. TYPOGRAPHY ============================================ */
.display-1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.display-2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.h-section {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw + .5rem, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}

/* ===== 5. LAYOUT CONTAINER ====================================== */
.main {
  position: relative;
  z-index: 1;
  padding-top: 200px;
}

.container,
section.section {
  max-width: 1380px;
  margin: 0 auto;
}

.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2vw + .5rem, 2.4rem);
  letter-spacing: -.02em;
  margin-bottom: 24px;
  color: var(--ink);
  text-transform: uppercase;
}

.section__title--mt {
  margin-top: 48px;
}

.news-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

.subtitle__block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.subtitle__text {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 880px;
}

.section__subtitle-img {
  width: 96px;
  height: auto;
  flex-shrink: 0;
  margin-left: 2rem;
}

/* ===== 6. HEADER (floating glass nav) =========================== */
.header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
  max-width: 1000px;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 22px;
  border-radius: var(--r-pill);
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 5px 15px 3px -15px rgba(255, 250, 250, 0.75),
    inset 5px -15px 3px -15px rgba(255, 250, 250, 0.75),
    inset 15px 5px 3px -15px rgba(255, 250, 250, 0.75),
    inset -15px 5px 3px -15px rgba(255, 250, 250, 0.75);
}

.header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight-strong);
  mix-blend-mode: overlay;
}

/* logo */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-main {
  width: auto;
  height: 32px;
  display: block;
}

.header__logo-partners {
  display: flex;
  align-items: center;
}

.header__logo-partners-item {
  font-size: 1.2rem;
  color: var(--ink-mute);
  margin: 0 10px;
  line-height: 1;
  user-select: none;
}

.header__logo-partners-img {
  height: 28px;
  width: auto;
  border-radius: 6px;
}

/* nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.header__menu-item {
  position: relative;
  flex-shrink: 0;
}

.header__menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  cursor: pointer;
  position: relative;
  transition: background .25s ease, color .25s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
  white-space: nowrap;
}

.header__menu-link:hover {
  background: var(--glass-bg);
  color: var(--blue);
  transform: translateY(-1px);
}

.header__menu-link:hover::before {
  transform: scaleX(.7);
}

/* Catalog link inside header menu */
.header__menu-link-span {
  text-decoration: none;
  color: inherit;
}

/* Catalog link inside footer */
.footer__catalog-title {
  text-decoration: none;
  color: inherit;
}

.triangle__down {
  font-size: .55rem;
  opacity: .6;
  transition: transform .2s ease;
}

.header__menu-item:hover .triangle__down {
  transform: rotate(180deg);
}

/* Invisible hover-bridge — keeps dropdown open while moving cursor from
   the trigger down to the dropdown. Fills the visual gap. */
.header__menu-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 18px;
  pointer-events: none;
}

.header__menu-item:hover::after {
  pointer-events: auto;
}

/* dropdown */
.header__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 100%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  padding: 8px;
  background: var(--dropdown-bg);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--dropdown-border);
  border-radius: var(--r-md);
  box-shadow: var(--glass-shadow-lg);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 120;
}

/* Bridge: invisible padding extending up to the trigger to keep hover alive */
.header__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
  background: transparent;
}

.header__menu-item:hover .header__dropdown,
.header__dropdown:hover {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__dropdown-item {
  display: block;
  padding: 9px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 12px;
  position: relative;
  transition: background .2s ease, color .2s ease, padding-left .28s cubic-bezier(.2, .7, .2, 1), transform .2s ease;
}

.header__dropdown-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  transform: translateY(-50%) scale(0);
  transition: transform .28s cubic-bezier(.4, 1.6, .5, 1);
}

.header__dropdown-item:hover {
  background: var(--glass-bg);
  color: var(--ink);
  padding-left: 22px;
}

.header__dropdown-item:hover::before {
  transform: translateY(-50%) scale(1);
}

/* actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  transition: background .22s ease, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease;
}

.header__search-btn:hover {
  background: var(--glass-bg-strong);
  transform: scale(1.08) rotate(-8deg);
  box-shadow: 0 6px 16px -4px rgba(10, 132, 255, .35);
}

.header__search-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

/* theme toggle */
.theme-toggle {
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  transition: background .22s ease, box-shadow .25s ease, transform .2s ease;
}

.theme-toggle:hover {
  background: var(--glass-bg-strong);
  box-shadow: 0 0 0 4px rgba(94, 92, 230, .18), 0 4px 12px rgba(94, 92, 230, .25);
  transform: translateY(-1px);
}

.theme-toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform .35s cubic-bezier(.4, 1.6, .5, 1), background .35s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

[data-theme="dark"] .theme-toggle .knob {
  transform: translateX(32px);
  background: linear-gradient(135deg, #5e5ce6 0%, #1e1e3a 100%);
}

.theme-toggle .knob::before {
  content: "☀";
  line-height: 1;
}

[data-theme="dark"] .theme-toggle .knob::before {
  content: "☾";
  color: #fff;
  font-size: 14px;
}

/* signup CTA */
.header__signup-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  position: relative;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, filter .28s ease;
  text-decoration: none;
  white-space: nowrap;
}

.header__signup-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .35);
}

.header__signup-btn:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

.header__signup-btn-signup {
  display: inline-block;
}

.header__logo-link,
.header__logo-partner-link {
  display: flex;
  align-items: center;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.header__logo-link {
  gap: 7px;
  text-decoration: none;
}

.header__logo:hover .header__logo-main {
  filter: drop-shadow(0 0 10px rgba(10, 132, 255, .4)) drop-shadow(0 0 10px rgba(10, 132, 255, .4));
  transform: scale(1.05)
}

.header__logo-partner-link:hover {
  transform: scale(1.08);
}

.header__logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}

.header__logo-name1 {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.header__logo-name2 {
  display: block;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* hidden legacy search form (kept for search-live.js compatibility) */
.header__search-form {
  display: none !important;
}

/* burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
  z-index: 120;
  transition: background .22s ease, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease;
}

.burger-menu:hover {
  background: var(--glass-bg-strong);
  transform: scale(1.06);
}

.burger-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile menu */
.mmenu {
  position: fixed;
  height: 80vh;
  top: 78px;
  left: 16px;
  right: 16px;
  z-index: 99;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--dropdown-bg);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--dropdown-border);
  box-shadow: var(--glass-shadow-lg);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  overflow-y: auto;
  scrollbar-width: none;
}

.mmenu::-webkit-scrollbar {
  display: none;
}

.mmenu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.mmenu__link {
  display: block;
  padding: 13px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 14px;
  transition: background .25s ease, color .25s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
}

.mmenu__link:hover {
  background: var(--glass-bg);
  transform: translateX(4px);
}

.mmenu__divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.mmenu__cta {
  display: block;
  margin-top: 8px;
  padding: 13px 16px;
  text-align: center;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .875rem;
}

/* ===== 7. SEARCH MODAL ========================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 13, 16, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.search-modal {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: min(720px, calc(100% - 32px));
  z-index: 201;
  border-radius: var(--r-lg);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  overflow: hidden;
}

.search-modal.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.search-modal__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.search-modal__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--ink-mute);
}

.search-modal__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
}

.search-modal__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

.search-modal__input::placeholder {
  color: var(--ink-mute);
}

/* Submit button — visible always, inactive when input is empty */
.search-modal__submit {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--cta-fg);
  cursor: not-allowed;
  opacity: .35;
  pointer-events: none;
  transition:
    opacity .25s ease,
    transform .25s cubic-bezier(.2, .7, .2, 1),
    box-shadow .25s ease,
    background .25s ease;
}

.search-modal__submit svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.search-modal__submit.active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgba(10, 132, 255, .45);
}

.search-modal__submit.active:hover {
  transform: scale(1.08) rotate(-8deg);
  box-shadow: 0 10px 22px -6px rgba(10, 132, 255, .55);
}

.search-modal__submit.active:active {
  transform: scale(.94);
  transition: transform .08s ease;
}


.search-modal__results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
}

.search-modal__results:empty {
  display: none;
}

.search-modal__results .search-result-item,
.search-modal__results>a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: .92rem;
  cursor: pointer;
  transition: background .15s ease;
}

.search-modal__results .search-result-item:hover,
.search-modal__results>a:hover {
  background: var(--glass-bg);
}

.search-modal__results .search-result-type {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xs);
  padding: 2px 7px;
  margin-bottom: 5px;
}

.search-modal__results .search-result-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 3px;
}

.search-modal__results .search-result-description {
  font-size: .82rem;
  color: var(--ink-mute);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-modal__results mark.search-highlight {
  background: transparent;
  color: var(--cta-bg);
  font-weight: 700;
}

.search-no-results {
  padding: 24px 16px;
  text-align: center;
  color: var(--ink-mute);
}

.search-no-results-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.search-no-results-text {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.search-no-results-hint {
  font-size: .82rem;
}

/* ===== 8. AUTH MODAL ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 13, 16, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal.open {
  display: flex;
}

.modal__content {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 28px;
  border-radius: var(--r-lg);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg);
  animation: modalIn .35s cubic-bezier(.2, .7, .2, 1.1);
}

.modal__content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight-strong);
  mix-blend-mode: overlay;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.94) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  z-index: 2;
  transition: background .2s ease, transform .3s cubic-bezier(.4, 1.6, .5, 1);
}

.modal__close:hover {
  background: var(--glass-bg-strong);
  transform: rotate(90deg) scale(1.05);
}

.modal__form-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.modal__message {
  display: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .85rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.modal__message.success {
  background: rgba(48, 209, 88, .15);
  color: #1a8c3a;
  border: 1px solid rgba(48, 209, 88, .3);
}

.modal__message.error {
  background: rgba(255, 69, 58, .15);
  color: #c8331f;
  border: 1px solid rgba(255, 69, 58, .3);
}

[data-theme="dark"] .modal__message.success {
  color: #5dd57c;
}

[data-theme="dark"] .modal__message.error {
  color: #ff7a72;
}

.modal__form-group {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.modal__label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.modal__input-wrapper {
  position: relative;
}

.modal__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
  outline: 0;
}

.modal__input:focus {
  border-color: var(--blue);
  background: var(--glass-bg);
}

.modal__input::placeholder {
  color: var(--ink-mute);
}

.modal__toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  border-radius: 8px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.modal__toggle-password:hover {
  color: var(--ink);
  background: var(--glass-bg);
  transform: translateY(-50%) scale(1.1);
}

.modal__toggle-password svg {
  width: 18px;
  height: 18px;
}

.modal__error {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  font-size: .78rem;
  color: #c8331f;
}

[data-theme="dark"] .modal__error {
  color: #ff7a72;
}

.modal__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  position: relative;
  z-index: 1;
}

.modal__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal__checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.modal__forgot-link {
  font-size: .82rem;
  color: var(--blue);
  position: relative;
  transition: opacity .2s ease;
}

.modal__forgot-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.modal__forgot-link:hover::after {
  transform: scaleX(1);
}

.modal__btn {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  position: relative;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, filter .28s ease, background .25s ease;
  margin-top: 6px;
  z-index: 1;
}

.modal__btn-primary {
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.modal__btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .15);
}

.modal__btn-primary:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

.modal__btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  margin-top: 10px;
}

.modal__btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-strong);
}

.modal__btn-secondary:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

.modal__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  position: relative;
  z-index: 1;
}

.modal__divider::before,
.modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.modal__divider span {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink-mute);
}

.modal__switch-btn {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  position: relative;
  z-index: 1;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), background .25s ease;
}

.modal__switch-btn:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-strong);
}

.modal__switch-btn:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

/* legacy reset-password container hidden by default */
.reset-form-container {
  display: none;
}

/* register form — hidden by default, sign-up.js toggles display at runtime */
.register-form-container {
  display: none;
}

/* confirm modal — hidden by default, shown via inline style by JS */
.confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 310;
  align-items: center;
  justify-content: center;
}

.confirm-modal[style*="display: flex"],
.confirm-modal[style*="display:flex"] {
  display: flex !important;
}

.confirm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 16, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.confirm-modal-content {
  position: relative;
  width: min(380px, calc(100% - 32px));
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg);
}

.confirm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.confirm-modal-header h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}

.confirm-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
  transition: background .2s ease, transform .3s cubic-bezier(.4, 1.6, .5, 1);
}

.confirm-modal-close:hover {
  background: var(--glass-bg-strong);
  transform: rotate(90deg) scale(1.05);
}

.confirm-modal-body {
  font-size: .92rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.confirm-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-modal-btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.confirm-modal-btn-cancel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
}

.confirm-modal-btn-confirm {
  background: #c8331f;
  color: #fff;
}

[data-theme="dark"] .confirm-modal-btn-confirm {
  background: #ff453a;
}

/* ===== 9. HERO BILLBOARD (main banner above hero) =============== */
.banner__main,
.lg-billboard {
  display: block;
  position: relative;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto 32px;
  aspect-ratio: 20/4;
  border-radius: var(--r-xl);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  isolation: isolate;
}

/* Reusable "Sponsored" label — pill with gradient + pulsing dot */
.sponsored-label,
.lg-billboard__label,
.lg-feature-ad__label {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 26px;
  font-family: var(--display);
  font-size: .65rem;
  letter-spacing: .22em;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 70%, var(--purple) 100%);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 24px -6px rgba(255, 45, 146, .55), 0 2px 6px rgba(0, 0, 0, .18);
  z-index: 3;
  pointer-events: none;
  opacity: 65%;
}

.sponsored-label::before,
.lg-billboard__label::before,
.lg-feature-ad__label::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, .95);
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  50% {
    opacity: .45;
    transform: translateY(-50%) scale(.65);
  }
}

.banner__main::after,
.lg-billboard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shimmer {

  0%,
  100% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }
}

.banner__main-img,
.lg-billboard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes bannerBreath {

  0%,
  100% {
    box-shadow: var(--glass-shadow), 0 0 40px rgba(255, 159, 10, .08), 0 0 0 1px var(--glass-border);
  }

  50% {
    box-shadow: var(--glass-shadow), 0 0 90px rgba(191, 90, 242, .2), 0 0 50px rgba(255, 159, 10, .14), 0 0 0 1px rgba(191, 90, 242, .28);
  }
}

@keyframes bannerCtaBeat {

  0%,
  100% {
    box-shadow: 0 4px 18px -4px rgba(255, 159, 10, .45);
  }

  50% {
    box-shadow: 0 8px 32px -4px rgba(191, 90, 242, .5);
  }
}

.banner__main {
  animation: bannerBreath 5s ease-in-out infinite;
}

.banner__main-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 48px;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 100% at 5% 50%, rgba(90, 200, 250, .15) 0%, transparent 70%),
    radial-gradient(ellipse 70% 100% at 95% 50%, rgba(255, 45, 146, .11) 0%, transparent 70%),
    var(--card-bg);
  border-radius: var(--r-xl);
}

.banner__main-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.banner__main-title {
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.2;
}

.banner__main-text {
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 18px;
  line-height: 1.5;
}

.banner__main-cta {
  display: inline-block;
  padding: 10px 26px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 70%, var(--purple) 100%);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), filter .28s ease, box-shadow .28s ease;
}

.banner__main-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 12px 36px -4px rgba(255, 80, 0, .55), 0 4px 16px rgba(255, 45, 146, .45);
}

/* ===== 10. HERO (welcome section) =============================== */
.hero {
  max-width: 1380px;
  width: 100%;
  margin: 32px auto;
  padding: 48px 40px;
  border-radius: var(--r-xl);
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw + 1rem, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 1vw + .6rem, 1.15rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 28px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: var(--r-pill);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  position: relative;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, filter .28s ease;
}

.hero__btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .15);
}

.hero__btn:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

/* ===== 10b. HERO V2 (homepage billboard replacement) =========== */
.hero-v2 {
  max-width: 1380px;
  width: 100%;
  margin: 32px auto;
}

.hero-v2__grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 14px;
  align-items: stretch;
}

/* ---- left panel ---- */
.hero-v2__left {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow:
    inset 5px 16px 5px -16px rgba(201, 199, 199, 0.75),
    inset 5px -15px 3px -15px rgba(201, 199, 199, 0.75),
    inset 15px 5px 3px -15px rgba(201, 199, 199, 0.75),
    inset -15px 5px 3px -15px rgba(201, 199, 199, 0.75);
  padding: 44px 40px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-v2__left::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--highlight);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* badges row */
.hero-v2__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .025em;
}

.hero-v2__badge--live {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
}

.hero-v2__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 2px rgba(48, 209, 88, .25);
  flex-shrink: 0;
}

.hero-v2__badge--week {
  background: rgba(10, 132, 255, .1);
  border: 1px solid rgba(10, 132, 255, .22);
  color: var(--cta-bg);
}

/* heading */
.hero-v2__title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.hero-v2__logo {
  width: 22%;
  max-width: 90px;
  aspect-ratio: 1;
}

.hero-v2__logo-item {
  width: 100%;
  height: 100%;
}

.hero-v2__title em {
  font-style: italic;
  font-weight: 700;
}

.hero-v2__title-accent {
  color: var(--cta-bg);
  font-size: 2rem;
  display: block;
}

.hero-v2__title-accent-word2 {
  font-size: 4rem;
}

/* subtitle */
.hero-v2__subtitle {
  font-size: clamp(.92rem, 1vw + .5rem, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 500px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

/* CTA buttons */
.hero-v2__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-v2__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
}

.hero-v2__btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, .35);
}

.hero-v2__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .35);

}

.hero-v2__btn--ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
}

.hero-v2__btn--ghost:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .35);
  border-color: var(--blue);
}

/* stats bar */
.hero-v2__stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: auto;
  padding: 16px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  position: relative;
  z-index: 1;
}

.hero-v2__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.hero-v2__stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cta-bg);
  letter-spacing: -.03em;
  line-height: 1;
}

.hero-v2__stat-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-v2__stat-div {
  width: 1px;
  height: 30px;
  background: var(--line);
  flex-shrink: 0;
  margin: 0 18px;
}

/* ---- right column ---- */
.hero-v2__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

/* base card */
.hero-v2__card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}

.hero-v2__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--highlight);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* revenue card */
.hero-v2__card-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.hero-v2__revenue-val {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--cta-bg);
  line-height: 1;
  margin-bottom: 5px;
}

.hero-v2__revenue-lbl {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-v2__revenue-source {
  font-size: .58rem;
  color: var(--ink-mute);
  opacity: .6;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hero-v2__barchart {
  width: 88px;
  height: 38px;
  flex-shrink: 0;
}

.hero-v2__barchart rect {
  fill: var(--cta-bg);
}

/* middle row */
.hero-v2__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* featured card */
.hero-v2__card--featured {
  background: linear-gradient(135deg, #f5c842 0%, #f08040 30%, #c0508a 65%, #7850a8 100%);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: filter .25s ease;
  box-shadow: inset 5px 16px 5px -16px rgba(255, 250, 250, 0.75), inset 5px -15px 3px -15px rgba(255, 250, 250, 0.75), inset 15px 5px 3px -15px rgba(255, 250, 250, 0.75), inset -15px 5px 3px -15px rgba(255, 250, 250, 0.75);
}

.hero-v2__card--featured::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, transparent 55%);
}

.hero-v2__card--featured:hover {
  filter: brightness(1.08);
}

.hero-v2__ftag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero-v2__fname {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}

.hero-v2__fmeta {
  font-size: .7rem;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hero-v2__fstat {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

/* metric card */
.hero-v2__card--metric {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(48, 209, 88, .22), rgba(100, 210, 255, .18));
  border: 1px solid rgba(48, 209, 88, .3);
  box-shadow:
    inset 5px 16px 5px -16px rgba(255, 250, 250, 0.75),
    inset 5px -15px 3px -15px rgba(255, 250, 250, 0.75),
    inset 15px 5px 3px -15px rgba(255, 250, 250, 0.75),
    inset -15px 5px 3px -15px rgba(255, 250, 250, 0.75);
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round var(--r-lg));
  -webkit-clip-path: inset(0 round var(--r-lg));
}

.hero-v2__card--metric::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(48, 209, 88, .5), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-v2__micon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #30d158, #64d2ff);
  box-shadow: 0 8px 24px rgba(48, 209, 88, .5), inset 0 1px 0 rgba(255, 255, 255, .3);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  padding: 10px;
}

.hero-v2__micon svg {
  width: 100%;
  height: 100%;
}

.hero-v2__mval {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.hero-v2__msub {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  z-index: 1;

}

.hero-v2__mhint {
  font-size: .7rem;
  color: var(--ink-mute);
  position: relative;
  z-index: 1;

}

/* quote card */
.hero-v2__card--quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
}

.hero-v2__quote {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.58;

  margin: 0;
  position: relative;
  z-index: 1;
}

.hero-v2__quote-em {
  font-style: italic;
  color: var(--cta-bg);
  font-weight: 700;
}

.hero-v2__qauthor {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-v2__qavatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta-bg), #c050a0);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-v2__qname {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.hero-v2__qrole {
  font-size: .7rem;
  color: var(--ink-mute);
}

/* responsive */
@media (max-width: 1024px) {
  .hero-v2__grid {
    grid-template-columns: 1fr 340px;
  }
}

@media (max-width: 860px) {
  .hero-v2__grid {
    grid-template-columns: 1fr;
  }

  .hero-v2__right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-v2__card--revenue {
    grid-column: 1 / -1;
  }

  .hero-v2__row {
    display: contents;
  }

  .hero-v2__card--quote {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero-v2 {
    margin: 24px auto;
  }

  .hero-v2__left {
    padding: 30px 15px 26px;
  }

  .hero-v2__stat-div {
    margin: 0 12px;
  }
}

@media (max-width: 480px) {
  .hero-v2__stats {
    padding: 16px 5px 16px 10px;
  }

  .hero-v2__stat-value {
    font-size: 5dvw;
  }

  .hero-v2__stat-label {
    font-size: 2.5dvw;
  }

  .hero-v2__cta {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .hero-v2__right {
    grid-template-columns: 1fr;
  }

  .hero-v2__card--revenue,
  .hero-v2__card--quote {
    grid-column: auto;
  }
}

/* ===== 11. LG-ABOUT (About us section on homepage) ============= */
.lg-about {
  max-width: 1380px;
  margin: 64px auto;
}

.lg-about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.lg-about__main {
  padding: 40px;
  border-radius: var(--r-xl);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.lg-about__main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
}

.lg-about__eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.lg-about__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2vw + .5rem, 2.5rem);
  letter-spacing: -.02em;
  margin-bottom: 16px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.lg-about__text {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.lg-about__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}

.lg-about__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-sm);
  background: var(--glass-bg-soft);
  border: 1px solid var(--line);
}

.lg-about__feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.lg-about__feature-icon svg {
  width: 20px;
  height: 20px;
}

.lg-about__feature:nth-child(1) .lg-about__feature-icon {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 4px 14px rgba(10, 132, 255, .35);
}

.lg-about__feature:nth-child(2) .lg-about__feature-icon {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 4px 14px rgba(255, 45, 146, .35);
}

.lg-about__feature:nth-child(3) .lg-about__feature-icon {
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 4px 14px rgba(48, 209, 88, .35);
}

.lg-about__feature:nth-child(4) .lg-about__feature-icon {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 4px 14px rgba(191, 90, 242, .35);
}

.lg-about__feature-text {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.lg-about__feature-text span {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .78rem;
  margin-top: 2px;
}

/* stats column */
.lg-about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}

.lg-stat {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 24px 20px;
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1),
    box-shadow .35s ease,
    border-color .3s ease,
    background .3s ease;
  cursor: pointer;
}

.lg-stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow), 0 28px 52px -14px rgba(12, 13, 16, .32);
  border-color: rgba(255, 255, 255, .22);
  background: color-mix(in srgb, var(--card-bg) 90%, white 4%);
}

.lg-stat:active {
  transform: translateY(-2px);
  transition-duration: .1s;
}

.lg-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
}

.lg-stat__icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1),
    box-shadow .35s ease;
}

.lg-stat:hover .lg-stat__icon {
  transform: scale(1.18) rotate(-8deg);
}

.lg-stat__icon svg {
  width: 22px;
  height: 22px;
}

.lg-stat:nth-child(1) .lg-stat__icon {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 4px 20px rgba(10, 132, 255, .6);
}

.lg-stat:nth-child(2) .lg-stat__icon {
  background: linear-gradient(135deg, #ff453a, #ff9f0a);
  box-shadow: 0 4px 20px rgba(255, 69, 58, .6);
}

.lg-stat:nth-child(3) .lg-stat__icon {
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 4px 20px rgba(48, 209, 88, .6);
}

.lg-stat:nth-child(4) .lg-stat__icon {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 4px 20px rgba(191, 90, 242, .6);
}

.lg-stat:nth-child(5) .lg-stat__icon {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 4px 20px rgba(90, 200, 250, .6);
}

.lg-stat:nth-child(6) .lg-stat__icon {
  background: linear-gradient(135deg, #64d2ff, #30b0c7);
  box-shadow: 0 4px 20px rgba(100, 210, 255, .6);
}

.lg-stat:nth-child(7) .lg-stat__icon {
  background: linear-gradient(135deg, var(--pink), var(--indigo));
  box-shadow: 0 4px 20px rgba(255, 45, 146, .6);
}

.lg-stat:nth-child(8) .lg-stat__icon {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: 0 4px 20px rgba(94, 92, 230, .6);
}

.lg-stat__value {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2vw + .5rem, 2.4rem);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  position: relative;
  z-index: 1;
  white-space: nowrap;
  transition: color .25s ease;
}

.lg-stat:hover .lg-stat__value {
  color: var(--accent, var(--blue));
}

.lg-stat__label {
  grid-column: 1 / 3;
  grid-row: 2;
  align-self: start;
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  min-width: min-content;
}

/* ===== 12. NEWS SECTION ========================================= */
.news-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 25%);
  gap: 25px;
  margin-top: 24px;
}

.news__container {
  min-width: 0;
}

.news-main {
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin-bottom: 24px;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  min-height: 300px;
}

.news-main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
}

.news-main__image {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
  z-index: 1;
  width: 100%;
}

.news-main__image-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-main__info {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  position: absolute;
  bottom: 0%;
  right: 0%;
  padding: 18px;
  z-index: 1;
  color: #f5f6f8;
  border-top: 1px solid rgba(255, 255, 255, .2);
  background-color: rgba(14, 14, 14, 0.55);
  backdrop-filter: blur(6px) saturate(200%);
}

.news-main__category {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  font-size: .68rem;
  letter-spacing: .16em;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  color: var(--ink);
}

.news-main__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: #f5f6f8;
}

.news-main__date {
  font-size: .78rem;
  color: var(--ink-mute);
  font-weight: 500;
}

.news-main__excerpt {
  font-size: .92rem;
  color: #f5f6f8;
  line-height: 1.5;
}

.news-main__hot {
  background: linear-gradient(135deg, rgba(255, 69, 58, .06) 0%, var(--glass-bg) 50%);
}

.news__main-disription {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 2fr));
  gap: 18px;
}

/* AI news 4-column grid: 1 featured (2×2) + 4 small */
.ai-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ai-news-grid__featured {
  grid-row: span 2;
  grid-column: span 2;
  display: block;
}

.ai-news-grid__featured .news-main {
  display: flex;
  justify-content: center;
  height: 100%;
  min-height: 300px;
}

.ai-news-grid__featured .news-main__image {
  height: 100%;
  flex: 1;
}

.ai-news-grid__item {
  display: block;
}

.ai-news-grid__item .news-item {
  height: 100%;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .ai-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ai-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .ai-news-grid__featured {
    grid-column: span 2;
    grid-row: auto;
  }
}

.news-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
  position: relative;
}

.news-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
  z-index: 1;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -10px rgba(12, 13, 16, .22), 0 6px 12px rgba(12, 13, 16, .08);
}

.news-item__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.news-item__image .news-main__image-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-main:hover .news-main__image-item {
  transform: scale(1.05);
  transition: ease-in-out .4s;
}

.news-item__content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 2;
  background: var(--glass-bg-strong);
}

.news-item__category {
  align-self: flex-start;
  padding: 3px 8px;
  font-size: .5rem;
  letter-spacing: .14em;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--glass-bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
}

.news-item__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: .8rem;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.news-item__date {
  font-size: .72rem;
  color: var(--ink-mute);
}

.news__button {
  padding: 11px 26px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  position: relative;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, filter .28s ease;
}

.news__button:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .35);
}

.news__button:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

/* ===== 13. SIDEBAR ============================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  cursor: pointer;
}

.sidebar__widget {
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.sidebar__widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
}

.sidebar__widget-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.top-companies {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.top-company {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--line);
  transition: background .22s ease, transform .22s cubic-bezier(.2, .7, .2, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.top-company:hover {
  background: var(--glass-bg);
  transform: translateX(4px);
}

.top-company__rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 10px;
  color: #ffd901;
}

.top-company__box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.top-company__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
}

.top-company__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-company__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-company__name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}

.top-company__type {
  font-size: .72rem;
  color: var(--ink-mute);
}

/* tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.tag {
  padding: 5px 11px;
  font-size: .72rem;
  font-weight: 500;
  background: var(--glass-bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  transition: background .22s ease, color .22s ease, transform .22s cubic-bezier(.4, 1.6, .5, 1), box-shadow .22s ease;
  cursor: pointer;
}

.tag:hover {
  background: var(--glass-bg-strong);
  color: var(--ink);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 14px -4px rgba(10, 132, 255, .25);
}

/* sidebar banner */
.sidebar__banner {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.sdb-label {
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg, #ff9f0a, #ff2d92 70%, #bf5af2);
  padding: 3px 9px 3px 18px;
  border-radius: 100px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}

.sdb-label::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.banner__img {
  width: 100%;
  object-fit: cover;
}

.banner__img:hover {
  transform: scale(1.03);
  transition: ease-out 0.3s;
}

/* ── Sidebar banner placeholder content ─────────────────────────── */
.sdb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 18px 20px;
  aspect-ratio: 324 / 705;
  background:
    radial-gradient(ellipse 90% 80% at 10% 20%, rgba(90, 200, 250, .18) 0%, transparent 65%),
    radial-gradient(ellipse 80% 90% at 90% 80%, rgba(255, 45, 146, .13) 0%, transparent 65%),
    var(--card-bg);
  border-radius: var(--r-md);
  animation: bannerBreath 5s ease-in-out infinite;
}

.sdb-content__eyebrow {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 8px;
}

.sdb-content__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}

.sdb-content__text {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 14px;
}

.sdb-content__cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 70%, var(--purple) 100%);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), filter .28s ease, box-shadow .28s ease;
  animation: bannerCtaBeat 5s ease-in-out infinite;
}

.sdb-content__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 10px 28px -4px rgba(255, 80, 0, .5), 0 4px 12px rgba(255, 45, 146, .4);
}

/* sidebar widget blocks (banners-strip) */
.sidebar__widget-block {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.sidebar__widget-img-item {
  width: 100%;
  height: auto;
  display: block;
}

/* Smaller sponsored label for sidebar / compact banners */
.sidebar__banner .sponsored-label,
.sidebar__widget-block .sponsored-label {
  top: 10px;
  left: 10px;
  padding: 4px 10px 4px 22px;
  font-size: .56rem;
  letter-spacing: .18em;
}

.sidebar__banner .sponsored-label::before,
.sidebar__widget-block .sponsored-label::before {
  width: 6px;
  height: 6px;
  left: 8px;
}

/* ===== 14. FEATURED IN-CONTENT BANNER =========================== */
@keyframes rotateGlow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes adBreath {

  0%,
  100% {
    box-shadow: var(--glass-shadow), 0 0 40px rgba(10, 132, 255, .08), 0 0 0 1px var(--glass-border);
  }

  50% {
    box-shadow: var(--glass-shadow), 0 0 90px rgba(191, 90, 242, .18), 0 0 50px rgba(10, 132, 255, .1), 0 0 0 1px rgba(191, 90, 242, .3);
  }
}

@keyframes adShimmer {
  0% {
    transform: translateX(-130%);
  }

  35%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes ctaBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }
}

.lg-feature-ad {
  display: block;
  margin: 48px auto;
  max-width: 1380px;
  width: 100%;
  aspect-ratio: 16/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  animation: adBreath 5s ease-in-out infinite;
}

.lg-feature-ad::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, .3) 40%,
      rgba(255, 255, 255, .4) 50%,
      rgba(255, 255, 255, .2) 60%,
      transparent 80%);
  animation: adShimmer 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

.lg-feature-ad__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 8px;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 90% at 10% 50%, rgba(10, 132, 255, .09) 0%, transparent 100%),
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(191, 90, 242, .08) 0%, transparent 100%),
    var(--card-bg);
}

.lg-feature-ad__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw + .5rem, 2rem);
  letter-spacing: -.01em;
  color: var(--ink);
}

.lg-feature-ad__text {
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 560px;
}

.lg-feature-ad__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-top: 6px;
  position: relative;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, filter .28s ease;
  animation: ctaBeat 2.4s ease-in-out infinite;
  z-index: 3;
}

.lg-feature-ad__cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .35);
}

.lg-feature-ad__cta:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

/* ===== 15. STICKY BOTTOM AD ===================================== */
.lg-sticky-ad {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120%);
  width: min(640px, calc(100% - 32px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-pill);
  background: var(--sticky-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.lg-sticky-ad.show {
  transform: translateX(-50%) translateY(0);
}

.lg-sticky-ad__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 45, 146, .4);
}

.lg-sticky-ad__icon svg {
  width: 20px;
  height: 20px;
}

.lg-sticky-ad__text {
  flex: 1;
  min-width: 0;
}

.lg-sticky-ad__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}

.lg-sticky-ad__sub {
  font-size: .72rem;
  color: var(--ink-mute);
  margin-top: 2px;
}

.lg-sticky-ad__cta {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  position: relative;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, filter .28s ease;
}

.lg-sticky-ad__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .35);
}

.lg-sticky-ad__cta:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

.lg-sticky-ad__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: background .2s ease, transform .3s cubic-bezier(.4, 1.6, .5, 1);
}

.lg-sticky-ad__close:hover {
  background: var(--glass-bg-strong);
  transform: rotate(90deg) scale(1.05);
}

/* ===== 16. COMPANY CARDS (best companies of the month) ========= */
.company-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 8px;
}

.company-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
  position: relative;
  cursor: pointer;
}

.company-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
  z-index: 1;
}

.company-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glass-shadow), 0 24px 48px -12px rgba(12, 13, 16, .28), 0 8px 16px rgba(12, 13, 16, .1);
}

.company-card__header {
  height: 15px;
  position: relative;
  z-index: 2;
}

.company-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.company-card__verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  color: #30d158;
}

.company-card__verified svg {
  width: 13px;
  height: 13px;
  stroke: #30d158;
  flex-shrink: 0;
}

.company-card__link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--cta-bg);
  text-decoration: none;
  letter-spacing: .02em;
  padding: 10px 15px;
  border-radius: var(--r-pill);
}

.company-card__link:hover {
  transform: scale(1.1);
  background-color: var(--glass-bg);
}

.company-card:nth-child(6n+1) .company-card__header {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.company-card:nth-child(6n+2) .company-card__header {
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.company-card:nth-child(6n+3) .company-card__header {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
}

.company-card:nth-child(6n+4) .company-card__header {
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.company-card:nth-child(6n+5) .company-card__header {
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.company-card:nth-child(6n) .company-card__header {
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.company-card__content {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.company-card__logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

.company-card__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-card__logo-img:not([src]),
.company-card__logo-img[src=""] {
  display: none;
}

.company-card__logo:has(.company-card__logo-img[src=""]),
.company-card__logo:has(.company-card__logo-img:not([src])) {
  background: linear-gradient(135deg, var(--ink-mute), var(--line-strong));
}

.company-card__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.005em;
  color: var(--ink);
}

.company-card__description {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 17. RECOMMENDED BLOCK ==================================== */
.block__recommended-news {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.container__recommended-news {
  min-width: 0;
}

.recommended {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.recommended__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: var(--r-md);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}

.recommended__item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
}

.recommended__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow), 0 18px 40px -10px rgba(12, 13, 16, .22), 0 6px 12px rgba(12, 13, 16, .08);
}

.recommended__logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.recommended__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recommended__logo:has(.recommended__logo-img[src=""]),
.recommended__logo:has(.recommended__logo-img:not([src])) {
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.recommended__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: .82rem;
  text-align: center;
  letter-spacing: -.005em;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.recommended__button {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.recommended__button-item {
  padding: 12px 28px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  position: relative;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, filter .28s ease;
}

.recommended__button-item:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .15);
}

.recommended__button-item:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

/* ===== 17b. REC-GRID (redesigned recommended cards) ============= */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 24px;
}

.rec-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  padding: 26px 22px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer;
}

.rec-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow), var(--glass-shadow-lg);
}

.rec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--highlight);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.rec-card__avatar {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}

.rec-card:nth-child(1) .rec-card__avatar {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.rec-card:nth-child(2) .rec-card__avatar {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.rec-card:nth-child(3) .rec-card__avatar {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.rec-card:nth-child(4) .rec-card__avatar {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.rec-card:nth-child(5) .rec-card__avatar {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.rec-card:nth-child(6) .rec-card__avatar {
  background: linear-gradient(135deg, #fa709a, #fee140);
}

.rec-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  position: relative;
  z-index: 1;
}

.rec-card__type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cta-bg);
  background: rgba(10, 132, 255, .1);
  border: 1px solid rgba(10, 132, 255, .2);
  border-radius: var(--r-pill);
  padding: 2px 9px;
  position: relative;
  z-index: 1;
}

.rec-card__desc {
  font-size: .81rem;
  color: var(--ink-mute);
  line-height: 1.52;
  flex: 1;
  position: relative;
  z-index: 1;
}

.rec-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.rec-card__verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 600;
  color: #30d158;
}

.rec-card__verified svg {
  width: 13px;
  height: 13px;
  stroke: #30d158;
  flex-shrink: 0;
}

.rec-card__link {
  font-size: .76rem;
  font-weight: 600;
  color: var(--cta-bg);
  letter-spacing: .02em;
}

@media (max-width: 860px) {
  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .rec-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 18. SUBSCRIBE ============================================ */
.subscribe {
  display: grid;
  grid-template-columns: 1fr 20%;
  gap: 15%;
  align-items: center;
  max-width: 1380px;
  width: 100%;
  margin: 48px auto;
  padding: 42px 40px;
  border-radius: var(--r-xl);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg);
  position: relative;
  overflow: hidden;
}

.subscribe::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight-strong);
  mix-blend-mode: overlay;
}

.subscribe__content {
  position: relative;
  z-index: 1;
}

.subscribe__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw + .3rem, 1.75rem);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.subscribe__text {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.subscribe__form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.subscribe__input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: var(--r-pill);
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  outline: 0;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.subscribe__input:focus {
  border-color: var(--blue);
  background: var(--glass-bg);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, .15);
}

.subscribe__input::placeholder {
  color: var(--ink-mute);
}

.subscribe__submit {
  padding: 13px 26px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  position: relative;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, filter .28s ease;
}

.subscribe__submit:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 14px 32px -8px rgba(10, 132, 255, .35), 0 4px 12px rgba(10, 132, 255, .35);
}

.subscribe__submit:active {
  transform: translateY(0) scale(.985);
  transition: transform .08s ease;
}

.subscribe__accept {
  font-size: .72rem;
  color: var(--ink-mute);
}

.subscribe__accept-word {
  color: var(--blue);
  font-weight: 500;
}

.subscribe__img {
  width: 80%;
  aspect-ratio: 1/1;
  z-index: 1;
  display: flex;
  justify-content: right;
  animation: subscribe-img-animation 6s infinite;
  animation-delay: 3s;
}

@keyframes subscribe-img-animation {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  20% {
    /* 1 секунда при 6с цикле */
    transform: translateY(-40px) rotate(-360deg);
  }

  30% {
    /* 2 секунда */
    transform: translateY(0px) rotate(-360deg);
  }

  40% {
    /* 3 секунда - возврат */
    transform: translateY(0) rotate(-360deg);
  }

  100% {
    /* 3-6 секунды - ПАУЗА 3 секунды */
    transform: translateY(0) rotate(-360deg);
  }
}

.subscribe__img-item {
  width: 100%;
  height: auto;
}

/* ===== 19. PARTNERS MARQUEE ======================================== */
.partners-marquee {
  max-width: 1380px;
  margin: 0 auto;
  padding: 2.5rem 0;
  overflow: hidden;
}

.partners-marquee__label {
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-mute);
  margin-bottom: 1.75rem;
}

.partners-marquee__track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.partners-marquee__track {
  display: flex;
  width: max-content;
  animation: partners-scroll 22s linear infinite;
}

.partners-marquee__track:hover {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(var(--marquee-shift, -25%));
  }
}

.partners-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.75rem;
  flex-shrink: 0;
  position: relative;
  border-radius: var(--r-sm);
  transition: transform .25s ease;
  text-decoration: none;
}

.partners-marquee__item:hover {
  transform: scale(1.08);
}

.partners-marquee__img {
  max-height: 43px;
  width: auto;
  object-fit: contain;
  transition: filter .25s ease;
  filter: brightness(0);
}

[data-theme="dark"] .partners-marquee__img {
  filter: none;
}

[data-theme="dark"] .section__subtitle-img {
  filter: brightness(0) invert(1);
}

.partners-marquee__item:hover .partners-marquee__img {
  filter: drop-shadow(0 0 10px rgba(10, 132, 255, .4)) drop-shadow(0 0 10px rgba(10, 132, 255, .4));
}

/* ===== 20. FOOTER =============================================== */
.footer {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  width: 100%;
  margin: 48px auto;
  padding: 48px 40px 24px;
  border-radius: var(--r-xl);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--highlight);
  mix-blend-mode: overlay;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.footer__logo {
  display: flex;
  gap: 5px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  width: min-content;
}

.footer__logo:hover {
  transform: scale(1.03) translateX(1%);
}

.footer__logo-img {
  width: 45px;
  aspect-ratio: 1.2;
}

.footer__logo-img-item {
  width: 100%;
  height: 100%;
}

.footer__logo:hover .footer__logo-img-item {
  filter: drop-shadow(0 0 10px rgba(10, 132, 255, .4)) drop-shadow(0 0 10px rgba(10, 132, 255, .4));
}

.footer__logo-name {
  line-height: 1;
  font-weight: 700;
  font-size: 1.2rem;

}

.footer__logo-name1 {
  display: block;
  font-size: 0.8rem;
}

.footer__logo-name2 {
  display: block;
  font-size: 1.7rem;
}

.footer__about {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.footer__nav-container {
  display: flex;
  gap: 24px;
}

.footer__nav {
  display: block;
  gap: 8px 18px;

}

.footer__nav-link {
  display: block;
  position: relative;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: background .25s ease, color .25s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
  text-decoration: none;
  cursor: pointer;
}

.footer__nav-link:hover {
  background: var(--glass-bg);
  color: var(--blue);
  transform: translateY(-1px);
}

/* Footer CATALOG dropdown — relative on the <li> so the absolutely-
   positioned <ul> dropdown anchors correctly. Hover on the li keeps
   it open while the cursor is over either the trigger or the dropdown
   (the dropdown is a child of the li, so :hover bubbles naturally). */
.footer__nav-item {
  position: relative;
}

.footer__nav-link-catalog {
  cursor: pointer;
}

.footer__dropdown {
  position: absolute;
  bottom: calc(0 + 6px);
  left: 0;
  min-width: 200px;
  padding: 8px;
  background: var(--dropdown-bg);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--dropdown-border);
  border-radius: var(--r-md);
  box-shadow: var(--glass-shadow-lg);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 120;
}

/* Invisible bridge between trigger and dropdown — fills the 6px gap so
   the cursor doesn't lose hover while crossing it. */
.footer__nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
  pointer-events: none;
}

.footer__nav-item:hover::after {
  pointer-events: auto;
}

.footer__nav-item:hover .footer__dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.footer_dropdown-link {
  display: block;
}

.footer__dropdown-item {
  display: block;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 10px;
  position: relative;
  transition: background .2s ease, color .2s ease, padding-left .28s cubic-bezier(.2, .7, .2, 1), transform .2s ease;
}

.footer__dropdown-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  transform: translateY(-50%) scale(0);
  transition: transform .28s cubic-bezier(.4, 1.6, .5, 1);
}

.footer__dropdown-item:hover {
  background: var(--glass-bg);
  color: var(--ink);
  padding-left: 22px;
}

.footer__dropdown-item:hover::before {
  transform: translateY(-50%) scale(1);
}


/* footer social — SVG */
.footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
  position: relative;
  z-index: 0;
}

.footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-soft);
  transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.4, 1.6, .5, 1), box-shadow .25s ease;
}

.footer__social-icon:hover {
  background: var(--glass-bg-strong);
  color: var(--ink);
  transform: translateY(-4px) rotate(-8deg) scale(1.08);
  box-shadow: 0 10px 22px -6px rgba(10, 132, 255, .35);
}

.footer__social-icon svg {
  width: 18px;
  height: 18px;
}

.footer__copyright {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.footer__copyright-item {
  font-size: .78rem;
  color: var(--ink-mute);
  text-align: center;
}

/* ===== 21. SCROLL ANIMATIONS (slower, with side motion) ========= */
/*
   Behavior:
   • Each [data-anim] block starts hidden (opacity 0, shifted).
   • IntersectionObserver toggles .in when block enters/leaves viewport
     (with a generous offset — block has to be visibly inside before .in).
   • Direction of motion depends on scroll direction:
       scrolling DOWN  → blocks rise from below (or below+side)
       scrolling UP    → blocks descend from above (or above+side)
   • Smooth, slow easing; 1.0s opacity / 1.15s transform.
*/
/* ── Hidden state ────────────────────────────────────────────── */
[data-anim] {
  opacity: 0;
  /* transition runs when .in is REMOVED (исчезновение — быстро) */
  transition:
    opacity 0.4s ease-in,
    transform 0.4s ease-in;
}

[data-anim="up"] {
  transform: translateY(130px);
}

[data-anim="down"] {
  transform: translateY(-130px);
}

[data-anim="left"] {
  transform: translate(-130px, 24px);
}

[data-anim="right"] {
  transform: translate(130px, 24px);
}

[data-anim="scale"] {
  transform: translateY(90px) scale(.90);
}

/* ── Visible state ───────────────────────────────────────────── */
[data-anim].in {
  opacity: 1;
  transform: none;
  /* transition runs when .in is ADDED (появление — плавно) */
  transition:
    opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- delay levels (cascade при появлении) ---------------------- */
[data-anim-delay="1"].in {
  transition-delay: .04s;
}

[data-anim-delay="2"].in {
  transition-delay: .09s;
}

[data-anim-delay="3"].in {
  transition-delay: .14s;
}

[data-anim-delay="4"].in {
  transition-delay: .19s;
}

[data-anim-delay="5"].in {
  transition-delay: .24s;
}

[data-anim-delay="6"].in {
  transition-delay: .29s;
}

[data-anim-delay="7"].in {
  transition-delay: .34s;
}

[data-anim-delay="8"].in {
  transition-delay: .39s;
}

[data-anim-delay="9"].in {
  transition-delay: .44s;
}

[data-anim-delay="10"].in {
  transition-delay: .49s;
}

/* delay сбрасывается при исчезновении — уходит мгновенно */
[data-anim]:not(.in)[data-anim-delay] {
  transition-delay: 0s;
}

/* --- speed overrides ----------------------------------------------- */
[data-anim-speed="slow"].in {
  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-anim-speed="fast"].in {
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- no-js fallback — keep everything visible if JS fails to load --- */
html.no-js [data-anim] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .lg-billboard::before {
    animation: none;
  }

  .lg-billboard::after {
    animation: none;
  }
}

/* ===== 22. RESPONSIVE ========================================== */
@media (max-width:1280px) {
  .header__nav {
    gap: 10px;
  }

  .header__menu {
    gap: 0;
  }

  .header__menu-link {
    padding: 7px 11px;
    font-size: .84rem;
  }
}

@media (max-width:1180px) {
  .header__inner {
    padding: 9px 14px 9px 18px;
  }

  .header__menu-link {
    padding: 7px 9px;
    font-size: .8rem;
  }

}

@media (max-width:1100px) {

  .header__logo-partners,
  .header__logo-partners-item {
    display: none;
  }

  .news-main {
    grid-template-columns: 1fr;
  }

  .lg-about-grid {
    grid-template-columns: 1fr;
  }

  .subscribe {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .subscribe__img {
    display: none;
  }

  .header__menu-link {
    padding: 6px 8px;
    font-size: .76rem;
  }

  .header__actions {
    gap: 6px;
  }

  .header__signup-btn {
    padding: 8px 14px;
    font-size: .76rem;
  }

  .lg-about__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width:920px) {

  .header__menu-link {
    font-size: 0.6rem;
  }

  .banner__main-text {
    display: none;
  }

  .news-section {
    grid-template-columns: 1fr;
    gap: 10dvw;
  }

  .sidebar {
    display: none;
  }

  .sidebar__widget {
    height: min-content;
  }

  .sidebar__banner {
    height: fit-content;
  }
}

@media (max-width:768px) {

  /* Remove horizontal offset — prevents swipe-scroll during entry animation */
  [data-anim="left"],
  [data-anim="right"] {
    transform: translateY(30px);
  }

  .header__nav {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .header__signup-btn {
    display: none;
  }

  .header__actions {
    margin-left: auto;
    margin-right: 10px;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width:640px) {

  .header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .header__inner {
    padding: 8px 10px 8px 16px;
  }

  .header__search-btn,
  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .theme-toggle {
    width: 54px;
    height: 30px;
  }

  .theme-toggle .knob {
    width: 22px;
    height: 22px;
  }

  [data-theme="dark"] .theme-toggle .knob {
    transform: translateX(26px);
  }

  .header__signup-btn {
    padding: 7px 12px;
    font-size: .72rem;
  }

  .header__logo-main {
    height: 26px;
  }

  .header__logo-partners {
    display: none;
  }

  .hero {

    padding: 36px 24px;
    margin: 24px auto;
  }

  .lg-about {
    margin: 40px auto;
  }

  .lg-about__main {
    padding: 28px 22px;
  }

  .lg-about__stats {
    grid-template-columns: 1fr 1fr;
  }

  .lg-stat {
    padding: 18px 16px;
  }

  .lg-billboard,
  .banner__main {
    aspect-ratio: 16/9;
    border-radius: var(--r-lg);
  }

  .banner__main {
    aspect-ratio: unset;
    min-height: unset;
  }

  .banner__main-content {
    position: relative;
    inset: unset;
    padding: 32px 24px;
    border-radius: var(--r-lg);
  }

  .banner__main-img {
    display: none;
  }


  .lg-feature-ad {
    border-radius: var(--r-lg);
  }

  .lg-about__features {
    grid-template-columns: 1fr;
  }

  .lg-feature-ad__text {
    display: none;
  }

  .news__main-disription {
    gap: 0.5dvw;
  }

  .news-main__title {
    font-size: 2.5dvw;
  }

  .news-main__excerpt {
    font-size: 2dvw;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 5px;
  }

  .company-cards {
    grid-template-columns: 1fr;
  }

  .recommended {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }

  .subscribe {
    padding: 32px 24px;
    margin: 32px auto;
  }

  .lg-sticky-ad {
    padding: 10px 14px;
    gap: 10px;
  }

  .lg-sticky-ad__sub {
    display: none;
  }

  .lg-sticky-ad__cta {
    padding: 6px 12px;
    font-size: .7rem;
  }

  .footer {

    padding: 32px 22px 20px;
    margin: 48px auto 12px;
  }

  .footer__nav {
    gap: 6px 10px;
  }
}

@media (max-width:480px) {
  body {
    font-size: 14px;
    padding: 0 10px;
  }

  .header__signup-btn-signup {
    display: none;
  }

  .header__signup-btn::after {
    content: "+";
    font-size: 1.2rem;
    line-height: 1;
  }

  .hero {
    padding: 28px 20px;
  }

  .hero-v2__title-accent {
    font-size: 6.5dvw;
  }

  .hero-v2__title-accent-word2 {
    font-size: 13.5dvw;
  }

  .hero-v2__title .lg-stat__value {
    font-size: 1.6rem;
  }

  .modal__content {
    padding: 28px 22px 22px;
  }

  .subtitle__block {
    flex-direction: column;
  }

  .subtitle__text {
    order: 2;
  }

  .section__subtitle-img {
    order: 1;
    margin: 0;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-main__info {
    gap: 0.5dvw;
    padding: 10px;
  }

  .news-main__category {
    font-size: 0.5rem;
    padding: 2px 5px;
  }

  .news-main__title {
    font-size: 0.7rem;
  }

  .news-main__date {
    font-size: 0.55rem;
  }

  .news-main__excerpt {
    font-size: 0.6rem;
  }

  .sidebar__banner {
    display: none;
  }

  .recommended__logo {
    width: 54px;
    height: 54px;
  }

  .partners-marquee {
    padding: 1.5rem 0;
  }

  .partners-marquee__item {
    padding: .6rem 1.75rem;
  }

  .partners-marquee__img {
    max-height: 35px;
  }

  .subscribe__input {
    min-width: 100%;
  }

  .subscribe__submit {
    margin: 0 auto;
  }

  .lg-feature-ad__content {
    gap: 5px;
  }

  .lg-feature-ad__title {
    font-size: 4.3dvw;
  }

  .lg-feature-ad__cta {
    padding: 3dvw 5dvw;
  }
}

@media (max-width:360px) {
  .header {
    top: 10px;
  }

  .header__inner {
    padding: 6px 8px 6px 12px;
    gap: 6px;
  }

  .header__logo-main {
    height: 22px;
  }

  .header__logo-name1 {
    font-size: 2.5dvw;
  }

  .header__logo-name2 {
    font-size: 5dvw;
  }

  .header__search-btn,
  .burger-menu {
    width: 30px;
    height: 30px;
  }

  .theme-toggle {
    width: 48px;
    height: 26px;
  }

  .theme-toggle .knob {
    width: 20px;
    height: 20px;
    top: 2px;
    left: 2px;
  }

  [data-theme="dark"] .theme-toggle .knob {
    transform: translateX(22px);
  }

  .header__signup-btn {
    padding: 6px 9px;
  }

  .recommended {
    grid-template-columns: 1fr 1fr;
  }

  .news-item__content {
    padding: 7px;
    gap: 0.5dvh;
  }

  .news-item__title {
    font-size: 0.65rem;
  }

  .news-item__date {
    font-size: 0.55rem;
  }

  .hero {
    padding: 24px 16px;
    border-radius: var(--r-lg);
  }

  .lg-about__main {
    padding: 22px 16px;
    border-radius: var(--r-lg);
  }

  .lg-stat {
    padding: 14px 12px;
    border-radius: var(--r-md);
  }

  .lg-about__stats {
    grid-template-columns: 1fr;
  }

  .subscribe {
    padding: 24px 16px;
    border-radius: var(--r-lg);
  }

  .footer {
    padding: 24px 16px 16px;
    margin: 32px auto 8px;
  }
}

/* ================================================================
   Author attribution block — cc-author-block
   ================================================================ */

.cc-author-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px 0 0;
  margin-bottom: 0;
  margin-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.cc-author__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(10, 132, 255, .25);
  flex-shrink: 0;
  background: var(--glass-bg-soft);
}

.cc-author__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-author__info {
  flex: 1;
  min-width: 0;
}

.cc-author__meta {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2px;
}

.cc-author__name {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.cc-author__role {
  font-size: .75rem;
  color: var(--ink-soft);
  margin-top: 1px;
}

.cc-author__date {
  font-size: .7rem;
  color: var(--ink-mute);
  margin-top: 3px;
}

.cc-author__linkedin {
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(10, 132, 255, .08);
  border: 1px solid rgba(10, 132, 255, .2);
  font-size: .72rem;
  font-weight: 600;
  color: #0a84ff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}

.cc-author__linkedin:hover {
  background: rgba(10, 132, 255, .16);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .cc-author-block {
    flex-wrap: wrap;
    gap: 10px;
  }

  .cc-author__linkedin {
    width: 100%;
    text-align: center;
  }
}

/* ── 404 page ────────────────────────────────────────────────────── */
.err404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
  min-height: 60vh;
}

.err404__code {
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #0a84ff 0%, #bf5af2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -4px;
}

.err404__title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.err404__text {
  font-size: 15px;
  color: var(--ink-mute);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.err404__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #0a84ff 0%, #bf5af2 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}

.err404__btn:hover {
  opacity: .88;
  transform: translateY(-2px);
}

.err404__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.err404__link {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.err404__link:hover {
  background: var(--glass-bg-strong);
  color: var(--ink);
}