/* =============================================
   OpenAtoZ — Design System & Global Styles
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-bg:        #0a0a0b;
  --color-bg-alt:    #111113;
  --color-bg-card:   #161618;
  --color-bg-hover:  #1c1c1f;
  --color-surface:   #1e1e21;
  --color-border:    #2a2a2d;
  --color-border-lt: #222225;

  --color-text:      #f0f0f2;
  --color-text-sec:  #a0a0a8;
  --color-text-dim:  #6a6a72;

  --color-accent:    #4dabff;
  --color-accent-2:  #2b8ce6;
  --color-accent-dark: #0a1e3d;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing — tightened for 100% zoom comfort */
  --space-xs:  0.35rem;
  --space-sm:  0.75rem;
  --space-md:  1.15rem;
  --space-lg:  1.75rem;
  --space-xl:  2.75rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.6s;
}


/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(77, 171, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

body.loaded {
  opacity: 1;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

/* --- Focus-visible for keyboard accessibility --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(77, 171, 255, 0.2);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 171, 255, 0.18);
}


/* --- Container --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10002;
  transition: top 0.3s var(--ease-out);
}

.skip-to-content:focus {
  top: 1rem;
}


/* --- Typography --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  color: var(--color-text-sec);
  line-height: 1.7;
  max-width: 560px;
}

.text-accent {
  color: var(--color-accent);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
  border-radius: var(--radius-full);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(77, 171, 255, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(77, 171, 255, 0.06);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1.2rem;
}

.btn-lg {
  font-size: 0.9rem;
  padding: 0.72rem 1.7rem;
}

.btn-xl {
  font-size: 0.95rem;
  padding: 0.85rem 2.2rem;
}

.hide-mobile {
  display: inline;
}


/* --- Reveal Animation --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: transform, opacity;
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}


/* =============================================
   PRELOADER
   ============================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  animation: fadeSlideIn 1s var(--ease-out) forwards;
}

@keyframes fadeSlideIn {
  0%   { opacity: 0; transform: translateY(12px); letter-spacing: 0.5em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: 0.25em; }
}

.brand-accent {
  color: var(--color-accent);
}

.preloader-bar {
  width: 160px;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  animation: preloaderFill 0.8s var(--ease-in-out) forwards;
}

@keyframes preloaderFill {
  0%   { width: 0%; }
  50%  { width: 70%; }
  100% { width: 100%; }
}


/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--color-border-lt);
  padding: 0.65rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo-mark {
  color: var(--color-accent);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-sec);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover {
  color: var(--color-text);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-text);
}
.nav-link.active::after {
  width: 100%;
  background: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.nav-menu-toggle.active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}
.nav-menu-toggle.active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}


/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.3s;
}
.mobile-menu-link:hover {
  color: var(--color-accent);
}

.mobile-menu-cta {
  margin-top: 1.25rem;
}


/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, transparent 0%, rgba(10, 10, 11, 0.35) 100%),
    linear-gradient(
      180deg,
      rgba(10, 10, 11, 0.45) 0%,
      rgba(10, 10, 11, 0.25) 40%,
      rgba(10, 10, 11, 0.75) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-3xl) var(--space-md) var(--space-xl);
  max-width: 780px;
  will-change: transform, opacity;
}

.hero-eyebrow {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
}

.hero-headline-accent {
  background: linear-gradient(90deg, var(--color-accent) 0%, #a0d4ff 40%, var(--color-accent) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero-sub {
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  color: var(--color-text-sec);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.hero-stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 34px;
  background: var(--color-border);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -48px;
  left: 0;
  width: 100%;
  height: 48px;
  background: var(--color-accent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0%   { top: -48px; }
  100% { top: 48px; }
}


/* =============================================
   MARQUEE
   ============================================= */
.marquee {
  padding: var(--space-md) 0;
  overflow: hidden;
  border-top: 1px solid var(--color-border-lt);
  border-bottom: 1px solid var(--color-border-lt);
  background: var(--color-bg);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-dot {
  color: var(--color-accent);
  font-size: 0.5rem;
  opacity: 0.6;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =============================================
   SECTION SPACING
   ============================================= */
.section {
  padding: var(--space-3xl) 0;
}

/* Defer rendering of off-screen sections — huge paint savings */
.services,
.ai-workflow,
.process,
.clients,
.case-studies,
.testimonials,
.faq-section,
.blog-section,
.cta-section,
.contact-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}


/* =============================================
   3D INFINITE DEPTH STACK
   ============================================= */
.work {
  background: var(--color-bg);
  overflow: hidden;
}

.stack3d {
  position: relative;
  padding-bottom: var(--space-xl);
  display: none;
}

.stack3d.active {
  display: block;
}

/* Tab switcher */
.showreel-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.showreel-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-sec);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.6rem;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
}

.showreel-tab:hover {
  color: var(--color-text);
  border-color: var(--color-text-sec);
}

.showreel-tab.active {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(77, 171, 255, 0.25);
}

.showreel-tab-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.showreel-tab.active .showreel-tab-badge {
  background: rgba(255, 255, 255, 0.25);
}

.stack3d-scene {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 462px;
  position: relative;
  overflow: visible;
}

.stack3d-container {
  position: relative;
  width: 282px;
  height: 405px;
  transform-style: preserve-3d;
}

/* Each card — vertical (default = 9:16) */
.stack3d-card {
  position: absolute;
  width: 282px;
  height: 405px;
  border-radius: var(--radius-lg);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.stack3d-card-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-lt);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  transition: border-color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.stack3d-card.active .stack3d-card-inner {
  border-color: var(--color-accent);
  box-shadow:
    0 0 30px rgba(77, 171, 255, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Glow behind active card */
.stack3d-glow {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: linear-gradient(135deg, var(--color-accent), #7c3aed, #ec4899);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.6s var(--ease-out);
  filter: blur(1px);
}

.stack3d-card.active .stack3d-glow {
  opacity: 1;
}

/* Media */
.stack3d-media {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-hover);
}

.stack3d-media img,
.stack3d-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.stack3d-card.active .stack3d-media img,
.stack3d-card.active .stack3d-media video {
  transform: scale(1.04);
}

/* Play button overlay */
.stack3d-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.stack3d-card.active .stack3d-play {
  opacity: 1;
}

.stack3d-card.active:hover .stack3d-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(77, 171, 255, 0.5);
}

/* Info bar at bottom */
.stack3d-info {
  padding: 0.75rem 0.9rem;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stack3d-label {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.1rem;
}

.stack3d-info h3 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

/* Colored progress bar */
.stack3d-bar {
  height: 2px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.stack3d-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-accent), #c084fc);
  transition: width 1.2s var(--ease-out);
}

/* Controls */
.stack3d-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: var(--space-md);
}

.stack3d-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-sec);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.7rem 2rem;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
}

