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

:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #f3eeff;
  --dark: #1c1b1b;
  --gray-900: #313030;
  --gray-600: #5c5b5b;
  --gray-400: #7b7487;
  --gray-200: #e5e2e1;
  --gray-100: #f0edec;
  --gray-50: #f6f3f2;
  --white: #ffffff;
  --border: rgba(28,27,27,0.06);
  --border-hover: rgba(28,27,27,0.12);
  --radius: 16px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Manrope', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.03em; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

/* ===== ANIMATIONS (GSAP handles reveal/reveal-scale) ===== */
.reveal { opacity: 0; }
.reveal-scale { opacity: 0; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TEXT HIGHLIGHT ON SCROLL ===== */
.text-highlight {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  max-width: 800px;
}
.text-highlight .word {
  color: var(--gray-200);
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-highlight .word.lit {
  color: var(--dark);
}
/* Dark section variant */
.section-dark .text-highlight .word { color: rgba(255,255,255,0.15); }
.section-dark .text-highlight .word.lit { color: #fff; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.5s;
}
nav.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.3rem;
  color: var(--dark); text-decoration: none; letter-spacing: -0.02em;
}
.hero-page nav:not(.scrolled) .nav-brand { color: #fff; }
.hero-page nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.7); }
.hero-page nav:not(.scrolled) .nav-links a:hover { color: #fff; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--gray-400);
  font-size: 0.88rem; font-weight: 500; transition: color 0.3s;
}
.nav-links a:hover { color: var(--dark); }
.nav-links a.active { color: var(--dark); }
.nav-cta {
  background: var(--primary); color: #fff; padding: 9px 22px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.25); }

/* Hamburger Menu */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; z-index: 101;
  padding: 0;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  position: absolute; left: 5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-burger span:nth-child(1) { top: 8px; }
.nav-burger span:nth-child(2) { top: 15px; }
.nav-burger span:nth-child(3) { top: 22px; }
.hero-page nav:not(.scrolled) .nav-burger span { background: #fff; }
.nav-burger.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }
.nav-burger.open span { background: var(--dark); }

.nav-mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; transition: opacity 0.3s;
}
.nav-mobile-overlay.open { display: flex; opacity: 1; }
.nav-mobile-overlay a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 600; color: var(--dark);
  text-decoration: none; letter-spacing: -0.02em;
}
.nav-mobile-overlay a:hover { color: var(--primary); }
.nav-mobile-overlay .nav-cta {
  font-size: 1rem; padding: 14px 36px; margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: 14px 34px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.25);
  background: var(--primary-hover);
}
.btn-ghost {
  display: inline-block;
  background: transparent; color: #fff;
  padding: 14px 34px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.35); transition: all 0.2s; cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ===== SECTIONS ===== */
.section {
  padding: 160px 48px;
  max-width: calc(var(--max-w) + 96px);
  margin: 0 auto;
}
.section-full { padding: 160px 48px; }
.section-alt { background: var(--gray-50); }

/* Dark section */
.section-dark {
  background: var(--dark);
  color: #fff;
  padding: 160px 48px;
}
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.5); }
.section-dark .section-label { color: var(--primary); }
.section-dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
.section-dark .card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.section-dark .card p { color: rgba(255,255,255,0.5); }
.section-dark .card-icon { background: rgba(124,58,237,0.12); }

.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 {
  font-size: 3.4rem; font-weight: 700; letter-spacing: -0.04em;
  margin-bottom: 20px; line-height: 1.1; color: var(--dark);
}
.section-header p {
  font-size: 1.15rem; color: var(--gray-600);
  max-width: 520px; margin: 0 auto; line-height: 1.65;
}
.section-label {
  display: inline-block; font-size: 0.78rem; color: var(--primary);
  text-transform: uppercase; letter-spacing: 2.5px;
  font-weight: 600; margin-bottom: 16px;
}

/* ===== CARDS (borderless Apple style) ===== */
.card {
  background: var(--gray-50);
  border: none;
  border-radius: 20px;
  padding: 44px 36px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 28px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 14px; font-weight: 600; }
