/* ============================================================
   QalamX Labs — Light Theme Premium Styles
   Design Spec: Clean, Modern, 3D-inspired, Apple/Stripe quality
   ============================================================ */

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

:root {
  /* Light Theme Palette (from design spec) */
  --bg:           #FAFAFA;
  --bg-white:     rgba(253,253,253,0.85);
  --surface:      #FFFFFF;
  --border:       #E6EAF0;
  --border-2:     #D1D9E6;

  /* Brand Gradients */
  --grad-start:   #0FA8A0;
  --grad-end:     #02DB4F;
  --grad:         linear-gradient(135deg, #0FA8A0 0%, #06B6C4 50%, #02DB4F 100%);
  --grad-2:       linear-gradient(135deg, #02DB4F 0%, #06B6C4 50%, #0FA8A0 100%);
  --grad-soft:    linear-gradient(135deg, rgba(15,168,160,0.08), rgba(2,219,79,0.05));

  /* Accent Colors */
  --cyan:   #06B6C4;
  --purple: #6B5CF6;
  --amber:  #F59E0B;
  --green:  #02DB4F;
  --teal:   #0FA8A0;
  --blue:   #3B82F6;

  /* Text */
  --text-primary:   #111827;
  --text-secondary: #6B7280;
  --text-muted:     #9CA3AF;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.12);
  --shadow-grad: 0 12px 40px rgba(15,168,160,0.25), 0 4px 12px rgba(2,219,79,0.1);

  /* Component specific */
  --bg-cta-inner: linear-gradient(135deg, #f0fffe 0%, #f0fff6 50%, #f5f0ff 100%);
  --footer-bg: #111827;

  /* Typography */
  --ff-head: 'Space Grotesk', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;

  /* Easing */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);

  /* Spacing */
  --container: 1200px;
  --section-v: 7rem;
}

[data-theme="dark"] {
  --bg:           #0B0F19;
  --bg-white:     rgba(17, 24, 39, 0.75);
  --surface:      #111827;
  --border:       rgba(255, 255, 255, 0.08);
  --border-2:     rgba(255, 255, 255, 0.15);
  --text-primary:   #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted:     #9CA3AF;
  
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.7);

  --bg-cta-inner: linear-gradient(135deg, rgba(15,168,160,0.04) 0%, rgba(2,219,79,0.04) 50%, rgba(107,92,246,0.04) 100%);
  --footer-bg: #070A11;
}

[data-theme="sunset"] {
  --bg:           #1C1018;
  --bg-white:     rgba(38, 20, 32, 0.75);
  --surface:      #2A1625;
  --border:       rgba(255, 255, 255, 0.08);
  --border-2:     rgba(255, 255, 255, 0.15);
  --text-primary:   #FFF1F2;
  --text-secondary: #FECDD3;
  --text-muted:     #FDA4AF;

  --grad-start:   #F43F5E;
  --grad-end:     #F59E0B;
  --grad:         linear-gradient(135deg, #F43F5E 0%, #F97316 50%, #F59E0B 100%);
  --grad-2:       linear-gradient(135deg, #F59E0B 0%, #F97316 50%, #F43F5E 100%);
  --grad-soft:    linear-gradient(135deg, rgba(244,63,94,0.12), rgba(245,158,11,0.1));
  
  --teal:         #F43F5E;
  --cyan:         #F97316;
  
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.7);
  --shadow-grad: 0 12px 40px rgba(244,63,94,0.25), 0 4px 12px rgba(245,158,11,0.1);

  --bg-cta-inner: linear-gradient(135deg, rgba(244,63,94,0.05) 0%, rgba(249,115,22,0.05) 50%, rgba(245,158,11,0.05) 100%);
  --footer-bg: #120A0F;
}

/* Scrollbar */
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--teal) #e6eaf0; background: var(--bg); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--border); }
::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 3px; }

body {
  background: transparent;
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: color 0.5s var(--ease-smooth);
}
html {
  transition: background-color 0.5s var(--ease-smooth);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ─── Scroll Progress ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  width: 0; background: var(--grad);
  z-index: 10000; transition: width 0.1s;
  box-shadow: 0 0 10px rgba(15,168,160,0.4);
}

