/* ==========================================================================
   AHM Technologies — World-Class Luminous Light Mode Design System
   20 Pro Features + 60fps Choreographed Animations | RTL (AR) & LTR (EN)
   ========================================================================== */

:root {
  /* Light Mode Surfaces */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-tint: #EFF6FF;
  --bg-glass: rgba(255, 255, 255, 0.82);

  /* Ink */
  --ink-primary: #0F172A;
  --ink-secondary: #475569;
  --ink-muted: #64748B;
  --ink-inverse: #FFFFFF;

  /* Brand & Category Accents */
  --brand: #2563EB;
  --brand-hover: #1D4ED8;
  --brand-soft: #DBEAFE;
  --brand-ink: #1E40AF;

  --emerald: #059669;
  --emerald-soft: #D1FAE5;
  --emerald-ink: #065F46;

  --rose: #E11D48;
  --rose-soft: #FFE4E6;
  --rose-ink: #9F1239;

  --violet: #7C3AED;
  --violet-soft: #EDE9FE;
  --violet-ink: #5B21B6;

  --amber-soft: #FEF3C7;
  --amber-ink: #92400E;

  /* Borders & Multi-Layer Light Shadows */
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 16px 32px -10px rgba(15, 23, 42, 0.1), 0 4px 12px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 28px 60px -14px rgba(15, 23, 42, 0.16), 0 10px 24px -8px rgba(15, 23, 42, 0.07);
  --shadow-glow: 0 16px 40px -10px rgba(37, 99, 235, 0.25);

  /* Radii & Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --container-max: 1220px;

  /* Fonts */
  --font-ar: "Cairo", system-ui, -apple-system, sans-serif;
  --font-en: "Plus Jakarta Sans", "Cairo", system-ui, -apple-system, sans-serif;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-ar);
  line-height: 1.65;
  overflow-x: hidden;
}

html[dir="ltr"] body {
  font-family: var(--font-en);
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   Feature 2: Top Reading Scroll Progress Bar
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0%;
  z-index: 999;
  background: linear-gradient(90deg, var(--brand), var(--emerald), var(--violet));
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ==========================================================================
   Next-Gen Floating Liquid-Pill Navigation Bar (Zero Old Hamburger!)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
  transition: box-shadow 0.28s ease, background 0.28s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  background: #fff;
  transition: transform 0.35s var(--ease-spring);
}

.brand-link:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Segmented Liquid-Glass Pill Capsule */
.nav-capsule-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nav-pill-slider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  box-shadow: 0 4px 14px -3px rgba(37, 99, 235, 0.22), 0 1px 3px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(191, 219, 254, 0.75);
  transition: transform 0.36s var(--ease-spring), width 0.36s var(--ease-spring), opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.nav-links a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color 0.22s ease;
}

.nav-links a svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  transition: transform 0.25s var(--ease-spring), opacity 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-links a:hover svg,
.nav-links a.active svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Hover Mega-Preview Popover for Apps */
.nav-mega-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.97);
  width: 460px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s var(--ease-spring), visibility 0.22s ease;
  z-index: 200;
}

.nav-mega-popover.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-subtle);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: var(--bg-page);
  cursor: pointer;
  text-align: start;
  transition: all 0.2s var(--ease-spring);
}

