/* ============================================
   AIWIZS — Premium Void Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Syncopate:wght@400;700&display=swap');

/* --- Custom Properties --- */
:root {
  /* Void Palette */
  --void-black: #000000;
  --void-deep: #050505;
  --void-surface: #0A0A0A;
  --void-card: #0E0E0E;
  --void-elevated: #141414;
  --void-border: #1A1A1A;

  /* Light Palette */
  --white: #FFFFFF;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-08: rgba(255, 255, 255, 0.08);
  --white-05: rgba(255, 255, 255, 0.05);
  --white-03: rgba(255, 255, 255, 0.03);
  --silver: #C0C0C0;
  --silver-dim: rgba(192, 192, 192, 0.4);

  /* Glass Material */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(255, 255, 255, 0.06);
  --glass-blur: 20px;
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glass-edge-glow: 0 0 15px rgba(255, 255, 255, 0.04), 0 0 30px rgba(255, 255, 255, 0.02);
  --glass-hover-glow: 0 0 25px rgba(255, 255, 255, 0.08), 0 0 50px rgba(255, 255, 255, 0.04);

  /* Typography */
  --font-display: 'Syncopate', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 5rem;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-out-quart);
  --transition-medium: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

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

html {
  scroll-behavior: auto;
  /* GSAP handles scrolling */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--void-black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--void-black);
}

::-webkit-scrollbar-thumb {
  background: var(--white-15);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--white-30);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Ambient Canvas Background --- */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--white-05);
  transition: background var(--transition-medium);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 120px;
  width: auto;
  transition: all var(--transition-medium);
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--white);
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-50);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width var(--transition-medium);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--white-30);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--white);
  color: var(--void-black);
  border-color: var(--white);
}

/* Hamburger Menu Button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--white-15);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  transition: all var(--transition-fast);
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
}

.mobile-menu-overlay a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-50);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.75rem 1.5rem;
}

.mobile-menu-overlay a:hover {
  color: var(--white);
}

.mobile-menu-overlay .nav-cta {
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.8rem 2rem;
}

/* ============================================
   HERO / ENGINE HUB — Pinned Section
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 10;
  background: var(--void-black);
}

.hero-content {
  text-align: center;
  z-index: 15;
  position: relative;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--white-08);
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: var(--space-lg);
}

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

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--white-50);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xl);
}

/* Central Dashboard SVG */
.hero-dashboard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  opacity: 0.08;
  z-index: 1;
}

/* Tile Parade Container */
.tile-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* ============================================
   INTELLIGENCE GLASS TILES
   ============================================ */
.glass-tile {
  position: absolute;
  width: min(520px, 85vw);
  min-height: 280px;
  padding: 2.5rem;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow:
    var(--glass-inner-glow),
    0 0 20px rgba(255, 255, 255, 0.06),
    0 0 40px rgba(255, 255, 255, 0.03),
    0 0 80px rgba(120, 180, 255, 0.04);
  overflow: hidden;
  pointer-events: auto;
  /* start off-screen right — GSAP overrides these */
  top: 50%;
  left: 120%;
  opacity: 0;
  visibility: hidden;
  animation: tile-edge-pulse 3s ease-in-out infinite;
}

@keyframes tile-edge-pulse {

  0%,
  100% {
    box-shadow:
      var(--glass-inner-glow),
      0 0 20px rgba(255, 255, 255, 0.06),
      0 0 40px rgba(255, 255, 255, 0.03),
      0 0 80px rgba(120, 180, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
  }

  50% {
    box-shadow:
      var(--glass-inner-glow),
      0 0 30px rgba(255, 255, 255, 0.1),
      0 0 60px rgba(255, 255, 255, 0.05),
      0 0 100px rgba(120, 180, 255, 0.08),
      -4px 0 25px rgba(120, 180, 255, 0.06),
      4px 0 25px rgba(120, 180, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

/* Module Image inside glass tile */
.tile-image {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.9);
  transition: all 0.6s ease;
}

.tile-image svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: all 0.6s ease;
}

.glass-tile:hover .tile-image img {
  filter: brightness(1) saturate(1);
  transform: scale(1.03);
}

.glass-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.015) 25%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0.015) 75%,
      transparent 100%);
  animation: surface-reflection 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes surface-reflection {
  0% {
    transform: translateX(-20%);
  }

  50% {
    transform: translateX(20%);
  }

  100% {
    transform: translateX(-20%);
  }
}