/* ─── Loader ─── */
#loader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
#loader.fade-out { opacity: 0; pointer-events: none; transform: scale(0.97); }
.loader-inner { text-align: center; }
.loader-q-wrap { width: 100px; height: 100px; margin: 0 auto 1.5rem; }
.loader-q-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(11,165,160,0.35));
  animation: qBoldIn 1.2s cubic-bezier(0.34,1.56,0.64,1) forwards;
  opacity: 0;
}
@keyframes qBoldIn {
  from { transform: scale(0.5) rotate(-30deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0deg);   opacity: 1; }
}
.loader-brand { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1.25rem; }
.loader-brand span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.loader-bar-wrap { width: 180px; height: 2px; background: var(--border); border-radius: 2px; margin: 0 auto; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--grad); animation: loadFill 1.8s ease forwards; border-radius: 2px; }
@keyframes loadFill { from { width: 0; } to { width: 100%; } }

/* ─── Custom Cursor (canvas-rendered — see app.js initCursor) ─── */
#cursor { display: none; }
/* cursor:none injected by JS on pointer devices — see noCursorStyle in initCursor */


/* ─── Container ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section-pad { padding: var(--section-v) 0; }

/* ─── Gradient Text ─── */
.grad-text { 
  background: var(--grad); 
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; 
  font-style: normal; 
  animation: shimmerText 5s ease-in-out infinite alternate; 
}
.grad-text2 { 
  background: var(--grad-2); 
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; 
  font-style: normal; 
  animation: shimmerText 5s ease-in-out infinite alternate; 
}

@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.grad-bg { background: var(--grad); }

/* ─── Reveal Animation ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Section Common ─── */
.section-head { margin-bottom: 4rem; }
.section-head.center { text-align: center; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--ff-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); background: rgba(15,168,160,0.08);
  border: 1px solid rgba(15,168,160,0.2);
  padding: 0.35rem 0.9rem; border-radius: 100px;
  margin-bottom: 1rem;
}
.section-h2 { font-family: var(--ff-head); font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 1rem; }
.section-p { font-size: 1.05rem; color: var(--text-secondary); max-width: 580px; line-height: 1.8; }
.section-head.center .section-p { margin: 0 auto; }

/* ─── Buttons ─── */
.btn-gradient {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--grad); color: #fff;
  font-family: var(--ff-body); font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.85rem; border-radius: 12px;
  text-decoration: none; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-grad);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, opacity 0.3s;
}
.btn-gradient:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 48px rgba(15,168,160,0.35); }
.btn-gradient:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text-primary); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.85rem; border-radius: 12px;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--border-2); background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-spring);
}
.btn-ghost:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.play-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }

.btn-wide { width: 100%; justify-content: center; }

/* ─── Glass Light Card ─── */
.glass-light {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring);
}
.glass-light:hover { box-shadow: var(--shadow-lg); border-color: rgba(15,168,160,0.2); }

/* ─── Tilt Card ─── */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ═══════════════════════════════
   NAVIGATION
═══════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: var(--bg-white);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  padding: 0.75rem 0;
}
.nav-wrap { max-width: var(--container); margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 2rem; }

.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; transition: opacity 0.2s; }
.nav-logo:hover { opacity: 0.8; }
.logo-q-img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(11,165,160,0.4)); }
.logo-wordmark { display: flex; align-items: baseline; font-family: var(--ff-head); font-weight: 800; font-size: 1.1rem; }
.logo-q-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-labs { color: var(--text-primary); }
.logo-dot { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; list-style: none; margin: 0 auto; gap: 0.15rem; }
.nav-a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  padding: 0.45rem 0.85rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  width: 0; height: 1.5px; background: var(--grad);
  transition: width 0.3s var(--ease-spring), left 0.3s var(--ease-spring);
  border-radius: 1px;
}
.nav-a:hover { color: var(--text-primary); background: rgba(15,168,160,0.05); }
.nav-a:hover::after, .nav-a.active::after { width: 60%; left: 20%; }
.nav-a.active { color: var(--text-primary); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-primary);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.theme-toggle:hover {
  background: rgba(15,168,160,0.05);
  border-color: var(--teal);
  color: var(--teal);
}
.theme-icon { width: 18px; height: 18px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.35rem; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text-primary); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════
   HERO SECTION
═══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 9rem 0 4rem;
}