.mega-item:hover {
  background: var(--bg-surface);
  border-color: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

.mega-item img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.mega-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-item span {
  display: block;
  font-size: 0.71rem;
  color: var(--ink-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cmd-trigger:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.kbd-chip {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--bg-tint);
}

/* ==========================================================================
   Buttons + Magnetic & Shimmer Micro-Interactions
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.25s ease, background-color 0.2s, border-color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.83rem;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 0.97rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: var(--ink-inverse);
  box-shadow: 0 8px 22px -6px rgba(37, 99, 235, 0.55);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.28) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-spring);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.65);
}

.btn-play {
  background: var(--ink-primary);
  color: var(--ink-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-play:hover {
  background: #1E293B;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.btn-ghost {
  background: var(--bg-tint);
  color: var(--brand);
  border-color: var(--brand-soft);
}

.btn-ghost:hover {
  background: var(--brand-soft);
}

/* ==========================================================================
   Feature 1 & 5: Aurora Hero + Canvas Particles + 3D Interactive Smartphone
   ========================================================================== */
.hero {
  position: relative;
  padding: 64px 0 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.78;
}

.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 25%, rgba(37, 99, 235, 0.13), transparent 40%),
    radial-gradient(circle at 82% 28%, rgba(16, 185, 129, 0.13), transparent 42%),
    radial-gradient(circle at 52% 82%, rgba(124, 58, 237, 0.1), transparent 45%);
  animation: auroraDrift 16s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.02);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--emerald-ink);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(5, 150, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.05rem, 4.1vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.hero-title .accent {
  background: linear-gradient(120deg, #2563EB 0%, #059669 50%, #7C3AED 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 1.07rem;
  color: var(--ink-secondary);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-en);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Interactive 3D Smartphone Stage */
.phone-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  padding: 12px 0;
}

.phone-device-wrap {
  position: relative;
  transform-style: preserve-3d;
  animation: phoneFloat 5.5s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% {
    transform: translateY(0px) rotateY(-6deg) rotateX(2deg);
  }
  50% {
    transform: translateY(-10px) rotateY(6deg) rotateX(-2deg);
  }
}

.phone-frame {
  width: 266px;
  height: 520px;
  border-radius: 42px;
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  padding: 10px;
  box-shadow:
    0 32px 64px -16px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 0 0 4px rgba(226, 232, 240, 0.85);
  position: relative;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.phone-frame:hover {
  transform: scale(1.025);
  box-shadow:
    0 38px 72px -14px rgba(37, 99, 235, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 0 0 4px rgba(191, 219, 254, 0.95);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: #0F172A;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 20px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.92);
  z-index: 4;
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.6s var(--ease-spring);
}

.phone-shot.fading {
  opacity: 0.15;
  transform: scale(1.04);
}

.phone-overlay-pill {
  position: absolute;
  bottom: 12px;
  inset-inline: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  z-index: 5;
}

.phone-overlay-pill img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.phone-overlay-meta {
  min-width: 0;
  flex: 1;
}

.phone-overlay-meta strong {
  display: block;
  font-size: 0.79rem;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-overlay-meta span {
  display: block;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--brand);
}

/* Floating Glass Telemetry Badges around Phone */
.orbit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-primary);
  white-space: nowrap;
  z-index: 6;
}

.orbit-chip.top-start {
  top: 42px;
  inset-inline-start: -76px;
  animation: orbitBob1 4.8s ease-in-out infinite;
}

.orbit-chip.mid-end {
  top: 195px;
  inset-inline-end: -84px;
  animation: orbitBob2 5.2s ease-in-out infinite;
}

.orbit-chip.bot-start {
  bottom: 72px;
  inset-inline-start: -68px;
  animation: orbitBob1 5.6s ease-in-out infinite reverse;
}

.orbit-dot {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes orbitBob1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes orbitBob2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

.phone-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.phone-switch-btn {
  width: 38px;
  height: 38px;
  padding: 2px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
}

.phone-switch-btn img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}

.phone-switch-btn.active {
  border-color: var(--brand);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.45);
}

/* ==========================================================================
   Feature 7: Infinite App Showcase Marquee Ribbon
   ========================================================================== */
.marquee-band {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}

.marquee-band::before,
.marquee-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 84px;
  z-index: 2;
  pointer-events: none;
}

.marquee-band::before {
  left: 0;
  background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-band::after {
  right: 0;
  background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  direction: ltr;
  animation: marqueeScroll 36s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
}

.marquee-pill:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.marquee-pill img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
}

.marquee-pill span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

/* ==========================================================================
   Feature 9: Choreographed Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.65s var(--ease-spring), transform 0.65s var(--ease-spring), filter 0.65s var(--ease-spring);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   Sections & Framing
   ========================================================================== */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.25;
}

.section-subtitle {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1rem;
  max-width: 650px;
}

/* ==========================================================================
   Feature 10: Next-Gen Interactive Smart App Concierge (Dynamic Aura + Spotlight Cards)
   ========================================================================== */
.recommender-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 36px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.recommender-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 1;
  transition: background 0.45s ease;
  background:
    radial-gradient(circle at 8% 8%, rgba(5, 150, 105, 0.13), transparent 44%),
    radial-gradient(circle at 92% 90%, rgba(37, 99, 235, 0.09), transparent 46%);
}

.recommender-card[data-theme="islamic"] {
  border-color: #A7F3D0;
}
.recommender-card[data-theme="islamic"]::before {
  background:
    radial-gradient(circle at 8% 8%, rgba(5, 150, 105, 0.15), transparent 45%),
    radial-gradient(circle at 92% 92%, rgba(245, 158, 11, 0.1), transparent 48%);
}

