/* ═══════════════════════════════════════════════════════════════
   LIQUID GLASS DESIGN SYSTEM — ResponseIQ.ai
   Apple iOS 26 / WWDC 2025 Inspired
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand Colors (Preserved) ── */
  --color-primary: #00b7ff;
  --color-primary-rgb: 0, 183, 255;
  --color-secondary: #0077cc;
  --color-secondary-rgb: 0, 119, 204;
  --color-fire: #FF6B35;
  --color-fire-rgb: 255, 107, 53;
  --color-fire-secondary: #FF9F1C;
  --color-purple: #a78bfa;
  --color-purple-rgb: 167, 139, 250;
  --color-purple-light: #c4b5fd;
  --color-green: #22c55e;
  --color-green-rgb: 34, 197, 94;
  --color-green-alt: #2BC14B;
  --color-gold: #FFB900;
  --color-gold-light: #FFD700;
  --color-tesla: #E82127;
  --color-ha: #18BCF2;
  --color-unifi: #0559C9;

  /* ── Background Palette ── */
  --bg-base: #000000;
  --bg-elevated: #1a1a1a;
  --bg-surface: #0a0a1a;
  --bg-card: #0d1620;

  /* ── Text Palette ── */
  --text-primary: #e1e5eb;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --text-inverse: #000000;

  /* ── Liquid Glass Surfaces ── */
  --glass-bg: hsl(0 0% 100% / 0.06);
  --glass-bg-hover: hsl(0 0% 100% / 0.10);
  --glass-bg-active: hsl(0 0% 100% / 0.14);
  --glass-bg-elevated: hsl(0 0% 100% / 0.08);
  --glass-tint: hsl(200 100% 50% / 0.08);
  --glass-tint-strong: hsl(200 100% 50% / 0.15);

  /* ── Liquid Glass Borders ── */
  --glass-border: hsl(0 0% 100% / 0.12);
  --glass-border-hover: hsl(0 0% 100% / 0.20);
  --glass-border-active: rgba(0, 183, 255, 0.35);

  /* ── Liquid Glass Shadows ── */
  --glass-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --glass-shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12);
  --glass-inner-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.08), inset 0 -1px 0 hsl(0 0% 0% / 0.05);
  --glass-specular: inset 0 1px 1px hsl(0 0% 100% / 0.12);

  /* ── Liquid Glass Blur Levels ── */
  --blur-sm: 8px;
  --blur-md: 12px;
  --blur-lg: 20px;
  --blur-xl: 40px;

  /* ── Liquid Glass Radii ── */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 980px;
  --radius-circle: 50%;

  /* ── Liquid Glass Transitions ── */
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-decel: cubic-bezier(0.0, 0.0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;

  /* ── Z-Index Scale ── */
  --z-nav: 10000;
  --z-hamburger: 10001;
  --z-mobile-overlay: 9998;
  --z-mobile-menu: 9999;
  --z-contact-widget: 10002;
  --z-contact-modal: 10003;
  --z-splash: 9999;
}

/* ── Reduced blur on small screens for performance ── */
@media (max-width: 375px) {
  :root {
    --blur-sm: 4px;
    --blur-md: 8px;
    --blur-lg: 12px;
    --blur-xl: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LIQUID GLASS — Reusable Component Classes
   ═══════════════════════════════════════════════════════════════ */

/* Base glass surface */
.lg-surface {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  transition:
    background var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth),
    transform var(--duration-normal) var(--ease-smooth);
}

.lg-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-tint);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.lg-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(var(--blur-md)) brightness(110%) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-md)) brightness(110%) saturate(140%);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

/* Desktop: add SVG displacement filter */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .lg-surface::after {
    backdrop-filter: url(#liquid-glass) blur(var(--blur-md)) brightness(110%) saturate(140%);
    -webkit-backdrop-filter: url(#liquid-glass) blur(var(--blur-md)) brightness(110%) saturate(140%);
  }
}

.lg-surface:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover), var(--glass-inner-shadow);
}

.lg-surface:active {
  background: var(--glass-bg-active);
  transform: scale(0.98);
}

/* Elevated glass (modals, nav) */
.lg-elevated {
  background: var(--glass-bg-elevated);
  box-shadow: var(--glass-shadow-elevated), var(--glass-inner-shadow), var(--glass-specular);
}

/* Glass pill (buttons, tags) */
.lg-pill {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.lg-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(var(--blur-sm)) brightness(105%) saturate(120%);
  -webkit-backdrop-filter: blur(var(--blur-sm)) brightness(105%) saturate(120%);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

/* Content z-index lifter */
.lg-content {
  position: relative;
  z-index: 1;
}

/* Specular shimmer animation */
@keyframes glass-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.lg-shimmer::before {
  background: linear-gradient(
    105deg,
    transparent 40%,
    hsl(0 0% 100% / 0.06) 45%,
    hsl(0 0% 100% / 0.12) 50%,
    hsl(0 0% 100% / 0.06) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: glass-shimmer 6s ease-in-out infinite;
}

/* Glass pulse animation for indicators */
@keyframes glass-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0); }
}

/* ═══════════════════════════════════════════════════════════════
   FALLBACKS
   ═══════════════════════════════════════════════════════════════ */

@supports not (backdrop-filter: blur(1px)) {
  .lg-surface::after,
  .lg-pill::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 26, 0.85);
  }
  .lg-surface,
  .lg-pill {
    background: rgba(10, 10, 26, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.no-backdrop-filter .lg-surface,
.no-backdrop-filter .lg-pill {
  background: rgba(10, 10, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.no-backdrop-filter .lg-surface::after,
.no-backdrop-filter .lg-pill::after {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════ */

/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  scroll-behavior: smooth;
  /* Apple-first font stack - SF Pro on Apple devices, Inter fallback */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  color: #e1e5eb;
  background-color: black;
  overflow-x: hidden;
  /* Apple-style font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: -0.01em;
}

/* Prevent iOS text size adjustment */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Reduce motion for accessibility */
@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;
  }
}

/* ───── Top Navigation Bar ───────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  /* Liquid Glass nav surface */
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(var(--blur-lg)) brightness(110%) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) brightness(110%) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-specular), 0 1px 0 hsl(0 0% 100% / 0.04);
  padding: 0.75rem 2rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  transition: transform var(--duration-normal) var(--ease-smooth),
              padding var(--duration-normal) var(--ease-smooth);
}

/* iOS 26: Nav shrinks on scroll-down */
.top-nav.nav-compact {
  padding-top: max(0.375rem, env(safe-area-inset-top));
  padding-bottom: 0.375rem;
}
.top-nav.nav-compact .nav-logo-img {
  height: 28px;
}
.top-nav.nav-compact .nav-text {
  font-size: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.top-nav.hidden-nav {
  transform: translateY(-100%);
}

.top-nav-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
  filter: brightness(1.2) drop-shadow(0 0 12px rgba(0, 183, 255, 0.6));
}

.nav-links-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-item:hover {
  background: var(--glass-bg-hover);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--duration-normal) var(--ease-smooth);
}

.nav-item:hover::after {
  width: 70%;
}

.nav-icon {
  font-size: 1.25rem;
  display: block;
}

.nav-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
}

.nav-login {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85), rgba(var(--color-secondary-rgb), 0.85));
  color: var(--text-inverse);
  font-weight: 600;
  margin-left: 0.5rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow), var(--glass-specular);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

.nav-login .nav-icon,
.nav-login .nav-text {
  color: var(--text-inverse);
}

.nav-login:hover {
  background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.9), rgba(var(--color-primary-rgb), 0.9));
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.4), var(--glass-specular);
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  z-index: var(--z-splash);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--bg-base);
  display: flex;
  justify-content: center;
  align-items: center;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* Liquid Glass fade-out effect */
.splash-screen.fading {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(var(--blur-xl)) brightness(80%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) brightness(80%);
  transition: opacity 0.8s var(--ease-smooth);
}

.splash-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure video displays on iOS */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Splash fallback image for iOS autoplay issues */
.splash-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Utility */
.hidden {
  display: none !important;
}

.visible {
  display: flex !important;
}

/* ──────────────────────────────
   Scroll Video Section Parallax
──────────────────────────────── */
.video-section {
  position: relative;
  height: 100vh;
  height: 100dvh; /* iOS Safari dynamic viewport fix */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1px;
  transform-style: preserve-3d;
  isolation: isolate; /* Prevent 3D context from bleeding between sections */
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateZ(-1px) scale(2);
  z-index: 0;
  transition: opacity 1s ease;

  /* Darken video to hide AI artifacts/misspellings while keeping ambient motion */
  filter: brightness(8%) blur(2px);
}

