/*
Theme Name: bet365 Argentina
Theme URI: https://example.com/bet365
Author: Nikolay
Description: Тема казино-сайта bet365 Argentina: статичная главная, динамический блог, неоново-зеленый дизайн. Меню управляется из админки, комментарии и метаданные отключены.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bet365
*/

/* ============================================================
   bet365 Argentina — Casino online
   Design read: premium consumer casino brand, cinematic dark
   emerald + neon green language. Native CSS, no frameworks.
   Palette derived from the supplied photography:
   near-black greens, deep emerald, neon #2FE07F,
   logo yellow #FFDE00 (brand mark only).
   ============================================================ */

:root {
  --bg0: #030d08;
  --bg1: #05130c;
  --bg2: #081b11;
  --panel: #0a2316;
  --panel-2: #0d2e1c;
  --line: rgba(64, 224, 148, 0.14);
  --line-strong: rgba(64, 224, 148, 0.32);
  --neon: #2fe07f;
  --neon-bright: #7cffb4;
  --neon-deep: #149b55;
  --text: #eafbf1;
  --muted: #93bca4;
  --muted-2: #5f8570;
  --yellow: #ffde00;
  --danger: #ff5d5d;

  --font-display: "Space Grotesk", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-card: 20px;
  --radius-img: 20px;
  --header-h: 72px;
  --container: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--neon); color: #04140b; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ---------- texture: grain + ambient glows ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(20, 155, 85, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(20, 155, 85, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled {
  background: rgba(4, 15, 9, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  white-space: nowrap;
}
.logo .three-sixty-five { color: var(--yellow); }
.logo small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-left: 8px;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a.nav-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.main-nav a.nav-link:hover { color: var(--neon-bright); background: rgba(47, 224, 127, 0.08); }
.main-nav a.nav-link.active { color: var(--neon); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.age-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--neon);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: rgba(47, 224, 127, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--neon-bright);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(3, 13, 8, 0.96);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, color 0.25s ease;
}
.mobile-menu.open a { transform: none; opacity: 1; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu a:hover { color: var(--neon); }
.mobile-menu .age-badge { align-self: flex-start; margin-top: 24px; }

/* ============================================================
   BUTTONS — animated CTAs
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.96); }
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Primary: neon fill, breathing glow + shine sweep */
.btn-primary {
  background: linear-gradient(135deg, var(--neon-bright), var(--neon) 45%, var(--neon-deep));
  color: #04140b;
  box-shadow: 0 0 0 1px rgba(124, 255, 180, 0.5) inset, 0 10px 34px rgba(47, 224, 127, 0.35);
  animation: cta-breathe 2.6s ease-in-out infinite;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: cta-shine 3.2s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 0 1px rgba(124, 255, 180, 0.7) inset, 0 18px 50px rgba(47, 224, 127, 0.5);
}
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(124, 255, 180, 0.5) inset, 0 10px 34px rgba(47, 224, 127, 0.3); }
  50% { box-shadow: 0 0 0 1px rgba(124, 255, 180, 0.8) inset, 0 10px 52px rgba(47, 224, 127, 0.55); }
}
@keyframes cta-shine {
  0%, 55% { left: -80%; }
  85%, 100% { left: 140%; }
}

/* Ghost: neon outline with pulsing ring */
.btn-ghost {
  background: rgba(47, 224, 127, 0.06);
  color: var(--neon-bright);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--neon);
  opacity: 0;
  animation: cta-ring 2.6s ease-out infinite;
  pointer-events: none;
}
.btn-ghost:hover {
  background: rgba(47, 224, 127, 0.14);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(47, 224, 127, 0.18);
}
@keyframes cta-ring {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.12, 1.5); }
}

/* Yellow variant for the brand accent */
.btn-brand {
  background: var(--yellow);
  color: #101400;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 10px 30px rgba(255, 222, 0, 0.25);
  overflow: hidden;
  animation: cta-breathe-y 2.6s ease-in-out infinite;
}
.btn-brand::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  animation: cta-shine 3.6s ease-in-out infinite;
}
.btn-brand:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 44px rgba(255, 222, 0, 0.4); }
@keyframes cta-breathe-y {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 10px 30px rgba(255, 222, 0, 0.22); }
  50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 10px 48px rgba(255, 222, 0, 0.42); }
}

.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-lg { padding: 19px 40px; font-size: 17px; }