.recommender-card[data-theme="safety"] {
  border-color: #FECDD3;
}
.recommender-card[data-theme="safety"]::before {
  background:
    radial-gradient(circle at 8% 8%, rgba(225, 29, 72, 0.12), transparent 45%),
    radial-gradient(circle at 92% 92%, rgba(37, 99, 235, 0.11), transparent 48%);
}

.recommender-card[data-theme="tools"] {
  border-color: #BFDBFE;
}
.recommender-card[data-theme="tools"]::before {
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.15), transparent 45%),
    radial-gradient(circle at 92% 92%, rgba(6, 182, 212, 0.12), transparent 48%);
}

.recommender-card[data-theme="personalization"] {
  border-color: #DDD6FE;
}
.recommender-card[data-theme="personalization"]::before {
  background:
    radial-gradient(circle at 8% 8%, rgba(124, 58, 237, 0.15), transparent 45%),
    radial-gradient(circle at 92% 92%, rgba(236, 72, 153, 0.1), transparent 48%);
}

.rec-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.rec-surprise-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-primary);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease-spring);
}

.rec-surprise-btn svg {
  color: var(--violet);
  transition: transform 0.45s var(--ease-spring);
}

.rec-surprise-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.rec-surprise-btn:hover svg {
  transform: rotate(180deg) scale(1.1);
}

/* Goal Selector Cards (Custom Vector Icon Tiles) */
.recommender-goals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.goal-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-align: start;
  transition: all 0.26s var(--ease-spring);
}

.goal-btn:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.goal-btn.active {
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.28), 0 0 0 3px rgba(37, 99, 235, 0.11);
  transform: translateY(-2px);
}

.goal-btn[data-goal="islamic"].active {
  border-color: var(--emerald);
  box-shadow: 0 12px 26px -10px rgba(5, 150, 105, 0.28), 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.goal-btn[data-goal="safety"].active {
  border-color: var(--rose);
  box-shadow: 0 12px 26px -10px rgba(225, 29, 72, 0.26), 0 0 0 3px rgba(225, 29, 72, 0.11);
}

.goal-btn[data-goal="personalization"].active {
  border-color: var(--violet);
  box-shadow: 0 12px 26px -10px rgba(124, 58, 237, 0.28), 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.goal-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease-spring);
}

.goal-btn:hover .goal-icon-box,
.goal-btn.active .goal-icon-box {
  transform: scale(1.08) rotate(-4deg);
}

.goal-icon-box.islamic { background: var(--emerald-soft); color: var(--emerald); }
.goal-icon-box.safety { background: var(--rose-soft); color: var(--rose); }
.goal-icon-box.tools { background: var(--brand-soft); color: var(--brand); }
.goal-icon-box.personalization { background: var(--violet-soft); color: var(--violet); }

.goal-meta {
  min-width: 0;
  flex: 1;
}

.goal-btn strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.3;
}

.goal-btn span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Sub-Preference Chips Bar */
.rec-prefs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(203, 213, 225, 0.9);
}

