/* ==========================================================================
   OnceAhead Technologies — Core Stylesheet
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. CSS Variables & Theme Configuration
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  --bg-primary: #0B0D12;
  --bg-surface: #111620;
  --bg-card: #151A24;
  --text-primary: #F5F7FA;
  --text-secondary: #98A2B3;
  --text-inverse: #101828;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --input-bg: #1A202C;
  --glow-opacity: 0.15;
}

:root[data-theme="light"] {
  --bg-primary: #F7F9FC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #101828;
  --text-secondary: #667085;
  --text-inverse: #FFFFFF;
  --border-color: #E4E7EC;
  --border-hover: #D0D5DD;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.06), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 16px 24px -4px rgba(16, 24, 40, 0.08), 0 6px 8px -4px rgba(16, 24, 40, 0.03);
  --input-bg: #FFFFFF;
  --glow-opacity: 0.06;
}

:root {
  --primary-blue: #4F6BFF;
  --purple: #7C5CFC;
  --cyan-accent: #18B6D9;
  
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Core brand gradients */
  --grad-blue-purple: linear-gradient(135deg, #4F6BFF 0%, #7C5CFC 100%);
  --grad-purple-cyan: linear-gradient(135deg, #7C5CFC 0%, #18B6D9 100%);
  --grad-orange-red: linear-gradient(135deg, #FF6B4A 0%, #FF2E2E 100%);
  --grad-calm-blue: linear-gradient(135deg, #4F6BFF 0%, #18B6D9 100%);
  --grad-cyan-blue: linear-gradient(135deg, #18B6D9 0%, #4F6BFF 100%);
  --grad-text-mask: linear-gradient(135deg, #FFFFFF 30%, #98A2B3 100%);
}

/* --------------------------------------------------------------------------
   2. Resets & Global Styles
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section-spacing {
  padding: 100px 0;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: var(--grad-blue-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   3. Buttons & UI Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: var(--grad-blue-purple);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 107, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 107, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn svg {
  transition: transform 0.2s ease;
}

.btn:hover svg.arrow-icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. Sticky Global Header
   -------------------------------------------------------------------------- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.header-nav.scrolled {
  height: 68px;
  background-color: rgba(11, 13, 18, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="light"] .header-nav.scrolled {
  background-color: rgba(247, 249, 252, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-blue-purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(79, 107, 255, 0.3);
  transition: transform 0.3s ease;
}

.logo-wrapper:hover .logo-icon {
  transform: rotate(-8deg) scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.logo-subtitle {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-blue-purple);
  transition: width 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-card);
  border-color: var(--border-hover);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile Drawer Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px auto;
  transition: all 0.3s ease;
}

/* Mobile nav panel */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-panel.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  list-style: none;
  text-align: center;
  margin-bottom: 40px;
}

.mobile-menu li {
  margin: 24px 0;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
}

.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   5. Homepage Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-caption {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Ecosystem Composition Visual */
.hero-visual-wrapper {
  position: relative;
  height: 480px;
}

.hero-glow-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79,107,255,0.15) 0%, rgba(124,92,252,0.05) 50%, rgba(0,0,0,0) 100%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(40px);
}

.hero-ecosystem {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Floating Card Element styles */
.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  width: 240px;
  animation: float-slow 6s ease-in-out infinite;
}

.floating-card .app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.floating-card-info {
  display: flex;
  flex-direction: column;
}

.floating-card-title {
  font-weight: 700;
  font-size: 15px;
}

.floating-card-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Position Floating Cards */
.card-lava {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}
.card-lava .app-icon {
  background: var(--grad-orange-red);
}

.card-cash {
  top: 45%;
  left: 30%;
  animation-delay: 1.5s;
  width: 250px;
}
.card-cash .app-icon {
  background: var(--grad-blue-purple);
}

.card-focus {
  top: 75%;
  left: 10%;
  animation-delay: 3s;
}
.card-focus .app-icon {
  background: var(--grad-calm-blue);
}

.card-scan {
  top: 25%;
  right: 5%;
  animation-delay: 0.8s;
}
.card-scan .app-icon {
  background: var(--grad-cyan-blue);
}

/* --------------------------------------------------------------------------
   6. Credibility / Portfolio Info Strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
}

.trust-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.trust-title {
  font-size: 20px;
  max-width: 250px;
  line-height: 1.3;
}

.trust-stats {
  display: flex;
  gap: 48px;
}

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

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   7. Featured Products Grid
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--primary-blue);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 650px;
}

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

/* Premium Product Card */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: transparent;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.3s ease;
}

.product-card-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, var(--theme-glow, rgba(79, 107, 255, 0.15)) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  opacity: 0;
  filter: blur(15px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card:hover::before {
  background: var(--gradient-border);
}

.product-card:hover .product-card-glow {
  opacity: var(--glow-opacity);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  z-index: 1;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-header-left .card-name {
  margin: 0;
}

.card-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: #FFFFFF;
  flex-shrink: 0; /* Prevent icon from shrinking on narrow containers */
}

.card-app-icon svg {
  width: 32px;
  height: 32px;
}

.card-category {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--text-secondary);
}

:root[data-theme="light"] .card-category {
  background: rgba(0, 0, 0, 0.03);
}

.card-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  z-index: 1;
}

.card-short-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
  z-index: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-bottom: 20px;
  z-index: 1;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-secondary);
}

