/* ==========================================================================
   Get reVAmp HQ — Core Stylesheet
   Base reset, typography, layout, header, hero, sections, footer.
   Component classes live in components.css.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

ul[role="list"], ol[role="list"] { list-style: none; }

/* Accessible focus states */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--sp-4);
  z-index: 2000;
  padding: var(--sp-2) var(--sp-4);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top var(--speed-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-2); color: #fff; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

.lead { font-size: var(--fs-md); color: var(--text-secondary); }
.muted { color: var(--text-muted); }

/* ---- Layout ---- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--sp-section); position: relative; }
.section--subtle { background: var(--bg-subtle); }

.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--sp-8);
}
.section-head .eyebrow { margin-bottom: var(--sp-3); }
.section-head p { margin-top: var(--sp-4); color: var(--text-secondary); font-size: var(--fs-md); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Page Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity var(--speed-slow) var(--ease), visibility var(--speed-slow);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  animation: pulseSoft 1.2s ease infinite;
}

/* Scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 1600;
  background: var(--gradient-brand);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1500;
  height: var(--nav-height);
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0; /* keep "reVAmp" as one word — flex gap would split it */
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand svg { height: 34px; width: auto; }
.brand__va { color: var(--primary); }
.brand__hq {
  font-size: 0.6em;
  color: var(--primary);
  margin-left: 0.45em; /* space between "reVAmp" and "HQ" */
  letter-spacing: 0.14em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}
.nav__links a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--speed-fast), background var(--speed-fast);
}
.nav__links a:hover { color: var(--text); background: var(--bg-subtle); }
.nav__links a[aria-current="page"] { color: var(--primary); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform var(--speed-fast) var(--ease), border-color var(--speed-fast);
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.06); border-color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--sp-7));
  padding-bottom: var(--sp-8);
  overflow: hidden;
  isolation: isolate;
}

/* Animated gradient blobs behind the hero */
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob--1 { width: 560px; height: 560px; background: var(--primary); top: -180px; right: -120px; animation: blobFloat 14s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: var(--sky); bottom: -140px; left: -100px; animation: blobFloat 18s ease-in-out infinite reverse; }
.blob--3 { width: 300px; height: 300px; background: var(--accent); top: 38%; left: 44%; opacity: 0.3; animation: blobFloat 22s ease-in-out infinite; }
[data-theme="dark"] .blob { opacity: 0.28; }
[data-theme="dark"] .blob--3 { opacity: 0.18; }

/* Particle canvas sits above blobs, below content */
#particles { position: absolute; inset: 0; z-index: -1; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-8);
  align-items: center;
}

.hero__title { margin-block: var(--sp-4) var(--sp-5); }
.hero__title .typed { color: var(--primary); }
.hero__title .caret {
  display: inline-block;
  width: 3px;
  background: var(--sky);
  animation: blink 0.9s step-end infinite;
}

.hero__sub {
  max-width: 540px;
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-7); }

/* Statistics row */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.stat__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}
.stat__value span { color: var(--primary); }
.stat__label { font-size: var(--fs-sm); color: var(--text-muted); }

/* Hero visual — floating glass panels */
.hero__visual { position: relative; min-height: 460px; }
.float-card {
  position: absolute;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  will-change: transform;
}
.float-card--main {
  inset: 8% 4% auto auto;
  width: min(340px, 90%);
  animation: floatY 7s ease-in-out infinite;
}
.float-card--a { top: 52%; left: 0; animation: floatY 9s ease-in-out infinite 0.8s; }
.float-card--b { bottom: 4%; right: 10%; animation: floatY 8s ease-in-out infinite 1.6s; }

.float-card h4 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.float-card p  { font-size: var(--fs-sm); color: var(--text-secondary); }

.metric-row { display: flex; align-items: center; gap: var(--sp-3); }
.metric-row + .metric-row { margin-top: var(--sp-3); }
.metric-bar {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  overflow: hidden;
}
.metric-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-brand);
  animation: growBar 1.6s var(--ease) both;
}