.rec-prefs-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rec-pref-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.pref-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pref-chip.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.rec-match-summary {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Upgraded Rich Visual Spotlight Cards */
.recommender-result {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recommender-result.single-card {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.recommender-result.two-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rec-spot-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease, border-color 0.25s;
  animation: recPopIn 0.45s var(--ease-spring) backwards;
}

.rec-spot-card:nth-child(2) { animation-delay: 0.06s; }
.rec-spot-card:nth-child(3) { animation-delay: 0.12s; }

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

.rec-spot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #93C5FD;
}

.rec-spot-card.top-pick {
  border-color: #93C5FD;
  box-shadow: 0 14px 32px -12px rgba(37, 99, 235, 0.22);
}

/* Visual Screenshot Preview Header */
.rec-spot-cover {
  position: relative;
  height: 126px;
  background: linear-gradient(135deg, #EFF6FF 0%, #F1F5F9 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px 0;
  cursor: pointer;
}

.rec-spot-cover-img {
  height: 150px;
  width: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transform: translateY(14px);
  transition: transform 0.35s var(--ease-spring);
  object-fit: cover;
}

.rec-spot-cover-img.side {
  height: 132px;
  opacity: 0.88;
  transform: translateY(22px);
}

.rec-spot-card:hover .rec-spot-cover-img {
  transform: translateY(6px) scale(1.03);
}

.rec-spot-card:hover .rec-spot-cover-img.side {
  transform: translateY(12px);
}

.rec-match-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.71rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.rec-match-badge.best {
  background: linear-gradient(135deg, #2563EB, #059669);
}

.rec-spot-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rec-spot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rec-spot-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.rec-spot-head h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.3;
}

.rec-spot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rec-mini-pill {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
}

.rec-mini-pill.green {
  background: var(--emerald-soft);
  color: var(--emerald-ink);
}

.rec-mini-pill.amber {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.rec-spot-highlights {
  list-style: none;
  margin: 6px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.rec-spot-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.81rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.rec-spot-highlights li svg {
  width: 15px;
  height: 15px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.rec-spot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-subtle);
}

/* ==========================================================================
   Feature 4, 13, 20: Controls Bar, Sort, View Switcher, 3D Holographic Cards
   ========================================================================== */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.filter-tab.active {
  background: var(--brand);
  color: var(--ink-inverse);
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.55);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  background: rgba(15, 23, 42, 0.07);
}

.filter-tab.active .filter-count {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.search-wrap {
  position: relative;
  min-width: 210px;
  flex: 1;
  max-width: 290px;
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 14px;
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 14px;
  padding-inline-start: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink-primary);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sort-select {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink-primary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.view-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  border: 1px solid var(--border);
}

.view-btn {
  width: 34px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
}

.view-btn.active {
  background: var(--bg-surface);
  color: var(--brand);
  box-shadow: var(--shadow-xs);
}

/* Apps Grid & List View */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.apps-grid.list-view {
  grid-template-columns: 1fr;
  gap: 14px;
}

.app-card {
  --mx: 50%;
  --my: 50%;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.28s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Holographic Light-Mode Spotlight Glare */
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(37, 99, 235, 0.085),
    rgba(16, 185, 129, 0.04) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.app-card:hover::before {
  opacity: 1;
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #BFDBFE;
}

.apps-grid.list-view .app-card {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
}

.apps-grid.list-view .app-card-top {
  margin-bottom: 0;
  flex: 1.1;
}

.apps-grid.list-view .app-tagline {
  margin-bottom: 0;
  flex: 1.4;
  -webkit-line-clamp: 2;
}

.apps-grid.list-view .app-tags {
  display: none;
}

.apps-grid.list-view .app-card-actions {
  border-top: none;
  padding-top: 0;
  grid-template-columns: auto auto;
  flex-shrink: 0;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 17px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.16);
  background: var(--bg-subtle);
  transition: transform 0.3s var(--ease-spring);
}

.app-card:hover .app-icon {
  transform: scale(1.06) rotate(-2deg);
}

.app-head-info {
  min-width: 0;
  flex: 1;
}

.app-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-quick-tools {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.icon-tool-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.icon-tool-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--bg-surface);
  transform: scale(1.08);
}

.icon-tool-btn.fav-active {
  color: var(--rose);
  background: var(--rose-soft);
  border-color: #FECDD3;
  animation: heartPop 0.38s var(--ease-spring);
}

.icon-tool-btn.cmp-active {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #93C5FD;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.32); }
  100% { transform: scale(1); }
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.71rem;
  font-weight: 700;
}

.badge-islamic { background: var(--emerald-soft); color: var(--emerald-ink); }
.badge-safety { background: var(--rose-soft); color: var(--rose-ink); }
.badge-tools { background: var(--brand-soft); color: var(--brand-ink); }
.badge-personalization { background: var(--violet-soft); color: var(--violet-ink); }
.badge-adfree { background: var(--amber-soft); color: var(--amber-ink); }

.app-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.35;
}

.app-tagline {
  margin: 0 0 15px;
  font-size: 0.89rem;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-chip {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.app-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-subtle);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-muted);
}

