:root {
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;
  --indigo: #312e81;
  --bg-primary: #0a0f1f;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-dark: #06080f;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.1);
  --border-amber: rgba(245, 158, 11, 0.3);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  font-family: 'Figtree', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 15, 31, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

nav.scrolled { background: rgba(10, 15, 31, 0.95); }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 14px;
  border-radius: 10px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--amber);
  color: #0f172a !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

/* ════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 32px 80px;
  background: radial-gradient(ellipse at top, #1e293b 0%, var(--bg-primary) 50%, var(--bg-dark) 100%);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.8) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(10, 15, 31, 0.4) 0%, rgba(10, 15, 31, 0.85) 70%, rgba(10, 15, 31, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 15, 31, 0.7) 0%, rgba(10, 15, 31, 0.4) 50%, rgba(10, 15, 31, 0.9) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber-light);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.hero-title {
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  margin-bottom: 28px;
  font-weight: 900;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 44px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--amber);
  color: #0f172a;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.5);
}

.btn-primary-amber {
  display: inline-block;
  background: var(--amber);
  color: #0f172a;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  transition: all 0.25s;
  margin-top: 24px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn-primary-amber:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-primary);
  padding: 15px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -2px;
}

.stat span {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ════════════════════════════════════════════
   SECTIONS GENERAL
═══════════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-label.glow { color: var(--amber-light); text-shadow: 0 0 16px rgba(245, 158, 11, 0.4); }

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-title.white { color: var(--text-primary); }

.accent-amber {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.section-body.light { color: rgba(255, 255, 255, 0.85); }

/* ════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
.services-section {
  padding: 140px 32px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  transition: all 0.3s ease;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-amber);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.service-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-weight: 500;
}

/* ════════════════════════════════════════════
   REVEAL SECTION (scroll-driven pipeline)
═══════════════════════════════════════════════ */
.reveal-section {
  position: relative;
  height: 400vh;
  background: var(--bg-secondary);
}

.reveal-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.reveal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.reveal-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 15, 31, 0.92) 0%, rgba(10, 15, 31, 0.5) 40%, transparent 65%);
  z-index: 2;
  pointer-events: none;
}

.reveal-text-wrapper {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 64px;
}

.reveal-text {
  position: absolute;
  top: 50%;
  left: 64px;
  transform: translateY(-50%);
  max-width: 480px;
  opacity: 0;
}

.reveal-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--amber);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 100px;
}

.reveal-text h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.reveal-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════
   SALESSPARK SECTION (brain accent video)
═══════════════════════════════════════════════ */
.salesspark-section {
  position: relative;
  padding: 140px 32px;
  overflow: hidden;
  background: var(--bg-dark);
}

.salesspark-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.salesspark-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.2);
}

.salesspark-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at right, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    linear-gradient(90deg, rgba(6, 8, 15, 0.97) 0%, rgba(6, 8, 15, 0.7) 50%, rgba(6, 8, 15, 0.85) 100%);
}

.salesspark-content {
  position: relative;
  z-index: 1;
}

.salesspark-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.salesspark-copy h2 {
  margin-bottom: 24px;
}

.ss-features {
  list-style: none;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ss-features li {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.ss-features li span { font-size: 22px; flex-shrink: 0; }

.salesspark-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ss-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.ss-stat-card:hover {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  transform: translateY(-4px);
}

.ss-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: -1.5px;
  line-height: 1;
}

.ss-stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ════════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════════ */
.clients-section {
  padding: 140px 32px;
  background: var(--bg-secondary);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.client-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 16px;
  text-align: center;
  transition: all 0.3s;
}

.client-card:hover {
  background: rgba(245, 158, 11, 0.05);
  border-color: var(--border-amber);
  transform: translateY(-4px);
}

.client-card strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.client-card span {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════
   BOOKING
═══════════════════════════════════════════════ */
.booking-section {
  padding: 140px 32px;
  background: linear-gradient(135deg, #0f172a 0%, #312e81 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.booking-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.booking-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.booking-list {
  list-style: none;
  margin: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-list li {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.booking-callback {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.booking-callback a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 700;
}

.booking-callback a:hover { color: var(--amber-light); }

.booking-cal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  backdrop-filter: blur(20px);
  position: relative;
}

.booking-cal iframe {
  width: 100%;
  height: 540px;
  border: none;
  border-radius: 14px;
  background: white;
}

.cal-fallback {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: var(--amber);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

.cal-fallback:hover { color: var(--amber-light); }

/* ════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--bg-dark);
  padding: 80px 32px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 20px;
}

.footer-phone, .footer-email {
  display: block;
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-phone { font-family: 'Outfit', sans-serif; font-size: 22px; }
.footer-email { font-size: 14px; }
.footer-phone:hover, .footer-email:hover { color: var(--amber-light); }

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p { font-size: 13px; color: var(--text-tertiary); }

/* ════════════════════════════════════════════
   FADE-UP ANIMATIONS
═══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .salesspark-grid, .booking-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links li:not(:last-child) { display: none; }
  .logo-text { display: none; }
  .hero-title { font-size: clamp(38px, 11vw, 64px); }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .salesspark-stats { grid-template-columns: 1fr 1fr; }
  .reveal-text-wrapper { padding: 0 24px; }
  .reveal-text { left: 24px; max-width: calc(100% - 48px); }
  .reveal-container::after {
    background: linear-gradient(to bottom, rgba(10,15,31,0.92) 0%, rgba(10,15,31,0.5) 100%);
  }
  .footer-top { grid-template-columns: 1fr; }
  .booking-cal iframe { height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg-video, .salesspark-bg-video { display: none; }
  .hero { background: var(--bg-primary) url('../assets/hcd-hero-poster.jpeg') center/cover; }
  .reveal-section { height: auto; }
  .reveal-container { position: relative; height: auto; padding: 80px 32px; }
  .reveal-canvas { position: relative; height: 400px; }
  .reveal-text { position: relative; top: auto; left: auto; transform: none; opacity: 1; max-width: none; margin: 32px 0; }
}
