/* ============================================================
   CB AGENCY — Premium Homepage v3.0
   Cinematic scroll experience — igloo.inc inspired
   All animations CSS-driven (no JS dependency)
   ============================================================ */

/* ── GOOGLE FONTS ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --accent:   #F5C800;
  --accent2:  #FF8C00;
  --bg:       #080808;
  --bg2:      #0e0e0e;
  --white:    #ffffff;
  --muted:    rgba(255,255,255,0.45);
  --border:   rgba(255,255,255,0.07);
  --font:     'Space Grotesk', sans-serif;
  --body:     'Inter', sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── CUSTOM CURSOR (desktop) ───────────────────────────────── */
@media (pointer: fine) { body { cursor: none; } }
#cb-cursor {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(245,200,0,0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}
#cb-cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
}
body.hovering #cb-cursor { width: 70px; height: 70px; background: rgba(245,200,0,0.1); }

/* ── SCROLL PROGRESS ───────────────────────────────────────── */
#cb-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── NAV ───────────────────────────────────────────────────── */
#cb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.3s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#cb-nav.scrolled {
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  padding: 16px 48px;
  border-color: var(--border);
}
.nav-logo { font-family: var(--font); font-size: 1.3rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-link {
  font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-link:hover { color: #fff; }
.nav-wa {
  padding: 10px 24px;
  background: var(--accent);
  color: #000;
  font-size: 0.85rem; font-weight: 700;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-wa:hover { background: #ffd600; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,200,0,0.4); }
@media (max-width: 767px) { #cb-nav { display: none; } }

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — HERO
═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding: 0 24px;
}

/* Background grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,200,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,200,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Radial glow */
#hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(245,200,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-headline {
  font-family: var(--font);
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
}

.hero-headline .line-white { color: #fff; display: block; }
.hero-headline .line-accent {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: #000;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 100px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.2s;
}
.btn-primary:hover {
  background: #ffd600;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(245,200,0,0.4);
}
.btn-primary svg { transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.btn-primary:hover svg { transform: translateX(5px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border: 1.5px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Animated scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLineAnim 2s ease-in-out infinite;
}
@keyframes scrollLineAnim {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.3); opacity: 0.3; }
}
.scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — MARQUEE TICKER
═══════════════════════════════════════════════════════════ */
#ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(245,200,0,0.03);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 20s linear infinite;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — STATS
═══════════════════════════════════════════════════════════ */
#stats {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .stats-container { grid-template-columns: repeat(4, 1fr); }
}
.stat-cell {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(245,200,0,0.03); }

/* Only animate when JS is present */
body.js-ready .stat-cell {
  opacity: 0;
  transform: translateY(30px);
}
body.js-ready .stat-cell.in-view { animation: revealUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
body.js-ready .stat-cell:nth-child(2).in-view { animation-delay: 0.1s; }
body.js-ready .stat-cell:nth-child(3).in-view { animation-delay: 0.2s; }
body.js-ready .stat-cell:nth-child(4).in-view { animation-delay: 0.3s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.stat-num {
  font-family: var(--font);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-desc {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-cell::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--accent);
  transition: width 0.6s ease;
}
.stat-cell:hover::before { width: 100%; }
.stat-cell.in-view::before { animation: statLine 1s ease 0.5s forwards; }
@keyframes statLine {
  to { width: 40%; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — SERVICES (Sticky Scroll Panels)
═══════════════════════════════════════════════════════════ */
#services {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.services-intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 48px 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.services-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.services-heading {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

.services-heading em {
  font-style: normal;
  color: var(--accent);
}

.services-count {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: right;
  flex-shrink: 0;
}

/* Service panels */
.service-panel {
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.4s;
  cursor: pointer;
}

.service-panel-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 48px;
  min-height: 100px;
  transition: min-height 0.5s cubic-bezier(0.22,1,0.36,1);
}

.service-panel:hover { background: rgba(255,255,255,0.02); }
.service-panel.open { background: rgba(245,200,0,0.03); }
.service-panel.open .service-panel-inner { min-height: 160px; }

.sp-num {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(245,200,0,0.4);
  transition: color 0.3s;
}
.service-panel.open .sp-num,
.service-panel:hover .sp-num { color: var(--accent); }

.sp-content { flex: 1; padding: 32px 0; }
.sp-name {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s, transform 0.3s;
}
.service-panel:hover .sp-name,
.service-panel.open .sp-name { color: #fff; transform: translateX(8px); }

.sp-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 0;
}
.service-panel.open .sp-desc { max-height: 80px; opacity: 1; margin-top: 10px; }

.sp-metric {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-align: right;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.service-panel.open .sp-metric { opacity: 1; transform: translateX(0); }

.sp-arrow {
  position: absolute;
  right: 48px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, transform 0.4s;
}
.service-panel:hover .sp-arrow { border-color: var(--accent); color: var(--accent); }
.service-panel.open .sp-arrow { border-color: var(--accent); color: var(--accent); transform: rotate(45deg); }

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — WORK CAROUSEL
═══════════════════════════════════════════════════════════ */
#work {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.work-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.work-heading {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.work-heading em { font-style: normal; color: var(--accent); }

.work-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(245,200,0,0.3);
  padding: 10px 22px;
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.work-see-all:hover { background: rgba(245,200,0,0.08); border-color: var(--accent); transform: translateY(-2px); }

/* Drag rail */
.work-rail {
  display: flex;
  gap: 16px;
  padding: 0 48px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.work-rail::-webkit-scrollbar { display: none; }
.work-rail.grabbing { cursor: grabbing; }

.work-card {
  flex-shrink: 0;
  width: clamp(200px, 35vw, 280px);
  aspect-ratio: 9/16;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.work-card:hover { transform: scale(1.03) translateY(-6px); }

.work-card-bg {
  position: absolute;
  inset: 0;
  background: #141414;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.work-card:hover .work-card-bg { transform: scale(1.05); }

.work-card-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.work-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(245,200,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.work-card-play svg { color: #000; margin-left: 3px; }
.work-card:hover .work-card-play { transform: translate(-50%,-50%) scale(1); }

.work-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
}
.work-card-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.work-card-title { font-family: var(--font); font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.3; }
.work-drag-hint { text-align: center; padding: 20px; font-size: 0.7rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.2); text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════
   SECTION 6 — PROCESS
═══════════════════════════════════════════════════════════ */
#process {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
.process-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.process-header {
  margin-bottom: 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}
.process-heading {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.process-heading em { font-style: normal; color: var(--accent); }
.process-sub { font-size: 0.9rem; color: var(--muted); max-width: 300px; line-height: 1.7; }

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--border);
  position: relative;
}
body.js-ready .process-step {
  opacity: 0;
  transform: translateY(40px);
}
body.js-ready .process-step.in-view { animation: revealUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
body.js-ready .process-step:nth-child(2).in-view { animation-delay: 0.12s; }
body.js-ready .process-step:nth-child(3).in-view { animation-delay: 0.24s; }
body.js-ready .process-step:nth-child(4).in-view { animation-delay: 0.36s; }

.process-step:last-child { border-right: none; }
.process-step-num {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(245,200,0,0.5);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.process-step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,200,0,0.3), transparent);
}
.process-step-title {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.process-step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   SECTION 7 — TESTIMONIALS
═══════════════════════════════════════════════════════════ */
#testimonials {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.testimonials-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 60px;
}
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.section-heading {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}
.section-heading em { font-style: normal; color: var(--accent); }

.marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-row { margin-bottom: 16px; }
.marquee-track { display: flex; gap: 16px; width: max-content; }
.marquee-fwd .marquee-track { animation: mFwd 40s linear infinite; }
.marquee-rev .marquee-track { animation: mRev 45s linear infinite; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
@keyframes mFwd { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.t-card {
  width: clamp(280px, 38vw, 360px);
  flex-shrink: 0;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.t-card:hover { border-color: rgba(245,200,0,0.15); transform: translateY(-4px); background: rgba(255,255,255,0.04); }
.t-stars { color: var(--accent); letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 14px; }
.t-quote { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, rgba(245,200,0,0.25), rgba(245,140,0,0.15)); border: 1px solid rgba(245,200,0,0.2); display: flex; align-items: center; justify-content: center; font-family: var(--font); font-size: 0.85rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.t-name { font-size: 0.83rem; font-weight: 700; color: #fff; }
.t-role { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   SECTION 8 — CTA
═══════════════════════════════════════════════════════════ */
#cta {
  padding: 160px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% 50%, rgba(245,200,0,0.06) 0%, transparent 60%),
    linear-gradient(rgba(245,200,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,200,0,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
body.js-ready .cta-inner {
  opacity: 0;
  transform: translateY(50px);
}
body.js-ready .cta-inner.in-view { animation: revealUp 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }

.cta-eyebrow { margin-bottom: 24px; }
.cta-headline {
  font-family: var(--font);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 24px;
}
.cta-headline .cta-accent {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Glitch */
.cta-accent.glitching::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ff0040, #ff0040);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: g1 0.4s steps(1) forwards;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.cta-accent.glitching::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #00ffcc, #00ffcc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: g2 0.4s steps(1) forwards;
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}
@keyframes g1 { 0%{transform:translate(-4px,2px)} 25%{transform:translate(4px,-2px)} 50%{transform:translate(-3px,3px)} 75%{transform:translate(3px,-1px)} 100%{transform:translate(0,0);opacity:0} }
@keyframes g2 { 0%{transform:translate(4px,-2px)} 25%{transform:translate(-4px,2px)} 50%{transform:translate(3px,-3px)} 75%{transform:translate(-2px,2px)} 100%{transform:translate(0,0);opacity:0} }

.cta-sub { font-size: 1.05rem; color: var(--muted); margin-bottom: 48px; line-height: 1.6; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: #25D366;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.25s;
  animation: heartbeat 3.5s ease-in-out 2s infinite;
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(37,211,102,0.4); animation: none; }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.02)} }

.cta-contacts { font-size: 0.82rem; color: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-sep { color: rgba(255,255,255,0.1); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
#footer {
  padding: 48px 0 calc(80px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { #footer { padding: 48px 0; } }
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name { font-family: var(--font); font-size: 1.5rem; font-weight: 900; color: var(--accent); letter-spacing: -0.03em; }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 6px; letter-spacing: 0.04em; }
.footer-nav { display: flex; gap: 32px; }
.footer-nav a { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }
.footer-credits { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAV
═══════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 68px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 400;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }

.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 16px; color: rgba(255,255,255,0.35); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color 0.2s; }
.nav-item svg { width: 22px; height: 22px; transition: transform 0.2s; }
.nav-item span { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-item.active, .nav-item:hover { color: var(--accent); }
.nav-item.active svg, .nav-item:hover svg { transform: scale(1.15); }

.nav-item.nav-center { position: relative; }
.nav-center-wrap { width: 50px; height: 50px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(245,200,0,0.5); transition: transform 0.2s, box-shadow 0.2s; }
.nav-item.nav-center svg { color: #000; width: 22px; height: 22px; }
.nav-item.nav-center span { color: var(--accent); }
.nav-item.nav-center:hover .nav-center-wrap { transform: scale(1.1); }

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 88px; left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: min(360px, calc(100vw - 32px));
}
.toast {
  padding: 12px 16px;
  background: #1c1c1c;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: all;
  animation: revealUp 0.3s ease;
}
.toast.success { border-color: rgba(37,211,102,0.3); color: #25D366; }
.toast.error   { border-color: rgba(224,52,52,0.3); color: #E03434; }
.toast.info    { border-color: rgba(245,200,0,0.3); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   PRELOADER (injected by JS)
═══════════════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: #080808;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.pl-word {
  font-family: var(--font);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
  display: flex;
  gap: clamp(3px, 1vw, 10px);
  margin-bottom: 20px;
}
.pl-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.4s, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.pl-char.in { opacity: 1; transform: translateY(0); }

.pl-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: width 0.6s ease;
  margin-bottom: 14px;
}
.pl-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pl-sub.in { opacity: 1; transform: translateY(0); }
.pl-wipe {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.pl-wipe.go { animation: wipeIn 0.5s cubic-bezier(0.77,0,0.18,1) forwards; }
.pl-wipe.out { animation: wipeOut 0.5s cubic-bezier(0.77,0,0.18,1) forwards; }
@keyframes wipeIn { to { transform: scaleX(1); } }
@keyframes wipeOut { from { transform-origin: left; transform: scaleX(1); } to { transform-origin: right; transform: scaleX(0); } }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .stats-container { padding: 0 24px; }
  .services-intro, .work-top, .process-container,
  .testimonials-top, .footer-container { padding: 0 24px; }
  .work-rail { padding: 0 24px 20px; }
  .process-grid { gap: 32px; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 32px; }
  #cb-nav { display: none; }
  .footer-nav, .footer-social { display: none; }
  .service-panel-inner { padding: 0 24px; grid-template-columns: 48px 1fr; }
  .sp-metric { display: none; }
}

/* ─ Utilities ─ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 767px) { .container { padding: 0 24px; } }