/* ==========================================================================
   Upgraded Why AHM: Apple/Stripe Interactive Bento Grid + Tech Milestones Lab
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  position: relative;
  border-radius: 24px;
  padding: 28px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease, border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #BFDBFE;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }

.bento-card.theme-emerald {
  background: linear-gradient(145deg, #FFFFFF 45%, #ECFDF5 100%);
  border-color: #D1FAE5;
}
.bento-card.theme-blue {
  background: linear-gradient(145deg, #FFFFFF 45%, #EFF6FF 100%);
  border-color: #DBEAFE;
}
.bento-card.theme-amber {
  background: linear-gradient(145deg, #FFFFFF 45%, #FFFBEB 100%);
  border-color: #FEF3C7;
}
.bento-card.theme-violet {
  background: linear-gradient(145deg, #FFFFFF 45%, #F5F3FF 100%);
  border-color: #EDE9FE;
}

.bento-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tint);
  color: var(--brand);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}
.pillar-icon.green { background: var(--emerald-soft); color: var(--emerald); }
.pillar-icon.violet { background: var(--violet-soft); color: var(--violet-ink); }
.pillar-icon.amber { background: var(--amber-soft); color: var(--amber-ink); }

.bento-kicker {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.bento-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* Bento Widget 1: Privacy Shield Radar */
.bento-privacy-stage {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(167, 243, 208, 0.9);
  box-shadow: var(--shadow-xs);
}

.radar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(5, 150, 105, 0.25);
  animation: radarPulse 3.2s ease-out infinite;
}
.radar-ring.r2 { animation-delay: 1.05s; }
.radar-ring.r3 { animation-delay: 2.1s; }

@keyframes radarPulse {
  0% { transform: scale(0.45); opacity: 0.85; }
  100% { transform: scale(1.12); opacity: 0; }
}

.radar-core {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px -6px rgba(5, 150, 105, 0.55);
  z-index: 2;
}

.privacy-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 11px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
}

.p-metric-row strong {
  color: var(--emerald);
  font-family: var(--font-en);
}

/* Bento Widget 2: Animated 120fps Performance Gauge */
.fps-widget {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #DBEAFE;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fps-gauge {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fps-gauge svg {
  transform: rotate(-90deg);
}

.fps-gauge-arc {
  stroke-dasharray: 220;
  stroke-dashoffset: 30;
  animation: gaugeBreath 3.5s ease-in-out infinite alternate;
}

@keyframes gaugeBreath {
  0% { stroke-dashoffset: 48; }
  100% { stroke-dashoffset: 18; }
}

.fps-gauge-val {
  position: absolute;
  text-align: center;
  line-height: 1.05;
}

.fps-gauge-val strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
}

.fps-gauge-val span {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.fps-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fps-bar-item span {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 4px;
}

.fps-bar-track {
  height: 7px;
  border-radius: 99px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.fps-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563EB, #06B6D4);
}

/* Bento Widget 3: Interactive Airplane/Offline Mode Simulator */
.offline-sim-box {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #FDE68A;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offline-sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sim-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink-primary);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s var(--ease-spring);
}

.sim-toggle-btn.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.sim-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.sim-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-secondary);
  transition: all 0.25s ease;
}

.offline-sim-box.airplane-on .sim-chip {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: var(--emerald-ink);
}

.sim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}

/* Bento Widget 4: 10-Language Orbit Cloud */
.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #DDD6FE;
}

.lang-pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-primary);
  transition: transform 0.22s var(--ease-spring), border-color 0.2s, background 0.2s, color 0.2s;
}

.lang-pill-chip:hover,
.lang-pill-chip.highlight {
  transform: translateY(-2px);
  background: var(--violet-soft);
  border-color: #C4B5FD;
  color: var(--violet-ink);
}

/* ==========================================================================
   Part 2: Master-Detail Interactive Technical Milestones Lab
   ========================================================================== */
.milestones-shell {
  margin-top: 56px;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.milestones-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}

.milestone-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: start;
  transition: all 0.26s var(--ease-spring);
}

.ms-tab:hover {
  background: #FFFFFF;
  border-color: #93C5FD;
  transform: translateX(-3px);
}

html[dir="ltr"] .ms-tab:hover {
  transform: translateX(3px);
}

.ms-tab.active {
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.25), 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.ms-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-family: var(--font-en);
  font-size: 0.84rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.ms-tab.active .ms-num {
  background: linear-gradient(135deg, #2563EB, #059669);
  color: #FFFFFF;
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.5);
}

.ms-tab-text {
  min-width: 0;
  flex: 1;
}

.ms-tab-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 2px;
}

.ms-tab-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-primary);
}

/* Interactive Tech Spotlight Stage */
.milestone-stage {
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid #DBEAFE;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  animation: recPopIn 0.35s var(--ease-spring);
}

.ms-blueprint-visual {
  height: 156px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.12), transparent 52%),
    radial-gradient(circle at 82% 80%, rgba(16, 185, 129, 0.13), transparent 52%),
    #F8FAFC;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.ms-stage-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ms-spec-chip {
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  text-align: center;
}

.ms-spec-chip strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--brand);
}

