/* ==========================================================================
   BASS LINE — APPLE.COM SENSORIAL SCROLLYTELLING & MINIMALIST BENTO (2026)
   High-Performance GPU Accelerated Parallax, Ultra-Clean Cognitive Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-platform: #f4f6fa;
  --bg-card: #ffffff;
  --bg-navy: #131828;
  --bg-navy-card: #1b2236;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-accent: #a855f7;
  --color-success: #10b981;
  --color-badge: #ede9fe;

  --border-color: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.04);

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 45px -10px rgba(79, 70, 229, 0.12), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  --shadow-window: 0 25px 60px -15px rgba(15, 23, 42, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-platform);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: clip;
  position: relative;
}

/* ==========================================================================
   1. CUPERTINO SCROLL PROGRESS BAR (TOP OF WINDOW)
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 10000;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

/* ==========================================================================
   2. AMBIENT GLOW SPHERES (GPU ACCELERATED PARALLAX BACKGROUNDS)
   ========================================================================== */
.ambient-glow-sphere {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.09) 0%, rgba(168, 85, 247, 0.04) 50%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  will-change: transform;
}

.sphere-1 {
  top: 10%;
  left: -100px;
}

.sphere-2 {
  top: 45%;
  right: -150px;
}

/* ==========================================================================
   3. APPLE-STYLE REVEAL ON SCROLL (GPU ACCELERATED)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Staggered children transitions for clean cognitive reveal */
