/* ==========================================================================
   Growmmerce Edge — Design Tokens
   ========================================================================== */
:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #161616;
  --border: #2a2a2a;
  --text: #f5f5f2;
  --text-dim: #a3a3a0;
  --accent: #D4FF3F;
  --accent-dim: #a8cc32;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1200px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.text-accent { color: var(--accent); }

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover { background: #e2ff6e; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a {
  position: relative;
  color: var(--text-dim);
  transition: color 0.25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { padding: 10px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 180px 0 0;
  background: var(--bg);
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 100%;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 255, 63, 0.15), transparent 70%),
    linear-gradient(180deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.88) 60%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
  padding-bottom: 80px;
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-track span:nth-child(odd) { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */
.trust-bar { padding: 36px 0 0; }
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.trust-badge-icon { font-size: 14px; }

/* ==========================================================================
   Store Audit
   ========================================================================== */
.audit { padding: 20px 0 80px; }
.audit-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(212, 255, 63, 0.08), transparent 70%),
    var(--surface);
}
.audit-card h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 14px;
}
.audit-sub {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 28px;
}

.audit-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.audit-teaser:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.audit-teaser-text .audit-sub { margin: 0; max-width: 480px; }
.audit-teaser-text h2 { margin-bottom: 10px; }
.audit-teaser-btn { flex-shrink: 0; white-space: nowrap; }
.audit-input-row {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.audit-input-row input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s ease;
}
.audit-input-row input:focus {
  outline: none;
  border-color: var(--accent);
}
.audit-input-row .btn { flex-shrink: 0; }
.audit #auditStatus {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  min-height: 20px;
}

.audit-results {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.audit-results-note {
  font-size: 13px;
  color: var(--text-dim);
}
.audit-results-note a { color: var(--accent); }

/* ---- Dedicated Store Audit page ---- */
.audit-hero {
  padding: 170px 0 90px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 255, 63, 0.12), transparent 70%), var(--bg);
}
.audit-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.audit-hero-inner h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  margin-bottom: 20px;
}
.audit-hero-form { max-width: 560px; margin: 0 auto; }
.audit-hero .audit-input-row { max-width: 100%; }