/* Badges (Spanish micro-labels) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-bright);
  background: rgba(47, 224, 127, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  backdrop-filter: blur(6px);
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* ============================================================
   HERO + SLIDESHOW
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-slides, .hero-slide {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.14); }
  to { transform: scale(1.02); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 13, 8, 0.55) 0%, rgba(3, 13, 8, 0.25) 40%, rgba(3, 13, 8, 0.92) 88%),
    radial-gradient(80% 60% at 20% 80%, rgba(3, 13, 8, 0.75), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-content {
  position: relative;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  padding: calc(var(--header-h) + 40px) 0 90px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 76px);
  max-width: 18ch;
  margin: 22px 0 26px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.hero h1 .hl {
  color: var(--neon);
  text-shadow: 0 0 34px rgba(47, 224, 127, 0.55);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-panel {
  position: absolute;
  right: 48px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

/* slideshow controls */
.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dots button {
  width: 34px; height: 4px;
  border: none;
  border-radius: 4px;
  background: rgba(124, 255, 180, 0.22);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.hero-dots button.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--neon);
  transform-origin: left;
  animation: dot-fill 5s linear forwards;
  box-shadow: 0 0 12px var(--neon);
}
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scroll-hint {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 56px;
  background: linear-gradient(180deg, var(--neon), transparent);
  animation: hint-drop 1.8s ease-in-out infinite;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }

.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 52px); }
.section-head h2 .hl { color: var(--neon); }
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head .kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--neon-deep);
}

.prose { max-width: 70ch; }
.prose p { color: var(--muted); margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--neon); border-bottom: 1px solid var(--line-strong); }

.lead-text {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 56ch;
}
.lead-text .hl { color: var(--neon); }

/* --- intro block: balanced text/media composition --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}
.intro-grid > * { min-width: 0; }
.lead-text, .intro-stack { overflow-wrap: break-word; }
.intro-stack { position: relative; }
.intro-stack .media-frame { aspect-ratio: 4 / 3.4; }
.float-card {
  position: absolute;
  right: -16px;
  bottom: 40px;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 19, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(47, 224, 127, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-bright);
  animation: float-bob 5s ease-in-out infinite;
}
.float-card .row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10.5px;
}
.float-card .row .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  flex-shrink: 0;
}
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- background-image blocks --- */
.bg-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
}
.bg-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 16, 10, 0.94) 0%, rgba(4, 16, 10, 0.72) 55%, rgba(4, 16, 10, 0.35) 100%);
}
.bg-media.dim::after {
  background: linear-gradient(180deg, rgba(3, 13, 8, 0.9), rgba(3, 13, 8, 0.78));
}

.media-frame {
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 255, 180, 0.05);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame .tag {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 13, 8, 0.85));
  pointer-events: none;
}

/* --- split layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
/* grid items must shrink below their content's min-width,
   otherwise wide children (tables, nowrap buttons) blow out the page */
.split > *, .intro-grid > *, .band-inner { min-width: 0; }

/* --- neon table --- */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(10, 35, 22, 0.55), rgba(6, 20, 13, 0.75));
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  -webkit-overflow-scrolling: touch;
}
table.neon-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 15px;
}
.neon-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  color: var(--neon-bright);
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(47, 224, 127, 0.05);
  white-space: nowrap;
}
.neon-table td {
  padding: 16px 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.neon-table tr:last-child td { border-bottom: none; }
.neon-table td:first-child { color: var(--text); font-weight: 600; }
.neon-table tbody tr { transition: background 0.25s ease; }
.neon-table tbody tr:hover { background: rgba(47, 224, 127, 0.06); }

/* --- neon list --- */
.neon-list { list-style: none; display: grid; gap: 14px; margin: 8px 0 0; }
.neon-list li {
  position: relative;
  padding: 18px 22px 18px 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(10, 35, 22, 0.5), rgba(6, 20, 13, 0.6));
  color: var(--muted);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.neon-list li:hover {
  transform: translateX(6px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 30px rgba(47, 224, 127, 0.1);
}
.neon-list li::before {
  content: "";
  position: absolute;
  left: 22px; top: 24px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--neon-bright), var(--neon-deep));
  box-shadow: 0 0 14px rgba(47, 224, 127, 0.5);
  transform: rotate(45deg);
}
.neon-list li strong { color: var(--text); }

