/* ==========================================================================
   PREMIUM HOMEPAGE OVERRIDES
   Cinematic, Apple/Stripe/Vercel-grade visual layer
   ========================================================================== */

/* ── 0. GLOBAL PREMIUM TOKENS ── */
:root {
  --premium-glow: 0 0 80px rgba(47,112,255,.08), 0 0 160px rgba(123,97,255,.04);
  --premium-border: rgba(255,255,255,.06);
  --premium-border-hover: rgba(47,112,255,.3);
  --premium-surface: rgba(255,255,255,.025);
  --premium-surface-hover: rgba(255,255,255,.05);
  --premium-text-primary: rgba(255,255,255,.95);
  --premium-text-secondary: rgba(255,255,255,.6);
  --premium-text-tertiary: rgba(255,255,255,.4);
  --premium-ease: cubic-bezier(.4, 0, .2, 1);
  --premium-ease-spring: cubic-bezier(.175, .885, .32, 1.275);
  --premium-section-pad: clamp(100px, 12vw, 160px);
  --noise-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── Page-home body background ── */
.page-home {
  background: #000;
}

/* ── Film grain noise overlay on body ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--noise-url);
  background-size: 200px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* ── Smooth page-wide scroll ── */
html {
  scroll-behavior: smooth;
}

/* ── Header hide/show on scroll ── */
.site-header {
  transition: transform 0.6s cubic-bezier(.4, .25, 0, 1);
  background: #0f0f0f;
}

.site-header::before {
  background: #0f0f0f;
}

.site-header.header-hidden {
  transform: translateY(calc(-100% - 36px));
}

/* Hide announcement strip together with header */
.ann-strip {
  transition: transform 0.6s cubic-bezier(.4, .25, 0, 1) !important;
}

.ann-strip.header-hidden {
  transform: translateY(-100%) !important;
}

/* Eliminate gap between strip and header — extend header up behind the strip */
body.has-ann-strip .site-header {
  top: 0 !important;
  padding-top: 35px;
}

/* ── Fix click blocking on voice cards — ::after overlay absorbs clicks ── */
.ai-copilot-voice-media::after {
  pointer-events: none;
}

.ai-copilot-voice-media {
  cursor: pointer;
}

/* Hero styles are now in hero-threejs.css */

/* Animated gradient on accent text */
.text-gradient {
  background: linear-gradient(
    135deg,
    #2f70ff 0%,
    #7b61ff 30%,
    #a78bfa 50%,
    #7b61ff 70%,
    #2f70ff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: premiumGradientShift 6s ease-in-out infinite;
}

@keyframes premiumGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── 2. SERVICES HORIZONTAL — PREMIUM CARDS ── */

/* Deeper section padding */
.services-hscroll__sticky {
  padding-bottom: clamp(60px, 7vw, 80px);
}

.services-hscroll__head {
  padding-top: clamp(100px, 12vw, 140px);
  margin-bottom: clamp(40px, 5vw, 60px);
}

/* Larger, bolder heading */
.services-hscroll__head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Premium ghost button */
.btn-ghost.magnetic-btn {
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--premium-ease);
  backdrop-filter: blur(8px);
}

.btn-ghost.magnetic-btn:hover {
  background: rgba(47,112,255,.08);
  border-color: rgba(47,112,255,.35);
  color: #fff;
  box-shadow: 0 8px 32px rgba(47,112,255,.12);
  transform: translateY(-2px);
}

/* Premium card surface */
.services-hscroll__card {
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 20px;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s var(--premium-ease);
}

.services-hscroll__card:hover {
  border-color: var(--premium-border-hover);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(47,112,255,.1), var(--premium-glow);
}

/* Card inner — better spacing */
.services-hscroll__card-inner {
  padding: clamp(24px, 3vw, 36px);
}

/* Premium icon container */
.services-hscroll__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(47,112,255,.06);
  border: 1px solid rgba(47,112,255,.12);
  transition: all 0.5s var(--premium-ease);
}

.services-hscroll__card:hover .services-hscroll__icon {
  background: rgba(47,112,255,.12);
  border-color: rgba(47,112,255,.25);
  box-shadow: 0 0 24px rgba(47,112,255,.15);
  transform: translateY(-3px);
}