/* Content Overlay with animations */
.overlay-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 2.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  /* Content visible by default - no JS dependency */
  opacity: 1;
  transform: translateY(0);
  /* Liquid Glass: subtle frosted panel behind text */
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(var(--blur-sm)) brightness(95%);
  -webkit-backdrop-filter: blur(var(--blur-sm)) brightness(95%);
  border-radius: var(--radius-lg);
  border: 1px solid hsl(0 0% 100% / 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.overlay-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.overlay-content p {
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Scroll snap container */
.snap-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  height: 100dvh; /* iOS Safari dynamic viewport fix */
  /* Smooth scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.snap-child {
  scroll-snap-align: start;
}

/* Use proximity instead of mandatory on mobile for smoother UX */
@media (max-width: 768px) {
  .snap-container {
    scroll-snap-type: y proximity;
  }
}

/* Navigation Dots */
.nav-dots {
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-dots a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  transition: background-color var(--duration-normal) var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Liquid Glass dot indicator */
.nav-dots a::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-circle);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  transition: all var(--duration-normal) var(--ease-spring);
  box-shadow: var(--glass-inner-shadow);
}

/* Active: morphs to vertical capsule */
.nav-dots a.active::before,
.nav-dots a:hover::before,
.nav-dots a:focus::before {
  width: 8px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: rgba(var(--color-primary-rgb), 0.3);
  border-color: rgba(var(--color-primary-rgb), 0.5);
  box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.4), var(--glass-specular);
}

.nav-dots a:active {
  background-color: rgba(var(--color-primary-rgb), 0.1);
}

/* Skip Intro Button */
.skip-btn {
  position: absolute;
  bottom: 30px;
  bottom: max(30px, env(safe-area-inset-bottom));
  right: 30px;
  right: max(30px, env(safe-area-inset-right));
  z-index: var(--z-hamburger);
  /* Liquid Glass skip button */
  background: var(--glass-bg);
  color: #ffffff;
  border: 1px solid var(--glass-border);
  padding: 0.875rem 1.75rem;
  min-height: 48px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.skip-btn:hover,
.skip-btn:active {
  background-color: rgba(0, 183, 255, 0.3);
  border-color: #00b7ff;
  transform: scale(1.02);
}

/* Scroll Down Arrow — Liquid Glass capsule */
.scroll-arrow {
  font-size: 1.25rem;
  margin-top: 2rem;
  cursor: pointer;
  animation: bounce 2s infinite, glass-pulse 3s ease-in-out infinite;
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-circle);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Product Grid & Demo Buttons */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.product-card {
  /* Liquid Glass card */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--blur-md)) brightness(108%) saturate(130%);
  -webkit-backdrop-filter: blur(var(--blur-md)) brightness(108%) saturate(130%);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  max-width: 300px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-spring);
}

.product-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover), var(--glass-specular);
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.demo-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background-color: #00b7ff;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.demo-button:hover {
  background-color: #0077cc;
}

/* ===================================================================
   PRODUCTS SECTION — SERVICE CARDS
   =================================================================== */

.products-overlay {
  max-width: 1100px;
}

.products-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.products-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.service-card {
  /* Liquid Glass surface */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-lg)) brightness(110%) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) brightness(110%) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--glass-shadow-elevated), var(--glass-inner-shadow), var(--glass-specular);
  transition:
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glass-shadow-hover), var(--glass-specular);
}

.service-card-accent {
  height: 2px;
  opacity: 0.6;
  background: linear-gradient(90deg, var(--color-primary), #00d4ff);
}

.service-card-home .service-card-accent {
  background: linear-gradient(90deg, var(--color-ha), #00d4ff);
}

.service-card-fire .service-card-accent {
  background: linear-gradient(90deg, var(--color-fire), var(--color-fire-secondary));
}

.service-card-custom .service-card-accent {
  background: linear-gradient(90deg, var(--color-purple), var(--color-purple-light));
}

.service-card-home:hover {
  border-color: rgba(24, 188, 242, 0.3);
  box-shadow: var(--glass-shadow-hover), 0 0 40px rgba(24, 188, 242, 0.1), var(--glass-specular);
}

.service-card-fire:hover {
  border-color: rgba(var(--color-fire-rgb), 0.3);
  box-shadow: var(--glass-shadow-hover), 0 0 40px rgba(var(--color-fire-rgb), 0.1), var(--glass-specular);
}

.service-card-custom:hover {
  border-color: rgba(var(--color-purple-rgb), 0.3);
  box-shadow: var(--glass-shadow-hover), 0 0 40px rgba(var(--color-purple-rgb), 0.1), var(--glass-specular);
}

.service-card-header {
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.25rem;
}

.service-card-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.service-card-features {
  list-style: none;
  padding: 0 1.5rem;
  margin: 0;
  flex: 1;
}

.service-card-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-features li:last-child {
  border-bottom: none;
}

.service-card-features li img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.service-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.service-card-price {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  /* Liquid Glass pill button */
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85), rgba(var(--color-primary-rgb), 0.65));
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  color: var(--text-inverse);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--glass-shadow), var(--glass-specular);
  transition: all 0.2s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.service-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.3), var(--glass-specular);
}

.service-card-btn:active {
  transform: scale(0.97);
}

.service-card-btn-fire {
  background: linear-gradient(135deg, rgba(var(--color-fire-rgb), 0.85), rgba(255, 159, 28, 0.7));
  border-color: rgba(var(--color-fire-rgb), 0.3);
}

.service-card-btn-fire:hover {
  box-shadow: 0 8px 24px rgba(var(--color-fire-rgb), 0.3), var(--glass-specular);
}

.service-card-btn-custom {
  background: linear-gradient(135deg, rgba(var(--color-purple-rgb), 0.85), rgba(196, 181, 253, 0.7));
  border-color: rgba(var(--color-purple-rgb), 0.3);
}

.service-card-btn-custom:hover {
  box-shadow: 0 8px 24px rgba(var(--color-purple-rgb), 0.3), var(--glass-specular);
}

/* About Section */
.about-us-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 768px) {
  .about-us-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.founder-photo {
  max-width: 220px;
  border-radius: var(--radius-md);
  /* Liquid Glass frame */
  border: 2px solid var(--glass-border);
  box-shadow:
    var(--glass-shadow-elevated),
    0 0 30px rgba(var(--color-primary-rgb), 0.15),
    var(--glass-specular);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.founder-photo:hover {
  border-color: var(--glass-border-active);
  box-shadow:
    var(--glass-shadow-hover),
    0 0 40px rgba(var(--color-primary-rgb), 0.25);
}

.about-right {
  flex: 1;
  padding-left: 1rem;
}

.about-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-right p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 400;
}

.about-right strong {
  font-weight: 600;
}

.about-bullets {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.about-bullets li {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.about-quote {
  margin-top: 2rem;
  font-style: italic;
  font-size: 1.1rem;
  color: #ccc;
  /* Liquid Glass quote card */
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  border-left: 3px solid rgba(var(--color-primary-rgb), 0.5);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

/* Contact Widget */
.contact-widget {
  position: fixed;
  bottom: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  left: max(20px, env(safe-area-inset-left));
  z-index: 10002;
  display: none;
}

.contact-widget.visible {
  display: block;
}

.chat-icon {
  /* Liquid Glass sphere */
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85), rgba(var(--color-secondary-rgb), 0.7));
  color: white;
  border: 1px solid rgba(var(--color-primary-rgb), 0.4);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  font-size: 1.5rem;
  cursor: pointer;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  box-shadow:
    0 4px 20px rgba(var(--color-primary-rgb), 0.4),
    var(--glass-specular);
  transition: all 0.2s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-icon:hover,
.chat-icon:active {
  transform: scale(1.1);
  box-shadow:
    0 6px 28px rgba(var(--color-primary-rgb), 0.5),
    var(--glass-specular);
}

/* Contact Modal — Liquid Glass */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-contact-modal);
  width: 100%;
  height: 100%;
  height: 100dvh;
  /* Liquid Glass backdrop */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(var(--blur-lg)) brightness(80%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) brightness(80%);
  display: none;
  justify-content: center;
  align-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overscroll-behavior: contain;
}

.contact-modal.visible {
  display: flex;
}

.contact-content {
  /* Liquid Glass elevated card */
  background: var(--glass-bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(var(--blur-xl)) brightness(105%) saturate(130%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) brightness(105%) saturate(130%);
  box-shadow: var(--glass-shadow-elevated), var(--glass-specular);
  color: white;
}

.contact-content h2 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.contact-content input,
.contact-content textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  /* Liquid Glass form inputs */
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  color: #fff;
  font-size: 16px;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.contact-content input:focus,
.contact-content textarea:focus {
  border-color: var(--glass-border-active);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

.send-btn {
  /* Liquid Glass button */
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85), rgba(var(--color-secondary-rgb), 0.85));
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: bold;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--glass-shadow), var(--glass-specular);
  transition: all 0.2s var(--ease-spring);
}