.reveal-on-scroll .stagger-item {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible .stagger-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-on-scroll.visible .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.reveal-on-scroll.visible .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.reveal-on-scroll.visible .stagger-item:nth-child(3) { transition-delay: 0.3s; }
.reveal-on-scroll.visible .stagger-item:nth-child(4) { transition-delay: 0.4s; }
.reveal-on-scroll.visible .stagger-item:nth-child(5) { transition-delay: 0.5s; }
.reveal-on-scroll.visible .stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* ==========================================================================
   4. NAVIGATION HEADER (CUPERTINO CLEAN GLASS)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

/* STRICTLY HIDDEN ON DESKTOP */
.mobile-menu-toggle,
.mobile-nav-drawer {
  display: none !important;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-logo img {
  height: 30px;
  width: auto;
}

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

.nav-link {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle-btn {
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  border-color: var(--color-primary);
  background: #ffffff;
}

.lang-opt {
  opacity: 0.45;
  transition: opacity 0.2s;
}

.lang-opt.active {
  opacity: 1;
  color: var(--color-primary);
  font-weight: 800;
}

.lang-divider {
  opacity: 0.25;
}

/* ==========================================================================
   5. BUTTONS & BADGES (APPLE MINIMALIST)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.22);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.32);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
  border: 1px solid transparent;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--color-badge);
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ==========================================================================
   6. HERO SECTION — INSPIRATIONAL, PRESTIGIOUS & MINIMALIST
   ========================================================================== */
.hero-section {
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.indigo-gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 500;
  max-width: 90%;
  letter-spacing: -0.01em;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.metric-item h4 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.metric-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   7. HERO VISUAL — CUPERTINO FLOATING PERSON CUTOUT (APPLE KEYNOTE STYLE)
   ========================================================================== */
.hero-floating-person {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gentleFloat 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes gentleFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

.floating-glow-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, rgba(168, 85, 247, 0.08) 50%, rgba(255, 255, 255, 0) 70%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
}

.hero-floating-person img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 25px 40px rgba(15, 23, 42, 0.18));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-floating-person:hover img {
  transform: scale(1.03) translateY(-6px);
}

/* Cupertino Glass Command Cards Floating Around the Character */
.floating-command-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  z-index: 2;
  max-width: 245px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatBadge 5s ease-in-out infinite;
  will-change: transform;
}

.floating-command-card:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 24px 45px -10px rgba(79, 70, 229, 0.24);
  z-index: 10;
}

@keyframes floatBadge {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.cmd-voice {
  top: 14%;
  right: -10px;
  animation-delay: 0s;
  border-left: 3px solid var(--color-primary);
}

.cmd-calendar {
  top: 48%;
  left: -15px;
  animation-delay: -1.7s;
  border-left: 3px solid #10b981;
}

.cmd-proposal {
  bottom: 10%;
  right: 5px;
  animation-delay: -3.4s;
  border-left: 3px solid #a855f7;
}

.cmd-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cmd-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.cmd-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.cmd-calendar .cmd-tag { color: #10b981; }
.cmd-proposal .cmd-tag { color: #a855f7; }

.cmd-text {
  font-size: 0.83rem;
  color: var(--text-primary);
  line-height: 1.35;
  font-weight: 600;
}

.cmd-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-floating-person {
    margin-top: 32px;
    padding-bottom: 20px;
  }
  .floating-command-card {
    position: relative;
    max-width: 100%;
    margin: 10px 0;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    animation: none;
  }
}

/* ==========================================================================
   8. TICKER MARQUEE
   ========================================================================== */
.ticker-section {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  overflow: hidden;
}

.ticker-title {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.ticker-item {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  opacity: 0.75;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   9. SCROLLYTELLING PINNED ENGINE (APPLE STYLE SCRUB)
   ========================================================================== */
.scrolly-pin-wrapper {
  height: 300vh; /* User scrolls 3 screens to complete the animation */
  position: relative;
  background: #ffffff;
}

.scrolly-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center; /* Vertically center */
  justify-content: center;
  background: #ffffff;
}

.scrolly-inner-container {
  width: 100%;
  /* No top padding, let flexbox center it naturally */
}

.scrolly-scrub-title {
  will-change: transform, filter, opacity;
  transform-origin: center center;
  /* Base state */
  transform: scale(0.6);
  filter: blur(20px);
  opacity: 0;
}

.scrolly-scrub-grid {
  /* We maintain the grid layout, but cards animate in */
}

.scrolly-scrub-card {
  will-change: transform, opacity;
  transform: translateY(120px);
  opacity: 0;
}

/* ==========================================================================
   9.5 SCROLLYTELLING HORIZONTAL ENGINE (APPLE CAROUSEL SCRUB)
   ========================================================================== */
.horizontal-pin-wrapper {
  height: 400vh; /* Scroll length to complete horizontal track */
  position: relative;
  background: #ffffff;
}

.horizontal-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center */
  background: #ffffff;
}

.horizontal-inner-container {
  width: 100%;
  /* Let flexbox center it naturally */
  display: flex;
  flex-direction: column;
}

.horizontal-scroll-track {
  display: flex;
  gap: 40px;
  padding: 40px 10vw;
  width: max-content;
  will-change: transform;
}

/* ==========================================================================
   10. CORE ADVANTAGES — APPLE BENTO GRID (MINIMALIST COGNITIVE DESIGN)
   ========================================================================== */
.advantages-section {
  padding: 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.advantages-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-platform);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 28vh; /* Force cards to scale with height */
  max-height: 280px;
  min-height: 220px;
}

.bento-card:hover {
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.18);
}

.bento-card-number {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 24px;
  transition: opacity var(--transition-fast);
}

.bento-card:hover .bento-card-number {
  opacity: 0.35;
}

.bento-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.bento-card-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
}

.bento-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 24px;
}

/* ==========================================================================
   10. MULTI-SEGMENT ECOSYSTEM SHOWCASE
   ========================================================================== */
.ecosystem-section {
  padding: 110px 0;
  background: var(--bg-platform);
}

.ecosystem-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ecosystem-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.ecosystem-tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--text-primary);
}