.stack3d-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(77, 171, 255, 0.12);
}

.stack3d-btn svg {
  flex-shrink: 0;
}

/* ---- Horizontal (16:9) overrides ---- */
.stack3d--horizontal .stack3d-scene {
  min-height: 374px;
}

.stack3d--horizontal .stack3d-container {
  width: 493px;
  height: 317px;
}

.stack3d--horizontal .stack3d-card {
  width: 493px;
  height: 317px;
}

@media (max-width: 768px) {
  .stack3d--horizontal .stack3d-container,
  .stack3d--horizontal .stack3d-card {
    width: 290px;
    height: 186px;
  }
  .stack3d--horizontal .stack3d-scene {
    min-height: 240px;
  }
  .showreel-tabs {
    gap: 0.35rem;
  }
  .showreel-tab {
    font-size: 0.75rem;
    padding: 0.55rem 1.1rem;
  }
}


/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: var(--glow-y, 50%);
  left: var(--glow-x, 50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 171, 255, 0.10) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card > * {
  position: relative;
  z-index: 1;
}
.service-card:hover {
  border-color: var(--color-border);
  background: var(--color-bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(77, 171, 255, 0.06);
}

.service-card-featured {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, rgba(77, 171, 255, 0.05) 0%, var(--color-bg-card) 100%);
}
.service-card-featured:hover {
  border-color: var(--color-accent);
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #fff;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(77, 171, 255, 0.3);
}

.service-icon {
  color: var(--color-accent);
  margin-bottom: 1.15rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--color-text-sec);
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-list li {
  font-size: 0.8rem;
  color: var(--color-text-sec);
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}


/* =============================================
   AI WORKFLOW
   ============================================= */
.ai-workflow {
  background: var(--color-bg);
}

.ai-workflow-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.ai-workflow-desc {
  font-size: 0.93rem;
  color: var(--color-text-sec);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

.ai-workflow-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ai-point {
  display: flex;
  gap: 1rem;
}

.ai-point-number {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.7;
  min-width: 24px;
  padding-top: 0.15rem;
}

.ai-point-content h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.ai-point-content p {
  font-size: 0.82rem;
  color: var(--color-text-sec);
  line-height: 1.55;
}

/* AI Visual Card */
.ai-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-lt);
}