.send-btn:hover {
  box-shadow: var(--glass-shadow-hover), var(--glass-specular);
  transform: translateY(-1px);
}

.close-contact {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Section 7: Pricing */
.pricing-overlay {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.pricing-title {
  font-size: 3.5rem;
  color: #00b7ff;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-subtitle {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 3rem;
}

/* Pricing Teaser */
.pricing-teaser {
  /* Liquid Glass pricing card */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  backdrop-filter: blur(var(--blur-lg)) brightness(108%) saturate(130%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) brightness(108%) saturate(130%);
  box-shadow: var(--glass-shadow-elevated), var(--glass-inner-shadow), var(--glass-specular);
}

.teaser-main {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.personnel-range {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.range-label {
  font-size: 0.85rem;
  color: #a0aec0;
  white-space: nowrap;
}

.range-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.range-fill {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, #00b7ff, #0077cc);
  border-radius: 999px;
  animation: slideRange 3s ease-in-out infinite;
}

@keyframes slideRange {
  0%, 100% { width: 40%; }
  50% { width: 80%; }
}

.price-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.starting-text {
  font-size: 1rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-price {
  font-size: 4rem;
  font-weight: 800;
  color: #00b7ff;
  line-height: 1;
  text-shadow: 0 0 30px rgba(0, 183, 255, 0.5);
}

.price-period {
  font-size: 1.5rem;
  color: #a0aec0;
  font-weight: 400;
}

.price-detail {
  font-size: 1rem;
  color: #ccc;
}

.teaser-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  /* Liquid Glass feature row */
  background: var(--glass-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-shadow);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.feature-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.95rem;
  color: #e1e5eb;
}

.teaser-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-primary {
  font-size: 1.25rem;
  padding: 1rem 3rem;
  box-shadow: 0 0 30px rgba(0, 183, 255, 0.4);
}

.teaser-note {
  font-size: 0.85rem;
  color: #a0aec0;
  font-style: italic;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  /* Liquid Glass capsule */
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--glass-inner-shadow);
}

.badge-icon {
  font-size: 2rem;
}

.badge-text {
  font-size: 0.85rem;
  color: #a0aec0;
  text-align: center;
}

/* Override Pricing layout: force single centered row */
.pricing-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;    /* will wrap on narrow screens */
  margin-top: 2rem;
}

/* Keep your existing card styling, but fix the width */
.pricing-card {
  flex: 0 0 300px;
  max-width: 300px;
  /* Liquid Glass pricing card */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(var(--blur-lg)) brightness(110%) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) brightness(110%) saturate(140%);
  box-shadow: var(--glass-shadow-elevated), var(--glass-inner-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--duration-normal) var(--ease-spring);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover), var(--glass-specular);
}

.featured {
  background: var(--glass-bg-elevated);
  border: 2px solid rgba(var(--color-primary-rgb), 0.4);
  box-shadow:
    var(--glass-shadow-elevated),
    var(--glass-specular),
    0 0 40px rgba(var(--color-primary-rgb), 0.1);
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: #00b7ff;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}

.plan-desc {
  font-size: 0.95rem;      /* Fixed from 0.4rem - was unreadable! */
  color: #a0aec0;          /* slightly muted for hierarchy */
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.4;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.plan-features li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: #fff;
  padding-left: 1.2rem;
  position: relative;
}

/* CTA Buttons - Apple-style pill buttons */
.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  min-height: 48px;
  border-radius: var(--radius-pill);
  /* Liquid Glass pill button */
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85), rgba(var(--color-primary-rgb), 0.65));
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  color: white;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: var(--glass-shadow), var(--glass-specular);
  transition: all 0.2s var(--ease-spring);
  margin-top: 1rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta-button:hover {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.95), rgba(var(--color-primary-rgb), 0.75));
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 6px 24px rgba(var(--color-primary-rgb), 0.35), var(--glass-specular);
}

.cta-button:active {
  transform: scale(0.97);
  box-shadow: var(--glass-shadow);
}

/* Apple logo indicator style */
.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.apple-badge::before {
  content: '';
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
}

/* ─── Section 4: Integrations — Redesigned ──────────────────────────────── */
.integrations-overlay {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.integrations-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.integrations-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.5rem;
}

.integration-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.integration-group {
  /* Liquid Glass card */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  backdrop-filter: blur(var(--blur-md)) brightness(108%) saturate(130%);
  -webkit-backdrop-filter: blur(var(--blur-md)) brightness(108%) saturate(130%);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.integration-group-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.integration-group-header img {
  width: 22px;
  height: 22px;
}

.integration-group-header h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.integration-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.integration-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 80px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.integration-logo-item:hover {
  transform: translateY(-4px);
}

.integration-logo-icon {
  width: 64px;
  height: 64px;
  /* Liquid Glass tile */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  transition: all var(--duration-normal) var(--ease-spring);
}

.integration-logo-item:hover .integration-logo-icon {
  border-color: var(--glass-border-active);
  box-shadow: var(--glass-shadow-hover), 0 0 20px rgba(var(--color-primary-rgb), 0.15);
  background: var(--glass-bg-hover);
}

.integration-logo-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.integration-logo-name {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.integrations-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.875rem 2.5rem;
  /* Liquid Glass pill button */
  background: var(--glass-bg);
  border: 1.5px solid rgba(var(--color-primary-rgb), 0.4);
  border-radius: var(--radius-pill);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  backdrop-filter: blur(var(--blur-md)) brightness(105%);
  -webkit-backdrop-filter: blur(var(--blur-md)) brightness(105%);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  transition: all var(--duration-normal) var(--ease-spring);
}

.integrations-link:hover {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85), rgba(var(--color-secondary-rgb), 0.85));
  color: var(--text-inverse);
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover), var(--glass-specular);
}

/* ─── Section 6: Custom Applications — Device Showcase ──────────────────── */
.custom-apps-overlay {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-apps-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.custom-apps-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3rem;
  max-width: 600px;
  text-align: center;
}

.device-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
  align-items: end;
}

.device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.device-info {
  text-align: center;
}

.device-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.device-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.75rem;
}

.device-logos {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.device-logos img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.device-logos img:hover {
  opacity: 1;
}

/* ─── Device Frames ─────────────────────────────────────────────────────── */
.device-frame {
  position: relative;
  background: #1a1a1e;
  /* Liquid Glass device frame */
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--glass-border),
    var(--glass-specular),
    0 0 40px rgba(var(--color-primary-rgb), 0.05);
  transition: all 0.4s var(--ease-spring);
}

.device-frame:hover {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--glass-border-hover),
    var(--glass-specular),
    0 0 60px rgba(var(--color-primary-rgb), 0.15);
  transform: translateY(-8px) scale(1.02);
}

/* iPhone */
.device-iphone {
  width: 140px;
  height: 284px;
  border-radius: 28px;
  padding: 8px;
}

.device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 18px;
  background: #1a1a1e;
  border-radius: 12px;
  z-index: 2;
}

.device-iphone .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* iPad */
.device-ipad {
  width: 300px;
  height: 210px;
  border-radius: 14px;
  padding: 8px;
}

.device-ipad .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

/* iMac */
.device-imac {
  width: 320px;
  height: 200px;
  border-radius: 12px 12px 0 0;
  padding: 6px;
  padding-bottom: 0;
}

