/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --indigo-700: #4338ca;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --orange-50: #fff7ed;
  --orange-600: #ea580c;
  --purple-50: #faf5ff;
  --purple-600: #9333ea;
  --rose-50: #fff1f2;
  --rose-600: #e11d48;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --bg-page: #CBD5E1;
  --bg-hero: #F8F9FA;
  --bg-about: #FAFAFA;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-3xl: 3rem;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.02);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px -15px rgba(0,0,0,0.1);
  --shadow-xl: 0 40px 80px -20px rgba(0,0,0,0.15);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--neutral-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 5rem;
  min-height: 100dvh;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

::selection { background: rgba(139,92,246,0.2); color: #4c1d95; }

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 640px) {
  .container {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}
@media (min-width: 1024px) {
  .container {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
}

/* Anchor scroll offset for fixed header */
section[id] { scroll-margin-top: calc(var(--nav-height) + 1rem); }

/* ===== OVERLAYS ===== */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.05; mix-blend-mode: multiply;
}
.dark-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: rgba(15,23,42,0.08);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; border-radius: 9999px; transition: all 0.3s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.95); }

.btn-primary {
  background: var(--blue-600); color: white;
  box-shadow: 0 8px 20px rgba(139,92,246,0.3);
}
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 12px 28px rgba(139,92,246,0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white; color: var(--neutral-800);
  border: 1px solid var(--neutral-200);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.btn-secondary:hover {
  background: var(--neutral-50); border-color: #d4d4d4;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06); transform: translateY(-2px);
}

.btn-ghost {
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  background: var(--neutral-100); color: var(--neutral-600);
  font-size: 0.875rem; font-weight: 500;
}
.btn-ghost:hover { background: var(--neutral-200); color: var(--neutral-900); }

.btn-lg { height: 3.5rem; padding: 0 2rem; font-size: 1.0625rem; width: 100%; }
@media (min-width: 640px) { .btn-lg { width: auto; } }

.btn-nav {
  display: none; padding: 0.625rem 1.5rem; font-size: 0.875rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
@media (min-width: 768px) { .btn-nav { display: inline-flex; } }

.btn-submit {
  width: 100%; height: 4rem; border-radius: var(--radius-lg);
  font-size: 1.0625rem; margin-top: 0.5rem;
}

/* ===== NAVBAR ===== */
.navbar-wrapper {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  padding: max(0.75rem, env(safe-area-inset-top)) 0 0.75rem;
  transition: padding 0.3s ease;
}
.navbar-wrapper.scrolled { padding-top: max(0.5rem, env(safe-area-inset-top)); padding-bottom: 0.5rem; }

.navbar-container { max-width: 72rem; }

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; transition: all 0.5s ease;
}
@media (min-width: 640px) { .navbar { padding: 0.75rem 1.5rem; } }

.navbar-wrapper.scrolled .navbar {
  background: rgba(255,255,255,0.8); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-700));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
  transition: all 0.5s ease;
}
.logo:hover .logo-icon { transform: scale(1.05); box-shadow: 0 4px 20px rgba(37,99,235,0.5); }
.logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.025em; transition: color 0.3s; }
.logo:hover .logo-text { color: var(--blue-700); }

.nav-links {
  display: none; align-items: center; gap: 2rem;
  font-size: 0.875rem; font-weight: 600; color: var(--neutral-600);
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  color: inherit; font-weight: 600; font-size: 0.875rem;
  transition: color 0.3s; padding: 0.5rem 0;
}
.nav-link:hover { color: var(--blue-600); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 0.25rem; }
.chevron-icon { transition: transform 0.3s; }
.nav-dropdown.open .chevron-icon { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 1rem); left: 50%; transform: translateX(-50%) scale(0.95);
  width: 600px; background: white; border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-3xl); padding: 1.5rem;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.1);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  transform-origin: top center;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.dropdown-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem;
  border-radius: var(--radius-2xl); transition: background 0.3s;
}
.dropdown-item:hover { background: var(--neutral-50); }
.dropdown-item h4 { font-size: 0.875rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.125rem; }
.dropdown-item p { font-size: 0.75rem; color: var(--neutral-500); font-weight: 500; }
.dropdown-icon {
  padding: 0.75rem; border-radius: var(--radius-lg); flex-shrink: 0;
  transition: transform 0.3s;
}
.dropdown-item:hover .dropdown-icon { transform: scale(1.1); }
.dropdown-icon.bg-blue { background: var(--blue-50); color: var(--blue-600); }
.dropdown-icon.bg-emerald { background: var(--emerald-50); color: var(--emerald-600); }
.dropdown-icon.bg-orange { background: var(--orange-50); color: var(--orange-600); }
.dropdown-icon.bg-purple { background: var(--purple-50); color: var(--purple-600); }
.dropdown-icon.bg-rose { background: var(--rose-50); color: var(--rose-600); }

.dropdown-footer {
  grid-column: 1 / -1; margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--neutral-100);
  display: flex; justify-content: space-between; align-items: center; padding-left: 0.5rem; padding-right: 0.5rem;
}
.dropdown-footer span { font-size: 0.75rem; font-weight: 700; color: var(--neutral-400); text-transform: uppercase; letter-spacing: 0.05em; }
.dropdown-footer a { font-size: 0.875rem; font-weight: 700; color: var(--blue-600); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .nav-actions { gap: 1.5rem; } }