#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
  animation: orbPulse 10s ease-in-out infinite alternate;
}
.orb-tl { width: 700px; height: 700px; background: radial-gradient(circle, rgba(15,168,160,0.1) 0%, transparent 65%); top: -200px; right: -100px; }
.orb-br { width: 500px; height: 500px; background: radial-gradient(circle, rgba(2,219,79,0.07) 0%, transparent 65%); bottom: -150px; left: -100px; animation-delay: -5s; }
.orb-mid { width: 400px; height: 400px; background: radial-gradient(circle, rgba(107,92,246,0.05) 0%, transparent 65%); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -3s; }
@keyframes orbPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.15); opacity: 1; } }

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(15,168,160,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(15,168,160,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
}

.hero-inner {
  position: relative; z-index: 10;
  max-width: var(--container); margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--bg-white); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
  padding: 0.4rem 0.9rem; border-radius: 100px;
  box-shadow: var(--shadow-sm); margin-bottom: 1.75rem;
}
.badge-pulse { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: bpulse 2s ease-in-out infinite; }
@keyframes bpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(2,219,79,0.5); } 50% { box-shadow: 0 0 0 6px rgba(2,219,79,0); } }

.hero-h1 {
  font-family: var(--ff-head);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.04em;
  color: var(--text-primary); margin-bottom: 1.5rem;
}

.hero-p { font-size: 1.1rem; color: var(--text-secondary); max-width: 500px; line-height: 1.8; margin-bottom: 2.25rem; }

.hero-btns { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-social-proof { display: flex; align-items: center; gap: 0.9rem; }
.sp-avatars { display: flex; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: white; font-family: var(--ff-head); font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid white; margin-left: -8px; }
.av:first-child { margin-left: 0; }
.av1 { background: linear-gradient(135deg, #0FA8A0, #06B6C4); }
.av2 { background: linear-gradient(135deg, #6B5CF6, #06B6C4); }
.av3 { background: linear-gradient(135deg, #02DB4F, #0FA8A0); }
.av4 { background: var(--border-2); color: var(--text-secondary); }
.hero-social-proof p { font-size: 0.85rem; color: var(--text-secondary); }
.hero-social-proof strong { color: var(--text-primary); }

/* 3D Q Visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.q3d-stage { position: relative; width: 460px; height: 460px; display: flex; align-items: center; justify-content: center; }

.q3d-shadow { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 200px; height: 40px; background: radial-gradient(ellipse, rgba(15,168,160,0.3) 0%, transparent 70%); filter: blur(20px); animation: shadowPulse 3s ease-in-out infinite; }
@keyframes shadowPulse { 0%,100% { transform: translateX(-50%) scale(1); opacity: 0.8; } 50% { transform: translateX(-50%) scale(1.15); opacity: 0.5; } }

.q3d-orb-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: ringRotate 12s linear infinite;
}
.ring1 { width: 380px; height: 380px; border-color: rgba(15,168,160,0.12); }
.ring2 { width: 310px; height: 310px; border-color: rgba(2,219,79,0.1); animation-direction: reverse; animation-duration: 18s; }
.ring3 { width: 430px; height: 430px; border-color: rgba(107,92,246,0.07); animation-duration: 25s; }
@keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.q3d-img {
  width: 310px; height: 310px; position: relative; z-index: 5; object-fit: contain;
  animation: qFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 24px 56px rgba(11,165,160,0.28)) drop-shadow(0 6px 18px rgba(82,224,80,0.15));
}
@keyframes qFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 33% { transform: translateY(-16px) rotate(1.5deg); } 66% { transform: translateY(-8px) rotate(-1deg); } }

/* Particles around Q */
.q-particle {
  position: absolute; border-radius: 50%;
  background: var(--grad); z-index: 4;
  animation: pFloat 4s ease-in-out infinite;
}
.p1 { width: 10px; height: 10px; top: 15%; left: 10%; opacity: 0.7; animation-delay: 0s; }
.p2 { width: 6px; height: 6px; top: 30%; right: 8%; opacity: 0.5; animation-delay: -0.8s; }
.p3 { width: 8px; height: 8px; bottom: 25%; left: 5%; opacity: 0.6; animation-delay: -1.6s; }
.p4 { width: 5px; height: 5px; bottom: 15%; right: 15%; opacity: 0.4; animation-delay: -2.4s; }
.p5 { width: 12px; height: 12px; top: 60%; left: 18%; opacity: 0.5; animation-delay: -3.2s; }
.p6 { width: 4px; height: 4px; top: 10%; right: 20%; opacity: 0.6; animation-delay: -1s; background: linear-gradient(135deg, #6B5CF6, #06B6C4); }
@keyframes pFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-14px) scale(1.2); } }

/* Floating chips */
.q-chip {
  position: absolute; z-index: 6;
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--bg-white); border: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 600; color: var(--text-primary);
  padding: 0.35rem 0.7rem; border-radius: 100px;
  box-shadow: var(--shadow-md);
  animation: chipFloat 5s ease-in-out infinite;
  white-space: nowrap;
}
.chip1 { top: 12%; right: 2%; animation-delay: 0s; }
.chip2 { bottom: 28%; left: 0%; animation-delay: -1.5s; }
.chip3 { top: 55%; right: -2%; animation-delay: -3s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 10; animation: shintFloat 2.5s ease-in-out infinite;
}
.scroll-mouse { width: 22px; height: 34px; border: 1.5px solid var(--border-2); border-radius: 12px; display: flex; justify-content: center; padding-top: 5px; }
.scroll-wheel { width: 3px; height: 7px; background: var(--teal); border-radius: 3px; animation: wheelScroll 1.5s ease-in-out infinite; }
@keyframes wheelScroll { 0%,100% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes shintFloat { 0%,100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* ═══════════════════════════════
   TRUSTED BY
═══════════════════════════════ */
.trusted-section { padding: 3rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-white); }
.trusted-label { display: block; text-align: center; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem; }
.logos-track-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent); }
.logos-track { display: flex; gap: 2rem; animation: logoScroll 25s linear infinite; width: max-content; }
.logo-pill { flex-shrink: 0; font-family: var(--ff-head); font-weight: 700; font-size: 0.95rem; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); padding: 0.6rem 1.5rem; border-radius: 10px; letter-spacing: -0.01em; }
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════════
   WHAT WE BUILD
═══════════════════════════════ */
.build-section { background: var(--bg); }
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.build-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  cursor: pointer; transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
}
.build-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-xl); border-color: rgba(15,168,160,0.2); }
.card-large { grid-column: span 2; }