.device-imac .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.device-chin {
  height: 18px;
  background: #1a1a1e;
  border-radius: 0 0 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-chin::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.device-stand {
  width: 80px;
  height: 48px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #2a2a2e, #222224);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

/* ─── Mock App Screens ──────────────────────────────────────────────────── */

/* iPhone App */
.iphone-app {
  background: linear-gradient(180deg, #0a0a1a 0%, #0f1629 100%);
  display: flex;
  flex-direction: column;
  padding: 30px 8px 8px;
  gap: 6px;
}

.mock-status-bar {
  height: 3px;
  width: 35%;
  margin: 0 auto 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.mock-header {
  height: 12px;
  width: 60%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 4px;
}

.mock-card-block {
  height: 36px;
  background: rgba(0, 183, 255, 0.06);
  border: 1px solid rgba(0, 183, 255, 0.12);
  border-radius: 6px;
}

.mock-card-block.short {
  height: 28px;
  width: 75%;
}

.mock-tab-bar {
  margin-top: auto;
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
}

.mock-tab-bar span {
  width: 8px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.mock-tab-bar span:first-child {
  background: rgba(0, 183, 255, 0.6);
}

/* iPad App */
.ipad-app {
  background: linear-gradient(135deg, #0a0a1a 0%, #0d1520 100%);
  display: flex;
}

.mock-sidebar {
  width: 50px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-nav-item {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.mock-nav-item.active {
  background: rgba(0, 183, 255, 0.4);
}

.mock-main {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-chart-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.mock-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(0, 183, 255, 0.5), rgba(0, 183, 255, 0.12));
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}

.mock-metrics {
  display: flex;
  gap: 6px;
}

.mock-metric {
  flex: 1;
  height: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* iMac App */
.imac-app {
  background: linear-gradient(180deg, #0a0a1a 0%, #101828 100%);
}

.mock-browser-bar {
  height: 22px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
}

.mock-dots {
  display: flex;
  gap: 3px;
}

.mock-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #ffbd2e; }
.mock-dots span:nth-child(3) { background: #28c940; }

.mock-url-bar {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  max-width: 140px;
}

.mock-web-content {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-web-nav {
  height: 8px;
  width: 45%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.mock-web-hero {
  flex: 1;
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.08), rgba(98, 0, 234, 0.06));
  border-radius: 6px;
  border: 1px solid rgba(0, 183, 255, 0.1);
}

.mock-web-grid {
  display: flex;
  gap: 4px;
}

.mock-web-grid div {
  flex: 1;
  height: 26px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* CTA */
.custom-apps-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.875rem 2.5rem;
  /* Liquid Glass pill button */
  background: var(--glass-bg);
  border: 1.5px solid rgba(var(--color-primary-rgb), 0.4);
  border-radius: var(--radius-pill);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  backdrop-filter: blur(var(--blur-md)) brightness(105%);
  -webkit-backdrop-filter: blur(var(--blur-md)) brightness(105%);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  transition: all var(--duration-normal) var(--ease-spring);
}

.custom-apps-cta:hover {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85), rgba(var(--color-secondary-rgb), 0.85));
  color: var(--text-inverse);
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover), var(--glass-specular);
}

/* Section 8: Testimonials */
#section8 .testimonial-layout {
  max-width: none;
  width: 100%;
  padding: 2rem 5%;
}

#section8 .testimonial-grid {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

#section8 .testimonial-item {
  display: flex;
  align-items: center;
  /* Liquid Glass card */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-width: 800px;
  width: 100%;
  backdrop-filter: blur(var(--blur-md)) brightness(105%) saturate(120%);
  -webkit-backdrop-filter: blur(var(--blur-md)) brightness(105%) saturate(120%);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  transition: all var(--duration-normal) var(--ease-smooth);
}

#section8 .testimonial-item:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover), var(--glass-specular);
}

#section8 .testimonial-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-circle);
  /* Liquid Glass avatar frame */
  background: var(--glass-bg);
  border: 1.5px solid rgba(var(--color-primary-rgb), 0.3);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--glass-inner-shadow);
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

#section8 .testimonial-info {
  text-align: left;
  margin-right: 1.5rem;
}

#section8 .testimonial-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00b7ff;
  margin-bottom: 0.25rem;
}

#section8 .testimonial-role {
  font-size: 1rem;
  font-weight: 300;
  color: #ccc;
  margin-bottom: 0.75rem;
}

#section8 .testimonial-text {
  flex: 1;
  font-size: 1rem;
  font-style: italic;
  color: #e1e5eb;
  line-height: 1.6;
}

.contact-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-link {
  color: #00b7ff;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════
   HAMBURGER MENU - Mobile Navigation (Production)
   ═══════════════════════════════════════════════════════════════════════ */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  /* Liquid Glass surface */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  cursor: pointer;
  padding: 10px;
  z-index: var(--z-hamburger);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.hamburger-btn:active {
  background: var(--glass-bg-active);
  transform: scale(0.92);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-spring);
  margin: 2.5px 0;
}

.hamburger-btn.active {
  background: var(--glass-bg-hover);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Liquid Glass full-screen overlay */
  background: rgba(0, 5, 15, 0.75);
  backdrop-filter: blur(var(--blur-xl)) brightness(80%) saturate(120%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) brightness(80%) saturate(120%);
  z-index: var(--z-mobile-menu);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s var(--ease-decel), opacity var(--duration-normal) var(--ease-smooth);
}

.mobile-nav-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  /* Liquid Glass close button */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-circle);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--glass-inner-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: var(--z-nav);
}

.mobile-nav-close:active {
  background: var(--glass-bg-active);
  transform: scale(0.9);
}

.mobile-nav-menu .nav-item {
  width: 100%;
  max-width: 280px;
  padding: 1rem 1.5rem;
  margin: 0.4rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-md);
  /* Liquid Glass card per item */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-menu .nav-item:active {
  background: var(--glass-bg-active);
  border-color: var(--glass-border-active);
  transform: scale(0.98);
}

.mobile-nav-menu .nav-item.active {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85), rgba(var(--color-secondary-rgb), 0.85));
  border-color: rgba(var(--color-primary-rgb), 0.5);
  color: var(--text-inverse);
  font-weight: 600;
  box-shadow: var(--glass-shadow-elevated), var(--glass-specular);
}

/* Fix for index.html span-based nav structure */
.mobile-nav-menu .nav-item {
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
}

.mobile-nav-menu .nav-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.mobile-nav-menu .nav-text {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Liquid Glass login button in mobile menu */
.mobile-nav-menu .nav-login {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85), rgba(var(--color-secondary-rgb), 0.85));
  border-color: rgba(var(--color-primary-rgb), 0.5);
  box-shadow: var(--glass-shadow-elevated), var(--glass-specular);
}

.mobile-nav-menu .nav-login .nav-icon,
.mobile-nav-menu .nav-login .nav-text {
  color: var(--text-inverse);
}