.card p { color: var(--gray-600); line-height: 1.7; font-size: 0.94rem; }

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  padding: 6px 14px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 600;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== LINKS ===== */
.arrow-link {
  color: var(--primary); text-decoration: none;
  font-weight: 600; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.3s;
}
.arrow-link:hover { gap: 12px; }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(10,15,30,0.45) 0%, rgba(10,15,30,0.25) 40%,
    rgba(10,15,30,0.55) 80%, rgba(10,15,30,0.9) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 900px; padding: 0 24px;
}
.hero h1 {
  font-size: 5rem; font-weight: 700; line-height: 1.05;
  letter-spacing: -0.04em; margin-bottom: 24px; color: #fff;
  opacity: 0; animation: fadeInUp 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero .subtitle {
  font-size: 1.25rem; color: rgba(255,255,255,0.68);
  line-height: 1.7; margin-bottom: 44px;
  max-width: 560px; margin-left: auto; margin-right: auto;
  opacity: 0; animation: fadeInUp 1.2s 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center;
  opacity: 0; animation: fadeInUp 1.2s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 180px 48px 100px;
  text-align: center;
  background: var(--white);
}
.page-hero h1 {
  font-size: 3.8rem; font-weight: 700; letter-spacing: -0.04em;
  margin-bottom: 20px; color: var(--dark); line-height: 1.1;
  opacity: 0; animation: fadeInUp 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.page-hero p {
  font-size: 1.2rem; color: var(--gray-600); max-width: 520px;
  margin: 0 auto; line-height: 1.65;
  opacity: 0; animation: fadeInUp 1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== CTA SECTION ===== */
.cta-section { text-align: center; padding: 180px 48px; }
.cta-box {
  background: var(--dark); color: #fff;
  border-radius: 28px; padding: 100px 60px;
  max-width: 750px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(124,58,237,0.15); filter: blur(80px);
}
.cta-box::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(124,58,237,0.08); filter: blur(60px);
}
.cta-section h2 { font-size: 3.2rem; margin-bottom: 20px; letter-spacing: -0.04em; position: relative; line-height: 1.1; }
.cta-section p { color: rgba(255,255,255,0.55); font-size: 1.2rem; margin-bottom: 44px; position: relative; }

/* ===== FOOTER ===== */
footer {
  padding: 48px; text-align: center;
  color: var(--gray-400); font-size: 0.82rem;
  border-top: 1px solid var(--border);
}
.footer-links { margin-bottom: 14px; }
.footer-links a {
  color: var(--gray-400); text-decoration: none;
  margin: 0 14px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--dark); }

/* ===== STICKY SWITCHER ===== */
.sticky-switcher {
  position: relative;
  min-height: 300vh;
}
.sticky-switcher .switch-inner {
  position: sticky; top: 0;
  height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 80px;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 48px;
}
.switch-items { position: relative; }
.switch-item {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(calc(-50% + 24px));
}
.switch-item.active {
  opacity: 1; transform: translateY(-50%);
}
.switch-item h3 {
  font-size: 1.8rem; margin-bottom: 14px; font-weight: 700; letter-spacing: -0.03em;
}
.switch-item p {
  color: var(--gray-600); line-height: 1.7; font-size: 1.05rem;
}
.switch-visual {
  position: relative;
  background: var(--gray-50); border-radius: 24px;
  min-height: 400px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.06);
}
.switch-icon {
  position: absolute; font-size: 5rem;
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.switch-icon.active {
  opacity: 1; transform: scale(1);
}
img.switch-icon {
  font-size: unset;
}

/* ===== AUTO GALLERY ===== */
.auto-gallery {
  position: relative; border-radius: 24px; overflow: hidden;
  background: var(--gray-50);
  box-shadow: 0 32px 80px rgba(0,0,0,0.08);
}
.gallery-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-slide:first-child { position: relative; }
.gallery-slide.active { opacity: 1; }
.gallery-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-dots {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,0.2); border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.gallery-dot.active {
  background: var(--primary); transform: scale(1.3);
}
.gallery-label {
  position: absolute; bottom: 44px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 6px 16px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 500;
  white-space: nowrap; z-index: 2;
  opacity: 0; transition: opacity 0.5s;
}
.gallery-slide.active .gallery-label { opacity: 1; }

/* ===== HORIZONTAL SCROLL GALLERY ===== */
.h-scroll-wrapper {
  position: relative;
  min-height: 200vh;
}
.h-scroll-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 0 48px;
}
.h-scroll-track {
  display: flex; gap: 24px;
  will-change: transform;
}
.h-scroll-card {
  flex: 0 0 280px;
  background: var(--gray-50); border-radius: 20px;
  padding: 40px 32px; text-align: center;
  transition: transform 0.3s;
}
.h-scroll-card:hover { transform: translateY(-4px); }
.h-scroll-card .icon { font-size: 2.4rem; margin-bottom: 16px; color: var(--primary); }
.h-scroll-card h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }
.h-scroll-card p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; }