.glass-tile .tile-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-tile .tile-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--white-70);
  fill: none;
  stroke-width: 1.5;
}

.glass-tile .tile-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: var(--space-xs);
}

.glass-tile .tile-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white-90);
  margin-bottom: var(--space-sm);
}

.glass-tile .tile-description {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-50);
  max-width: 440px;
}

/* Internal geometric node glow */
.glass-tile .tile-node-glow {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  opacity: 0.06;
  pointer-events: none;
}

.glass-tile .tile-node-glow svg {
  width: 100%;
  height: 100%;
}

/* Tile features list */
.tile-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.tile-feature-tag {
  padding: 0.3rem 0.8rem;
  background: var(--white-05);
  border: 1px solid var(--white-08);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--white-50);
  letter-spacing: 0.05em;
}

/* ============================================
   ABOUT US SECTION
   ============================================ */
.about-us-section {
  position: relative;
  z-index: 5;
  padding: var(--space-3xl) 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--void-black) 0%, var(--void-deep) 50%, var(--void-black) 100%);
}

.about-us-inner {
  max-width: 1100px;
  width: 100%;
}

.about-us-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.about-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-us-card {
  padding: 2rem 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--glass-inner-glow);
  transition: all var(--transition-medium);
}

.about-us-card:hover {
  border-color: var(--white-15);
  box-shadow: var(--glass-inner-glow), var(--glass-hover-glow);
  transform: translateY(-6px);
}

.about-us-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: var(--white-05);
  border-radius: 10px;
  padding: 8px;
}

.about-us-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--white-50);
  fill: none;
  stroke-width: 1.5;
}

.about-us-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white-90);
  margin-bottom: 0.6rem;
}

.about-us-card p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-50);
}

/* ============================================
   ABOUT THE ENGINE
   ============================================ */
.about-section {
  position: relative;
  z-index: 5;
  padding: var(--space-3xl) 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--void-black) 0%, var(--void-deep) 50%, var(--void-black) 100%);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--white-15);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.section-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-50);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* Engine Stats Grid */
.engine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 680px;
  width: 100%;
  margin-top: var(--space-lg);
}

.stat-card {
  padding: 2rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-inner-glow);
  text-align: center;
  transition: all var(--transition-medium);
}

.stat-card:hover {
  border-color: var(--white-15);
  box-shadow: var(--glass-inner-glow), var(--glass-hover-glow);
  transform: translateY(-4px);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--white-30);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   SERVICE DEEP-DIVE SECTIONS
   ============================================ */
.services-container {
  position: relative;
  z-index: 5;
}

.service-section {
  position: relative;
  padding: var(--space-3xl) 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.service-section:nth-child(even) {
  background: linear-gradient(180deg, var(--void-black) 0%, var(--void-surface) 50%, var(--void-black) 100%);
}

.service-inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.service-section:nth-child(even) .service-inner {
  direction: rtl;
}

.service-section:nth-child(even) .service-inner>* {
  direction: ltr;
}

/* Tile Landing Zone */
.tile-landing-zone {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-landing-zone .landed-tile {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-inner-glow), var(--glass-edge-glow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.tile-landing-zone .landed-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.015) 25%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0.015) 75%,
      transparent 100%);
  animation: surface-reflection 8s ease-in-out infinite;
  pointer-events: none;
}

/* Service Text Content */
.service-text {
  padding: var(--space-lg) 0;
}

.service-text .section-label {
  justify-content: flex-start;
}

.service-text .section-label::before {
  display: none;
}

.service-text .section-title {
  text-align: left;
}

.service-text .section-description {
  text-align: left;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: var(--space-lg);
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white-03);
  border: 1px solid var(--white-05);
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.service-feature-item:hover {
  background: var(--white-05);
  border-color: var(--white-08);
  transform: translateX(4px);
}

.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-05);
  border-radius: 8px;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white-50);
  fill: none;
  stroke-width: 1.5;
}

.feature-text h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-90);
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--white-50);
  line-height: 1.5;
}

/* ============================================
   FOOTER CTA — Initialize Your AI
   ============================================ */
.footer-cta {
  position: relative;
  z-index: 5;
  padding: var(--space-3xl) 3rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--void-black);
}