/* Desktop: hide hamburger */
@media only screen and (min-width: 769px) {
  .hamburger-btn,
  .mobile-nav-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ─── Responsive tweaks for tablets (max-width 768px) ───────────────── */
@media only screen and (max-width: 768px) {
  /* iOS Safari safe area support - mobile only */
  body, html {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  /* Show hamburger, hide desktop nav */
  .hamburger-btn {
    display: flex;
  }

  .nav-links-container {
    display: none;
  }

  .mobile-nav-menu {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  /* Top nav adjustments */
  .top-nav {
    padding: 0.5rem 1rem;
    padding-top: max(0.5rem, env(safe-area-inset-top));
  }

  .nav-logo-img {
    height: 32px;
  }

  /* Video section adjustments */
  .video-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Nav dots - hide on very small screens, show on larger mobile */
  .nav-dots {
    right: 8px;
    gap: 4px;
  }

  .nav-dots a {
    width: 40px;
    height: 40px;
  }

  .nav-dots a::before {
    width: 10px;
    height: 10px;
  }

  /* Contact link tap targets */
  .contact-link {
    font-size: 1.75rem;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Integration items — tablet */
  .integration-group {
    padding: 1.25rem 1.5rem;
  }
  .integration-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .integration-logo-icon img {
    width: 30px;
    height: 30px;
  }
  .integration-logo-item {
    width: 72px;
  }
  .integration-logo-row {
    gap: 1rem;
  }

  /* ─── iOS-Critical: Prevent zoom on input focus ────────────────────── */
  input, select, textarea {
    font-size: 16px;
  }

  /* ─── Video sections — proper mobile layout ─────────────────────────── */
  .video-section {
    height: auto;
    min-height: 100dvh;
    overflow: hidden; /* Clip background video to section bounds */
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    /* Disable 3D parallax on mobile — causes z-stacking issues between sections */
    perspective: none;
    transform-style: flat;
  }

  /* Flatten background video on mobile — no 3D transform, clip to section */
  .background-video {
    transform: none;
    height: 100%;
  }

  /* ─── Overlay content breathing room ───────────────────────────────── */
  .overlay-content {
    padding: 1.5rem 1.25rem;
  }

  .overlay-content h1 {
    font-size: 2.25rem;
    letter-spacing: -0.03em;
  }

  .overlay-content p {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  /* ─── Disable hover effects on touch devices ───────────────────────── */
  .product-card:hover,
  .service-card:hover,
  .faq-item:hover,
  .pricing-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* ─── Service Cards — Stack on mobile ──────────────────────────────── */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .products-title {
    font-size: 2rem;
  }

  .service-card {
    border-radius: 16px;
  }

  .service-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
  }

  .service-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .service-card-icon img {
    width: 32px;
    height: 32px;
  }

  .service-card-title {
    font-size: 1.2rem;
  }

  .service-card-features {
    padding: 0 1.25rem;
  }

  .service-card-features li {
    padding: 0.4rem 0;
    font-size: 0.825rem;
  }

  .service-card-footer {
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .service-card-btn {
    min-height: 48px;
    font-size: 0.9rem;
    border-radius: 980px;
  }

  /* ─── Scroll behavior refinement ───────────────────────────────────── */
  .snap-container {
    scroll-snap-type: y proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .snap-child {
    scroll-snap-align: start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   iPHONE MOBILE — Apple-quality responsive (max-width 430px)
   Targets: iPhone 14 Pro Max, iPhone 15 Pro Max, iPhone 16 Pro Max
   Design: 8pt grid, SF Pro typography, 44pt touch targets, safe areas
   ═══════════════════════════════════════════════════════════════════════ */
@media only screen and (max-width: 430px) {

  /* ─── Typography & Overlay ─────────────────────────────────────────── */
  .overlay-content {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
  }

  .overlay-content h1 {
    font-size: 2rem;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 0.75rem;
  }

  .overlay-content p {
    font-size: 1rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
  }

  /* ─── Nav Dots — Minimal, safe-area aware ──────────────────────────── */
  .nav-dots {
    right: max(3px, env(safe-area-inset-right));
    gap: 0px;
  }

  .nav-dots a {
    width: 28px;
    height: 28px;
  }

  .nav-dots a::before {
    width: 5px;
    height: 5px;
    opacity: 0.7;
  }

  .nav-dots a.active::before {
    width: 6px;
    height: 6px;
    opacity: 1;
  }

  /* ─── Contact Links — iOS Action Button Style ──────────────────────── */
  .contact-links {
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .contact-link {
    font-size: 1.25rem;
    padding: 0.75rem;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 183, 255, 0.08);
    border-radius: 50%;
    border: 1px solid rgba(0, 183, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .contact-link:active {
    transform: scale(0.95);
    background: rgba(0, 183, 255, 0.15);
  }

  .contact-link img {
    width: 22px;
    height: 22px;
  }

  /* ─── Scroll Arrow ─────────────────────────────────────────────────── */
  .scroll-arrow {
    font-size: 1.25rem;
    margin-top: 1rem;
    opacity: 0.5;
  }

  /* ─── Product Cards — Full-Bleed Stack ─────────────────────────────── */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin-top: 1.25rem;
  }

  .product-card {
    max-width: 100%;
    padding: 1.25rem 1.125rem;
    border-radius: 14px;
    box-shadow: 0 0 12px rgba(0, 183, 255, 0.25);
  }

  .product-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
  }

  .product-card p {
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
  }

  .demo-button {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 980px;
  }

  /* ─── Service Cards — iPhone Compact ───────────────────────────────── */
  .products-title {
    font-size: 1.75rem;
    letter-spacing: -0.04em;
  }

  .products-subtitle {
    font-size: 0.9rem;
  }

  .services-grid {
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .service-card {
    border-radius: 14px;
  }

  .service-card-header {
    padding: 1rem 1rem 0.5rem;
  }

  .service-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.375rem;
  }

  .service-card-icon img {
    width: 28px;
    height: 28px;
  }

  .service-card-title {
    font-size: 1.05rem;
  }

  .service-card-tagline {
    font-size: 0.725rem;
  }

  .service-card-features {
    padding: 0 1rem;
  }

  .service-card-features li {
    padding: 0.325rem 0;
    font-size: 0.775rem;
    gap: 0.5rem;
  }

  .service-card-features li img {
    width: 16px;
    height: 16px;
  }

  .service-card-footer {
    padding: 0.625rem 1rem 1rem;
  }

  .service-card-price {
    font-size: 0.7rem;
  }

  .service-card-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.825rem;
  }

  /* ─── About Section — Centered Portrait Stack ──────────────────────── */
  .about-us-layout {
    flex-direction: column !important;
    padding: 0 0.75rem;
    text-align: center;
    gap: 1.5rem;
  }

  .founder-photo {
    max-width: 140px;
    border-radius: 20px;
    margin: 0 auto;
  }

  .about-right {
    padding-left: 0;
    text-align: center;
  }

  .about-title {
    font-size: 1.875rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.625rem;
  }

  .about-right p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.625rem;
  }

  .about-bullets {
    text-align: left;
    padding-left: 1.25rem;
    margin-top: 0.75rem;
  }

  .about-bullets li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .about-quote {
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.5;
  }

  /* ─── Custom Applications — Device Showcase ────────────────────────── */
  .custom-apps-title {
    font-size: 2rem;
  }
  .custom-apps-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .device-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 340px;
    margin: 0 auto;
  }
  .device-iphone {
    width: 120px;
    height: 244px;
    border-radius: 24px;
  }
  .device-notch {
    width: 42px;
    height: 16px;
  }
  .device-iphone .device-screen {
    border-radius: 16px;
  }
  .device-ipad {
    width: 260px;
    height: 182px;
    border-radius: 12px;
  }
  .device-imac {
    width: 280px;
    height: 175px;
    border-radius: 10px 10px 0 0;
  }
  .device-stand {
    width: 70px;
    height: 42px;
  }
  .custom-apps-cta {
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    margin-top: 1.5rem;
    border-width: 1.5px;
  }

  /* ─── Pricing — Full Width, Clear Hierarchy ────────────────────────── */
  .pricing-overlay {
    padding: 1.25rem 1rem;
  }

  .pricing-title {
    font-size: 2rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.375rem;
  }

  .pricing-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
  }

  .pricing-teaser {
    padding: 1.5rem 1.125rem;
    border-radius: 18px;
  }

  .teaser-main {
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .personnel-range {
    flex-direction: column;
    gap: 0.375rem;
    align-items: stretch;
  }

  .range-label {
    font-size: 0.8rem;
    text-align: center;
  }

  .main-price {
    font-size: 2.75rem;
  }

  .price-period {
    font-size: 1.125rem;
  }

  .price-detail {
    font-size: 0.875rem;
  }

  .starting-text {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .pricing-grid {
    flex-direction: column;
  }

  .pricing-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  /* ─── Integration Items — iPhone ──────────────────────────────────── */
  .integrations-title {
    font-size: 2rem;
  }
  .integrations-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .integration-group {
    padding: 1rem;
    border-radius: 16px;
  }
  .integration-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .integration-logo-icon img {
    width: 32px;
    height: 32px;
  }
  .integration-logo-item {
    width: 68px;
    gap: 0.375rem;
  }
  .integration-logo-row {
    gap: 0.875rem;
    justify-content: center;
  }
  .integration-logo-name {
    font-size: 0.6rem;
  }
  .integrations-link {
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    margin-top: 1.5rem;
    border-width: 1.5px;
  }

  /* ─── Skip Intro Button ────────────────────────────────────────────── */
  .skip-btn {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(12px, env(safe-area-inset-right));
    padding: 0.625rem 1.125rem;
    font-size: 0.8rem;
    border-radius: 10px;
    min-height: 44px;
  }

  /* ─── Testimonials — Stacked Cards ─────────────────────────────────── */
  #section8 .testimonial-layout {
    padding: 1.5rem 1rem;
  }

  #section8 h1 {
    margin-bottom: 1rem;
  }

  #section8 .testimonial-grid {
    flex-direction: column;
    gap: 0.875rem;
  }

  #section8 .testimonial-item {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 14px;
    gap: 0.5rem;
    border-width: 1.5px;
  }

  #section8 .testimonial-avatar {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    font-size: 0.9rem;
    border-width: 1px;
  }

  #section8 .testimonial-info {
    margin: 0;
    text-align: center;
  }

  #section8 .testimonial-name {
    font-size: 1rem;
    margin-bottom: 0.125rem;
  }

  #section8 .testimonial-role {
    font-size: 0.8rem;
    margin-bottom: 0.375rem;
  }

  #section8 .testimonial-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
  }

  /* ─── CTA Buttons — Full Width on Mobile ───────────────────────────── */
  .cta-button {
    width: 100%;
    text-align: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 14px;
  }

  .cta-primary {
    font-size: 1.0625rem;
    padding: 0.875rem 2rem;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 183, 255, 0.3);
  }

  /* ─── Contact Modal — Sheet Style ──────────────────────────────────── */
  .contact-content {
    width: 94%;
    max-height: 85dvh;
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
  }

  .contact-content h2 {
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
  }

  .contact-content input,
  .contact-content textarea {
    padding: 0.875rem 1rem;
    font-size: 16px; /* CRITICAL: prevents iOS Safari zoom on focus */
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
  }

  .contact-content input::placeholder,
  .contact-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
  }

  .send-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 48px;
  }

  /* ─── Contact Widget ───────────────────────────────────────────────── */
  .chat-icon {
    width: 52px;
    height: 52px;
  }
}

/* ─── Desktop explicit rules (min-width 769px) ───────────────── */
@media only screen and (min-width: 769px) {
  .nav-links-container {
    display: flex !important;
  }

  .hamburger-btn,
  .mobile-nav-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ───── Footer Styling ───── */
.footer {
  /* Liquid Glass footer */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-lg)) brightness(105%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) brightness(105%);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1), var(--glass-specular);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  filter: brightness(1.1);
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer-logo-img:hover {
  opacity: 1;
  filter: brightness(1.2) drop-shadow(0 0 12px rgba(0, 183, 255, 0.4));
}

.footer-info a {
  color: #00b7ff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-info a:hover {
  color: #ffffff;
}