/* ===== BEFORE/AFTER ===== */
.before-after {
  display: grid; grid-template-columns: 1fr 80px 1fr;
  gap: 0; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
}
.ba-col { padding: 48px 40px; }
.ba-col h3 { font-size: 1.6rem; margin-bottom: 20px; font-weight: 700; }
.ba-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ba-col li {
  font-size: 0.95rem; line-height: 1.6;
  display: flex; align-items: flex-start; gap: 10px;
}
.ba-col li::before { font-weight: 700; flex-shrink: 0; }
.ba-before li::before { content: '✗'; color: #ef4444; }
.ba-after li::before { content: '✓'; color: #22c55e; }
.ba-divider {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: var(--primary);
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}
.proof-numbers {
  display: flex; justify-content: center; gap: 80px;
  max-width: 900px; margin: 0 auto 64px;
}
.proof-stat { text-align: center; }
.proof-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.2rem; font-weight: 700; color: var(--dark);
  letter-spacing: -0.03em; line-height: 1;
}
.proof-stat .label {
  font-size: 0.85rem; color: var(--gray-400); margin-top: 8px;
}
.proof-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 48px; opacity: 0.4;
  max-width: 700px; margin: 0 auto;
}
.proof-logos span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 600; color: var(--gray-600);
  letter-spacing: -0.01em; white-space: nowrap;
}

/* ===== PROCESS SECTION ===== */
.process-timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; max-width: var(--max-w); margin: 0 auto;
  position: relative;
}
.process-timeline::before {
  content: ''; position: absolute;
  top: 32px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary), transparent);
  opacity: 0.2;
}
.timeline-step { text-align: center; position: relative; }
.timeline-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-light); border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.2rem; color: var(--primary);
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.timeline-step h3 {
  font-size: 1.1rem; margin-bottom: 10px; font-weight: 700;
}
.timeline-step p {
  font-size: 0.88rem; color: var(--gray-600); line-height: 1.6;
  max-width: 220px; margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  .hero h1 { font-size: 3rem; }
  .hero .subtitle { font-size: 1.05rem; }
  .section, .section-full, .section-dark { padding: 100px 20px; }
  .page-hero { padding: 130px 20px 60px; }
  .page-hero h1 { font-size: 2.6rem; }
  .section-header h2 { font-size: 2.4rem; }
  .cta-section { padding: 100px 20px; }
  .cta-section h2 { font-size: 2.4rem; }
  .cta-box { padding: 56px 28px; }
  .text-highlight { font-size: 1.8rem; }
  footer { padding: 32px 20px; }
  .sticky-switcher .switch-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
  .switch-visual { min-height: 240px; }
  .h-scroll-sticky { padding: 0 20px; }
  .before-after { grid-template-columns: 1fr; gap: 0; }
  .ba-divider { padding: 20px 0; font-size: 1.4rem; }
  .ba-col { padding: 32px 20px; }
  .proof-numbers { gap: 40px; flex-wrap: wrap; }
  .proof-stat .num { font-size: 2.4rem; }
  .proof-logos { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-timeline::before { display: none; }
}