.meta-pill.rating svg {
  fill: #F3A63B;
  stroke: #F3A63B;
  width: 14px;
  height: 14px;
}

.meta-pill svg {
  width: 14px;
  height: 14px;
}

.card-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.card-action-link {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
}

.card-action-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.product-card:hover .card-action-link svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Product Ecosystem (Categories) Section
   -------------------------------------------------------------------------- */
.eco-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.eco-cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.eco-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.eco-cat-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 107, 255, 0.1);
  color: var(--primary-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.eco-cat-icon svg {
  width: 24px;
  height: 24px;
}

.eco-cat-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.eco-cat-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   9. Company Philosophy / Why OnceAhead Section
   -------------------------------------------------------------------------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.philo-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.philo-item {
  display: flex;
  gap: 20px;
}

.philo-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-blue);
}

.philo-info h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.philo-info p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. Latest Release Section (Banner style)
   -------------------------------------------------------------------------- */
.latest-release-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.release-banner-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.release-banner-info h3 {
  font-size: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.release-banner-badge {
  font-size: 11px;
  background: var(--primary-blue);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
}

.release-banner-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --------------------------------------------------------------------------
   11. Dynamic Products Catalog (/apps) Page
   -------------------------------------------------------------------------- */
.catalog-controls {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.catalog-search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.catalog-search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.catalog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.filter-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #FFFFFF;
}

.sort-select {
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--border-color);
  border-radius: 20px;
  background: var(--bg-surface);
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   12. Product Details (/apps/{slug}) Page
   -------------------------------------------------------------------------- */
.app-detail-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.app-meta-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.app-details-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.app-details-icon svg {
  width: 44px;
  height: 44px;
}

.app-meta-text h1 {
  font-size: 40px;
  margin-bottom: 4px;
}

.app-hero-stats {
  display: flex;
  gap: 24px;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.app-stat-col {
  display: flex;
  flex-direction: column;
}

.app-stat-val {
  font-size: 22px;
  font-weight: 700;
}

.app-stat-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Swipable Screenshots display container */
.screenshots-container {
  margin: 60px 0;
}

.screenshots-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  aspect-ratio: 9/16;
  background: var(--bg-card);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback Abstract screen UI visual */
.screenshot-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #FFFFFF;
  text-align: center;
  background: var(--gradient);
}

.fallback-logo {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.fallback-logo svg {
  width: 32px;
  height: 32px;
}

.fallback-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.fallback-desc {
  font-size: 12px;
  opacity: 0.8;
}

/* Specification Panel */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.spec-lbl {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.spec-val {
  font-weight: 600;
  font-size: 16px;
}

/* How it Works / Timeline steps */
.steps-progression {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  position: relative;
  gap: 30px;
}

.steps-progression::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  max-width: 250px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 20px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.step-node:hover .step-number {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: 0 0 15px rgba(79, 107, 255, 0.2);
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   13. FAQ Accordion Elements
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 20px;
}

.faq-question {
  font-weight: 600;
  font-size: 16px;
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Active FAQ panel classes */
.faq-item.active {
  border-color: var(--border-hover);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

/* Branded Footer CTA Box */
.branded-cta-block {
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 100px;
}

.branded-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--theme-glow, rgba(79, 107, 255, 0.15)) 0%, rgba(0,0,0,0) 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 1;
}

.branded-cta-content {
  position: relative;
  z-index: 2;
}

.branded-cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.branded-cta-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   14. Releases Timeline Page
   -------------------------------------------------------------------------- */
.release-timeline {
  max-width: 800px;
  margin: 60px auto 0;
  position: relative;
  padding-left: 40px;
}

.release-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 4px;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.release-timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.release-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-blue);
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 10px var(--primary-blue);
}

.release-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.release-app-name {
  font-size: 20px;
  font-weight: 700;
}

.release-version-badge {
  font-size: 12px;
  background: rgba(79, 107, 255, 0.1);
  color: var(--primary-blue);
  border: 1px solid rgba(79, 107, 255, 0.2);
  padding: 2px 8px;
  border-radius: 100px;
}

.release-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: auto;
}