/* Card typography */
.services-hscroll__card h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.services-hscroll__card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--premium-text-secondary);
}

/* Premium dot navigation */
.services-hscroll__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,.15);
  transition: all 0.4s var(--premium-ease);
}

.services-hscroll__dot.is-active {
  width: 28px;
  border-radius: 4px;
  background: var(--color-accent, #2f70ff);
  box-shadow: 0 0 12px rgba(47,112,255,.4);
}

/* Premium side arrows */
.services-hscroll__side-arrow {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(10,10,11,.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  transition: all 0.4s var(--premium-ease);
}

.services-hscroll__side-arrow:hover {
  background: rgba(47,112,255,.12);
  border-color: rgba(47,112,255,.3);
  box-shadow: 0 8px 32px rgba(47,112,255,.2);
  transform: translateY(-50%) scale(1.12);
}


/* ── 3. IMPACT CTA — EDITORIAL BANNER ── */

.impact-cta {
  padding: clamp(24px, 4vw, 40px) 0;
}

.cta-card {
  padding: clamp(28px, 3vw, 40px) clamp(32px, 4vw, 56px);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47,112,255,.06) 0%, rgba(123,97,255,.04) 100%);
  border: 1px solid rgba(47,112,255,.12);
  box-shadow: 0 16px 48px rgba(0,0,0,.25), var(--premium-glow);
  transition: all 0.5s var(--premium-ease);
}

.cta-card:hover {
  border-color: rgba(47,112,255,.2);
  box-shadow: 0 24px 60px rgba(0,0,0,.3), 0 0 100px rgba(47,112,255,.1);
  transform: translateY(-2px);
}

.cta-text {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--premium-text-primary);
  line-height: 1.4;
}

.cta-btn {
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  background: #fff;
  color: #0a0a0b;
  text-decoration: none;
  transition: all 0.4s var(--premium-ease);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  background: #f0f0f0;
  color: #0a0a0b;
  text-decoration: none;
}


/* ── 4. SUCCESS STORIES — ELEVATED CAROUSEL ── */

.genai-success-stories {
  padding: var(--premium-section-pad) 0;
}

.success-stories-title {
  font-size: clamp(32px, 4.5vw, 52px) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.success-stories-intro {
  font-size: 16px;
  line-height: 1.75;
  color: var(--premium-text-secondary);
  max-width: 640px;
}

.success-story-card {
  border-radius: 20px !important;
  overflow: hidden;
  min-height: 480px;
}

.success-story-content {
  background: linear-gradient(135deg, #111213 0%, #161718 100%) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-right: 0 !important;
  border-radius: 20px 0 0 20px !important;
  padding: clamp(40px, 5vw, 56px) clamp(36px, 4vw, 48px) !important;
}

.success-story-card-title {
  font-size: clamp(26px, 3vw, 36px) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15 !important;
}

.success-story-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--premium-text-secondary);
}

.metric-value {
  font-size: clamp(28px, 3.5vw, 36px) !important;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 20%, rgba(47,112,255,.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--premium-text-tertiary);
  text-transform: uppercase;
  font-weight: 500;
}

.success-story-image {
  border-radius: 0 20px 20px 0 !important;
}

.success-story-image img {
  transition: transform 0.8s var(--premium-ease);
}

.success-story-slide.is-active .success-story-image img {
  transform: scale(1.02);
}

/* Tabs */
.success-stories-tabs {
  margin-top: 32px;
}

.success-story-tab {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.4s var(--premium-ease);
  border: 1px solid transparent;
}

.success-story-tab.is-active {
  background: rgba(47,112,255,.1);
  border-color: rgba(47,112,255,.2);
  color: #fff;
  box-shadow: 0 0 20px rgba(47,112,255,.1);
}

.success-story-tab:hover:not(.is-active) {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}

/* Nav arrows */
.success-stories-nav {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(10,10,11,.9);
  backdrop-filter: blur(12px);
  transition: all 0.4s var(--premium-ease);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.success-stories-nav:hover {
  background: rgba(47,112,255,.1);
  border-color: rgba(47,112,255,.25);
  box-shadow: 0 8px 32px rgba(47,112,255,.15);
  transform: scale(1.08);
}

.success-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s var(--premium-ease);
  box-shadow: 0 4px 16px rgba(47,112,255,.25);
}