.cta-form {
  max-width: 480px;
  width: 100%;
  margin-top: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
  text-align: left;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-30);
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--white-03);
  border: 1px solid var(--white-08);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--white-30);
  background: var(--white-05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--void-surface);
  color: var(--white);
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--white);
  border: none;
  border-radius: 10px;
  color: var(--void-black);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.submit-btn:hover::before {
  left: 100%;
}

/* Word Counter */
.word-counter {
  text-align: right;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--white-30);
  margin-top: 0.5rem;
  transition: color var(--transition-fast);
}

.word-counter.over-limit {
  color: #ff6464;
  text-shadow: 0 0 8px rgba(255, 100, 100, 0.4);
}

/* Form Confirmation Overlay */
.form-confirmation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 10;
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(80, 200, 160, 0.12);
  border: 1px solid rgba(80, 200, 160, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #50c8a0;
  margin-bottom: 1.5rem;
  animation: confirm-pulse 2s ease-in-out infinite;
}

@keyframes confirm-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(80, 200, 160, 0.2);
  }

  50% {
    box-shadow: 0 0 20px 8px rgba(80, 200, 160, 0.1);
  }
}

.confirmation-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.confirmation-message {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-50);
  max-width: 400px;
  margin-bottom: 2rem;
}

.confirmation-message strong {
  color: var(--white-70);
  font-weight: 500;
}

.confirmation-reset {
  background: none;
  border: 1px solid var(--white-15);
  color: var(--white-30);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.confirmation-reset:hover {
  color: var(--white-70);
  border-color: var(--white-30);
  background: var(--white-05);
}

/* Footer Bottom */
.footer-bottom {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--white-05);
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 100px;
  opacity: 0.7;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--white-15);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--white-30), var(--white));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ============================================
   REVEAL ANIMATIONS (triggered by GSAP)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Stagger children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(20px);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* ---------- TABLET (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
  .nav {
    padding: 1rem 2rem;
  }

  .nav-logo img {
    height: 80px;
  }

  .service-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .service-section:nth-child(even) .service-inner {
    direction: ltr;
  }

  .service-text .section-title,
  .service-text .section-description {
    text-align: center;
  }

  .service-text .section-label {
    justify-content: center;
  }

  .service-text .section-label::before {
    display: block;
  }

  .tile-landing-zone .landed-tile {
    max-width: 100%;
  }

  /* Slightly smaller tiles on tablet */
  .glass-tile {
    width: min(420px, 85vw);
    min-height: 240px;
    padding: 2rem;
  }

  .footer-brand img {
    height: 80px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ---------- SMALL TABLET / HALF WINDOW (max-width: 768px) ---------- */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1.25rem;
  }

  .nav-logo img {
    height: 56px;
  }

  /* Hide desktop nav, show hamburger */
  .nav-links {
    display: none !important;
  }

  .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
    letter-spacing: 0.1em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  /* Glass tiles become vertical stack on mobile */
  .glass-tile {
    position: relative !important;
    width: 100% !important;
    max-width: 100%;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: var(--space-md);
    min-height: auto;
    padding: 1.75rem;
  }

  .tile-track {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) 1.25rem;
    gap: var(--space-md);
  }

  .about-section,
  .service-section,
  .footer-cta,
  .about-us-section {
    padding: var(--space-xl) 1.25rem;
    min-height: auto;
  }

  .about-us-grid {
    grid-template-columns: 1fr 1fr;
  }

  .engine-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .service-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer-brand img {
    height: 60px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 0.9rem;
  }

  .cta-form {
    padding: 0 0.5rem;
  }

  .footer-cta .section-title {
    font-size: 1.5rem;
  }
}

/* ---------- PHONE (max-width: 480px) ---------- */
@media (max-width: 480px) {
  .nav {
    padding: 0.5rem 1rem;
  }

  .nav-logo img {
    height: 44px;
  }

  .glass-tile {
    padding: 1.25rem;
  }

  .glass-tile .tile-title {
    font-size: 1.2rem;
  }

  .glass-tile .tile-description {
    font-size: 0.8rem;
  }

  .tile-image {
    height: 140px;
  }

  .hero-badge {
    font-size: 0.6rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 0.08em;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .engine-stats {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .footer-brand img {
    height: 40px;
  }

  .about-section,
  .service-section,
  .footer-cta,
  .about-us-section {
    padding: var(--space-lg) 1rem;
  }

  .about-us-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta .section-title {
    font-size: 1.3rem;
  }

  .service-feature {
    padding: 1rem;
  }
}