.ai-visual-card img {
  width: 100%;
  height: auto;
  display: block;
}

.ai-visual-card {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.ai-visual-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent);
}

.ai-visual-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}


/* =============================================
   PROCESS
   ============================================= */
.process {
  background: var(--color-bg-alt);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 10%,
    var(--color-border) 90%,
    transparent 100%
  );
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-out);
}

.process-step:hover .process-step-number {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(77, 171, 255, 0.22);
  background: var(--color-accent-dark);
  transform: scale(1.08);
}

.process-step-content h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.process-step-content p {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  line-height: 1.5;
  max-width: 180px;
  margin: 0 auto;
}


/* =============================================
   CLIENTS / WHO WE WORK WITH
   ============================================= */
.clients {
  background: var(--color-bg);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.client-type {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  transition: all 0.4s var(--ease-out);
}
.client-type:hover {
  border-color: var(--color-border);
  background: var(--color-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(77, 171, 255, 0.08);
}

.client-type-icon {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.client-type h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.client-type p {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  line-height: 1.55;
}


/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--color-bg);
  padding: var(--space-3xl) 0;
}

.cta-block {
  text-align: center;
  background: linear-gradient(180deg, rgba(77, 171, 255, 0.06) 0%, rgba(77, 171, 255, 0.01) 100%);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 171, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: orbFloat1 8s ease-in-out infinite;
}

.cta-block::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 171, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  animation: orbFloat2 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(18px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-15px) translateX(-10px); }
}

.cta-eyebrow {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.cta-desc {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  color: var(--color-text-sec);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-note {
  font-size: 0.72rem;
  color: var(--color-text-dim);
}


/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  background: var(--color-bg-alt);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-desc {
  font-size: 0.93rem;
  color: var(--color-text-sec);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-dim);
  font-size: 0.82rem;
}

.contact-info-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Form */
.contact-form-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-sec);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 171, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-top: 0.5rem;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #ff4466;
  margin-top: 0.5rem;
}

/* Shake animation for form validation */
@keyframes formShake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-4px); }
  30%, 70% { transform: translateX(4px); }
}

.form-group.shake {
  animation: formShake 0.5s ease;
}

.form-group.shake input,
.form-group.shake textarea {
  border-color: #ff4466 !important;
  box-shadow: 0 0 0 3px rgba(255, 68, 102, 0.12);
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--color-border-lt);
  padding: var(--space-2xl) 0 var(--space-lg);
  background: var(--color-bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.footer-col a {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--color-accent);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-lt);
  font-size: 0.72rem;
  color: var(--color-text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  color: var(--color-text-dim);
  transition: color 0.3s;
}
.footer-bottom-links a:hover {
  color: var(--color-text-sec);
}


/* =============================================
   SERVICES DETAIL GRID
   ============================================= */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-detail-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  transition: all 0.4s var(--ease-out);
}