.success-story-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(47,112,255,.35);
  color: #fff;
  text-decoration: none;
}


/* ── 5. AWARDS MARQUEE — REFINED ── */

/* Applied via parent override for the marquee awards section */
.uiux-brands-awards {
  padding: clamp(48px, 6vw, 72px) 0;
}


/* ── 6. VOICES / TESTIMONIALS — PREMIUM VIDEO CARDS ── */

.ai-copilot-voices {
  padding: var(--premium-section-pad) 0;
}

.ai-copilot-voice-card {
  border-radius: 20px;
  border: 1px solid var(--premium-border);
  background: var(--premium-surface);
  transition: all 0.5s var(--premium-ease);
  overflow: hidden;
}

.ai-copilot-voice-card:hover {
  border-color: var(--premium-border-hover);
  box-shadow: 0 32px 80px rgba(0,0,0,.45), var(--premium-glow);
  transform: translateY(-8px);
}

.ai-copilot-voice-play {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1);
  transition: all 0.4s var(--premium-ease);
}

.ai-copilot-voice-play:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}


/* ── 7. INDUSTRIES — WORLD-CLASS MARQUEE ── */

.ind-v2 {
  padding: var(--premium-section-pad) 0;
}

.ind-v2__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ind-v2__card {
  padding: 18px 32px;
  border-radius: 16px;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  gap: 14px;
  transition: all 0.4s var(--premium-ease);
}

.ind-v2__card:hover {
  background: rgba(47,112,255,.08);
  border-color: rgba(47,112,255,.2);
  box-shadow: 0 16px 40px rgba(47,112,255,.1), 0 0 0 1px rgba(47,112,255,.08);
  transform: translateY(-4px) scale(1.03);
}

.ind-v2__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  transition: all 0.4s var(--premium-ease);
}

.ind-v2__card:hover .ind-v2__icon {
  background: rgba(47,112,255,.12);
  box-shadow: 0 0 16px rgba(47,112,255,.15);
}

.ind-v2__name {
  font-weight: 600;
  letter-spacing: -0.005em;
}

.ind-v2__cta {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.4s var(--premium-ease);
}

.ind-v2__cta:hover {
  background: rgba(47,112,255,.08);
  border-color: rgba(47,112,255,.25);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(47,112,255,.12);
}


/* ── 8. TECH STACK — VISUAL AUTHORITY ── */

.genai-tech-stack--tabs {
  padding: var(--premium-section-pad) 0 !important;
}

.tech-title {
  font-size: clamp(32px, 4.5vw, 52px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 16px !important;
}

.tech-description {
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: var(--premium-text-secondary) !important;
  max-width: 640px;
}

.tech-tab-btn {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.4s var(--premium-ease);
}

.tech-tab-btn.active {
  background: rgba(47,112,255,.12);
  box-shadow: 0 0 24px rgba(47,112,255,.12), inset 0 0 0 1px rgba(47,112,255,.2);
}

.tech-item {
  border-radius: 16px;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  transition: all 0.4s var(--premium-ease);
}

.tech-item:hover {
  background: var(--premium-surface-hover);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  transform: translateY(-3px);
}

.tech-icon {
  border-radius: 12px;
  transition: transform 0.4s var(--premium-ease);
}

.tech-item:hover .tech-icon {
  transform: scale(1.08);
}


/* ── 9. PARTNERSHIPS ── */

.partnerships-section,
.partnerships-v2,
.partners2 {
  padding: var(--premium-section-pad) 0;
}


/* ── 10. FAQ — SLEEK ACCORDION ── */

.genai-faq {
  padding: var(--premium-section-pad) 0;
}

.faq-title {
  font-size: clamp(32px, 4.5vw, 52px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px) !important;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all 0.4s var(--premium-ease);
}

.faq-question {
  padding: clamp(20px, 2.5vw, 28px) 0;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  color: var(--premium-text-secondary);
  transition: color 0.3s ease;
}

.faq-question:hover,
.faq-item.active .faq-question {
  color: var(--premium-text-primary);
}

.faq-icon {
  transition: transform 0.4s var(--premium-ease), color 0.4s ease;
}

.faq-item.active .faq-icon {
  color: var(--color-accent);
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--premium-text-secondary);
  padding-bottom: 24px;
}