.bc-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: transform 0.3s var(--ease-spring); }
.build-card:hover .bc-icon { transform: rotate(-8deg) scale(1.1); }
.build-card h3 { font-family: var(--ff-head); font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; }
.build-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.1rem; }
.bc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bc-tags span { font-family: var(--ff-mono); font-size: 0.68rem; color: var(--teal); background: rgba(15,168,160,0.06); border: 1px solid rgba(15,168,160,0.15); padding: 0.2rem 0.55rem; border-radius: 6px; }
.bc-arrow { position: absolute; bottom: 1.5rem; right: 1.5rem; width: 32px; height: 32px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--text-muted); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring); }
.build-card:hover .bc-arrow { background: var(--teal); color: white; border-color: var(--teal); transform: rotate(-45deg); }
.bc-decoration { position: absolute; bottom: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--grad-soft); }
.bc-decoration2 { background: linear-gradient(135deg, rgba(107,92,246,0.05), rgba(6,182,196,0.05)); }

/* ═══════════════════════════════
   ABOUT
═══════════════════════════════ */
.about-section { background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.about-q-wrap { position: relative; width: 380px; height: 380px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.about-q-img { width: 280px; height: 280px; object-fit: contain; animation: qFloat 5s ease-in-out infinite; filter: drop-shadow(0 16px 48px rgba(15,168,160,0.2)); }
.about-stat-float { position: absolute; background: rgba(253,253,253,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 14px; padding: 0.85rem 1.1rem; box-shadow: var(--shadow-md); text-align: center; }
.about-stat-float strong { display: block; font-family: var(--ff-head); font-size: 1.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-stat-float span { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.f1 { top: 5%; right: 0%; animation: chipFloat 5s ease-in-out infinite; }
.f2 { bottom: 15%; left: 0%; animation: chipFloat 5s ease-in-out infinite -1.5s; }
.f3 { top: 45%; right: -5%; animation: chipFloat 5s ease-in-out infinite -3s; }

.about-content .section-tag { margin-bottom: 0.75rem; }
.about-p { color: var(--text-secondary); line-height: 1.85; margin-bottom: 1rem; font-size: 1.02rem; }

.mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.75rem 0; }
.mv-box { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; }
.mv-box:hover { border-color: rgba(15,168,160,0.2); }
.mv-icon { width: 36px; height: 36px; background: var(--bg-white); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; border: 1px solid var(--border); }
.mv-box strong { display: block; font-family: var(--ff-head); font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.35rem; }
.mv-box p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

.values-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.val-chip { display: flex; align-items: center; gap: 0.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; padding: 0.4rem 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); transition: border-color 0.2s, background 0.2s; }
.val-chip:hover { border-color: rgba(15,168,160,0.3); background: rgba(15,168,160,0.04); }
.val-chip span { font-size: 0.9rem; }

/* ═══════════════════════════════
   PRODUCTS
═══════════════════════════════ */
.products-section { background: var(--bg); }

.prod-filters { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.pf-btn { background: var(--bg-white); border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; padding: 0.55rem 1.2rem; border-radius: 100px; cursor: pointer; transition: all 0.2s; }
.pf-btn:hover { border-color: var(--teal); color: var(--teal); }
.pf-btn.active { background: var(--grad); color: white; border-color: transparent; box-shadow: var(--shadow-grad); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.prod-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; cursor: pointer; transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: rgba(15,168,160,0.2); }
.prod-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.1rem; }

.prod-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease-spring); }
.prod-card:hover .prod-icon { transform: scale(1.12) rotate(5deg); }
.pi-cyan   { background: rgba(15,168,160,0.08); }
.pi-purple { background: rgba(107,92,246,0.08); }
.pi-green  { background: rgba(2,219,79,0.08); }
.pi-amber  { background: rgba(245,158,11,0.08); }
.pi-blue   { background: rgba(6,182,196,0.08); }

.prod-badge { font-family: var(--ff-mono); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.25rem 0.6rem; border-radius: 100px; }
.badge-flagship { background: rgba(15,168,160,0.1); color: var(--teal); border: 1px solid rgba(15,168,160,0.25); }
.badge-dev  { background: rgba(107,92,246,0.1); color: var(--purple); border: 1px solid rgba(107,92,246,0.2); }
.badge-soon { background: rgba(245,158,11,0.1); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }

.prod-card h3 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.55rem; }
.prod-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.68; margin-bottom: 1.1rem; }
.prod-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.25rem; }
.prod-tag { font-family: var(--ff-mono); font-size: 0.65rem; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); padding: 0.2rem 0.55rem; border-radius: 6px; }
.prod-footer { display: flex; align-items: center; justify-content: space-between; }
.prod-status { font-size: 0.72rem; font-weight: 600; }
.status-active { color: var(--teal); }
.status-dev { color: var(--purple); }
.status-soon { color: var(--amber); }
.prod-link { background: none; border: none; color: var(--teal); font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: gap 0.2s, letter-spacing 0.2s; padding: 0; }
.prod-link:hover { letter-spacing: 0.02em; }
.prod-hover-glow { position: absolute; inset: 0; border-radius: 20px; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(15,168,160,0.05), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.prod-card:hover .prod-hover-glow { opacity: 1; }

/* ═══════════════════════════════
   WHY CHOOSE US
═══════════════════════════════ */
.why-section { background: var(--bg-white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(15,168,160,0.2); }
.why-num { font-family: var(--ff-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 1rem; }
.why-icon { width: 44px; height: 44px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: transform 0.3s var(--ease-spring); }
.why-card:hover .why-icon { transform: rotate(-10deg) scale(1.1); }
.why-card h3 { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.why-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1rem; }
.why-stat { display: flex; align-items: baseline; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.why-stat span:first-child { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ═══════════════════════════════
   PROCESS TIMELINE
═══════════════════════════════ */
.process-section { background: var(--bg); }
.process-timeline { position: relative; max-width: 750px; margin: 0 auto; }
.pt-line { position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--teal), var(--green), rgba(15,168,160,0.1)); z-index: 0; }

.pt-step { display: flex; gap: 2rem; align-items: flex-start; padding-bottom: 2rem; position: relative; z-index: 1; }
.pt-step:last-child { padding-bottom: 0; }
.pt-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-white); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-md); transition: border-color 0.3s, box-shadow 0.3s; }
.pt-dot span { font-family: var(--ff-mono); font-size: 0.75rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pt-step.visible .pt-dot { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,168,160,0.1); }
.pt-card { flex: 1; padding: 1.5rem 1.75rem; }
.pt-icon { width: 40px; height: 40px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.85rem; }
.pt-card h3 { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.pt-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.75rem; }
.pt-duration { font-family: var(--ff-mono); font-size: 0.68rem; color: var(--teal); background: rgba(15,168,160,0.06); border: 1px solid rgba(15,168,160,0.15); padding: 0.2rem 0.55rem; border-radius: 6px; }

