/* ============================================================
   THE ZONE GROWTH AGENCY — Design System & Styles
   ============================================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --color-primary: #0B0B0C;
  --color-accent: #D4AF37;
  --color-accent-hover: #c29e2f;
  --color-secondary: #1A1A1D;
  --color-white: #FFFFFF;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E8E8E8;
  --color-gray-400: #999;
  --color-gray-600: #666;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-h1: clamp(2.25rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-body: clamp(1rem, 1.2vw, 1.125rem);
  --fs-small: 0.875rem;

  --container-max: 1280px;
  --container-padding: 1.5rem;
  --section-padding: 6rem 0;
  --card-radius: 12px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- RESET ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-primary);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn--gold:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.6rem 1.4rem; font-size: 0.9rem; }
.btn--lg { padding: 1.1rem 2.8rem; font-size: 1.1rem; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.nav--scrolled {
  background: rgba(11, 11, 12, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.15));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: var(--fs-small);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav__links a:not(.btn):hover {
  color: var(--color-accent);
}

.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav__links a:not(.btn):hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  padding: 10rem 0 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
              var(--color-primary);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero__body {
  color: var(--color-gray-400);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__trust {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-badge {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
  letter-spacing: 0.02em;
}

/* Hero Dashboard Visual */
.hero__dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-secondary);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dashboard__card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard__label {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.dashboard__change {
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard__change--up {
  color: #22c55e;
}

.dashboard__change--down {
  color: #22c55e; /* lower CPA is also good */
}

.dashboard__graph {
  grid-column: 1 / -1;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard__svg {
  width: 100%;
  height: auto;
}

/* ---------- VALUE PROPOSITION ---------- */
.value {
  padding: var(--section-padding);
  background: var(--color-secondary);
}

.value__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value__card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.value__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.08);
}

.value__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
}

.value__icon svg {
  width: 100%;
  height: 100%;
}

.value__card h3 {
  margin-bottom: 0.75rem;
}

.value__card p {
  color: var(--color-gray-400);
}

/* ---------- SERVICES ---------- */
.services {
  padding: var(--section-padding);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.services__card {
  padding: 2rem;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.services__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.08);
}

.services__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.services__card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.services__card p {
  color: var(--color-gray-400);
  font-size: var(--fs-small);
}

/* ---------- PROCESS / HOW IT WORKS ---------- */
.process {
  padding: var(--section-padding);
  background: var(--color-secondary);
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), rgba(212, 175, 55, 0.2));
}

.process__step {
  text-align: center;
  position: relative;
}

.process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.process__step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process__step p {
  color: var(--color-gray-400);
  font-size: var(--fs-small);
}

/* ---------- CASE STUDIES ---------- */
.cases {
  padding: var(--section-padding);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cases__card {
  padding: 2rem;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.cases__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.cases__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: rgba(212, 175, 55, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.cases__card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.cases__stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cases__stat {
  display: flex;
  flex-direction: column;
}

.cases__stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-accent);
}

.cases__stat-label {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cases__card > p {
  color: var(--color-gray-400);
  font-size: var(--fs-small);
}

/* ---------- LEAD MAGNET ---------- */
.lead-magnet {
  padding: var(--section-padding);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, var(--color-secondary) 100%);
}

.lead-magnet__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.lead-magnet__text h2 {
  margin-bottom: 0.75rem;
}

.lead-magnet__text p {
  color: var(--color-gray-400);
  max-width: 480px;
}

.lead-magnet__form {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lead-magnet__form input,
.popup__form input {
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 1rem;
  min-width: 260px;
  transition: var(--transition);
}

.lead-magnet__form input:focus,
.popup__form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.lead-magnet__form input::placeholder,
.popup__form input::placeholder {
  color: var(--color-gray-600);
}

/* ---------- SEO BLOCK ---------- */
.seo-block {
  padding: var(--section-padding);
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.seo-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.seo-block__col h2 {
  font-size: var(--fs-h3);
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.seo-block__col p {
  color: var(--color-gray-400);
  line-height: 1.8;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: var(--section-padding);
  background: var(--color-secondary);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonials__card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--color-accent);
}

.testimonials__card p {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.testimonials__card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonials__card strong {
  color: var(--color-white);
  font-weight: 600;
}

.testimonials__card span {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  padding: 8rem 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, var(--color-primary) 70%);
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--color-gray-400);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--color-accent);
  font-weight: 500;
}

.scarcity-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 4rem 0 0;
  background: var(--color-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__brand img {
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.15));
}

.footer__brand p {
  color: var(--color-gray-400);
  margin-top: 1rem;
  font-size: var(--fs-small);
}

.footer__links h4,
.footer__contact h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.footer__links ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a,
.footer__contact a {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
  transition: var(--transition);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
}

.footer__bottom p {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-gray-600);
}

/* ---------- STICKY CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background: rgba(26, 26, 29, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.75rem 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sticky-cta--visible {
  transform: translateY(0);
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.sticky-cta__text {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ---------- EXIT INTENT POPUP ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup-overlay--active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--color-secondary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 3rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

.popup-overlay--active .popup {
  transform: scale(1) translateY(0);
}

.popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-gray-400);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.popup__close:hover {
  color: var(--color-white);
}

.popup h3 {
  margin-bottom: 0.75rem;
}

.popup p {
  color: var(--color-gray-400);
  margin-bottom: 1.5rem;
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popup__form input {
  min-width: auto;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

.reveal--visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- RESPONSIVE: TABLET ---------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 4.5rem 0;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__visual {
    max-width: 500px;
  }

  .value__grid,
  .services__grid,
  .cases__grid,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .process__timeline::before {
    display: none;
  }

  .lead-magnet__inner {
    flex-direction: column;
    text-align: center;
  }

  .seo-block__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- RESPONSIVE: MOBILE ---------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
    --section-padding: 3.5rem 0;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--color-secondary);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav__links--open {
    transform: translateX(0);
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 7rem 0 4rem;
    min-height: auto;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
    text-align: center;
  }

  .hero__dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .value__grid,
  .services__grid,
  .cases__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .process__timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lead-magnet__form {
    flex-direction: column;
    width: 100%;
  }

  .lead-magnet__form input {
    min-width: auto;
    width: 100%;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .final-cta {
    padding: 5rem 0;
  }

  .sticky-cta__text {
    display: none;
  }

  .whatsapp-float {
    bottom: 5rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ---------- RESPONSIVE: SMALL MOBILE ---------- */
@media (max-width: 375px) {
  .hero__dashboard {
    grid-template-columns: 1fr;
  }

  .cases__stats {
    gap: 1rem;
  }

  .popup {
    padding: 2rem 1.5rem;
  }
}