/* --- steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
  margin-top: 12px;
}
.step {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, rgba(13, 46, 28, 0.5), rgba(5, 19, 12, 0.7));
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.step:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--neon-deep);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
  transition: color 0.35s ease;
}
.step:hover::before { color: var(--neon); -webkit-text-stroke: 1px transparent; text-shadow: 0 0 24px rgba(47, 224, 127, 0.5); }
.step p { color: var(--muted); font-size: 15px; }
.step p strong { color: var(--text); }

/* --- wide feature band (full-bleed with bg image) --- */
.band {
  position: relative;
  border-radius: calc(var(--radius-card) + 8px);
  overflow: hidden;
  border: 1px solid var(--line);
  padding: clamp(40px, 6vw, 90px);
  isolation: isolate;
}
.band .band-inner { position: relative; z-index: 1; max-width: 760px; }
.band h2, .band h3 { font-size: clamp(26px, 3.2vw, 44px); margin-bottom: 18px; }
.band p { color: var(--muted); }
.band .prose { max-width: 62ch; }

/* --- CTA cluster --- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  align-items: center;
}
.micro-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ============================================================
   MARQUEE / GALLERY STRIP
   ============================================================ */
.marquee-section { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0; }
.marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee figure {
  position: relative;
  width: clamp(240px, 26vw, 380px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.marquee figure:hover img { transform: scale(1.06); }
.marquee figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(3, 13, 8, 0.8));
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}

/* ============================================================
   BLOG
   ============================================================ */