/* ═══════════════════════════════
   TESTIMONIALS
═══════════════════════════════ */
.testimonials-section { background: var(--bg-white); }
.testi-carousel { position: relative; overflow: hidden; max-width: 700px; margin: 0 auto; }
.testi-track { display: flex; transition: transform 0.5s var(--ease-smooth); }
.testi-card { min-width: 100%; padding: 2.5rem; background: var(--bg-white); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-md); flex-shrink: 0; }
.testi-stars { color: var(--amber); font-size: 0.9rem; letter-spacing: 0.25em; margin-bottom: 1.25rem; }
.testi-card > p { font-size: 1rem; color: var(--text-primary); line-height: 1.85; font-style: italic; margin-bottom: 1.75rem; }
.testi-author { display: flex; align-items: center; gap: 0.85rem; }
.testi-av { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-family: var(--ff-head); font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.testi-author strong { display: block; font-size: 0.9rem; color: var(--text-primary); font-family: var(--ff-head); font-weight: 700; }
.testi-author span { font-size: 0.8rem; color: var(--text-muted); }

.testi-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.testi-btn { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-white); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; box-shadow: var(--shadow-sm); }
.testi-btn:hover { border-color: var(--teal); color: var(--teal); }
.testi-dots { display: flex; gap: 0.5rem; }
.td { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); border: none; cursor: pointer; transition: background 0.3s, width 0.3s; padding: 0; }
.td.active { background: var(--teal); width: 20px; border-radius: 4px; }