.ecosystem-tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.ecosystem-pane {
  display: none;
  animation: fadeInPane 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.ecosystem-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.ecosystem-content h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.ecosystem-content p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.ecosystem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ecosystem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-primary);
  font-weight: 500;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-badge);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ecosystem-screenshot {
  background: var(--bg-navy);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.mockup-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.window-url-bar {
  margin-left: 12px;
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 12px;
  border-radius: 6px;
  flex-grow: 1;
  text-align: center;
}

.ecosystem-screenshot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* ==========================================================================
   11. REAL APPLICATION SCREENSHOTS GALLERY
   ========================================================================== */
.gallery-section {
  padding: 110px 0;
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.gallery-card {
  background: var(--bg-platform);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  width: clamp(280px, 28vw, 420px); /* Flexible width for horizontal track */
  height: 55vh; /* STRICT max height to never overflow */
  max-height: 600px;
  flex-shrink: 0; /* Prevent collapsing in flex container */
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.gallery-image-frame {
  background: var(--bg-navy);
  padding: 14px 14px 0 14px; /* Remove bottom padding to let image bleed */
  border-bottom: 1px solid var(--border-color);
  flex: 1; /* Takes all available height */
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.gallery-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This makes the image crop gracefully if it's too tall! */
  object-position: top center; /* Focus on the top of the screenshot */
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: block;
}

.gallery-content {
  padding: 24px;
}

.gallery-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.gallery-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   12. PROGATE INTERACTIVE SHOWCASE
   ========================================================================== */
.progate-section {
  padding: 110px 0;
  background: var(--bg-platform);
}

.progate-showcase-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.progate-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.proposal-demo-panel {
  background: var(--bg-platform);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
}

.proposal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.item-info h5 {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.item-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.item-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.proposal-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 10px;
}

.total-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.total-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-primary);
}

/* ==========================================================================
   13. ROI CALCULATOR
   ========================================================================== */
.calc-section {
  padding: 110px 0;
  background: #ffffff;
}

.calculator-card {
  background: var(--bg-platform);
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.calc-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  margin-top: 8px;
  cursor: pointer;
  appearance: auto;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: border-color var(--transition-fast);
}

.calc-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.calc-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.slider-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.slider-val-badge {
  background: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.84rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

input[type=range] {
  width: 100%;
  height: 8px;
  border-radius: 100px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
}

.result-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.result-box.highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border: none;
}

.result-box h4 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.result-box.highlight h4 {
  color: #fff;
}

.result-box p {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-box.highlight p {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   14. TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  padding: 110px 0;
  background: var(--bg-platform);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.quote-text {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 28px;
  font-weight: 500;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-badge);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.author-meta h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.author-meta p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   15. FAQ ACCORDION (APPLE CLEAN)
   ========================================================================== */
.faq-section {
  padding: 110px 0;
  background: #ffffff;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-platform);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 24px;
}

/* ==========================================================================
   16. FINAL CTA BANNER
   ========================================================================== */
.cta-banner-section {
  padding: 90px 0 110px;
  background: #ffffff;
}

.cta-banner-box {
  background: var(--bg-navy);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-window);
  position: relative;
  overflow: hidden;
}

.cta-banner-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-banner-box p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-platform);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-about p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .ecosystem-card,
  .progate-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .advantages-bento-grid,
  .gallery-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Sticky Mobile Header */
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-logo {
    font-size: 1.1rem;
    gap: 8px;
  }

  .brand-logo img {
    height: 26px;
  }

  .nav-links,
  .nav-login-btn {
    display: none !important;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-download-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .lang-toggle-btn {
    padding: 4px 8px;
    font-size: 0.76rem;
  }

  /* Hamburger Toggle Icon - Cupertino Glass Style */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
    transition: all 0.2s ease;
  }

  .mobile-menu-toggle:hover {
    background: #ffffff;
    border-color: var(--color-primary);
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Mobile Collapsible Navigation Drawer */
  .mobile-nav-drawer {
    display: flex !important;
    position: fixed;
    top: 62px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    padding: 24px 20px;
    flex-direction: column;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 9999;
  }

  .mobile-nav-drawer.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
  }

  .mobile-nav-list a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 4px 0;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
  }

  .mobile-nav-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  /* Hero Mobile Layout */
  .hero-section {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7.5vw, 2.6rem);
  }

  .hero-description {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero Floating Person & Cards Stacked Cleanly */
  .hero-floating-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    width: 100%;
    animation: none;
  }

  .hero-floating-person img {
    max-width: 260px;
    width: 80%;
    height: auto;
    margin: 0 auto 16px;
  }

  .floating-glow-orb {
    width: 240px;
    height: 240px;
  }

  .floating-command-card {
    position: relative;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    max-width: 100%;
    width: 100%;
    margin-top: 10px;
    animation: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  }

  .advantages-bento-grid,
  .gallery-grid,
  .testimonials-grid,
  .calc-sliders,
  .calc-results-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* DISABLE SCROLLYTELLING PINNING ON MOBILE (REVEAL ALL CARDS WITH NATURAL SCROLL) */
  .scrolly-pin-wrapper {
    height: auto !important;
    position: relative !important;
  }

  .scrolly-sticky-container {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 40px 0 !important;
    align-items: stretch !important;
  }

  .scrolly-inner-container {
    padding-top: 0 !important;
  }

  .scrolly-scrub-title {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .scrolly-scrub-card {
    transform: none !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    padding: 24px 20px !important;
  }

  .bento-card-number {
    font-size: 2.2rem !important;
    margin-bottom: 8px !important;
  }

  /* DISABLE HORIZONTAL SCRUB PINNING ON MOBILE */
  .horizontal-pin-wrapper {
    height: auto !important;
    position: relative !important;
  }

  .horizontal-sticky-container {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 40px 0 !important;
  }

  .horizontal-inner-container {
    padding-top: 0 !important;
    height: auto !important;
  }

  .horizontal-scroll-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
    gap: 24px !important;
    padding: 0 16px !important;
  }

  .gallery-card {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  .gallery-image-frame {
    height: 240px !important;
  }

  .gallery-image-frame img {
    object-fit: cover !important;
    object-position: top center !important;
  }
}