.ms-spec-chip span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 2px;
}

.ms-powered-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--bg-subtle);
}

.ms-powered-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.ms-app-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-page);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.ms-app-chip:hover {
  border-color: var(--brand);
  background: var(--bg-tint);
  color: var(--brand);
  transform: translateY(-2px);
}

.ms-app-chip img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
}

/* Blueprint Visual Animations */
.bp-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.bp-node {
  padding: 10px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-primary);
  text-align: center;
}

.bp-node.accent {
  background: linear-gradient(135deg, #2563EB, #059669);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.45);
}

.bp-line {
  width: 38px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #93C5FD, #2563EB, #10B981);
  background-size: 200% 100%;
  animation: bpPulse 1.8s linear infinite;
}

@keyframes bpPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.bp-mem-grid {
  display: grid;
  grid-template-columns: repeat(6, 36px);
  gap: 8px;
}

.bp-mem-cell {
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand);
  animation: cellGlow 2.4s ease-in-out infinite alternate;
}

.bp-mem-cell:nth-child(even) {
  background: #EFF6FF;
  animation-delay: 0.6s;
}

@keyframes cellGlow {
  0% { transform: scale(1); border-color: #BFDBFE; }
  100% { transform: scale(1.06); border-color: #2563EB; box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.35); }
}

.bp-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 82px;
}

.bp-wave-bar {
  width: 16px;
  height: 46px;
  border-radius: 99px;
  background: linear-gradient(180deg, #7C3AED, #2563EB, #06B6D4);
  animation: waveBar 1.4s ease-in-out infinite alternate;
}

@keyframes waveBar {
  0% { height: 24px; opacity: 0.65; }
  100% { height: 78px; opacity: 1; }
}

/* ==========================================================================
   Feature 16: Interactive Spring FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item.open {
  border-color: #93C5FD;
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 18px 22px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: start;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-primary);
  cursor: pointer;
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-page);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), background 0.2s, color 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-spring);
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-secondary);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* ==========================================================================
   Feature 18: Privacy Banner & Interactive Smart Contact Form
   ========================================================================== */
.support-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}

.privacy-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 100%);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-xl);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.privacy-banner h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 800;
}

.privacy-banner p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.privacy-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
}

.contact-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-control:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  direction: ltr;
}

.email-address {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 44px 0 96px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-subtle);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Feature 3: Command Palette (Ctrl+K) — Linear/Raycast Style
   ========================================================================== */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 650;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 18px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cmd-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cmd-dialog {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-14px) scale(0.97);
  transition: transform 0.22s var(--ease-spring);
}

.cmd-backdrop.open .cmd-dialog {
  transform: translateY(0) scale(1);
}

.cmd-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cmd-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
  outline: none;
}

.cmd-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: start;
  transition: background 0.14s;
}

.cmd-item:hover,
.cmd-item.selected {
  background: var(--bg-tint);
}

.cmd-item img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.cmd-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-subtle);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cmd-item-text {
  min-width: 0;
  flex: 1;
}

.cmd-item-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-primary);
}

.cmd-item-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Feature 11: Side-by-Side Comparison Modal
   ========================================================================== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.compare-col {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-col-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-col-head img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   App Detail Modal + Feature 12 (QR Code) + Feature 14 (Next/Prev Lightbox)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.26s var(--ease-spring);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}

.modal-app-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.modal-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-subtle);
  color: var(--ink-primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-top-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.modal-desc {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.qr-handoff-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
  text-align: center;
}

.qr-handoff-box svg {
  border-radius: 8px;
  border: 1px solid var(--border);
}

.qr-handoff-box span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  max-width: 120px;
}

.shots-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.shots-strip::-webkit-scrollbar { height: 7px; }
.shots-strip::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

.shot-thumb {
  flex: 0 0 auto;
  height: 280px;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: transform 0.22s var(--ease-spring);
  background: var(--bg-subtle);
}

.shot-thumb:hover {
  transform: scale(1.03);
}

.modal-features h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  background: var(--bg-page);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.feature-list li svg {
  width: 18px;
  height: 18px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 26px;
  border-top: 1px solid var(--border);
  background: var(--bg-page);
}

.modal-meta-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Enhanced Gallery Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 750;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-height: 84vh;
  max-width: 82vw;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.lb-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lb-nav-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.lb-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================================================
   Feature 19: Floating Bottom Quick-Action Glass Dock + Radial Scroll Ring
   ========================================================================== */