.lang-toggle {
  display: flex; align-items: center; gap: 0.375rem;
  background: var(--neutral-100); padding: 0.25rem; border-radius: 9999px;
  border: 1px solid rgba(0,0,0,0.05); box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.lang-btn {
  padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 700;
  border-radius: 9999px; color: var(--neutral-500); transition: all 0.3s;
}
.lang-btn.active { background: white; color: var(--blue-600); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.lang-btn:hover:not(.active) { color: var(--neutral-900); }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: 0.5rem;
  border-radius: var(--radius-lg);
  position: relative; z-index: 2;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn span {
  display: block; height: 2px; width: 100%;
  background: var(--neutral-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  visibility: hidden; pointer-events: none;
}
.mobile-menu.open {
  visibility: visible; pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }

.mobile-menu-panel {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  padding: calc(var(--nav-height) + 0.5rem)
           max(1rem, env(safe-area-inset-right))
           max(1.5rem, env(safe-area-inset-bottom))
           max(1rem, env(safe-area-inset-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  display: flex; flex-direction: column; gap: 0;
}
.mobile-menu.open .mobile-menu-panel {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-link {
  display: block; width: 100%; text-align: left;
  padding: 0.9375rem 0.75rem;
  min-height: 3rem;
  font-size: 1.0625rem; font-weight: 600;
  color: var(--neutral-800);
  border-bottom: 1px solid var(--neutral-100);
  border-radius: var(--radius-lg);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-link:active {
  background: var(--blue-50);
  color: var(--blue-600);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.navbar-wrapper.menu-open .navbar {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

@media (max-width: 1023px) {
  .lang-toggle-header { display: none; }
  .navbar {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }
  .navbar-wrapper { padding: 0.75rem 0; }
  .navbar-wrapper.scrolled { padding: 0.5rem 0; }
  .navbar-wrapper.scrolled .navbar,
  .navbar-wrapper.menu-open .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (min-width: 1024px) {
  .navbar-wrapper {
    padding: 1.5rem 0;
  }
  .navbar-wrapper.scrolled {
    padding: 1rem 0;
  }
}

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 0 6rem; background: var(--bg-hero); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.8;
}
.hero-blob-1 {
  top: 0; right: 0; width: 800px; height: 800px;
  background: rgba(191,219,254,0.3); transform: translate(33%, -33%);
}
.hero-blob-2 {
  bottom: 0; left: 0; width: 600px; height: 600px;
  background: rgba(224,231,255,0.4); filter: blur(100px);
  transform: translate(-33%, 33%);
}

.hero-container { max-width: 1400px; position: relative; z-index: 10; width: 100%; }
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  background: white; border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 0.875rem; font-weight: 500; color: var(--neutral-700);
  margin-bottom: 2rem; backdrop-filter: blur(12px);
  transition: all 0.3s; cursor: pointer;
  max-width: 100%; flex-wrap: wrap;
}
.hero-badge:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }

.pulse-dot { position: relative; display: flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--blue-100); }
.pulse-dot .ping { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: var(--blue-500); opacity: 0.75; animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
.pulse-dot .dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--blue-600); }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.hero-title-line { display: block; }
.gradient-text {
  background: linear-gradient(135deg, var(--blue-700), var(--indigo-700));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block; padding-bottom: 0.125rem;
}
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--neutral-600);
  max-width: 36rem; line-height: 1.625; font-weight: 500; margin-bottom: 2.5rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-buttons { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; flex-wrap: wrap; } }

.hero-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero Mockup */
.hero-mockup {
  position: relative; display: none; cursor: pointer;
}
@media (min-width: 768px) { .hero-mockup { display: block; height: 700px; } }

.mockup-hover {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; border-radius: var(--radius-3xl);
  background: rgba(255,255,255,0.1); backdrop-filter: blur(2px);
}
.hero-mockup:hover .mockup-hover { opacity: 1; }
.mockup-hover span {
  padding: 0.75rem 1.5rem; background: rgba(0,0,0,0.8); color: white;
  font-weight: 500; border-radius: 9999px; display: flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: translateY(1rem); transition: transform 0.3s;
}
.hero-mockup:hover .mockup-hover span { transform: translateY(0); }

.desktop-mockup {
  position: absolute; top: 2.5rem; right: 0; width: 120%; max-width: 800px;
  aspect-ratio: 16/10; background: white; border-radius: var(--radius-2xl);
  border: 1px solid rgba(0,0,0,0.1); box-shadow: var(--shadow-xl);
  overflow: hidden; z-index: 20; transition: all 0.5s;
}
.hero-mockup:hover .desktop-mockup { transform: translateY(-8px); box-shadow: 0 50px 100px -20px rgba(0,0,0,0.2); }

.mockup-titlebar {
  height: 3rem; background: rgba(250,250,250,0.8); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; padding: 0 1rem; gap: 1rem;
}
.mockup-dots { display: flex; gap: 0.5rem; }
.mockup-dots span { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #d4d4d4; transition: background 0.3s; }
.hero-mockup:hover .mockup-dots span:nth-child(1) { background: #f87171; }
.hero-mockup:hover .mockup-dots span:nth-child(2) { background: #fbbf24; }
.hero-mockup:hover .mockup-dots span:nth-child(3) { background: #34d399; }
.mockup-url {
  height: 1.5rem; flex: 1; max-width: 28rem; background: white;
  border-radius: var(--radius-sm); border: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; padding: 0 0.75rem;
  font-size: 0.625rem; color: var(--neutral-400); font-family: monospace;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.mockup-body {
  display: grid; grid-template-columns: 3fr 9fr; gap: 1.5rem;
  padding: 1.5rem; height: calc(100% - 3rem); background: #FDFDFD;
}
.mockup-sidebar { border-right: 1px solid rgba(0,0,0,0.05); padding-right: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.mockup-logo-bar { height: 2rem; width: 6rem; background: var(--blue-600); border-radius: var(--radius-lg); margin-bottom: 1rem; }
.mockup-nav-item { display: flex; gap: 0.75rem; align-items: center; }
.mockup-nav-item::before { content: ''; width: 1.25rem; height: 1.25rem; background: var(--neutral-200); border-radius: 4px; flex-shrink: 0; }
.mockup-nav-item::after { content: ''; height: 0.75rem; flex: 1; background: var(--neutral-200); border-radius: 9999px; }

.mockup-main { display: flex; flex-direction: column; gap: 1.5rem; }
.mockup-header-row { display: flex; justify-content: space-between; align-items: center; }
.mockup-title-bar { height: 1.5rem; width: 12rem; background: var(--neutral-200); border-radius: 9999px; }
.mockup-avatars { display: flex; gap: 0.75rem; }
.mockup-avatars span { width: 2rem; height: 2rem; background: var(--neutral-100); border-radius: 50%; }
.mockup-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mockup-card { height: 7rem; background: white; border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.mockup-chart { flex: 1; background: white; border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius-xl); min-height: 8rem; }

.phone-mockup {
  position: absolute; bottom: -2rem; left: -2rem; width: 240px;
  aspect-ratio: 9/19; background: white; border-radius: 2.5rem;
  border: 8px solid var(--neutral-800); box-shadow: 0 30px 60px -10px rgba(0,0,0,0.3);
  z-index: 30; overflow: hidden; animation: float 6s ease-in-out infinite;
}
.hero-mockup:hover .phone-mockup { transform: rotate(-3deg); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 8rem; height: 1.5rem; background: var(--neutral-800);
  border-radius: 0 0 0.75rem 0.75rem; z-index: 40;
  display: flex; justify-content: center; padding-top: 0.375rem;
}
.phone-notch::after { content: ''; width: 3rem; height: 0.75rem; background: black; border-radius: 9999px; }
.phone-content { padding: 2.5rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; background: #FDFDFD; }
.phone-header { display: flex; align-items: center; gap: 0.75rem; }
.phone-avatar { width: 2rem; height: 2rem; background: var(--blue-600); border-radius: 50%; }
.phone-line { height: 1rem; width: 6rem; background: var(--neutral-200); border-radius: 9999px; }
.phone-banner { height: 8rem; background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(99,102,241,0.05)); border-radius: var(--radius-2xl); border: 1px solid rgba(59,130,246,0.2); }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.phone-grid div { height: 5rem; background: white; border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }

.section-header { margin-bottom: 4rem; max-width: 42rem; }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.section-subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--neutral-600); font-weight: 500; line-height: 1.5; overflow-wrap: break-word; }

/* ===== PRODUCTS ===== */
.products-section { background: white; }

.products-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  position: relative; padding: 2rem; border-radius: var(--radius-3xl);
  border: 1px solid rgba(0,0,0,0.05); background: white;
  box-shadow: var(--shadow-sm); cursor: pointer; overflow: hidden;
  transition: all 0.3s ease;
}
@media (min-width: 640px) { .product-card { padding: 2rem; } }
.product-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.product-card:active { transform: scale(0.98); }

.product-card .arrow-icon {
  position: absolute; top: 2rem; right: 2rem; opacity: 0;
  transform: translateX(8px); transition: all 0.3s; color: var(--neutral-400);
}
.product-card:hover .arrow-icon { opacity: 1; transform: translateX(0); }

.product-icon {
  width: 3.5rem; height: 3.5rem; border-radius: var(--radius-2xl);
  display: flex; align-items: center; justify-content: center; margin-bottom: 2rem;
  transition: transform 0.5s;
}
.product-card:hover .product-icon { transform: scale(1.1); }

.product-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; transition: color 0.3s; }
.product-card p { color: var(--neutral-500); font-weight: 500; line-height: 1.625; margin-bottom: 2rem; }
.product-learn {
  font-size: 0.875rem; font-weight: 700; opacity: 0; transition: opacity 0.3s;
}
.product-card:hover .product-learn { opacity: 1; }

.product-card.blue:hover { border-color: #bfdbfe; }
.product-card.blue .product-icon { background: var(--blue-50); color: var(--blue-600); }
.product-card.blue:hover h3 { color: var(--blue-600); }
.product-card.blue .product-learn { color: var(--blue-600); }

.product-card.emerald:hover { border-color: #a7f3d0; }
.product-card.emerald .product-icon { background: var(--emerald-50); color: var(--emerald-600); }
.product-card.emerald:hover h3 { color: var(--emerald-600); }
.product-card.emerald .product-learn { color: var(--emerald-600); }

.product-card.purple:hover { border-color: #e9d5ff; }
.product-card.purple .product-icon { background: var(--purple-50); color: var(--purple-600); }
.product-card.purple:hover h3 { color: var(--purple-600); }
.product-card.purple .product-learn { color: var(--purple-600); }

.product-card.orange:hover { border-color: #fed7aa; }
.product-card.orange .product-icon { background: var(--orange-50); color: var(--orange-600); }
.product-card.orange:hover h3 { color: var(--orange-600); }
.product-card.orange .product-learn { color: var(--orange-600); }

.product-card.rose:hover { border-color: #fecdd3; }
.product-card.rose .product-icon { background: var(--rose-50); color: var(--rose-600); }
.product-card.rose:hover h3 { color: var(--rose-600); }
.product-card.rose .product-learn { color: var(--rose-600); }

/* ===== WHY US ===== */
.why-section { background: white; overflow: hidden; }
.why-bg {
  position: absolute; top: 0; right: 0; width: 50%; height: 600px;
  background: rgba(239,246,255,0.5); border-radius: 50%;
  filter: blur(120px); transform: translateY(-50%); opacity: 0.6; pointer-events: none;
}

.story-accordion { max-width: 56rem; margin: 0 auto 5rem; }
.story-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; background: white; border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-sm);
  font-size: 1.25rem; font-weight: 700; color: var(--neutral-900);
  transition: all 0.3s;
}
.story-trigger:hover { border-color: #c4b5fd; box-shadow: 0 8px 30px rgba(139,92,246,0.08); color: var(--violet-600); }
.story-chevron {
  padding: 0.5rem; border-radius: 50%; background: var(--neutral-50); color: var(--neutral-400);
  transition: all 0.3s;
}
.story-trigger:hover .story-chevron { background: #f5f3ff; color: var(--violet-500); }
.story-accordion.open .story-chevron { background: #ede9fe; color: var(--violet-600); transform: rotate(180deg); }

.story-content {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
}
.story-accordion.open .story-content { max-height: 800px; opacity: 1; }

.story-inner {
  display: flex; flex-direction: column; gap: 2.5rem; align-items: center;
  padding: 2rem; margin-top: 1rem; background: white;
  border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
@media (min-width: 768px) { .story-inner { flex-direction: row; padding: 2rem; } }

.story-inner::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 16rem; height: 16rem; background: rgba(221,214,254,0.3);
  border-radius: 50%; filter: blur(80px); pointer-events: none;
}

.story-text { flex: 1; }
.story-text p { font-size: 1.125rem; color: var(--neutral-700); line-height: 1.625; font-weight: 500; margin-bottom: 1.25rem; }
.story-text p:last-child { margin-bottom: 0; }

.story-animation {
  width: 100%; max-width: 320px; aspect-ratio: 1;
  background: rgba(250,250,250,0.5); border-radius: var(--radius-2xl);
  border: 1px solid rgba(0,0,0,0.05); box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.story-laptop {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) perspective(1000px) rotateX(10deg);
  width: 8rem; height: 5rem; background: white; border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl); box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 20;
}
.story-accordion.open .story-laptop { animation: laptopFloat 4s ease-in-out infinite; }
@keyframes laptopFloat { 0%, 100% { transform: translate(-50%, -50%) perspective(1000px) rotateX(10deg) translateY(-5px); } 50% { transform: translate(-50%, -50%) perspective(1000px) rotateX(15deg) translateY(5px); } }

.story-note {
  position: absolute; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); z-index: 10;
  top: 45%; left: 42%; opacity: 0;
}
.story-accordion.open .story-note { animation: noteFloat 3s ease-in-out infinite; }
.note-1 { background: #fef9c3; animation-delay: 0s !important; }
.note-2 { background: #ede9fe; animation-delay: 0.4s !important; }
.note-3 { background: #d1fae5; animation-delay: 0.8s !important; }
.note-4 { background: var(--blue-100); animation-delay: 1.2s !important; }
.note-5 { background: #ffe4e6; animation-delay: 1.6s !important; }
@keyframes noteFloat {
  0%, 100% { opacity: 0; transform: translate(0, 0) rotate(0); }
  30%, 70% { opacity: 1; }
  50% { transform: translate(var(--tx, 40px), -60px) rotate(var(--rz, 25deg)); }
}
.note-1 { --tx: 40px; --rz: 25deg; }
.note-2 { --tx: -40px; --rz: -25deg; }
.note-3 { --tx: 50px; --rz: 25deg; }
.note-4 { --tx: -50px; --rz: -25deg; }
.note-5 { --tx: 45px; --rz: 25deg; }

.features-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  position: relative; padding: 2rem; border-radius: var(--radius-3xl);
  background: white; border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm); overflow: hidden; cursor: pointer;
  transition: all 0.5s ease;
}
.feature-card:hover {
  box-shadow: 0 20px 40px -15px rgba(139,92,246,0.1);
  border-color: #ddd6fe;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(237,233,254,0.5), rgba(219,234,254,0.3), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  position: relative; z-index: 1;
  width: 3.5rem; height: 3.5rem; border-radius: var(--radius-2xl);
  background: var(--blue-50); color: var(--blue-600);
  border: 1px solid rgba(219,234,254,0.5);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm); transition: all 0.5s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); background: #f5f3ff; color: var(--violet-600); border-color: #ddd6fe; }

.feature-card h3 { position: relative; z-index: 1; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; transition: color 0.3s; }
.feature-card:hover h3 { color: #6d28d9; }
.feature-card p { position: relative; z-index: 1; color: var(--neutral-600); line-height: 1.625; font-weight: 500; }

/* ===== ABOUT ===== */
.about-section { background: var(--bg-about); overflow: hidden; }
.about-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.about-blob-1 {
  position: absolute; top: 50%; left: 0; width: 24rem; height: 24rem;
  background: rgba(219,234,254,0.5); border-radius: 50%; filter: blur(100px);
  transform: translate(-50%, -50%);
}
.about-blob-2 {
  position: absolute; bottom: 0; right: 0; width: 500px; height: 500px;
  background: rgba(238,242,255,0.5); border-radius: 50%; filter: blur(100px);
  transform: translate(33%, 33%);
}

.team-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }

.team-card {
  position: relative; border-radius: var(--radius-3xl); background: white;
  border: 1px solid rgba(0,0,0,0.06); padding: 2rem;
  box-shadow: var(--shadow-sm); overflow: hidden; cursor: pointer;
  transition: all 0.5s;
}
.team-card:hover { box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05); }
.team-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(239,246,255,0.3), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.team-card:hover::before { opacity: 1; }

.team-card-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 640px) { .team-card-inner { flex-direction: row; } }

.team-photo {
  width: 8rem; height: 8rem; border-radius: var(--radius-2xl);
  overflow: hidden; background: var(--neutral-100); flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.5s;
}
.team-card:hover .team-photo { transform: scale(1.05); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; transition: color 0.3s; }
.team-card:hover .team-info h3 { color: var(--blue-600); }
.team-role { color: var(--blue-600); font-weight: 500; font-size: 0.875rem; margin-bottom: 1.25rem; }

.team-resp { list-style: none; margin-bottom: 2rem; }
.team-resp li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--neutral-600); margin-bottom: 0.625rem;
}

.team-social { display: flex; gap: 0.75rem; }
.team-social button {
  padding: 0.625rem; border-radius: 50%; background: var(--neutral-50);
  border: 1px solid var(--neutral-200); color: var(--neutral-500);
  transition: all 0.3s;
}
.team-social button:hover { color: var(--blue-600); background: var(--blue-50); border-color: var(--blue-100); }

/* ===== CONTACT ===== */
.contact-section { background: var(--bg-hero); padding: 6rem 0; }
@media (min-width: 768px) { .contact-section { padding: 8rem 0; } }

.contact-card {
  position: relative; border-radius: var(--radius-3xl);
  background: rgba(255,255,255,0.6); backdrop-filter: blur(32px);
  box-shadow: var(--shadow-lg); border: 1px solid white;
  overflow: hidden; display: flex; flex-direction: column;
  ring: 1px solid rgba(0,0,0,0.05);
}
@media (min-width: 1024px) { .contact-card { flex-direction: row; border-radius: 3rem; } }

.contact-glow {
  position: absolute; top: 50%; left: 25%; width: 24rem; height: 24rem;
  background: rgba(59,130,246,0.1); border-radius: 50%; filter: blur(100px);
  transform: translateY(-50%); pointer-events: none;
}

.contact-form-side {
  flex: 1; padding: 1.5rem; position: relative; z-index: 10;
}
@media (min-width: 640px) { .contact-form-side { padding: 3rem; } }
@media (min-width: 1024px) { .contact-form-side { padding: 5rem; } }

.contact-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  background: var(--blue-50); color: var(--blue-600);
  font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem;
}
.contact-header h2 {
  font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 1rem;
  line-height: 1.15; overflow-wrap: break-word;
}
.contact-header p { font-size: 1.125rem; color: var(--neutral-600); max-width: 32rem; margin-bottom: 2.5rem; line-height: 1.5; overflow-wrap: break-word; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--neutral-800); }
.form-group input, .form-group textarea {
  width: 100%; padding: 0 1rem; height: 3.5rem;
  border-radius: var(--radius-xl); background: white;
  border: 1px solid var(--neutral-200); box-shadow: var(--shadow-sm);
  font-size: 1rem; color: var(--neutral-900); transition: all 0.3s;
  font-family: inherit;
}
.form-group textarea { height: auto; padding: 1rem; resize: none; }
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.contact-info-side {
  width: 100%; background: rgba(255,255,255,0.8); backdrop-filter: blur(24px);
  padding: 2rem; border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; flex-direction: column; z-index: 10;
}
@media (min-width: 1024px) {
  .contact-info-side { width: 400px; border-top: none; border-left: 1px solid rgba(0,0,0,0.06); padding: 3rem; }
}

.contact-info-side h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }

.contact-items { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem;
  margin: 0 -1rem; border-radius: var(--radius-xl);
  border: 1px solid transparent; transition: all 0.3s;
}
.contact-item:hover { background: white; box-shadow: var(--shadow-sm); border-color: rgba(0,0,0,0.05); }
.contact-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-xl);
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.3s;
}
.contact-item:hover .contact-icon { transform: scale(1.1); }
.contact-item h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-item p { color: var(--neutral-500); transition: color 0.3s; }
.contact-item:hover p { color: var(--blue-600); }

.contact-social { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--neutral-200); }
.contact-social h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 1rem; }
.social-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-buttons button {
  padding: 0.625rem 1rem; border-radius: var(--radius-lg);
  background: white; border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm); font-size: 0.875rem; font-weight: 600;
  color: var(--neutral-700); transition: all 0.3s;
}
.social-buttons button:hover { color: var(--blue-600); border-color: #bfdbfe; transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer { background: white; border-top: 1px solid var(--neutral-200); padding: 5rem 0 2.5rem; }
.footer-grid {
  display: grid; gap: 3rem; margin-bottom: 4rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.footer-logo span { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
.footer-brand p { color: var(--neutral-500); max-width: 24rem; line-height: 1.625; }

.footer-links h4 {
  font-weight: 700; font-size: 0.875rem; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 1.5rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--neutral-500); transition: color 0.3s; }
.footer-links a:hover { color: var(--blue-600); }

.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--neutral-100);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-size: 0.875rem; color: var(--neutral-400);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ===== MOBILE CTA ===== */
.mobile-cta {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 40;
}
@media (min-width: 768px) { .mobile-cta { display: none; } }

.btn-mobile-cta {
  width: 100%; height: 3.5rem; border-radius: var(--radius-2xl);
  background: rgba(37,99,235,0.95); backdrop-filter: blur(12px);
  font-size: 1.0625rem; border: 1px solid rgba(139,92,246,0.3);
  box-shadow: 0 8px 30px rgba(139,92,246,0.4);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal-backdrop {
  position: absolute; inset: 0; background: rgba(23,23,23,0.6); backdrop-filter: blur(4px);
}

.modal-content {
  position: relative; width: 100%; height: 100%;
  background: white; overflow-y: auto;
  display: flex; flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
@media (min-width: 640px) {
  .modal-content {
    width: calc(100% - 3rem); height: auto; max-height: 90vh;
    max-width: 72rem; border-radius: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  }
}
.modal-overlay.open .modal-content { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 50;
  padding: 0.5rem; background: var(--neutral-100); border-radius: 50%;
  color: var(--neutral-500); transition: all 0.3s; box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .modal-close { top: 1.5rem; right: 1.5rem; } }
.modal-close:hover { background: var(--neutral-200); }

.modal-body {
  display: flex; flex-direction: column;
}
@media (min-width: 768px) { .modal-body { flex-direction: row; } }

.modal-details {
  flex: 1; padding: 1.5rem; border-bottom: 1px solid var(--neutral-100);
  display: flex; flex-direction: column;
}
@media (min-width: 640px) { .modal-details { padding: 2.5rem 3rem; } }
@media (min-width: 768px) { .modal-details { border-bottom: none; border-right: 1px solid var(--neutral-100); } }

.modal-icon {
  width: 4rem; height: 4rem; border-radius: var(--radius-2xl);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.modal-details h3 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.modal-details > p { font-size: 1.125rem; color: var(--neutral-600); font-weight: 500; margin-bottom: 2rem; max-width: 28rem; }

.modal-how {
  background: var(--neutral-50); padding: 1.5rem; border-radius: var(--radius-2xl);
  border: 1px solid rgba(0,0,0,0.05); margin-bottom: 2rem;
}
.modal-how h4 {
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.modal-how p { font-size: 0.875rem; color: var(--neutral-600); line-height: 1.625; font-weight: 500; }

.modal-features h4 {
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 1.5rem;
}
.modal-features ul { list-style: none; margin-bottom: 2.5rem; }
.modal-features li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  color: var(--neutral-700); font-weight: 500; margin-bottom: 1rem;
}
.modal-features .check {
  margin-top: 0.125rem; padding: 0.25rem; background: var(--emerald-100);
  border-radius: 50%; color: var(--emerald-600); flex-shrink: 0;
}

.modal-cta { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--neutral-100); }
.modal-cta button {
  width: 100%; height: 4rem; border-radius: var(--radius-xl);
  background: var(--blue-600); color: white; font-weight: 600; font-size: 1.0625rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(37,99,235,0.3); transition: all 0.3s;
}
.modal-cta button:hover { box-shadow: 0 12px 28px rgba(37,99,235,0.45); transform: translateY(-4px); }

.modal-gallery {
  flex: 1; background: rgba(245,245,245,0.5); padding: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 400px;
}
@media (min-width: 640px) { .modal-gallery { padding: 2.5rem 3rem; } }

.modal-gallery-inner {
  position: relative; width: 100%; max-width: 32rem;
}
.gallery-image {
  aspect-ratio: 4/3; background: white; border-radius: var(--radius-2xl);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden; position: relative;
}
@media (min-width: 640px) { .gallery-image { aspect-ratio: 16/10; } }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.modal-gallery-inner:hover .gallery-image img { transform: scale(1.05); }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px); border-radius: 50%; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--neutral-800); transition: all 0.3s; opacity: 0;
}
.modal-gallery-inner:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover { background: white; transform: translateY(-50%) scale(1.1); }
.gallery-nav.prev { left: 1rem; transform: translateY(-50%) translateX(-1rem); }
.gallery-nav.next { right: 1rem; transform: translateY(-50%) translateX(1rem); }
.modal-gallery-inner:hover .gallery-nav.prev { transform: translateY(-50%) translateX(0); }
.modal-gallery-inner:hover .gallery-nav.next { transform: translateY(-50%) translateX(0); }