/* Overall grade card + ring gauges */
.audit-overview {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.audit-grade-card {
  padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 100% 80% at 20% 0%, rgba(212, 255, 63, 0.12), transparent 70%),
    var(--bg);
  border: 1px solid var(--border);
}
.audit-grade-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}
.audit-grade-letter {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--accent);
}
.audit-grade-card.average .audit-grade-letter { color: #FFC24A; }
.audit-grade-card.poor .audit-grade-letter { color: #FF6B4A; }
.audit-grade-score {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.audit-grade-insight {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.audit-grade-weighting {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.audit-ring-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.audit-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
}
.ring-svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}
.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease, stroke 0.4s ease;
}
.audit-ring.average .ring-progress { stroke: #FFC24A; }
.audit-ring.poor .ring-progress { stroke: #FF6B4A; }
.ring-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.ring-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Platform badge + full report link */
.audit-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.audit-platform-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 255, 63, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.audit-full-report-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.audit-full-report-link:hover { border-color: var(--accent); color: var(--accent); }

/* Real-user field data */
.audit-field-data {
  text-align: left;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.audit-field-data h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.audit-section-sub {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 6px;
}
.audit-field-data p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Core Web Vitals + phone screenshot */
.audit-cwv-section {
  text-align: left;
  margin-bottom: 28px;
}
.audit-cwv-section > h3 {
  font-size: 15px;
  margin-bottom: 16px;
}
.audit-cwv-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}
.audit-phone-frame {
  border: 3px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}
.audit-phone-frame img {
  display: block;
  width: 100%;
}
.audit-cwv-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cwv-metric {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
}
.cwv-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--text-dim);
}
.cwv-metric.good .cwv-dot { background: var(--accent); }
.cwv-metric.average .cwv-dot { background: #FFC24A; }
.cwv-metric.poor .cwv-dot { background: #FF6B4A; }
.cwv-label { color: var(--text-dim); }
.cwv-value {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}

.audit-tech-checks { margin-bottom: 24px; }
.audit-tech-checks h3 {
  font-size: 16px;
  margin-bottom: 14px;
  text-align: left;
}
.tech-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tech-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  text-align: left;
}
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.tech-check.good .check-icon { background: rgba(212, 255, 63, 0.15); color: var(--accent); }
.tech-check.poor .check-icon { background: rgba(255, 107, 74, 0.15); color: #FF6B4A; }
.tech-check.good .tech-check-text { color: var(--text); }
.tech-check.poor .tech-check-text { color: #FF6B4A; }
.tech-check.unknown { opacity: 0.4; }

.audit-findings {
  text-align: left;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.audit-findings h3 {
  font-size: 16px;
  margin-bottom: 14px;
}
.audit-findings ul {
  margin: 0 0 20px;
  padding-left: 20px;
}
.audit-findings li {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.audit-locked {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px dashed var(--border);
}
.audit-locked > p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.audit-locked #auditLockedCount {
  color: var(--accent);
  font-weight: 700;
}
.unlock-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.unlock-form input {
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}
.unlock-form input:focus { outline: none; border-color: var(--accent); }
.unlock-form .btn { flex-shrink: 0; }

/* How it works */
.audit-steps { padding: 100px 0; background: var(--bg-alt); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-card h3 { font-size: 19px; margin-bottom: 10px; }
.step-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* What we check */
.audit-checks { padding: 100px 0; }
.checks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.check-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.check-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 255, 63, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.check-tag-manual {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.check-tag-critical {
  background: rgba(255, 107, 74, 0.2);
  color: #fff;
}
.check-card:has(.check-tag-critical) {
  border-color: rgba(255, 107, 74, 0.4);
}
.check-card h3 { font-size: 16px; margin-bottom: 8px; }
.check-card p { color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.checks-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  max-width: 620px;
  margin: 0 auto;
}

/* FAQ section on audit page */
.audit-faq { padding: 100px 0; background: var(--bg-alt); }

/* ==========================================================================
   Logo strip
   ========================================================================== */
.logo-strip { padding: 60px 0; }
.logo-strip-label {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-dim);
  opacity: 0.6;
}

/* ==========================================================================
   Section head
   ========================================================================== */
.section-head {
  max-width: 640px;
  margin-bottom: 60px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}

section { padding: 100px 0; }

/* ==========================================================================
   Services
   ========================================================================== */
.service-list { border-top: 1px solid var(--border); }
.service-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s ease, background 0.3s ease;
  cursor: pointer;
}
.service-row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(212,255,63,0.06), transparent);
}
.service-index {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent);
  min-width: 32px;
}
.service-main { flex: 1; }
.service-main h3 {
  font-size: 26px;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}
.service-row:hover .service-main h3 { color: var(--accent); }
.service-main p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 520px;
}
.service-arrow {
  font-size: 22px;
  color: var(--text-dim);
  transform: rotate(-45deg);
  transition: transform 0.3s ease, color 0.3s ease;
}
.service-row:hover .service-arrow {
  transform: rotate(0deg);
  color: var(--accent);
}

/* ==========================================================================
   Where We Work (Platforms marquee)
   ========================================================================== */
.platform-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.platform-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: platform-scroll 26s linear infinite;
}
.platform-marquee:hover .platform-track {
  animation-play-state: paused;
}
.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  padding: 24px 28px;
  background: #f5f5f2;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}
.platform-item:hover { transform: translateY(-4px); }
.platform-item img {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.platform-item span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}
@keyframes platform-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Work / Portfolio
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-color, var(--accent));
}
.work-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.work-thumb span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dim);
}
.work-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
}
.work-card:hover .work-thumb img { animation-play-state: paused; }

.work-thumb img.slide-1 { animation: work-fade-1 7.5s ease-in-out infinite, work-pan-1 7.5s ease-in-out infinite; }
.work-thumb img.slide-2 { animation: work-fade-2 7.5s ease-in-out infinite, work-pan-2 7.5s ease-in-out infinite; }
.work-thumb img.slide-3 { animation: work-fade-3 7.5s ease-in-out infinite, work-pan-3 7.5s ease-in-out infinite; }

@keyframes work-fade-1 {
  0%, 4% { opacity: 1; }
  29%, 100% { opacity: 0; }
}
@keyframes work-pan-1 {
  0% { transform: translateY(0); }
  29%, 100% { transform: translateY(-45%); }
}