.release-changes-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.release-changes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.release-changes-list li {
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.release-changes-list li::before {
  content: "•";
  color: var(--primary-blue);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   15. Contact Us Form Page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 12px;
}

.contact-info-title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.contact-info-val {
  font-size: 16px;
  font-weight: 600;
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(79, 107, 255, 0.25);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.form-checkbox-group input {
  margin-top: 4px;
}

.form-checkbox-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.form-alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.form-alert-success {
  background: rgba(24, 182, 217, 0.1);
  border: 1px solid var(--cyan-accent);
  color: #7BE0F2;
}

.form-alert-danger {
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid #FF5C5C;
  color: #FF8E8E;
}

/* --------------------------------------------------------------------------
   16. Corporate Footer Section
   -------------------------------------------------------------------------- */
.footer-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 250px;
}

.footer-links-col h5 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.footer-links-col a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

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

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-social-links {
  display: flex;
  gap: 16px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: var(--bg-primary);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   17. Admin Panel & CRUD layouts
   -------------------------------------------------------------------------- */
.admin-layout {
  min-height: 100vh;
  display: flex;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
}

.admin-logo {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.admin-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}

.admin-menu-link:hover, .admin-menu-link.active {
  color: var(--text-primary);
  background-color: var(--bg-card);
}

.admin-menu-link svg {
  width: 20px;
  height: 20px;
}

.admin-content-area {
  margin-left: 260px;
  flex-grow: 1;
  padding: 40px;
  background-color: var(--bg-primary);
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

/* Statistics cards list */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-stat-info h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.admin-stat-number {
  font-size: 28px;
  font-weight: 800;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(79, 107, 255, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Admin lists table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  font-weight: 600;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.02);
}

:root[data-theme="light"] .admin-table th {
  background-color: rgba(0, 0, 0, 0.01);
}

.admin-actions-cell {
  display: flex;
  gap: 10px;
}

.btn-small {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   18. Animation Keyframes & Motion Accessibility
   -------------------------------------------------------------------------- */
@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* IntersectionObserver reveal animations */
.reveal-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-in.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Respect motion settings */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .floating-card {
    animation: none !important;
  }
  .reveal-fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   19. Responsive Layouts & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-caption {
    justify-content: center;
  }
  .hero-visual-wrapper {
    height: 360px;
    max-width: 500px;
    margin: 0 auto;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .eco-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-sidebar {
    width: 80px;
    padding: 20px 10px;
    align-items: center;
  }
  .admin-logo span, .admin-menu-link span {
    display: none;
  }
  .admin-content-area {
    margin-left: 80px;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .app-meta-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .app-meta-text {
    text-align: center;
  }
  .app-hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-nav {
    height: 70px;
  }
  .hamburger {
    display: block;
  }
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps-progression {
    flex-direction: column;
    align-items: center;
  }
  .steps-progression::before {
    display: none;
  }
  .step-node {
    max-width: 100%;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .eco-categories-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}