/* ==========================================================================
   16. LAPTOP HEIGHT OPTIMIZATION (PREVENT CLIPPING IN SCROLLYTELLING)
   ========================================================================== */
@media (max-height: 900px) {
  .scrolly-inner-container,
  .horizontal-inner-container {
    /* No padding, let flexbox center */
  }
  
  .section-title {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin-bottom: 8px;
  }
  
  .section-desc {
    margin-bottom: 12px;
  }
  
  .advantages-section {
    padding: 0;
  }
  
  .section-header {
    margin-bottom: 24px;
  }

  .advantages-bento-grid {
    gap: 16px;
  }
  
  .bento-card {
    padding: 24px 20px;
  }
  
  .bento-card-number {
    font-size: 2.4rem;
    margin-bottom: 12px;
  }
  
  .horizontal-scroll-track {
    padding: 16px 10vw; /* Reduce vertical padding */
  }
  
  .gallery-card {
    width: 280px; /* Make cards narrower so images scale down proportionally */
  }
  
  .gallery-image-frame {
    padding: 8px;
  }
  
  .gallery-content {
    padding: 12px;
  }
  
  .gallery-content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  
  .gallery-content p {
    font-size: 0.9rem;
  }
  
  .feature-icon-wrapper {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   17. CUPERTINO GLASS APK BETA MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 100%;
  padding: 36px 32px 28px;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(241, 245, 249, 0.8);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 100px;
  color: #d97706;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.beta-disclaimer {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.55;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 22px;
  text-align: left;
}

.btn-lg-download {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 10px;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
}

.btn-web-link {
  width: 100%;
  padding: 10px 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
  font-weight: 600;
}

.btn-web-link:hover {
  color: var(--color-primary);
}