.gallery-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.gallery-dots span {
  height: 0.375rem; border-radius: 9999px; background: rgba(255,255,255,0.5);
  transition: all 0.3s; cursor: pointer;
}
.gallery-dots span.active { width: 1.5rem; background: white; box-shadow: var(--shadow-sm); }
.gallery-dots span:not(.active) { width: 0.375rem; }

/* ===== ANIMATIONS ===== */
.fade-in { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.fade-in-delay { animation: fadeInRight 1s cubic-bezier(0.16,1,0.3,1) 0.2s forwards; opacity: 0; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Body lock when modal open */
body.modal-open { overflow: hidden; }
body.menu-open { overflow: hidden; }

/* ===== TOAST ===== */
.toast-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
@media (min-width: 640px) {
  .toast-overlay { align-items: flex-start; justify-content: flex-end; padding: 1.5rem; }
}

.toast-overlay.show {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.toast-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(15,23,42,0.2); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s;
}
.toast-overlay.show::before { opacity: 1; }

.toast-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
@media (min-width: 640px) {
  .toast-card { transform: translateX(120%); }
}
.toast-overlay.show .toast-card { transform: translate(0); }

.toast-card.success { border-color: rgba(37,99,235,0.2); }
.toast-card.error { border-color: rgba(225,29,72,0.2); }

.toast-close {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.375rem; border-radius: 50%;
  color: var(--neutral-400); transition: all 0.2s;
}
.toast-close:hover { background: var(--neutral-100); color: var(--neutral-700); }

.toast-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toast-card.success .toast-icon {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: var(--blue-600);
  box-shadow: 0 4px 14px rgba(37,99,235,0.15);
}
.toast-card.error .toast-icon {
  background: var(--rose-50); color: var(--rose-600);
  box-shadow: 0 4px 14px rgba(225,29,72,0.15);
}

.toast-content { flex: 1; padding-right: 1.5rem; }
.toast-content h4 {
  font-size: 1.125rem; font-weight: 700; color: var(--neutral-900);
  margin-bottom: 0.375rem; letter-spacing: -0.01em;
}
.toast-content p {
  font-size: 0.9375rem; color: var(--neutral-600); line-height: 1.5; font-weight: 500;
}

/* ===== FORM LOADING ===== */
.btn-submit .submit-loading {
  display: none; align-items: center; gap: 0.5rem;
}
.btn-submit.loading .submit-text,
.btn-submit.loading .submit-arrow { display: none; }
.btn-submit.loading .submit-loading { display: flex; }

.spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== MOBILE PERFORMANCE & LAYOUT ===== */
@media (max-width: 767px) {
  :root {
    --nav-height: 64px;
  }

  html { scroll-behavior: auto; }

  .desktop-only { display: none !important; }

  button, .btn, a { touch-action: manipulation; }

  body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    padding-bottom: 5.5rem;
  }

  .nav-actions { gap: 0.5rem; }
  .logo-text { font-size: 1.125rem; }
  .logo-icon { width: 2.25rem; height: 2.25rem; }

  /* No expensive effects on mobile */
  .navbar-wrapper.scrolled .navbar,
  .navbar-wrapper.menu-open .navbar,
  .contact-card,
  .contact-info-side,
  .toast-card,
  .modal-backdrop,
  .btn-mobile-cta,
  .hero-badge {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Hero - tighter, cleaner */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 1.25rem) 0 2.5rem;
  }

  .hero-content { width: 100%; max-width: 100%; }

  .hero-bg { display: none; }

  .btn { white-space: normal; text-align: center; min-height: 2.75rem; }
  .btn-lg { line-height: 1.25; width: 100%; }

  .hero-buttons { flex-direction: column; width: 100%; }

  .hero-badge { font-size: 0.75rem; gap: 0.375rem; margin-bottom: 1rem; padding: 0.375rem 0.75rem; }

  .pulse-dot .ping { animation: none; }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: none;
    line-height: 1.15;
  }

  .gradient-text { padding-bottom: 0; }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .hero-buttons { gap: 0.75rem; margin-bottom: 0; }
  .btn-lg { height: 3rem; font-size: 1rem; padding: 0 1.5rem; }

  /* Sections - less padding */
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: 1.75rem; margin-bottom: 0.75rem; text-shadow: none; }
  .section-subtitle { font-size: 0.9375rem; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
  .product-icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
  .product-card h3 { font-size: 1.25rem; }
  .product-card p { margin-bottom: 0; font-size: 0.875rem; }
  .product-card .arrow-icon,
  .product-learn { display: none; }

  /* Why us */
  .why-bg { display: none; }
  .story-accordion { margin-bottom: 2rem; }
  .story-trigger { padding: 1rem; font-size: 1.0625rem; border-radius: 1rem; }
  .story-inner { padding: 1.25rem; margin-top: 0.75rem; border-radius: 1.25rem; gap: 1.25rem; }
  .story-text p { font-size: 0.9375rem; }
  .story-animation { display: none; }

  .feature-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
  .feature-card h3 { font-size: 1.0625rem; }
  .feature-card p { font-size: 0.875rem; }

  /* About */
  .about-bg { display: none; }
  .team-grid { gap: 1rem; }
  .team-card { padding: 1.25rem; border-radius: 1.25rem; }
  .team-card-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
  .team-photo { width: 4.5rem; height: 4.5rem; border-radius: 0.875rem; flex-shrink: 0; }
  .team-info h3 { font-size: 1.125rem; }
  .team-role { font-size: 0.8125rem; margin-bottom: 0.75rem; }
  .team-resp { margin-bottom: 0.75rem; }
  .team-resp li { font-size: 0.75rem; margin-bottom: 0.25rem; }
  .team-social button { min-width: 2.5rem; min-height: 2.5rem; }

  /* Contact */
  .contact-section { padding: 3rem 0; }
  .contact-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  }
  .contact-glow { display: none; }
  .contact-form-side { padding: 1.25rem; }

  .contact-header h2 { font-size: 1.375rem; line-height: 1.2; }
  .contact-header p { font-size: 0.9375rem; margin-bottom: 1.5rem; }

  .toast-content p { word-break: break-word; }
  .contact-info-side { padding: 1.25rem; background: #fafafa; }
  .contact-info-side h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
  .contact-item {
    padding: 0.75rem;
    margin: 0;
    flex-wrap: wrap;
  }
  .contact-item p { word-break: break-word; font-size: 0.875rem; }
  .form-group textarea { min-height: 7rem; }
  .contact-social { margin-top: 1.5rem; padding-top: 1.25rem; }
  .social-buttons button { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
  .form-group input, .form-group textarea { height: 3rem; font-size: 16px; }
  .btn-submit { height: 3.25rem; }

  /* Footer */
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-grid { gap: 2rem; margin-bottom: 2rem; }
  .footer-brand { text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-logo { justify-content: center; }
  .footer-links { text-align: center; }
  .footer-links ul { padding: 0; }
  .footer-bottom { text-align: center; }

  /* Mobile CTA */
  .mobile-cta {
    bottom: 0; left: 0; right: 0;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(255,255,255,0.95) 60%, transparent);
  }
  .btn-mobile-cta {
    height: 3rem;
    font-size: 1rem;
    background: var(--blue-600);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  }

  /* Modal */
  .modal-backdrop { background: rgba(0,0,0,0.5); }
  .modal-content { border-radius: 0; }
  .modal-details { padding: 1.25rem; padding-top: 3.5rem; }
  .modal-details h3 { font-size: 1.375rem; line-height: 1.2; }
  .modal-details > p { font-size: 0.9375rem; }
  .modal-how { padding: 1rem; margin-bottom: 1.25rem; }
  .modal-features ul { margin-bottom: 1.5rem; }
  .modal-cta button { height: 3.25rem; font-size: 1rem; }
  .modal-gallery { min-height: 200px; padding: 0.75rem 1rem 1.25rem; }
  .gallery-nav {
    opacity: 1 !important;
    width: 2.25rem; height: 2.25rem;
  }
  .gallery-nav.prev { left: 0.5rem; transform: translateY(-50%) !important; }
  .gallery-nav.next { right: 0.5rem; transform: translateY(-50%) !important; }

  /* Toast - no fullscreen dim */
  .toast-overlay::before { display: none; }
  .toast-overlay { padding: 1rem; padding-bottom: max(5rem, calc(4.5rem + env(safe-area-inset-bottom))); }
  .toast-card {
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  }

  /* Skip scroll animations */
  .fade-in, .fade-in-delay {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* GPU-heavy hovers off */
  .product-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
    box-shadow: inherit;
  }

  /* content-visibility for off-screen sections */
  .products-section,
  .why-section,
  .about-section,
  .contact-section,
  .footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
  }
}