/* ==========================================================================
   Logo Marquee (Trusted By)
   ========================================================================== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--sp-8);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity var(--speed-fast), color var(--speed-fast);
}
.marquee__item:hover { opacity: 1; color: var(--text); }

/* ==========================================================================
   Process Timeline
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5);
  counter-reset: step;
}
.process__step {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              border-color var(--speed);
}
.process__step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sp-3);
}
.process__step h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.process__step p { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 2rem + 3vw, 5rem);
  text-align: center;
  background: var(--gradient-deep);
  color: #fff;
  isolation: isolate;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
}
.cta-band::before { width: 380px; height: 380px; background: rgba(56, 189, 248, 0.4); top: -160px; right: -80px; }
.cta-band::after  { width: 300px; height: 300px; background: rgba(96, 165, 250, 0.35); bottom: -140px; left: -60px; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto var(--sp-6); }

/* ==========================================================================
   Page Hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--sp-9)) 0 var(--sp-8);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 { max-width: 760px; margin-inline: auto; }
.page-hero p {
  max-width: 620px;
  margin: var(--sp-4) auto 0;
  font-size: var(--fs-md);
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-inverse);
  color: #94A3B8;
  padding: var(--sp-9) 0 var(--sp-6);
  margin-top: var(--sp-section);
}
[data-theme="dark"] .site-footer { background: #01040C; border-top: 1px solid var(--border); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.site-footer .brand { color: #F8FAFC; margin-bottom: var(--sp-4); }
.footer-about { font-size: var(--fs-sm); max-width: 300px; }

.footer-col h4 {
  color: #F8FAFC;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; display: grid; gap: var(--sp-2); }
.footer-col a { color: #94A3B8; font-size: var(--fs-sm); transition: color var(--speed-fast); }
.footer-col a:hover { color: var(--sky); }

.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #CBD5E1;
  transition: background var(--speed-fast), border-color var(--speed-fast), transform var(--speed-fast);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
}
.footer-bottom a { color: #94A3B8; }
.footer-bottom a:hover { color: var(--sky); }

/* ==========================================================================
   Floating Utilities (Back to top, WhatsApp)
   ========================================================================== */
.back-to-top,
.whatsapp-fab {
  position: fixed;
  right: var(--sp-5);
  z-index: 1400;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--speed-fast) var(--ease), opacity var(--speed), visibility var(--speed);
}
.back-to-top {
  bottom: var(--sp-5);
  background: var(--bg-elevated);
  color: var(--primary);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

.whatsapp-fab { bottom: var(--sp-5); background: #25D366; color: #fff; border: none; }
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

/* ==========================================================================
   Cookie Banner & Newsletter Popup
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  z-index: 1700;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner__actions { display: flex; gap: var(--sp-2); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(3, 7, 18, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed) var(--ease), visibility var(--speed);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  position: relative;
  width: min(460px, 100%);
  padding: var(--sp-7) var(--sp-6);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform var(--speed) var(--ease);
}
.modal-overlay.is-open .modal { transform: none; }
.modal h3 { margin-bottom: var(--sp-3); }
.modal p { color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.modal__close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
}
.modal__close:hover { background: var(--border); }


/* ==========================================================================
   Hero Motion Graphics — social orbit, AI post demo, service ticker
   ========================================================================== */

/* ---- Orbiting social platform icons around the hero visual ---- */
.orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: -1;
  pointer-events: none;
}
.orbit__ring {
  position: absolute;
  width: 480px; height: 480px;
  border: 1.5px dashed color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 50%;
  animation: spinSlow 60s linear infinite;
}
.orbit__ring--inner {
  width: 330px; height: 330px;
  border-color: color-mix(in srgb, var(--sky) 35%, transparent);
  animation-direction: reverse;
  animation-duration: 45s;
}
.orbit__rotor {
  position: absolute;
  width: 480px; height: 480px;
  animation: spinSlow 40s linear infinite;
}
.social-chip {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  transform: rotate(var(--angle)) translateX(240px) rotate(calc(-1 * var(--angle)));
}
/* keep icons upright while the rotor spins */
.social-chip svg { animation: spinReverse 40s linear infinite; }
.social-chip--sky { color: var(--sky); }

/* ---- "AI drafting a post" demo card ---- */
.ai-post { width: 230px; }
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
}
.ai-badge::before {
  content: "✦";
  animation: pulseSoft 1.4s ease infinite;
}
.ai-post__line {
  height: 8px;
  margin-bottom: 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--sky));
  opacity: 0.75;
  animation: lineType 5.5s var(--ease) infinite;
}
.ai-post__line--2 { width: 85%; animation-delay: 0.35s; }
.ai-post__line--3 { width: 60%; animation-delay: 0.7s; }
.ai-post__actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.ai-post__actions svg { width: 16px; height: 16px; }
.ai-post__heart { color: #F43F5E; animation: popBeat 5.5s ease infinite 2.2s; }
.ai-post__spark { color: var(--warning); animation: popBeat 5.5s ease infinite 2.6s; }

/* ---- Service keyword ticker under the hero ---- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-4);
  background: var(--bg-elevated);
}
.ticker .marquee__track { animation-duration: 26s; gap: var(--sp-6); }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
.ticker__item::after {
  content: "✦";
  color: var(--sky);
  animation: pulseSoft 2.4s ease infinite;
}

/* ---- Responsive: shrink / hide heavy decoration on small screens ---- */
@media (max-width: 1080px) {
  .orbit__ring, .orbit__rotor { width: 380px; height: 380px; }
  .social-chip { transform: rotate(var(--angle)) translateX(190px) rotate(calc(-1 * var(--angle))); }
}
@media (max-width: 640px) {
  .orbit { display: none; }
}