@media only screen and (max-width: 430px) {
  /* ─── Footer — Safe Area + Compact ─────────────────────────────────── */
  .footer {
    font-size: 0.8rem;
    padding: 1.25rem 1rem;
    padding-bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.5rem));
  }

  .footer-logo-img {
    height: 48px;
  }

  .footer-info p {
    margin-bottom: 0.25rem;
    line-height: 1.5;
  }

  /* ─── Pricing Features — Single Column ─────────────────────────────── */
  .teaser-features {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .feature-item {
    padding: 0.75rem 0.875rem;
  }

  /* ─── Trust Badges — Horizontal Row ────────────────────────────────── */
  .trust-badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .badge-item {
    flex-direction: column;
    gap: 0.25rem;
    min-width: 80px;
  }

  .badge-icon {
    font-size: 1.5rem;
  }

  .badge-icon img {
    width: 22px;
    height: 22px;
  }

  .badge-text {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  /* ─── FAQ — iPhone ────────────────────────────────────────────────── */
  .faq-overlay {
    padding: 1.5rem 1rem;
  }
  .faq-title {
    font-size: 2rem;
    margin-bottom: 0.375rem;
  }
  .faq-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  .faq-tabs {
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    padding: 3px;
  }
  .faq-tab {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    gap: 0.375rem;
  }
  .faq-tab img {
    width: 16px;
    height: 16px;
  }
  .faq-question {
    padding: 1rem 1.25rem;
  }
  .faq-question span {
    font-size: 0.95rem;
  }
  .faq-chevron {
    width: 20px;
    height: 20px;
  }
  .faq-item.open .faq-answer {
    padding: 0 1.25rem 1rem;
  }
  .faq-answer p {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

/* ───── FAQ Section — Tabbed Accordion ────────────────────────────── */
.faq-overlay {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.faq-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
  text-align: center;
}

/* Liquid Glass Segmented Control */
.faq-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 4px;
  /* Liquid Glass tab bar container */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--glass-inner-shadow);
  flex-wrap: wrap;
  justify-content: center;
}

.faq-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-md) - 4px);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.faq-tab img {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  transition: opacity 0.25s;
}

.faq-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

.faq-tab:hover img {
  opacity: 0.8;
}

.faq-tab.active {
  /* Glass-highlighted active tab */
  background: var(--glass-bg-active);
  color: var(--color-primary);
  box-shadow: var(--glass-shadow), var(--glass-specular);
}

.faq-tab.active img {
  opacity: 1;
}

/* FAQ Panels */
.faq-panel {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-panel.active {
  display: flex;
}

/* FAQ Items — Liquid Glass Accordion */
.faq-item {
  /* Liquid Glass surface */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--glass-inner-shadow);
  transition: border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-item:hover {
  border-color: var(--glass-border-hover);
}

.faq-item.open {
  border-color: rgba(var(--color-primary-rgb), 0.25);
  box-shadow: var(--glass-shadow), var(--glass-specular);
  background: var(--glass-bg-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  gap: 1rem;
  margin: 0;
}

.faq-question span {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0;
}

.faq-answer a {
  color: #00b7ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.faq-answer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
/* Logo Breakout “Splash” */
#logo-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
}

#logo-container img {
  display: block;
  max-width: 200px;  /* adjust size as needed */
  width: 100%;
  height: auto;
}

#logo-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   PORTFOLIO SHOWCASE - iPhone Emulator Frames
   ═══════════════════════════════════════════════════════════════════════ */

.portfolio-overlay {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

.portfolio-title {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.portfolio-subtitle {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3.5rem;
  text-align: center;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* iPhone Grid Layout */
.iphone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
  justify-items: center;
  margin-bottom: 2.5rem;
}

/* Full portfolio page - 4 column grid for all items */
.iphone-grid.full-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Portfolio Item Container */
.portfolio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* iPhone Device Frame - Refined Design */
.iphone-frame {
  position: relative;
  width: 220px;
  height: 450px;
  background: linear-gradient(165deg, #3d3d3d 0%, #1a1a1a 20%, #0d0d0d 80%, #1a1a1a 100%);
  border-radius: 38px;
  padding: 10px;
  /* Liquid Glass enhanced frame */
  box-shadow:
    inset 0 0 0 1px var(--glass-border),
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(var(--color-primary-rgb), 0.08),
    var(--glass-specular);
  transition: all 0.4s var(--ease-spring);
}

.iphone-frame:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    inset 0 0 0 1px var(--glass-border-hover),
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(var(--color-primary-rgb), 0.2),
    var(--glass-specular);
}

/* iPhone Notch / Dynamic Island */
.iphone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.iphone-notch::before {
  content: '';
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #1a3a4a 0%, #0a1a2a 100%);
  border-radius: 50%;
}

.iphone-notch::after {
  content: '';
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #2a2a3a 0%, #1a1a2a 100%);
  border-radius: 50%;
}

/* iPhone Screen Container */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
}

/* Iframe inside the screen */
.iphone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  background: #111;
}

/* Screenshot-based approach (recommended for cross-origin sites) */
.iphone-screen-scroll {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  animation: autoScrollScreen 12s ease-in-out infinite;
}

.iphone-screen-scroll img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes autoScrollScreen {
  0%, 15% { transform: translateY(0); }
  45%, 55% { transform: translateY(calc(-100% + 430px)); }
  85%, 100% { transform: translateY(0); }
}

/* Beautiful gradient placeholder with app-like design */
.iphone-screen-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg,
    #0a1628 0%,
    #0d1f3c 25%,
    #0a1a2e 50%,
    #061220 75%,
    #040a12 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
}

/* App icon style for placeholder */
.iphone-screen-placeholder .loading-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, rgba(0, 183, 255, 0.2), rgba(0, 119, 204, 0.1));
  border: 1px solid rgba(0, 183, 255, 0.3);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(0, 183, 255, 0.15);
}

.iphone-screen-placeholder .loading-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Fake status bar */
.iphone-screen-placeholder::before {
  content: '9:41';
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.02em;
}

/* Fake home indicator */
.iphone-screen-placeholder::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

/* Screen overlay gradient for depth */
.iphone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 8%,
    transparent 92%,
    rgba(0, 0, 0, 0.1) 100%
  );
  border-radius: 28px;
}

/* Project Info Below Device */
.project-info {
  text-align: center;
  margin-top: 1.25rem;
  padding: 0 0.5rem;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  font-weight: 400;
}

/* View All Button */
.portfolio-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Side Buttons (Volume, Power) - More subtle */
.iphone-frame::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 80px;
  width: 2px;
  height: 22px;
  background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
  border-radius: 2px 0 0 2px;
  box-shadow:
    0 28px 0 0 #333,
    0 56px 0 0 #333;
}

.iphone-frame::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 100px;
  width: 2px;
  height: 45px;
  background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
  border-radius: 0 2px 2px 0;
}

/* ─── Portfolio Responsive ─────────────────────────────────────────── */

/* Large tablet / small desktop: 2 columns */
@media only screen and (max-width: 1200px) {
  .iphone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .iphone-grid.full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .iphone-frame {
    width: 200px;
    height: 410px;
    border-radius: 34px;
  }

  .iphone-screen {
    border-radius: 26px;
  }

  .iphone-notch {
    width: 70px;
    height: 20px;
    top: 12px;
    border-radius: 12px;
  }

  .iphone-screen-placeholder .loading-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
    border-radius: 15px;
  }
}

/* Mobile: Premium iOS-style vertical layout */
@media only screen and (max-width: 768px) {
  .portfolio-overlay {
    padding: 2rem 1.5rem;
  }

  .portfolio-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
  }

  .portfolio-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }

  .iphone-grid,
  .iphone-grid.full-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .iphone-frame {
    width: 280px;
    height: 570px;
    border-radius: 44px;
    padding: 12px;
  }

  .iphone-screen {
    border-radius: 34px;
  }

  .iphone-screen::after {
    border-radius: 34px;
  }

  .iphone-notch {
    width: 90px;
    height: 24px;
    top: 15px;
    border-radius: 14px;
  }

  .iphone-screen-placeholder .loading-icon {
    width: 80px;
    height: 80px;
    font-size: 2.25rem;
    border-radius: 20px;
  }

  .iphone-screen-placeholder .loading-text {
    font-size: 1rem;
  }

  .iphone-screen-placeholder::before {
    top: 48px;
    font-size: 0.8rem;
  }

  .iphone-screen-placeholder::after {
    width: 120px;
    height: 5px;
    bottom: 10px;
  }

  .project-name {
    font-size: 1.25rem;
  }

  .project-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
  }

  .portfolio-cta {
    margin-top: 2rem;
  }
}