@keyframes work-fade-2 {
  0%, 33% { opacity: 0; }
  37%, 62% { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes work-pan-2 {
  0%, 33% { transform: translateY(0); }
  62%, 100% { transform: translateY(-25%); }
}

@keyframes work-fade-3 {
  0%, 66% { opacity: 0; }
  70%, 95% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes work-pan-3 {
  0%, 66% { transform: translateY(0); }
  95%, 100% { transform: translateY(-25%); }
}
.work-meta { padding: 20px; }
.work-meta h3 { font-size: 18px; margin-bottom: 6px; }
.work-meta p { color: var(--text-dim); font-size: 14px; }

/* ==========================================================================
   Sales Proof
   ========================================================================== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.proof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.proof-caption {
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ==========================================================================
   About + Stats
   ========================================================================== */
.about { background: var(--bg-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 20px; }
.about-text { color: var(--text-dim); font-size: 16px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.stat {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat-number, .stat-suffix {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
}
.stat p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-slider { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-track { position: relative; min-height: 220px; }
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.testimonial-slide.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}
.testimonial-slide p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  margin-bottom: 28px;
}
.testimonial-slide footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-slide footer div { text-align: left; }
.testimonial-slide footer strong { display: block; font-size: 15px; }
.testimonial-slide footer small { color: var(--text-dim); font-size: 13px; }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.testimonial-controls button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.testimonial-controls button:hover { border-color: var(--accent); color: var(--accent); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
}
.testimonial-dots button.active { background: var(--accent); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--card-color, var(--accent)), #0a0a0a);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: rgba(10,10,10,0.85);
  margin-bottom: 16px;
}
.team-card h3 { font-size: 17px; margin-bottom: 4px; }
.team-card p { color: var(--text-dim); font-size: 14px; }

/* ==========================================================================
   Blog / Insights
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: opacity 0.6s ease, transform 0.4s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-color, var(--accent));
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

.blog-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card-color, var(--accent)) 0%, #0a0a0a 140%);
}
.blog-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-thumb img {
  transform: scale(1.08);
}
.blog-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-meta { padding: 24px; }
.blog-date {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 10px;
}
.blog-meta h3 {
  font-size: 19px;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}
.blog-card:hover .blog-meta h3 { color: var(--accent); }
.blog-meta p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.blog-link .arrow { transition: transform 0.3s ease; }
.blog-card:hover .blog-link .arrow { transform: translateX(4px); }

.blog-grid .blog-card:nth-child(3n+1) { transition-delay: 0s; }
.blog-grid .blog-card:nth-child(3n+2) { transition-delay: 0.12s; }
.blog-grid .blog-card:nth-child(3n+3) { transition-delay: 0.24s; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.pricing-head h2 { margin-bottom: 32px; }

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.25s ease;
}
.toggle-label.active { color: var(--text); }

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
}
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s ease;
}
.toggle-switch[aria-checked="true"] .toggle-knob {
  transform: translateX(24px);
}

.save-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(212, 255, 63, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover { transform: translateY(-6px); border-color: var(--accent); }

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.pricing-featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}
.pricing-featured:hover { transform: translateY(-10px); }

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #0a0a0a;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
  font-family: var(--font-display);
}
.price-currency { font-size: 22px; font-weight: 600; }
.price-amount { font-size: 44px; font-weight: 700; }
.price-plus { font-size: 28px; font-weight: 700; }
.price-period {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 32px;
}
.pricing-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.pricing-card:not(.pricing-featured) .pricing-features li { color: var(--text-dim); }
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
}
.pricing-featured .pricing-features li::before { color: #0a0a0a; }

.pricing-cta { justify-content: center; width: 100%; }
.pricing-featured .btn-primary {
  background: #0a0a0a;
  color: var(--accent);
}
.pricing-featured .btn-primary:hover { background: #1a1a1a; }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: var(--bg-alt);
  text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.cta-sub { color: var(--text-dim); margin-bottom: 40px; }

.contact-form { text-align: left; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { margin-bottom: 20px; resize: vertical; }
.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  min-height: 20px;
}

/* ==========================================================================
   Legal / Content Pages
   ========================================================================== */
.page-hero {
  padding: 180px 0 60px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 255, 63, 0.1), transparent 70%), var(--bg);
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.page-hero p { color: var(--text-dim); font-size: 15px; }

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 0;
}
.page-content h2 {
  font-size: 24px;
  margin: 48px 0 16px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.page-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.page-content li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  list-style: disc;
  margin-bottom: 8px;
}
.page-content a { color: var(--accent); }
.page-content strong { color: var(--text); }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  padding-bottom: 22px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-top: 80px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 1.1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-brand p { color: var(--text-dim); margin-top: 14px; font-size: 14px; }
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-newsletter form {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.footer-newsletter input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
}
.footer-newsletter input:focus { outline: none; }
.footer-newsletter button {
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  width: 44px;
  font-weight: 700;
  cursor: pointer;
}
.footer-email {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-email:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: var(--text-dim);
  transition: color 0.25s ease;
}
.footer-social a:hover { color: var(--accent); }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.6);
  z-index: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.75);
}
.whatsapp-float img {
  width: 28px;
  height: 28px;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .checks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }

  .hero { padding-top: 140px; }
  .page-hero { padding-top: 140px; }
  .audit-hero { padding-top: 140px; }
  .audit-steps, .audit-checks, .audit-faq { padding: 64px 0; }
  .checks-grid { grid-template-columns: 1fr; }
  .audit-overview { grid-template-columns: 1fr; }
  .audit-ring-grid { grid-template-columns: repeat(2, 1fr); }
  .audit-cwv-grid { grid-template-columns: 1fr; }
  .audit-phone-frame { max-width: 160px; margin: 0 auto; }
  .audit-cwv-metrics { grid-template-columns: 1fr; }
  .tech-check-grid { grid-template-columns: 1fr; }
  .page-content { padding: 56px 0; }
  section { padding: 64px 0; }

  .work-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .audit-card { padding: 36px 24px; }
  .audit-teaser { flex-direction: column; align-items: flex-start; }
  .audit-teaser-btn { width: 100%; justify-content: center; }
  .audit-input-row { flex-direction: column; }
  .audit-score-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .service-row { flex-wrap: wrap; }
  .service-main h3 { font-size: 21px; }
}