.floating-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.dock-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--ink-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.2s var(--ease-spring), color 0.18s;
  white-space: nowrap;
}

.dock-btn:hover {
  background: var(--bg-tint);
  color: var(--brand);
  transform: translateY(-2px);
}

.dock-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dock-badge.rose {
  background: var(--rose);
}

.dock-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.scroll-top-ring {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  position: relative;
}

.scroll-top-ring svg.ring-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 84px;
  inset-inline-end: 24px;
  z-index: 900;
  background: var(--ink-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.87rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-spring);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Legal Pages (privacy.html & terms.html)
   ========================================================================== */
.legal-hero {
  padding: 52px 0 36px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border);
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  padding: 44px 0 72px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.legal-toc h3 { margin: 0 0 12px; font-size: 0.9rem; font-weight: 800; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.legal-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background 0.15s, color 0.15s;
}
.legal-toc a:hover { background: var(--bg-tint); color: var(--brand); }

.legal-content { display: flex; flex-direction: column; gap: 22px; }
.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  scroll-margin-top: 96px;
}
.legal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-subtle);
}
.legal-card-app { display: flex; align-items: center; gap: 12px; }
.legal-card-app img { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); }
.legal-card h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.legal-card h3 { margin: 18px 0 8px; font-size: 1.02rem; font-weight: 800; }
.legal-card p, .legal-card li { color: var(--ink-secondary); font-size: 0.94rem; line-height: 1.75; }
.legal-card ul { margin: 8px 0; padding-inline-start: 20px; }

.callout {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-tint);
  border: 1px solid var(--brand-soft);
  color: var(--ink-primary);
  font-size: 0.92rem;
  margin: 14px 0;
}
.callout.warn { background: var(--amber-soft); border-color: #FDE68A; }

.copy-anchor-btn {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.copy-anchor-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-tint); }

/* ==========================================================================
   Responsive Breakpoints & Reduced Motion
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommender-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .milestones-layout { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 900px) {
  .bento-span-7, .bento-span-5 { grid-column: span 12; }
}

@media (max-width: 860px) {
  .recommender-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .nav-play-btn,
  .cmd-trigger-label,
  .brand-sub {
    display: none;
  }
}

@media (max-width: 980px) {
  .cmd-trigger {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .cmd-trigger .kbd-chip {
    display: none;
  }

  .brand-link {
    font-size: 0.96rem;
    gap: 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 0.82rem;
    gap: 4px;
  }

  .nav-links a svg {
    display: none;
  }

  .lang-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 10px;
  }

  .nav-capsule-wrap {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-capsule-wrap::-webkit-scrollbar {
    display: none;
  }

  .nav-links {
    width: max-content;
    margin-inline: auto;
  }

  .nav-mega-popover {
    display: none;
  }
}

@media (max-width: 720px) {
  .apps-grid, .recommender-goals, .recommender-result, .ms-stage-specs { grid-template-columns: 1fr; }
  .bento-privacy-stage { grid-template-columns: 1fr; }
  .milestones-shell { padding: 20px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orbit-chip { display: none; }
  .modal-top-split { grid-template-columns: 1fr; }
  .qr-handoff-box { flex-direction: row; justify-content: center; }
  .feature-list { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .apps-grid.list-view .app-card { flex-direction: column; align-items: stretch; }
  .floating-dock .dock-label { display: none; }
  .hero { padding: 42px 0 40px; }
  .section { padding: 52px 0; }
}

/* ==========================================================================
   Batch 2 Upgrades: Official 1024x500 Feature Graphic Cards + 20 Pro Features
   (Preserves existing Light Mode beauty with zero clutter!)
   ========================================================================== */

/* Feature 23: Light Mode Studio Accent Palette Customizer */
html[data-accent="emerald"] {
  --brand: #059669;
  --brand-hover: #047857;
  --brand-soft: #D1FAE5;
  --brand-ink: #065F46;
  --bg-tint: #ECFDF5;
}
html[data-accent="violet"] {
  --brand: #7C3AED;
  --brand-hover: #6D28D9;
  --brand-soft: #EDE9FE;
  --brand-ink: #5B21B6;
  --bg-tint: #F5F3FF;
}
html[data-accent="amber"] {
  --brand: #D97706;
  --brand-hover: #B45309;
  --brand-soft: #FEF3C7;
  --brand-ink: #92400E;
  --bg-tint: #FFFBEB;
}