/* Small phones — Premium showcase, show top 2 projects only */
@media only screen and (max-width: 430px) {
  .portfolio-overlay {
    padding: 1.25rem 1rem;
  }

  .portfolio-title {
    font-size: 1.875rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.375rem;
  }

  .portfolio-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .iphone-grid {
    gap: 2rem;
  }

  /* Show only first 2 portfolio items on phone — keeps section compact */
  .iphone-grid .portfolio-item:nth-child(n+3) {
    display: none;
  }

  .iphone-frame {
    width: 240px;
    height: 490px;
    border-radius: 38px;
    padding: 10px;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(0, 0, 0, 0.7),
      0 16px 32px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(0, 183, 255, 0.06);
  }

  .iphone-frame:hover {
    transform: none; /* Disable hover on touch */
  }

  .iphone-screen {
    border-radius: 28px;
  }

  .iphone-screen::after {
    border-radius: 28px;
  }

  .iphone-notch {
    width: 76px;
    height: 20px;
    top: 12px;
    border-radius: 12px;
  }

  .iphone-screen-placeholder .loading-icon {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
    border-radius: 16px;
  }

  .iphone-screen-placeholder .loading-text {
    font-size: 0.85rem;
  }

  .iphone-screen-placeholder::before {
    top: 38px;
    font-size: 0.65rem;
  }

  .iphone-screen-placeholder::after {
    width: 90px;
    height: 4px;
    bottom: 8px;
  }

  .project-info {
    margin-top: 1rem;
  }

  .project-name {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
  }

  .project-desc {
    font-size: 0.825rem;
  }

  .portfolio-cta {
    margin-top: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   SMART HOME & AUTOMATION SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.smarthome-overlay {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.smarthome-title {
  font-size: 3.5rem;
  color: #00b7ff;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.smarthome-subtitle {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Smart Home Card Grid */
.smarthome-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
}

.smarthome-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.25rem !important;
  text-align: center;
  /* Liquid Glass surface */
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(var(--blur-md)) brightness(108%) saturate(130%);
  -webkit-backdrop-filter: blur(var(--blur-md)) brightness(108%) saturate(130%);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  transition: all var(--duration-normal) var(--ease-spring);
}

.smarthome-card:hover {
  background: var(--glass-bg-hover) !important;
  border-color: var(--glass-border-hover) !important;
  box-shadow: var(--glass-shadow-hover), var(--glass-specular);
  transform: translateY(-4px);
}

.smarthome-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.smarthome-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.smarthome-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Tags inside cards */
.smarthome-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.sh-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  /* Liquid Glass pill tag */
  background: var(--glass-bg);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-primary);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--glass-inner-shadow);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Integration logos strip */
.smarthome-integrations {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  /* Liquid Glass container */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.smarthome-integrations .integrations-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
  font-weight: 600;
}

.smarthome-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sh-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.sh-logo-item:hover {
  transform: translateY(-3px);
}

.sh-logo-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Liquid Glass mini tile */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  transition: all 0.2s var(--ease-spring);
}

.sh-logo-item:hover .sh-logo-icon {
  border-color: var(--glass-border-active);
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover), 0 0 16px rgba(var(--color-primary-rgb), 0.15);
}

.sh-logo-name {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ─── Smart Home Responsive ──────────────────────────────────────────── */

@media only screen and (max-width: 1024px) {
  .smarthome-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .smarthome-title {
    font-size: 2.5rem;
  }
}

@media only screen and (max-width: 768px) {
  .smarthome-overlay {
    padding: 1.5rem 1rem;
  }

  .smarthome-title {
    font-size: 2rem;
  }

  .smarthome-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .smarthome-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  .smarthome-card {
    padding: 1.25rem 1rem !important;
  }

  .smarthome-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .smarthome-card h3 {
    font-size: 0.95rem;
  }

  .smarthome-card p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .sh-tag {
    font-size: 0.55rem;
    padding: 0.2rem 0.5rem;
  }

  .smarthome-integrations {
    margin-top: 1.25rem;
    padding: 1rem;
  }

  .smarthome-logos {
    gap: 0.75rem;
  }

  .sh-logo-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    border-radius: 12px;
  }

  .sh-logo-icon img {
    width: 26px;
    height: 26px;
  }

  .sh-logo-name {
    font-size: 0.55rem;
  }
}

@media only screen and (max-width: 430px) {
  /* ─── Smart Home — Compact 2-Col with Icon Focus ───────────────────── */
  .smarthome-overlay {
    padding: 1.25rem 0.875rem;
  }

  .smarthome-title {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
  }

  .smarthome-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .smarthome-grid {
    gap: 0.625rem !important;
  }

  .smarthome-card {
    padding: 1rem 0.75rem !important;
    border-radius: 12px;
  }

  .smarthome-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.375rem;
  }

  .smarthome-card-icon img {
    width: 28px;
    height: 28px;
  }

  .smarthome-card h3 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
  }

  .smarthome-card p {
    display: none; /* Hide descriptions in compact 2-col layout */
  }

  .smarthome-tags {
    gap: 0.25rem;
  }

  .sh-tag {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }

  /* ─── Integration Logos — Compact Grid ─────────────────────────────── */
  .smarthome-integrations {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
  }

  .smarthome-integrations .integrations-label {
    font-size: 0.6rem;
    margin-bottom: 0.625rem;
  }

  .smarthome-logos {
    gap: 0.375rem;
  }

  .sh-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .sh-logo-icon img {
    width: 20px;
    height: 20px;
  }

  .sh-logo-name {
    font-size: 0.5rem;
  }

  /* ─── Hero Brand Strip ─────────────────────────────────────────────── */
  .hero-brands {
    gap: 0.875rem;
    margin-top: 1rem;
    padding: 0.625rem 0.875rem;
    border-radius: 12px;
  }

  .hero-brands-label {
    font-size: 0.5rem;
    margin-bottom: -0.25rem;
  }

  .hero-brand-item img {
    width: 24px;
    height: 24px;
  }

  .hero-brand-item span {
    display: block;
    font-size: 0.45rem;
  }
}

/* ===================================================================
   SVG ICON IMAGE STYLES (replaces emojis with real brand logos)
   =================================================================== */

/* Nav icon images */
.nav-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.mobile-nav-menu .nav-icon img {
  width: 16px;
  height: 16px;
}

/* Product card heading inline icons */
.product-card h3 img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: -3px;
  margin-right: 4px;
}

/* Smart Home card icons */
.smarthome-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Smart Home integration logos */
.sh-logo-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Portfolio iPhone loading icons */
.loading-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Pricing feature icons */
.feature-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Trust badge icons */
.badge-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Contact link icons */
.contact-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Contact widget icon */
.chat-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* About section inline logos */
.about-inline-logo {
  width: 14px;
  height: 14px;
  vertical-align: -1px;
  margin-right: 2px;
  object-fit: contain;
}

/* ===================================================================
   HERO BRAND STRIP - "Technologies We Use"
   =================================================================== */