/* ═══════════════════════════════
   STATS
═══════════════════════════════ */
.stats-section { background: var(--bg); padding: 5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stats-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 20px; padding: 2rem 1.75rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease-spring), box-shadow 0.3s; }
.stats-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sc-num { display: block; font-family: var(--ff-head); font-size: 2.8rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; margin-bottom: 0.4rem; }
.sc-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

/* ═══════════════════════════════
   CTA / CONTACT
═══════════════════════════════ */
.cta-section { background: var(--bg-white); }
.cta-inner { position: relative; background: var(--bg-cta-inner); border: 1px solid var(--border); border-radius: 28px; padding: 4rem; overflow: hidden; box-shadow: var(--shadow-xl); }
.cta-q-bg { position: absolute; right: -80px; top: -80px; width: 400px; height: 400px; pointer-events: none; opacity: 0.8; }
.cta-content { position: relative; z-index: 1; max-width: 680px; }
.cta-h2 { font-family: var(--ff-head); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); margin: 0.6rem 0 0.85rem; line-height: 1.18; }
.cta-content > p { color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 1rem; }

/* Form */
.cta-form { }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fg { position: relative; margin-bottom: 1.5rem; }
.fg input, .fg textarea, .fg select {
  width: 100%; background: var(--bg-white);
  border: 1px solid var(--border-2); border-radius: 14px;
  color: var(--text-primary); font-family: var(--ff-body); font-size: 0.95rem;
  padding: 1.15rem 1.25rem; outline: none;
  transition: all 0.3s var(--ease-out); appearance: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02) inset;
}
.fg textarea { resize: vertical; min-height: 120px; }
.fg select option { background: var(--surface); color: var(--text-primary); }