.service-detail-card:hover {
  border-color: var(--color-border);
  background: var(--color-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.service-detail-card .service-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.service-detail-card .service-desc {
  font-size: 0.82rem;
  color: var(--color-text-sec);
  line-height: 1.6;
  margin-bottom: 0;
}


/* =============================================
   CASE STUDIES
   ============================================= */
.case-studies {
  background: var(--color-bg);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.case-study-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.case-study-card:hover::before {
  opacity: 1;
}

.case-study-card:hover {
  border-color: var(--color-border);
  background: var(--color-bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(77, 171, 255, 0.06);
}

.case-study-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(77, 171, 255, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  width: fit-content;
}

.case-study-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.case-study-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.case-study-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.case-study-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.case-study-row p {
  font-size: 0.8rem;
  color: var(--color-text-sec);
  line-height: 1.55;
}

.case-study-results {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-lt);
}

.case-study-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.case-study-stat-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.case-study-stat-label {
  font-size: 0.62rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}


/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  background: var(--color-bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card:hover {
  border-color: var(--color-border);
  background: var(--color-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.testimonial-quote {
  font-size: 0.88rem;
  color: var(--color-text-sec);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
  flex: 1;
  position: relative;
  padding-left: 1.2rem;
  border-left: 2px solid var(--color-accent);
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.4rem;
  left: -0.6rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-style: normal;
  color: var(--color-accent);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-metrics {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.testimonial-metric {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: rgba(77, 171, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-lt);
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-role {
  font-size: 0.72rem;
  color: var(--color-text-dim);
}


/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
  background: var(--color-bg);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}

.faq-item:hover {
  border-color: var(--color-border);
}

.faq-item.active {
  border-color: var(--color-accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-text-sec);
  transition: transform 0.35s var(--ease-out), color 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
  padding: 0 1.4rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.4rem 1.2rem;
}

.faq-answer p {
  font-size: 0.85rem;
  color: var(--color-text-sec);
  line-height: 1.7;
}


/* =============================================
   BLOG SECTION
   ============================================= */
.blog-section {
  background: var(--color-bg-alt);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card:hover {
  border-color: var(--color-border);
  background: var(--color-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.blog-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(77, 171, 255, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  width: fit-content;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  color: var(--color-text);
}

.blog-excerpt {
  font-size: 0.82rem;
  color: var(--color-text-sec);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.68rem;
  color: var(--color-text-dim);
  margin-bottom: 0.75rem;
}

.blog-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: opacity 0.3s;
}

.blog-link:hover {
  opacity: 0.8;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .stack3d-container {
    width: 308px;
    height: 440px;
  }
  .stack3d-card {
    width: 308px;
    height: 440px;
  }
  .stack3d-scene {
    min-height: 506px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid .service-card:last-child {
    grid-column: span 2;
  }
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .process-timeline::before {
    display: none;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-workflow-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .case-studies-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .services-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* --- Reduce section spacing on mobile --- */
  :root {
    --space-3xl: 3.5rem;
    --space-2xl: 2.5rem;
    --space-xl:  2rem;
  }

  html {
    font-size: 15px;
  }

  /* --- Navigation --- */
  .nav-links {
    display: none;
  }
  .nav-actions .btn {
    display: none;
  }
  .nav-menu-toggle {
    display: flex;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-menu-toggle span {
    width: 24px;
    height: 2.5px;
  }
  .nav {
    padding: 0.75rem 0;
  }
  .nav.scrolled {
    padding: 0.55rem 0;
  }

  /* --- Mobile Menu --- */
  .mobile-menu-link {
    font-size: 1.6rem;
    padding: 0.35rem 0;
  }
  .mobile-menu-links {
    gap: 1rem;
  }
  .mobile-menu-cta {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 260px;
  }

  /* --- Hero --- */
  .hero-content {
    padding: var(--space-3xl) var(--space-sm) var(--space-lg);
    max-width: 100%;
  }
  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
  }
  .hero-headline {
    font-size: clamp(2rem, 9vw, 3.2rem);
    margin-bottom: var(--space-md);
  }
  .hero-sub {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    padding: 0 0.25rem;
  }
  .hero-ctas {
    margin-bottom: var(--space-xl);
  }
  .hero-stats {
    gap: var(--space-md);
  }
  .hero-stat-divider {
    display: none;
  }
  .hero-stat-number,
  .hero-stat-suffix {
    font-size: 1.55rem;
  }
  .hero-stat-label {
    font-size: 0.65rem;
  }
  .hero-scroll-indicator {
    bottom: 1rem;
  }

  .hide-mobile {
    display: none;
  }

  /* --- Marquee --- */
  .marquee {
    padding: var(--space-sm) 0;
  }
  .marquee-track {
    font-size: 0.8rem;
    gap: 1.25rem;
  }

  /* --- Section headers --- */
  .section-header {
    margin-bottom: var(--space-xl);
  }
  .section-title {
    font-size: clamp(1.55rem, 6vw, 2.2rem);
    margin-bottom: var(--space-sm);
  }
  .section-label {
    font-size: 0.67rem;
    letter-spacing: 0.1em;
  }
  .section-desc {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* --- 3D Stack Cards --- */
  .stack3d-container {
    width: 250px;
    height: 360px;
  }
  .stack3d-card {
    width: 250px;
    height: 360px;
  }
  .stack3d-scene {
    min-height: 410px;
  }
  .stack3d-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
  }
  .stack3d-controls {
    gap: 0.6rem;
  }
  .stack3d-info {
    padding: 0.6rem 0.75rem;
  }
  .stack3d-info h3 {
    font-size: 0.72rem;
  }

  /* --- Services --- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .services-grid .service-card:last-child {
    grid-column: span 1;
  }
  .service-card {
    padding: 1.5rem 1.25rem;
  }
  .service-title {
    font-size: 1.05rem;
  }
  .service-desc {
    font-size: 0.82rem;
    line-height: 1.6;
  }
  .service-list li {
    font-size: 0.78rem;
  }
  .services-detail-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .service-detail-card {
    padding: 1.3rem 1.15rem;
  }

  /* --- AI Workflow --- */
  .ai-workflow-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .ai-workflow-desc {
    font-size: 0.88rem;
    margin-bottom: var(--space-lg);
  }
  .ai-point-content h4 {
    font-size: 0.9rem;
  }
  .ai-point-content p {
    font-size: 0.8rem;
  }

  /* --- Process --- */
  .process-timeline {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 1rem;
  }
  .process-timeline::before {
    display: none;
  }
  .process-step {
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  .process-step-number {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    font-size: 0.72rem;
  }
  .process-step-content h3 {
    font-size: 0.88rem;
  }
  .process-step-content p {
    max-width: none;
    margin: 0;
    font-size: 0.76rem;
  }

  /* --- Clients --- */
  .clients-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
    gap: 0.85rem;
  }
  .client-type {
    padding: 1.3rem 1.15rem;
  }
  .client-type h3 {
    font-size: 0.9rem;
  }
  .client-type p {
    font-size: 0.78rem;
  }

  /* --- Case Studies --- */
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
  .case-study-card {
    padding: 1.4rem 1.2rem;
  }
  .case-study-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  .case-study-row p {
    font-size: 0.78rem;
  }
  .case-study-results {
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .case-study-stat-number {
    font-size: 1.1rem;
  }
  .case-study-stat-label {
    font-size: 0.58rem;
  }

  /* --- Testimonials --- */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    padding: 1.4rem 1.2rem;
  }
  .testimonial-quote {
    font-size: 0.84rem;
    line-height: 1.65;
    padding-left: 1rem;
  }
  .testimonial-name {
    font-size: 0.82rem;
  }
  .testimonial-role {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  /* --- FAQ --- */
  .faq-question {
    padding: 1rem 1.1rem;
    font-size: 0.85rem;
    min-height: 48px;
  }
  .faq-answer {
    padding: 0 1.1rem;
  }
  .faq-item.active .faq-answer {
    padding: 0 1.1rem 1rem;
  }
  .faq-answer p {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  /* --- Blog --- */
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card {
    padding: 1.4rem 1.2rem;
  }
  .blog-title {
    font-size: 0.95rem;
  }
  .blog-excerpt {
    font-size: 0.8rem;
  }

  /* --- CTA --- */
  .cta-block {
    padding: var(--space-xl) var(--space-md);
    border-radius: var(--radius-lg);
  }
  .cta-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .cta-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 0 0.25rem;
  }
  .cta-note {
    font-size: 0.68rem;
    text-align: center;
    padding: 0 0.5rem;
    line-height: 1.5;
  }

  /* --- Contact --- */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .contact-desc {
    font-size: 0.88rem;
  }
  .contact-form-wrap {
    padding: 1.5rem 1.25rem;
  }
  .form-group input,
  .form-group textarea {
    padding: 0.8rem 1rem;
    font-size: 1rem; /* 16px prevents iOS zoom */
  }
  .form-group label {
    font-size: 0.72rem;
  }
  .contact-submit {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    min-height: 48px;
  }

  /* --- Footer --- */
  .footer-top {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .footer-links {
    gap: 2.5rem;
  }
  .footer-col a {
    font-size: 0.82rem;
    padding: 0.15rem 0;
  }
  .footer-col {
    gap: 0.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  .footer-bottom-links {
    gap: 1.5rem;
  }

  /* --- Back to top --- */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }

  /* --- Buttons: larger touch targets --- */
  .btn-sm {
    padding: 0.55rem 1.3rem;
    font-size: 0.82rem;
    min-height: 44px;
  }
  .btn-lg {
    padding: 0.78rem 1.8rem;
    font-size: 0.9rem;
    min-height: 48px;
  }
  .btn-xl {
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
    min-height: 50px;
  }

  /* --- Tap highlight & active states --- */
  a, button {
    -webkit-tap-highlight-color: rgba(77, 171, 255, 0.12);
  }
  .btn-primary:active {
    transform: scale(0.97);
    box-shadow: none;
  }
  .btn-ghost:active {
    transform: scale(0.97);
    background: rgba(77, 171, 255, 0.08);
  }
  .faq-question:active {
    background: rgba(255, 255, 255, 0.02);
  }
  .stack3d-btn:active {
    transform: scale(0.95);
  }

  /* --- Disable hover transforms on touch --- */
  .service-card:hover,
  .client-type:hover,
  .case-study-card:hover,
  .testimonial-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  :root {
    --space-3xl: 2.75rem;
    --space-2xl: 2rem;
    --space-xl:  1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* --- Hero --- */
  .hero-content {
    padding: 5rem 0.5rem var(--space-lg);
  }
  .hero-headline {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
    letter-spacing: -0.03em;
  }
  .hero-sub {
    font-size: 0.84rem;
    line-height: 1.55;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }
  .hero-stats {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
  }
  .hero-stat-number,
  .hero-stat-suffix {
    font-size: 1.35rem;
  }
  .hero-stat-label {
    font-size: 0.6rem;
  }
  .hero-eyebrow {
    font-size: 0.6rem;
  }

  /* --- 3D Stack --- */
  .stack3d-container {
    width: 230px;
    height: 330px;
  }
  .stack3d-card {
    width: 230px;
    height: 330px;
  }
  .stack3d-scene {
    min-height: 380px;
  }
  .stack3d--horizontal .stack3d-container,
  .stack3d--horizontal .stack3d-card {
    width: 260px;
    height: 166px;
  }
  .stack3d--horizontal .stack3d-scene {
    min-height: 220px;
  }
  .stack3d-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.72rem;
  }
  .showreel-tab {
    font-size: 0.7rem;
    padding: 0.5rem 0.85rem;
  }
  .showreel-tab svg {
    display: none;
  }

  /* --- Section titles --- */
  .section-title {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  /* --- Service cards --- */
  .service-card {
    padding: 1.25rem 1.1rem;
  }
  .service-title {
    font-size: 1rem;
  }
  .service-badge {
    font-size: 0.58rem;
    padding: 0.2rem 0.55rem;
  }

  /* --- Case study stats --- */
  .case-study-results {
    justify-content: space-around;
  }
  .case-study-stat {
    min-width: 0;
  }

  /* --- CTA --- */
  .cta-block {
    padding: var(--space-lg) var(--space-sm);
  }
  .cta-title {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  /* --- Contact form --- */
  .contact-form-wrap {
    padding: 1.25rem 1rem;
  }

  /* --- Footer --- */
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* --- Mobile menu --- */
  .mobile-menu-link {
    font-size: 1.35rem;
  }
}

/* --- Extra small phones (360px and below) --- */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }
  .hero-headline {
    font-size: 1.65rem;
  }
  .hero-sub {
    font-size: 0.8rem;
  }
  .stack3d-container {
    width: 210px;
    height: 300px;
  }
  .stack3d-card {
    width: 210px;
    height: 300px;
  }
  .stack3d-scene {
    min-height: 350px;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .cta-title {
    font-size: 1.2rem;
  }
  .hero-stats {
    gap: var(--space-sm);
  }
  .hero-stat-number,
  .hero-stat-suffix {
    font-size: 1.2rem;
  }
}


/* =============================================
   CUSTOM CURSOR (DESKTOP ONLY)
   ============================================= */
@media (hover: hover) {
  .cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.15s var(--ease-out);
  }
  .cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(77, 171, 255, 0.35);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.2s var(--ease-out);
  }

  .cursor-dot.hover,
  .cursor-ring.hover {
    transform: scale(1.5);
  }
}


/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10001;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), #a0d4ff, var(--color-accent));
  background-size: 200% 100%;
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
}


/* =============================================
   FILM GRAIN OVERLAY
   ============================================= */
.film-grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

/* Disable film grain on mobile — saves GPU compositing */
@media (max-width: 768px) {
  .film-grain {
    display: none;
  }
}


/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.4s var(--ease-out);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(77, 171, 255, 0.15);
}


/* =============================================
   MAGNETIC BUTTON EFFECT
   ============================================= */
.btn-primary {
  transition: all 0.35s var(--ease-out), transform 0.2s ease-out;
}


/* =============================================
   REDUCED MOTION — Accessibility & Performance
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .hero-headline-accent {
    animation: none;
    background-position: 0 center;
  }
  .marquee-track { animation: none; }
  .ai-visual-card { animation: none; }
  .hero-scroll-line::after { animation: none; }
  .ai-visual-badge-dot { animation: none; }
  .cta-block::before,
  .cta-block::after { animation: none; }
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .film-grain { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