.hero-brands {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-brands-label {
  width: 100%;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: -0.5rem;
}

.hero-brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.hero-brand-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-brand-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.hero-brand-item span {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

@media only screen and (max-width: 768px) {
  .hero-brands {
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
  }

  .hero-brand-item img {
    width: 28px;
    height: 28px;
  }

  .hero-brand-item span {
    display: block;
    font-size: 0.5rem;
  }

  .smarthome-card-icon img {
    width: 32px;
    height: 32px;
  }

  .sh-logo-icon img {
    width: 20px;
    height: 20px;
  }

  .loading-icon img {
    width: 28px;
    height: 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   iPHONE SE & SMALL DEVICES (max-width 375px)
   Targets: iPhone SE (3rd gen), iPhone 13 mini, older 375px devices
   Tighter spacing, smaller elements, optimized for 4.7" screens
   ═══════════════════════════════════════════════════════════════════════ */
@media only screen and (max-width: 375px) {

  /* ─── Tighter Typography ───────────────────────────────────────────── */
  .overlay-content h1 {
    font-size: 1.75rem;
    letter-spacing: -0.04em;
  }

  .overlay-content p {
    font-size: 0.9rem;
  }

  .overlay-content {
    padding: 1rem 1rem;
  }

  /* ─── Top Nav — More compact ───────────────────────────────────────── */
  .top-nav {
    padding: 0.375rem 0.75rem;
    padding-top: max(0.375rem, env(safe-area-inset-top));
  }

  .nav-logo-img {
    height: 28px;
  }

  /* ─── Nav Dots — Minimal ───────────────────────────────────────────── */
  .nav-dots {
    display: none; /* Hide on very small screens — too cramped */
  }

  /* ─── Hero Section ─────────────────────────────────────────────────── */
  .hero-brands {
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    margin-top: 0.75rem;
  }

  .hero-brand-item img {
    width: 20px;
    height: 20px;
  }

  .hero-brand-item span {
    display: block;
    font-size: 0.4rem;
  }

  .hero-brands-label {
    font-size: 0.45rem;
  }

  /* ─── Product Cards ────────────────────────────────────────────────── */
  .product-card {
    padding: 1rem 0.875rem;
  }

  .product-card h3 {
    font-size: 0.95rem;
  }

  .product-card p {
    font-size: 0.825rem;
  }

  /* ─── Service Cards — iPhone SE Compact ─────────────────────────────── */
  .products-title {
    font-size: 1.5rem;
  }

  .products-subtitle {
    font-size: 0.8rem;
  }

  .services-grid {
    gap: 0.625rem;
  }

  .service-card-header {
    padding: 0.875rem 0.875rem 0.375rem;
  }

  .service-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.25rem;
  }

  .service-card-icon img {
    width: 24px;
    height: 24px;
  }

  .service-card-title {
    font-size: 0.95rem;
  }

  .service-card-tagline {
    font-size: 0.675rem;
  }

  .service-card-features {
    padding: 0 0.875rem;
  }

  .service-card-features li {
    padding: 0.25rem 0;
    font-size: 0.725rem;
  }

  .service-card-features li img {
    width: 14px;
    height: 14px;
  }

  .service-card-footer {
    padding: 0.5rem 0.875rem 0.875rem;
  }

  .service-card-price {
    font-size: 0.65rem;
  }

  .service-card-btn {
    padding: 0.5rem 1rem;
    font-size: 0.775rem;
    min-height: 40px;
  }

  /* ─── About Section ────────────────────────────────────────────────── */
  .founder-photo {
    max-width: 120px;
  }

  .about-title {
    font-size: 1.625rem;
  }

  .about-right p {
    font-size: 0.875rem;
  }

  .about-bullets li {
    font-size: 0.85rem;
  }

  /* ─── Pricing ──────────────────────────────────────────────────────── */
  .pricing-title {
    font-size: 1.75rem;
  }

  .main-price {
    font-size: 2.5rem;
  }

  .pricing-teaser {
    padding: 1.25rem 1rem;
  }

  .feature-item {
    padding: 0.625rem 0.75rem;
  }

  .feature-text {
    font-size: 0.825rem;
  }

  /* ─── Smart Home ───────────────────────────────────────────────────── */
  .smarthome-title {
    font-size: 1.5rem;
  }

  .smarthome-card {
    padding: 0.75rem 0.625rem !important;
  }

  .smarthome-card h3 {
    font-size: 0.8rem;
  }

  .sh-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .sh-logo-icon img {
    width: 18px;
    height: 18px;
  }

  .sh-logo-name {
    font-size: 0.4rem;
  }

  /* ─── Device Showcase — iPhone SE ─────────────────────────────────── */
  .device-showcase {
    max-width: 300px;
    gap: 2rem;
  }
  .device-iphone {
    width: 110px;
    height: 224px;
    border-radius: 22px;
  }
  .device-notch {
    width: 38px;
    height: 14px;
    top: 8px;
  }
  .device-iphone .device-screen {
    border-radius: 14px;
  }
  .device-ipad {
    width: 230px;
    height: 162px;
  }
  .device-imac {
    width: 250px;
    height: 156px;
  }
  .device-stand {
    width: 64px;
    height: 38px;
  }
  .device-info h3 {
    font-size: 0.95rem;
  }
  .device-info p {
    font-size: 0.8rem;
  }
  .device-logos img {
    width: 18px;
    height: 18px;
  }
  .custom-apps-cta {
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
  }

  /* ─── Integration Items — iPhone SE ───────────────────────────────── */
  .integration-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .integration-logo-icon img {
    width: 28px;
    height: 28px;
  }
  .integration-logo-item {
    width: 58px;
    gap: 0.25rem;
  }
  .integration-logo-row {
    gap: 0.625rem;
    justify-content: center;
  }
  .integration-logo-name {
    font-size: 0.5rem;
  }
  .integrations-link {
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
  }

  /* ─── Portfolio — Single Compact Frame ──────────────────────────────── */
  .portfolio-title {
    font-size: 1.625rem;
  }

  .iphone-frame {
    width: 210px;
    height: 430px;
    border-radius: 34px;
    padding: 9px;
  }

  .iphone-screen {
    border-radius: 26px;
  }

  .iphone-screen::after {
    border-radius: 26px;
  }

  .iphone-notch {
    width: 68px;
    height: 18px;
    top: 11px;
    border-radius: 11px;
  }

  .iphone-screen-placeholder .loading-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    border-radius: 14px;
  }

  /* ─── Testimonials ─────────────────────────────────────────────────── */
  #section8 .testimonial-item {
    padding: 1rem 0.875rem;
  }

  #section8 .testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  #section8 .testimonial-name {
    font-size: 0.9rem;
  }

  #section8 .testimonial-text {
    font-size: 0.825rem;
  }

  /* ─── FAQ — iPhone SE ──────────────────────────────────────────────── */
  .faq-title {
    font-size: 1.625rem;
  }
  .faq-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  .faq-tabs {
    gap: 0.25rem;
    padding: 3px;
  }
  .faq-tab {
    padding: 0.4rem 0.625rem;
    font-size: 0.7rem;
    gap: 0.25rem;
  }
  .faq-tab span {
    display: none;
  }
  .faq-tab img {
    width: 18px;
    height: 18px;
  }
  .faq-question {
    padding: 0.875rem 1rem;
  }
  .faq-question span {
    font-size: 0.875rem;
  }
  .faq-chevron {
    width: 18px;
    height: 18px;
  }
  .faq-item.open .faq-answer {
    padding: 0 1rem 0.875rem;
  }
  .faq-answer p {
    font-size: 0.8rem;
  }

  /* ─── Footer ───────────────────────────────────────────────────────── */
  .footer {
    font-size: 0.75rem;
    padding: 1rem 0.75rem;
  }

  .footer-logo-img {
    height: 40px;
  }

  /* ─── Contact Modal ────────────────────────────────────────────────── */
  .contact-content {
    width: 96%;
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }

  /* ─── Contact Widget ───────────────────────────────────────────────── */
  .contact-widget {
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
  }

  .chat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .chat-icon img {
    width: 20px;
    height: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   PERFORMANCE — GPU Hints (Phase 19)
   ═══════════════════════════════════════════════════════════════════════ */
.top-nav,
.service-card,
.product-card,
.smarthome-card,
.pricing-card,
.testimonial-item,
.iphone-frame,
.contact-modal,
.splash-screen {
  will-change: transform;
}

/* Remove will-change after animation settles (override via JS if needed) */
@media (prefers-reduced-motion: reduce) {
  .top-nav,
  .service-card,
  .product-card,
  .smarthome-card,
  .pricing-card,
  .testimonial-item,
  .iphone-frame,
  .contact-modal,
  .splash-screen {
    will-change: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   BROWSER FALLBACKS — No SVG Filter Support (Phase 20)
   ═══════════════════════════════════════════════════════════════════════ */
.no-svg-filter .lg-surface::after {
  backdrop-filter: blur(var(--blur-md)) brightness(110%) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-md)) brightness(110%) saturate(140%);
}

/* ═══════════════════════════════════════════════════════════════════════
   iPHONE TOUCH REFINEMENTS — Liquid Glass Active States (Phase 18)
   Apple's signature: subtle scale-down on press, spring-back on release
   ═══════════════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Glass card active press states */
  .product-card:active,
  .service-card:active,
  .smarthome-card:active,
  .faq-item:active,
  .pricing-card:active,
  .testimonial-item:active {
    transform: scale(0.97);
    background: var(--glass-bg-active);
    border-color: var(--glass-border-active);
    transition: transform 0.1s ease, background 0.1s ease, border-color 0.1s ease;
  }

  /* Glass button / pill active states */
  .cta-button:active,
  .demo-button:active,
  .service-card-btn:active,
  .integrations-link:active,
  .custom-apps-cta:active,
  .send-btn:active,
  .nav-item:active,
  .faq-tab:active {
    transform: scale(0.96);
    opacity: 0.9;
    transition: all 0.1s ease;
  }

  /* Icon button active states */
  .hamburger-btn:active,
  .mobile-nav-close:active,
  .chat-icon:active {
    transform: scale(0.92);
    background: var(--glass-bg-active);
    transition: transform 0.1s ease;
  }

  /* Remove all hover-based transforms on touch devices */
  .product-card:hover,
  .service-card:hover,
  .smarthome-card:hover,
  .faq-item:hover,
  .pricing-card:hover,
  .iphone-frame:hover,
  .sh-logo-item:hover,
  .testimonial-item:hover,
  .integration-logo-item:hover {
    transform: none;
  }
  .integration-logo-item:hover .integration-logo-icon {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    background: rgba(0, 0, 0, 0.45);
  }

  /* Smoother momentum scrolling */
  .snap-container {
    -webkit-overflow-scrolling: touch;
  }
}