/* Autofill Fix for Dark Themes */
.fg input:-webkit-autofill, .fg textarea:-webkit-autofill, .fg select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-white) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.fg label { 
  position: absolute; top: 1.2rem; left: 1.25rem; 
  color: var(--text-muted); font-size: 0.95rem; 
  transition: all 0.2s var(--ease-out); pointer-events: none; 
}
.fg input:focus ~ label, .fg input:not(:placeholder-shown) ~ label,
.fg textarea:focus ~ label, .fg textarea:not(:placeholder-shown) ~ label,
.fg select:focus ~ label, .fg select:valid ~ label {
  top: -0.65rem; left: 1rem; font-size: 0.75rem; color: var(--teal);
  background: var(--bg); padding: 0 0.5rem; border-radius: 4px;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}

.fg input:hover, .fg textarea:hover, .fg select:hover { border-color: rgba(15,168,160,0.5); }
.fg input:focus, .fg textarea:focus, .fg select:focus { 
  border-color: var(--teal); 
  box-shadow: 0 0 0 4px rgba(15,168,160,0.1), 0 2px 8px rgba(0,0,0,0.02) inset; 
}

/* Remove the old bottom border animation */
.fline { display: none; }

.form-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.alt-contact { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.alt-contact:hover { color: var(--teal); }
.form-success { display: none; align-items: center; gap: 0.6rem; color: var(--green); font-size: 0.88rem; margin-top: 1rem; padding: 0.75rem 1rem; background: rgba(2,219,79,0.06); border: 1px solid rgba(2,219,79,0.2); border-radius: 10px; font-weight: 500; }
.form-success[aria-hidden="false"] { display: flex; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.footer { background: var(--footer-bg); color: rgba(255,255,255,0.7); }
.footer-top { padding: 5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }

.footer-brand .nav-logo { margin-bottom: 1rem; display: inline-flex; }
.footer-brand .logo-q-text, .footer-brand .logo-labs, .footer-brand .logo-dot { color: white; -webkit-text-fill-color: white; }
.footer-brand .logo-q-text { background: none; -webkit-background-clip: unset; background-clip: unset; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand .logo-dot { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-tagline { font-family: var(--ff-head); font-weight: 700; color: white; font-size: 0.9rem; margin-bottom: 0.6rem; }
.footer-desc { font-size: 0.83rem; color: rgba(255,255,255,0.45); line-height: 1.75; margin-bottom: 1.5rem; max-width: 280px; }
.social-row { display: flex; gap: 0.6rem; }
.soc-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); text-decoration: none; transition: all 0.2s; }
.soc-btn:hover { background: rgba(255,255,255,0.12); color: white; transform: translateY(-2px); }

.footer-col h4 { font-family: var(--ff-head); font-size: 0.82rem; font-weight: 700; color: white; margin-bottom: 1.25rem; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.84rem; transition: color 0.2s; }
.footer-col a:hover { color: white; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 1100px) {
  .hero-inner { gap: 2.5rem; }
  .q3d-stage { width: 380px; height: 380px; }
  .q3d-img { width: 240px; height: 240px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .build-grid { grid-template-columns: 1fr 1fr; }
  .card-large { grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --section-v: 5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-p, .hero-btns, .hero-social-proof { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .q3d-stage { width: 300px; height: 300px; }
  .q3d-img { width: 200px; height: 200px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-q-wrap { width: 280px; height: 280px; margin-bottom: 2rem; }
  .about-q-img { width: 200px; height: 200px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(247,245,252,0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; padding: 1.5rem;
    transform: translateY(-110%); opacity: 0;
    transition: transform 0.35s var(--ease-spring), opacity 0.35s;
    pointer-events: none; border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-a { padding: 0.85rem 1rem; display: block; }
  .hamburger { display: flex; }

  .hero-btns { flex-direction: column; align-items: center; }
  .build-grid { grid-template-columns: 1fr; }
  .card-large { grid-column: span 1; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { padding: 2rem 1.5rem; }
  .chip1, .chip2, .chip3 { display: none; }
  .mission-vision-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .pt-line { left: 22px; }
  .pt-dot { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-h1 { font-size: 2.2rem; }
  .q3d-stage { width: 240px; height: 240px; }
  .q3d-img { width: 180px; height: 180px; }
  .stats-grid { grid-template-columns: 1fr; }
  .testi-card { padding: 1.5rem; }
  .about-q-wrap { display: none; }
  .prod-filters { flex-wrap: wrap; }
}