/* Official 1024x500 Feature Graphic Banner on App Cards */
.app-card {
  padding: 0;
}

.app-banner-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  background: linear-gradient(135deg, #EFF6FF 0%, #F1F5F9 100%);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.app-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-spring), filter 0.35s ease;
}

.app-card:hover .app-banner-img {
  transform: scale(1.055);
}

.app-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16) 0%, transparent 45%, rgba(15, 23, 42, 0.28) 100%);
  pointer-events: none;
}

.app-banner-top-bar {
  position: absolute;
  top: 10px;
  inset-inline: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 3;
}

.app-banner-top-bar .badge {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.app-banner-top-bar .icon-tool-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.app-card-inner {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-card-inner .app-card-top {
  margin-top: -36px;
  margin-bottom: 12px;
  position: relative;
  z-index: 4;
  align-items: flex-end;
}

.app-card-inner .app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.22);
}

.app-card-inner .app-title {
  padding-top: 22px;
}

/* List View Adaptation with 1024x500 Thumbnail */
.apps-grid.list-view .app-card {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  gap: 0;
}

.apps-grid.list-view .app-banner-wrap {
  width: 220px;
  min-height: 120px;
  flex-shrink: 0;
  border-bottom: none;
  border-inline-end: 1px solid var(--border);
}

.apps-grid.list-view .app-card-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "head actions"
    "desc actions";
  align-items: center;
  gap: 6px 18px;
  padding: 16px 20px;
}

.apps-grid.list-view .app-card-inner .app-card-top {
  grid-area: head;
  margin-top: 0;
  margin-bottom: 0;
  align-items: center;
}

.apps-grid.list-view .app-card-inner .app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border-width: 1px;
}

.apps-grid.list-view .app-card-inner .app-title {
  padding-top: 0;
  font-size: 1rem;
}

.apps-grid.list-view .app-tagline {
  grid-area: desc;
  margin: 0;
  -webkit-line-clamp: 2;
}

.apps-grid.list-view .app-card-actions {
  grid-area: actions;
  border-top: none;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 145px;
}

/* Voice Search Mic Button inside Search Bar */
.search-input.has-mic {
  padding-inline-end: 38px;
}

.voice-mic-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-mic-btn:hover {
  background: var(--bg-tint);
  color: var(--brand);
}

.voice-mic-btn.listening {
  background: var(--rose-soft);
  color: var(--rose);
  animation: pulseRing 1.4s infinite;
}

/* Instant Smart Tag Chips & Recently Viewed Shelf */
.quick-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.quick-tags-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.quick-tag-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-tag-btn:hover,
.quick-tag-btn.active {
  border-color: var(--brand);
  background: var(--bg-tint);
  color: var(--brand);
}

.recent-shelf {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.recent-shelf.has-items {
  display: flex;
}

.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-page);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
  transition: all 0.18s;
}

.recent-chip:hover {
  border-color: var(--brand);
  background: var(--bg-tint);
  color: var(--brand);
}

.recent-chip img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

/* Modal Feature Graphic Banner + Permission Chips + Package Copy */
.modal-banner-strip {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1024 / 420;
  min-height: 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  background: var(--bg-subtle);
}

.modal-banner-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-perm-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: var(--emerald-ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.pkg-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink-muted);
  font-family: var(--font-en);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.pkg-copy-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--bg-tint);
}

/* Floating Dock Accent Palette Switcher */
.palette-popover {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  z-index: 240;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s var(--ease-spring);
}

.palette-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 0 1.5px var(--border-strong);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}

.swatch-btn:hover,
.swatch-btn.active {
  transform: scale(1.18);
  box-shadow: 0 0 0 2.5px var(--ink-primary);
}

/* Lightbox Slideshow Play Button */
.lb-play-btn {
  position: fixed;
  top: 22px;
  inset-inline-end: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lb-play-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* Keyboard Shortcuts & Press Kit Modal Rows */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 700;
}

.press-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.press-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.press-box strong {
  font-size: 0.85rem;
  color: var(--ink-primary);
}

.press-box p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

/* Confetti Micro-Celebration Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 980;
  pointer-events: none;
}

@media (max-width: 720px) {
  .apps-grid.list-view .app-card { flex-direction: column; }
  .apps-grid.list-view .app-banner-wrap { width: 100%; border-inline-end: none; border-bottom: 1px solid var(--border); }
  .apps-grid.list-view .app-card-inner { flex-direction: column; align-items: stretch; }
  .shortcut-grid, .press-card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