@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;
  }
  .pulse-dot .ping { animation: none; }
}

/* ===== TABLET (768px – 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --nav-height: 76px; }

  .hero { padding: 7rem 0 4rem; }
  .hero-title { font-size: 3rem; }
  .section { padding: 4.5rem 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 36rem; margin: 0 auto; }
  .contact-form-side { padding: 2rem; }
  .contact-info-side { padding: 2rem; }
}

/* ===== SMALL PHONES (≤389px) ===== */
@media (max-width: 389px) {
  :root { --nav-height: 60px; }

  .container {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .navbar { padding: 0.625rem 0.75rem; }
  .logo-text { font-size: 1rem; }
  .logo-icon { width: 2rem; height: 2rem; }

  .hero { padding: 4.75rem 0 2rem; }
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.9375rem; }
  .hero-badge { font-size: 0.6875rem; }

  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.875rem; }

  .product-card { padding: 1rem; }
  .product-card h3 { font-size: 1.125rem; }

  .feature-card { padding: 1rem; }
  .team-card { padding: 1rem; }
  .team-photo { width: 4.5rem; height: 4.5rem; }

  .contact-header h2 { font-size: 1.25rem; }
  .contact-form-side,
  .contact-info-side { padding: 1rem; }

  .footer-grid { gap: 1.5rem; }
  .footer-logo span { font-size: 1.25rem; }

  .mobile-menu-link { font-size: 1rem; padding: 0.875rem 0.5rem; }
  .btn-mobile-cta { font-size: 0.9375rem; height: 2.875rem; }
}