.page-head {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(44px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-head .bg-media::after {
  background: linear-gradient(180deg, rgba(3, 13, 8, 0.82), rgba(3, 13, 8, 0.65) 60%, var(--bg0));
}
.page-head h1 { font-size: clamp(40px, 6.5vw, 88px); margin: 20px 0 22px; }
.page-head h1 .hl { color: var(--neon); }
.page-head .prose { font-size: clamp(17px, 1.6vw, 21px); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.post-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(170deg, rgba(10, 35, 22, 0.45), rgba(5, 19, 12, 0.75));
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.post-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(47, 224, 127, 0.08);
}
.post-card.featured { grid-column: span 12; flex-direction: row; min-height: 420px; }
.post-card .card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-card.featured .card-media { flex: 1.15; aspect-ratio: auto; min-height: 320px; }
.post-card .card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-card:hover .card-media img { transform: scale(1.06); }
.post-card .card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 19, 12, 0.9));
}
.post-card .card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post-card.featured .card-body { flex: 1; justify-content: center; padding: clamp(28px, 4vw, 56px); }
.post-card .card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.post-card h3 { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; }
.post-card.featured h3 { font-size: clamp(26px, 3vw, 40px); }
.post-card h3 a { transition: color 0.25s ease; }
.post-card:hover h3 a { color: var(--neon-bright); }
.post-card .card-excerpt {
  color: var(--muted);
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .card-cta {
  margin-top: auto;
  padding-top: 10px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}
.link-arrow .arrow { transition: transform 0.3s ease; }
.post-card:hover .link-arrow .arrow, .link-arrow:hover .arrow { transform: translateX(5px); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px));
}
.post-hero h1 { font-size: clamp(30px, 4.6vw, 62px); max-width: 20ch; margin: 18px 0 0; }
.post-hero .post-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-hero .post-meta .hl { color: var(--neon); }
.post-cover {
  margin: clamp(32px, 5vw, 60px) auto 0;
  border-radius: calc(var(--radius-img) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; }

.post-body { max-width: 780px; margin-inline: auto; }
.post-body .prose { max-width: none; }
.post-body .prose p {
  color: #c4ddcf;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 1.4em;
}
.post-body .prose h2, .post-body .prose h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 1.8em 0 0.7em;
  color: var(--text);
}
.post-body .prose ul { margin: 0 0 1.4em; padding-left: 4px; list-style: none; display: grid; gap: 10px; }
.post-body .prose ul li {
  position: relative;
  padding-left: 26px;
  color: #c4ddcf;
}
.post-body .prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(47, 224, 127, 0.6);
  transform: rotate(45deg);
}
.post-body .prose ol { margin: 0 0 1.4em; padding-left: 24px; color: #c4ddcf; display: grid; gap: 10px; }
.post-body .prose ol li::marker { color: var(--neon); font-family: var(--font-mono); font-weight: 700; }
.post-body .prose li strong, .post-body .prose p strong { color: var(--text); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 780px;
  margin: clamp(48px, 7vw, 80px) auto 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.post-nav a {
  max-width: 46%;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}
.post-nav a:hover { color: var(--neon-bright); }
.post-nav a span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.post-nav a.next { text-align: right; margin-left: auto; }

/* CTA band shared */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 54px); margin-bottom: 14px; }
.cta-band h2 .hl { color: var(--neon); text-shadow: 0 0 30px rgba(47, 224, 127, 0.4); }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.cta-band .cta-row { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg0), #020905);
  padding: clamp(56px, 7vw, 90px) 0 40px;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 60px);
  margin-bottom: 56px;
}
.footer-brand .logo { font-size: 30px; }
.footer-brand p { color: var(--muted-2); font-size: 14px; margin-top: 16px; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-col a:hover { color: var(--neon-bright); padding-left: 6px; }
.footer-col p { color: var(--muted); font-size: 14.5px; }
.footer-col .mono { font-family: var(--font-mono); color: var(--neon-bright); font-size: 13.5px; letter-spacing: 0.05em; }

.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-badges .badge { font-size: 10px; padding: 6px 12px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--muted-2); font-size: 12.5px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-cta-float {
  position: sticky;
  bottom: 0;
  z-index: 800;
  display: flex;
  justify-content: center;
  padding: 14px;
  pointer-events: none;
}
.footer-cta-float .btn { pointer-events: auto; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 34px rgba(47, 224, 127, 0.35); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .post-card { grid-column: span 6; }
  .post-card.featured { flex-direction: column; }
  .post-card.featured .card-media { min-height: 260px; }
  .hero-panel { display: none; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta .btn { display: none; }
  .burger { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scroll-hint { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-card, .post-card.featured { grid-column: span 1; }
  .intro-grid { grid-template-columns: 1fr; }
  .float-card { position: static; margin-top: 14px; animation: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .hero-content { padding-bottom: 76px; }
  .hero-ctas .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .neon-table { font-size: 13.5px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: 100%; }
  .post-nav a.next { text-align: left; }
  /* compact rhythm on small screens: image-bg blocks and sections */
  .section { padding: 60px 0; }
  .section-tight { padding: 44px 0; }
  .band {
    padding: 26px 18px;
    border-radius: 16px;
  }
  .band .section-head { margin-bottom: 22px; }
  .neon-table th { padding: 13px 14px; }
  .neon-table td { padding: 12px 14px; }
  .neon-list li { padding: 14px 16px 14px 46px; }
  .neon-list li::before { left: 16px; top: 19px; }
  .step { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
}

/* ============================================================
   WORDPRESS INTEGRATION
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.logo { align-items: center; gap: 10px; }
.logo-img { display: block; height: 30px; width: auto; }
.logo-img-lg { height: 34px; }
.footer-brand .logo-img-lg { height: 38px; }

.main-nav > ul, .mobile-menu-links, .footer-col ul.menu {
  list-style: none; margin: 0; padding: 0;
}
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav a.nav-link { display: inline-block; }
.main-nav .current-menu-item > a.nav-link,
.main-nav .current_page_item > a.nav-link,
.main-nav .current-menu-ancestor > a.nav-link { color: var(--neon); }

.mobile-menu-links { display: flex; flex-direction: column; gap: 0; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease;
}
.mobile-menu-links a:hover { color: var(--neon); }

.footer-col ul.menu li { margin: 0; }
.footer-col ul.menu a { color: var(--muted); font-size: 14.5px; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-col ul.menu a:hover { color: var(--neon-bright); padding-left: 6px; }

/* pagination (blog) */
.pagination { margin-top: 48px; }
.pagination .nav-links {
  display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pagination .page-numbers {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.pagination .page-numbers:hover { color: var(--neon-bright); border-color: var(--line-strong); }
.pagination .page-numbers.current {
  color: #04140b; background: var(--neon); border-color: var(--neon);
  font-weight: 700;
}

/* post content inside the_content() */
.post-body .prose img { border-radius: 12px; margin: 1em 0; }
.post-body .prose figure { margin: 1.4em 0; }
.post-body .prose .wp-block-image img { height: auto; }
.post-body .prose blockquote {
  border-left: 3px solid var(--neon);
  padding: 6px 0 6px 22px;
  margin: 1.4em 0;
  color: var(--neon-bright);
  font-style: italic;
}

/* empty states */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  color: var(--muted);
}