/* FAQ CTA card */
.ai-faq-card {
  border-radius: 20px;
  border: 1px solid rgba(47,112,255,.12);
  background: linear-gradient(135deg, rgba(47,112,255,.06) 0%, rgba(123,97,255,.04) 100%);
  padding: clamp(32px, 4vw, 48px);
  margin-top: clamp(48px, 6vw, 72px);
  transition: all 0.5s var(--premium-ease);
}

.ai-faq-card:hover {
  border-color: rgba(47,112,255,.2);
  box-shadow: var(--premium-glow);
}


/* ── 11. CONTACT CTA — HIGH-CONVERSION CLOSER ── */

.genai-contact-cta {
  padding: var(--premium-section-pad) 0;
}

.contact-cta-title {
  font-size: clamp(32px, 4.5vw, 52px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
}

.contact-cta-subtitle {
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: var(--premium-text-secondary) !important;
}

.contact-cta-form-wrapper {
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 24px;
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  transition: border-color 0.5s ease;
}

.contact-cta-form-wrapper:focus-within {
  border-color: rgba(47,112,255,.15);
}

.form-input,
.form-select,
.form-textarea {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  font-size: 15px;
  color: #fff;
  transition: all 0.3s var(--premium-ease);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  background: rgba(47,112,255,.04);
  box-shadow: 0 0 0 4px rgba(47,112,255,.08), 0 0 24px rgba(47,112,255,.06);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--premium-text-tertiary);
}

.form-submit {
  padding: 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #2f70ff 0%, #1d4ed8 100%);
  box-shadow: 0 4px 20px rgba(47,112,255,.25);
  transition: all 0.4s var(--premium-ease);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 100%;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(47,112,255,.35), 0 0 60px rgba(47,112,255,.12);
}


/* ── 12. GLOBAL SCROLL REVEAL ENHANCEMENTS ── */

/* Smoother, more dramatic scroll reveals */
[data-reveal="fade-up"] {
  transition: opacity 0.9s var(--premium-ease), transform 0.9s var(--premium-ease);
}

/* Section dividers — subtle gradient lines between sections */
.genai-success-stories,
.ind-v2,
.genai-tech-stack,
.genai-faq {
  position: relative;
}

.genai-success-stories::before,
.ind-v2::before,
.genai-tech-stack::before,
.genai-faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 800px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(47,112,255,.12) 30%, rgba(123,97,255,.12) 70%, transparent 100%);
}


/* ── 13. PREMIUM TYPOGRAPHY REFINEMENTS ── */

/* Tighter headings globally */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

/* Section eyebrows */
.services-hscroll__eyebrow,
.ind-v2__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  text-transform: uppercase;
  opacity: 0.8;
}


/* ── 14. CURSOR GLOW EFFECT ── */

.premium-cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,112,255,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  opacity: 0;
  will-change: left, top;
}

.premium-cursor-glow.is-visible {
  opacity: 1;
}


/* ── 15. SMOOTH SECTION TRANSITIONS ── */

/* Ambient glow between dark sections */
.services-hscroll + .impact-cta::before,
.genai-success-stories + .uiux-brands-awards::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,112,255,.08), transparent);
}


/* ── 16. RESPONSIVE PREMIUM REFINEMENTS ── */

@media (max-width: 768px) {
  :root {
    --premium-section-pad: clamp(72px, 10vw, 100px);
  }

  .bh-hero-text-content .bh-title-h1 {
    letter-spacing: -0.03em;
  }

  .success-story-card {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .success-story-content {
    border-radius: 20px 20px 0 0 !important;
    border-right: 1px solid rgba(255,255,255,.06) !important;
  }

  .success-story-image {
    border-radius: 0 0 20px 20px !important;
    min-height: 240px;
  }
}


/* ── 17. REDUCED MOTION ── */

@media (prefers-reduced-motion: reduce) {
  .text-gradient {
    animation: none;
  }

  .premium-cursor-glow {
    display: none;
  }

  body::before {
    display: none;
  }
}
