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

/* ==========================================
   1. DESIGN SYSTEM & CSS VARIABLES
   ========================================== */
:root {
  /* Color Palette (Option 3: Corporate Marketplace Theme) */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --primary: #1D4ED8;
  --primary-hover: #1E40AF;
  --primary-glow: rgba(29, 78, 216, 0.15);
  
  --secondary: #475569;
  --secondary-glow: rgba(71, 85, 105, 0.1);
  
  --accent-orange: #F59E0B; /* Amber accent */
  --accent-orange-glow: rgba(245, 158, 11, 0.2);
  
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.15);
  
  --danger: #EF4444;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  
  --border-light: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.15);
  --border-glow: rgba(29, 78, 216, 0.15);
  
  /* Fonts */
  --font-headings: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px var(--primary-glow);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   2. GLOBAL STYLE RESET & BASIS
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

p {
  text-align: justify;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================
   3. REUSABLE PREMIUM UTILITIES & EFFECTS
   ========================================== */
.glassmorphism {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-text-electric {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
  box-shadow: 0 4px 15px var(--primary-glow);
  color: #ffffff;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow), var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
  background: var(--border-light);
  transform: translateY(-2px);
  border-color: var(--secondary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #EA580C 100%);
  box-shadow: 0 4px 15px var(--accent-orange-glow);
  color: #ffffff;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-orange-glow);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.2); }
  50% { box-shadow: 0 0 30px rgba(37, 99, 235, 0.5); }
}

.animate-fade-in {
  animation: fadeInUp var(--transition-normal) forwards;
}

/* ==========================================
   4. LAYOUT STRUCTURE (NAVBAR & FOOTER)
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-normal);
  border-bottom: 1px solid var(--border-light);
  box-sizing: border-box;
  overflow: visible;
}

header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

nav ul li a {
  padding: 10px 16px;
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

nav ul li a:hover, nav ul li a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

nav ul li a.active {
  border-bottom: 2px solid var(--primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

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

.cart-trigger {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.cart-trigger:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);                                                      
}

/* Main Viewport spacing */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Footer styles */
footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-light);
  padding: 80px 24px 30px;
}

.footer-grid { 
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-column p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-column h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

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

.footer-column ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 20px;
}

.developer-link {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition-fast);
}

.developer-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a:hover {
  color: var(--text-secondary);
}

/* ==========================================
   5. PAGES COMPONENT & INTERACTIVE UI
   ========================================== */

/* 5.1 HOME PAGE & HERO */
.hero-section {
  position: relative;
  padding: 100px 24px 120px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--border-glow);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--secondary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 3.8rem;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-desktop {
  display: flex !important;
}

.hero-visual-mobile {
  display: none !important;
}

@media (max-width: 992px) {
  .hero-visual-desktop {
    display: none !important;
  }
  .hero-visual-mobile {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .hero-visual-mobile {
    display: block !important;
  }
}

.hero-visual-card {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(37, 99, 235, 0.15);
}

.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.visual-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: bold;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 4px 12px;
  border-radius: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

.visual-image-container {
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.visual-img {
  max-height: 80%;
  object-fit: contain;
  transition: var(--transition-normal);
}

.visual-spec-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--bg-tertiary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
}

.visual-details {
  margin-top: 24px;
}

.visual-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.visual-title-row h3 {
  font-family: var(--font-headings);
  font-size: 1.3rem;
}

.visual-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.visual-price-current {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
}

.visual-price-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.visual-grade-badge {
  background: var(--primary);
  color: white;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* Home Section Styles */
.section-wrapper {
  padding: 100px 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-badge {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================
   GRID UTILITY CLASSES
   ========================================== */
.grid-responsive-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

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

.grid-about-vision {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

/* 5.2 GRADING SYSTEM INTERACTIVE EXPLORER */
.grade-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
  margin-top: 40px;
}

.grade-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grade-btn {
  text-align: left;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
}

.grade-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-medium);
}

.grade-btn.active {
  background: var(--bg-tertiary);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), var(--shadow-glow);
}

.grade-badge-pill {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.grade-badge-s1 { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.grade-badge-s2 { background: rgba(56, 189, 248, 0.15); color: var(--secondary); }
.grade-badge-s3 { background: rgba(249, 115, 22, 0.15); color: var(--accent-orange); }
.grade-badge-s4 { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.grade-badge-s5 { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }

.grade-label {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.grade-btn-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: right;
}

.grade-details-panel {
  border-radius: var(--radius-lg);
  padding: 40px;
}

.details-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
}

.details-title h2 {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 700;
}

.details-title p {
  color: var(--text-secondary);
  margin-top: 4px;
}

.details-score {
  text-align: right;
}

.score-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-headings);
  color: var(--secondary);
}

.score-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.details-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.metric-bar-group {
  margin-bottom: 16px;
}

.metric-lbl-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.metric-bar-bg {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-bullet-box h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.details-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.details-bullets li i {
  color: var(--success);
  margin-top: 4px;
}

/* 5.3 SHOPPING LISTINGS (MOBILES & LAPTOPS) */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-top: 40px;
}

.shop-sidebar {
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

/* Sidebar collapsible toggle — visible only on mobile */
.sidebar-toggle-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.sidebar-toggle-header h4 {
  font-size: 1rem;
  font-family: var(--font-headings);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.sidebar-toggle-header .toggle-icon {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.shop-sidebar.filters-expanded .toggle-icon {
  transform: rotate(180deg);
}

.sidebar-filters-content {
  /* visible by default on desktop */
  display: block;
}

.filter-group {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.filter-checkbox input {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  accent-color: var(--primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  cursor: pointer;
}

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

.filter-input-row {
  display: flex;
  gap: 10px;
}

.filter-text-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.filter-text-input:focus {
  border-color: var(--primary);
}

.shop-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-bar-container {
  flex-grow: 1;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 48px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.sort-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.device-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid var(--border-light);
}

.device-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
}

.device-img-box {
  height: 220px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.device-img-box img {
  max-height: 70%;
  object-fit: contain;
  transition: var(--transition-normal);
}

.device-card:hover .device-img-box img {
  transform: scale(1.05);
}

.card-grade-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.card-brand-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--bg-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
}

.device-info-box {
  padding: 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.card-specs {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.price-col {
  display: flex;
  flex-direction: column;
}

.price-col .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-col .val {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-col.retail .val {
  color: var(--text-primary);
}

.price-col.b2b .val {
  color: var(--success);
}

.card-btn {
  width: 100%;
  margin-top: 16px;
}

/* 5.4 B2B & RETAIL PRICING CALCULATOR */
.pricing-calculator-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

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

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-form-group label {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.calc-select, .calc-text-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.calc-select:focus, .calc-text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.calc-slider-container {
  margin-top: 8px;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  outline: none;
  accent-color: var(--primary);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.calc-outputs-panel {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-medium);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.calc-output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.calc-output-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-output-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.calc-output-value {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-output-value.highlight-green {
  color: var(--success);
  font-size: 1.8rem;
}

.calc-output-value.highlight-blue {
  color: var(--secondary);
}

/* 5.5 PETI TO PETI TRADING SIMULATOR */
.peti-simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.peti-control-panel {
  border-radius: var(--radius-lg);
  padding: 32px;
}

.peti-warehouse-map {
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.warehouse-boxes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.warehouse-box {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.warehouse-box i {
  font-size: 1.6rem;
  color: var(--text-muted);
}

.warehouse-box span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.warehouse-box.filled {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.1);
}

.warehouse-box.filled i {
  color: var(--secondary);
  animation: float 3s ease-in-out infinite;
}

.warehouse-box.filled.allocated {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--success);
}
.warehouse-box.filled.allocated i {
  color: var(--success);
}

.warehouse-box.selected {
  border-color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.1);
  transform: scale(1.05);
}

.simulator-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.stat-card h5 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-card p {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.timeline-step {
  display: flex;
  gap: 16px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--border-medium);
}

.marker-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 0 8px var(--primary);
}

.marker-dot.completed {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.marker-line {
  width: 2px;
  flex-grow: 1;
  background: var(--border-light);
  margin: 4px 0;
}

.timeline-content h6 {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 5.6 OFFERS & PROMOTIONS PANEL */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.offer-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.15);
}

.offer-badge {
  background: var(--accent-orange);
  color: white;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 0 0 12px 0;
  position: absolute;
  top: 0;
  left: 0;
}

.offer-banner {
  height: 160px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.offer-discount-large {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 3rem;
  color: var(--accent-orange);
}

.offer-body {
  padding: 24px;
  background: var(--bg-secondary);
}

.offer-body h3 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.offer-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.coupon-box {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
}

.coupon-code {
  font-family: monospace;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.copy-coupon-btn {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  transition: var(--transition-fast);
}

.copy-coupon-btn:hover {
  color: var(--text-primary);
}

.countdown-timer {
  display: flex;
  gap: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  align-items: center;
  margin-top: 16px;
}

.countdown-timer i {
  color: var(--accent-orange);
}

/* 5.7 DEALER REGISTRATION & PORTAL PREVIEW */
.registration-container {
  max-width: 700px;
  margin: 0 auto;
}

.form-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.form-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-light);
  z-index: 1;
}

.form-step-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-weight: bold;
  font-family: var(--font-headings);
  transition: var(--transition-normal);
}

.form-step-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.form-step-dot.completed {
  background: var(--success);
  border-color: var(--success);
}

.dealer-form {
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-fields-step {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.form-fields-step.active {
  display: flex;
  animation: fadeInUp var(--transition-normal) forwards;
}

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

.form-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-control-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.success-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* 5.8 ADMIN DASHBOARD & PARTNER PORTAL */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  margin-top: 40px;
  min-height: 600px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--bg-tertiary);
  color: var(--primary);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.dashboard-content-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.db-stat-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-light);
}

.db-stat-info h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.db-stat-info p {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
}

.db-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
}

.db-stat-card:nth-child(2) .db-stat-icon { color: var(--success); }
.db-stat-card:nth-child(3) .db-stat-icon { color: var(--accent-orange); }
.db-stat-card:nth-child(4) .db-stat-icon { color: var(--secondary); }

/* Charts & Listings Row */
.dashboard-visuals-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 24px;
}

.chart-card {
  border-radius: var(--radius-lg);
  padding: 30px;
}

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

.chart-title {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
}

.chart-container {
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 20px;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 40px;
}

.chart-bar-fill {
  width: 24px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(0deg, var(--primary), var(--secondary));
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chart-bar-fill::after {
  content: attr(data-val);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--text-primary);
}

.chart-bar-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.table-card {
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow: hidden;
}

.table-container {
  overflow-x: auto;
  margin-top: 16px;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.db-table th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

.db-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.db-table tr:last-child td {
  border-bottom: none;
}

.badge-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status.success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-status.warning { background: rgba(249, 115, 22, 0.15); color: var(--accent-orange); }
.badge-status.info { background: rgba(37, 99, 235, 0.15); color: var(--primary); }

/* ==========================================
   6. SHOPPING CART DRAWER (SLIDE-OUT)
   ========================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.cart-close-btn:hover {
  color: var(--text-primary);
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  max-height: 80%;
  object-fit: contain;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-item-price-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.cart-item-price {
  font-family: var(--font-headings);
  font-weight: bold;
  color: var(--secondary);
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.cart-qty-btn:hover {
  background: var(--border-light);
}

.cart-qty-val {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-remove {
  color: var(--danger);
  font-size: 1.1rem;
  align-self: center;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.cart-summary-row.total {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: none;
}

.cart-drawer-overlay.open, .cart-drawer-overlay.show {
  display: block;
}

.cart-empty-msg {
  text-align: center;
  color: var(--text-muted);
  margin-top: 80px;
}

.cart-empty-msg i {
  font-size: 4rem;
  margin-bottom: 16px;
  color: var(--border-medium);
}

/* ==========================================
   7. OTHER STATIC & SUPPORTING PAGES
   ========================================== */

/* About Page */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.about-stat-card {
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.about-stat-card h2 {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-stat-card p {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Accordion for Warranty */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 40px auto 0;
}

.accordion-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition-fast);
}

.accordion-item:hover {
  border-color: var(--border-medium);
}

.accordion-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
}

.accordion-header i {
  transition: transform var(--transition-normal);
}

.accordion-item.open .accordion-header i {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: var(--bg-primary);
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal);
}

.accordion-item.open .accordion-content {
  max-height: 500px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
}

/* Contact Grid */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-top: 40px;
}

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

.contact-card-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-card-details h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-card-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form-panel {
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* Notification Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  min-width: 300px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideInLeft var(--transition-normal) forwards;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--accent-orange); }
.toast.danger { border-left-color: var(--danger); }

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-content i {
  font-size: 1.25rem;
}

.toast.success i { color: var(--success); }
.toast.warning i { color: var(--accent-orange); }
.toast.danger i { color: var(--danger); }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Landing Page Styling --- */
.app-download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}


.store-badge-btn {
  display: inline-flex;
  align-items: center;
  background: #0F172A;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px 28px;
  gap: 14px;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.download-banner-badges-wrap .store-badge-btn {
  width: 100%;
  padding: 16px 28px;
  justify-content: center;
}

.store-badge-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.4);
}

.store-icon {
  font-size: 28px;
  line-height: 1;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.store-sub {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
}

.store-main {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-headings);
}

/* Phone Mockup Shell */
.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.phone-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 9/18;
  background: #0F172A;
  border: 10px solid #1E293B;
  border-radius: 40px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.phone-speaker {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #1E293B;
  border-radius: 3px;
  z-index: 10;
}

.phone-screen {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-screen-header {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.app-screen-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow-y: auto;
  padding-bottom: 60px;
}

.app-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-logo-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.app-logo-text span {
  color: var(--secondary);
}

.app-badge {
  font-size: 0.6rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.app-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.app-mockup-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.app-card-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.app-card-details {
  flex: 1;
}

.app-card-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.app-card-specs {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.app-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-card-price {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.app-card-badge {
  font-size: 0.55rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 1px 4px;
  border-radius: 3px;
}

.app-nav-simulation {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0.55rem;
  color: var(--text-muted);
  z-index: 5;
}

.app-nav-simulation span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.app-nav-simulation span.active {
  color: var(--primary);
}

.app-nav-simulation i {
  font-size: 0.85rem;
}

/* Feature icon wrappers */
.feature-card {
  padding: 30px; 
  border-radius: var(--radius-md); 
  transition: var(--transition-normal);
}

.feature-icon-wrapper {
  width: 50px; 
  height: 50px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.5rem; 
  border-radius: var(--radius-sm); 
  margin-bottom: 20px;
}

.feature-icon-wrapper.blue {
  background: rgba(29, 78, 216, 0.1); 
  color: var(--primary);
}

.feature-icon-wrapper.green {
  background: rgba(16, 185, 129, 0.1); 
  color: var(--success);
}

.feature-icon-wrapper.orange {
  background: rgba(245, 158, 11, 0.1); 
  color: var(--accent-orange);
}

.feature-card-link {
  font-size: 0.85rem; 
  font-weight: 600; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  margin-top: 16px;
  color: var(--primary);
}

.feature-card-link.text-green {
  color: var(--success);
}

.feature-card-link.text-orange {
  color: var(--accent-orange);
}

/* Showcase Cards */
.showcase-card {
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.showcase-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-card-icon {
  font-size: 1.5rem;
}

.showcase-card-icon.text-blue { color: var(--primary); }
.showcase-card-icon.text-green { color: var(--success); }
.showcase-card-icon.text-orange { color: var(--accent-orange); }

.showcase-card h4 {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.showcase-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.showcase-mockup-mini {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  font-size: 0.7rem;
}

.mini-app-header {
  background: var(--bg-tertiary);
  padding: 6px 12px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.mini-app-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-app-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.mini-app-tracking {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tracking-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.tracking-step.done {
  color: var(--success);
}

.tracking-step.active {
  color: var(--primary);
  font-weight: 600;
}

.mini-app-stats {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Download Banner Card */
.download-banner-card {
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 80px 80px 0 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.download-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* 2-Column Grid Setup */
.download-grid-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 0 40px;
  align-items: center;
  text-align: left;
  position: relative;
  z-index: 1;
}

.download-banner-content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
}

.download-banner-content h2 {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.download-banner-content p {
  color: #94A3B8;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 16px 0;
}
.download-banner-content p:last-child {
  margin-bottom: 0;
}

.download-banner-badges-wrap {
  grid-column: 1;
  grid-row: 2;
  padding-bottom: 80px; /* Moves the card bottom spacer to the badge cell */
}

/* Stack download buttons vertically and align left in desktop banner */
.download-banner-badges-wrap .app-download-badges {
  justify-content: flex-start;
  margin-top: 20px;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 16px;
}

/* Phone Mockup Styling */
.download-banner-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  height: 100%;
}

.download-phone-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
  transform: translateY(-20px) rotate(-3deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.download-banner-card:hover .download-phone-img {
  transform: translateY(-35px) rotate(0deg) scale(1.04);
}


/* ==========================================
   8. MEDIA QUERIES & RESPONSIVENESS
   ========================================== */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
  }
}

@media (min-width: 1151px) and (max-width: 1280px) {
  .navbar-container {
    padding: 16px 16px;
  }
  nav ul {
    gap: 4px;
  }
  nav ul li a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .nav-actions {
    gap: 12px;
  }
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px 80px;
    gap: 40px;
  }
  .hero-content p {
    margin: 0 auto 40px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .grade-grid-layout {
    grid-template-columns: 1fr;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: relative;
    top: 0;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .peti-simulator-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-visuals-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Centre the hero sell-items block when hero stacks to single column */
  .hero-what-we-sell {
    margin: 24px auto 32px;
    text-align: left;
  }
}

@media (max-width: 1150px) {
  nav {
    display: none;
    /* position:absolute sits relative to the fixed header, so top:100% always = just below header */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px 20px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  nav.mobile-open {
    display: block;
  }
  nav ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  nav ul li {
    width: 100%;
    list-style: none;
  }
  nav ul li a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
  }
  nav ul li a:hover,
  nav ul li a.active {
    background: var(--bg-tertiary);
    color: var(--primary);
  }
  .menu-toggle {
    display: flex;
  }

  /* Hide desktop CTA on mobile — hamburger menu replaces it */
  .btn-nav-cta {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 12px 16px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  .logo-icon,
  .logo-img {
    width: 36px;
    height: 36px;
  }
  .logo-icon {
    font-size: 1.3rem;
  }
  .logo-text {
    font-size: 1.35rem;
  }
  .logo-group {
    gap: 8px;
    flex-shrink: 0;
  }
  .nav-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  /* Hero adjustments */
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.15;
  }
  .section-title {
    font-size: 2.1rem;
  }
  .app-download-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Section padding */
  .section-wrapper {
    padding: 60px 16px;
  }

  /* Panel paddings */
  .grade-details-panel {
    padding: 20px;
  }
  .contact-form-panel {
    padding: 20px;
  }
  .pricing-calculator-card {
    padding: 20px;
  }
  .calc-outputs-panel {
    padding: 20px;
  }

  /* Grid responsive overrides */
  .grid-responsive-3 {
    grid-template-columns: 1fr;
  }
  .grid-brand-highlights {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding-bottom: 40px;
  }

  /* Override the inline grid style on the contact form row */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Horizontal Scrolling Grade Nav on mobile */
  .grade-nav {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 12px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .grade-btn {
    flex-shrink: 0;
    width: 180px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    height: 80px;
    text-align: left;
  }
  .grade-btn-info {
    white-space: normal;
    text-align: left;
    font-size: 0.78rem;
    line-height: 1.25;
  }
  .grade-nav::-webkit-scrollbar {
    height: 4px;
  }
  .grade-nav::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
  }

  /* Grade details grid stacks on mobile */
  .grade-details-grid {
    grid-template-columns: 1fr !important;
  }

  /* Download banner responsive styling */
  .download-grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
    text-align: center;
  }
  .download-banner-card {
    padding: 50px 30px 40px 30px; /* Restored bottom padding for badges wrapping at the bottom */
  }
  .download-banner-content {
    grid-column: 1;
    grid-row: 1;
  }
  .download-banner-content h2 {
    font-size: 1.8rem;
  }
  .download-banner-visual {
    grid-column: 1;
    grid-row: 2;
  }
  .download-banner-badges-wrap {
    grid-column: 1;
    grid-row: 3;
    padding-bottom: 0;
  }
  .download-banner-badges-wrap .app-download-badges {
    justify-content: center !important;
    align-items: stretch !important;
    margin-top: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .download-banner-badges-wrap .store-badge-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .download-phone-img {
    max-width: 240px;
    transform: translateY(0) rotate(0deg);
  }
  .download-banner-card:hover .download-phone-img {
    transform: translateY(-5px) scale(1.05);
  }

  /* Toast responsive */
  .toast {
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
  }

  /* Phone mockup scales down on tablet */
  .phone-mockup-wrapper {
    max-width: 260px;
  }
}

@media (max-width: 576px) {
  .grid-responsive-2 {
    grid-template-columns: 1fr;
  }
  .grid-responsive-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Show floating device circles on tiny phones — perfectly scaled down */
  .hero-visual {
    display: block;
  }
  .hero-section {
    padding: 70px 16px 50px;
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .section-wrapper {
    padding: 50px 12px;
  }

  /* Nav bar tighter on very small screens */
  .navbar-container {
    padding: 10px 12px;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .logo-icon,
  .logo-img {
    width: 32px;
    height: 32px;
  }
  .logo-icon {
    font-size: 1.1rem;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
  .nav-actions {
    gap: 6px;
  }

  /* Phone mockup on very small screens */
  .phone-mockup-wrapper {
    max-width: 220px;
  }

  /* Download badges full-width on tiny screens */
  .store-badge-btn {
    width: 100%;
    justify-content: center;
  }
  .download-banner-card {
    padding: 40px 16px 30px 16px;
  }
  .download-phone-img {
    max-width: 200px;
  }

  /* Pricing calculator stack */
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .pricing-calculator-card {
    padding: 16px;
  }
  .calc-outputs-panel {
    padding: 16px;
  }
  .calc-output-row {
    padding-bottom: 12px;
  }
  .calc-output-label {
    font-size: 0.8rem;
  }
  .calc-output-value {
    font-size: 1.1rem;
  }
  .calc-output-value.highlight-green {
    font-size: 1.4rem;
  }

  /* Grade explorer — shrink buttons on very small screens */
  .grade-btn {
    width: 148px;
    height: 72px;
    padding: 10px 12px;
  }
  .grade-label {
    font-size: 0.88rem;
  }
  .grade-btn-info {
    font-size: 0.72rem;
  }

  /* Showcase cards */
  .showcase-card {
    padding: 16px;
  }
}

/* ==========================================
   9. ANIMATION SYSTEM
   ========================================== */

/* --- Scroll Progress Bar --- */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-orange));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(29, 78, 216, 0.5);
}

/* --- Extended Keyframes --- */
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleInFade {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.08); }
  80%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

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

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

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(29, 78, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(1deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}

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

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-6px) scale(1.1); }
}

@keyframes glowBreath {
  0%, 100% { filter: blur(60px); opacity: 0.7; }
  50%       { filter: blur(80px); opacity: 1; }
}

/* --- Scroll-Reveal Base States --- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* --- Stagger Delay Utilities --- */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.15s !important; }
.stagger-3 { transition-delay: 0.25s !important; }
.stagger-4 { transition-delay: 0.35s !important; }
.stagger-5 { transition-delay: 0.45s !important; }

/* --- Hero Entrance Animations --- */
.hero-badge {
  animation: bounceIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.hero-content h1 {
  animation: slideInFromLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.25s;
}

.hero-content p {
  animation: slideInFromLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.4s;
}

.app-download-badges {
  animation: slideInFromLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.55s;
}

.hero-visual {
  animation: slideInFromRight 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

/* --- Phone Mockup Floating --- */
.phone-mockup-wrapper {
  animation: floatSlow 7s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Cards inside the phone animate in */
.app-mockup-card:nth-child(1) {
  animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1s;
}
.app-mockup-card:nth-child(2) {
  animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.25s;
}

/* --- Hero Glows Animated --- */
.hero-glow-1 {
  animation: heroGlowPulse 5s ease-in-out infinite, glowBreath 5s ease-in-out infinite;
}

.hero-glow-2 {
  animation: heroGlowPulse 7s ease-in-out infinite reverse, glowBreath 7s ease-in-out infinite;
}

.download-glow {
  animation: heroGlowPulse 6s ease-in-out infinite;
}

/* --- Feature Cards Enhanced Hover --- */
.feature-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
  border-color: var(--border-glow);
}
.feature-card:hover .feature-icon-wrapper {
  animation: iconBounce 0.6s ease;
}

/* --- Showcase Cards Hover --- */
.showcase-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 25px var(--primary-glow);
}

/* --- Grade Buttons Animated --- */
.grade-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}
.grade-btn:hover,
.grade-btn.active {
  transform: translateX(5px);
}

/* --- Section Badge Shimmer --- */
.section-badge {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.section-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.25), transparent);
  animation: shimmerSlide 3s infinite;
}

/* --- Hero Badge Pulse Ring --- */
.hero-badge i {
  animation: pulseRing 2s infinite;
  border-radius: 50%;
}

/* --- Store Badge Shimmer on Hover --- */
.store-badge-btn {
  position: relative;
  overflow: hidden;
}
.store-badge-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: 0.5s;
  pointer-events: none;
}
.store-badge-btn:hover::after {
  left: 120%;
}

/* --- Gradient Text Animation --- */
.gradient-text-electric {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* --- Header Glass on Scroll (applied via JS .scrolled class) --- */
header {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
header.scrolled {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

/* --- Pricing Calc Output Value Flash --- */
.calc-output-value {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.calc-output-value.updating {
  transform: scale(1.12);
  color: var(--primary) !important;
}

/* --- App Mockup Card Hover --- */
.app-mockup-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.app-mockup-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.15);
}

/* --- Download Banner Glow on Hover --- */
.download-banner-card {
  transition: box-shadow 0.4s ease;
}
.download-banner-card:hover {
  box-shadow: var(--shadow-lg), 0 0 60px rgba(29, 78, 216, 0.2);
}

/* --- Section Header Scroll Reveal --- */
.section-header .section-badge,
.section-header .section-title,
.section-header .section-desc {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-header.visible .section-badge { opacity: 1; transform: none; transition-delay: 0s; }
.section-header.visible .section-title { opacity: 1; transform: none; transition-delay: 0.12s; }
.section-header.visible .section-desc  { opacity: 1; transform: none; transition-delay: 0.24s; }

/* --- Pricing Calc Role Buttons --- */
.btn-calc-role {
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-calc-role.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  transform: scale(1.04);
}

/* --- Footer Social Buttons Enhanced --- */
.social-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.social-btn:hover {
  transform: translateY(-5px) scale(1.12);
}

/* ==========================================
   6. PRODUCT SHOWCASE COMPONENT
   ========================================== */
.showcase-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.showcase-filter-tabs {
  display: inline-flex;
  background: var(--bg-tertiary);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.filter-tab {
  padding: 10px 24px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  background: transparent;
  border: none;
}

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

.filter-tab.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .product-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  }
}

@media (min-width: 1200px) {
  .product-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  }
}

.showcase-device-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              opacity 0.4s ease,
              visibility 0.4s ease;
  border: 1px solid var(--border-light);
  opacity: 1;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
  background: var(--bg-glass);
}

.showcase-device-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
  border-color: var(--primary);
}

.showcase-device-card.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(20px);
}

.device-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.grade-badge {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grade-badge.s1-badge {
  background: rgba(29, 78, 216, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary-glow);
}

.grade-badge.s2-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid var(--success-glow);
}

.device-type-icon {
  font-size: 1rem;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
}

.device-image-wrapper {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, var(--bg-tertiary) 0%, transparent 80%);
  overflow: hidden;
}

.device-image {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-device-card:hover .device-image {
  transform: scale(1.08) translateY(-5px);
}

.device-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.device-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.device-brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diagnostic-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.device-name {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.device-specs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.spec-label {
  color: var(--text-secondary);
}

.spec-value {
  font-weight: 600;
  color: var(--text-primary);
}

.device-price-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.price-row .original-price {
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-row.highlight {
  font-weight: 700;
  border-top: 1px dashed var(--border-light);
  padding-top: 10px;
  margin-top: 2px;
}

.price-row.highlight .price-label {
  color: var(--primary);
}

.price-row.highlight .wholesale-price {
  color: var(--primary);
  font-size: 1.2rem;
  font-family: var(--font-headings);
}

/* ==========================================
   15. LEGAL CENTER SPECIALIZED STYLES
   ========================================== */
.legal-hero {
  position: relative;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  overflow: hidden;
}

.legal-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 250px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.legal-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.legal-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.legal-search-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  transition: var(--transition-fast);
}

.legal-search-container:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.legal-search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.legal-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.legal-layout-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.legal-sidebar h3 {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 700;
}

.legal-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: left;
  border: 1px solid transparent;
  transition: var(--transition-normal);
}

.legal-nav-btn i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: var(--transition-fast);
}

.legal-nav-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.legal-nav-btn.active {
  background: var(--bg-secondary);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.legal-nav-btn.active i {
  color: var(--primary);
  transform: scale(1.1);
}

.legal-content-card {
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 500px;
}

.legal-section {
  display: none;
}

.legal-section.active {
  display: block;
  animation: fadeInUp var(--transition-normal) forwards;
}

.legal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-header-left h2 {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.legal-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.legal-action-bar {
  display: flex;
  gap: 10px;
}

.btn-utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.btn-utility:hover {
  background: var(--border-light);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.legal-summary-box {
  background: rgba(29, 78, 216, 0.03);
  border: 1px solid var(--border-glow);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 35px;
}

.legal-summary-box h4 {
  font-family: var(--font-headings);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.summary-item i {
  color: var(--primary);
  margin-top: 2px;
}

.legal-body {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.legal-body h3 {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 35px 0 15px;
  font-weight: 700;
}

.legal-body h3:first-of-type {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 20px;
}

.legal-body ul, .legal-body ol {
  margin: 0 0 25px 20px;
  padding: 0;
}

.legal-body li {
  margin-bottom: 10px;
}

.legal-body strong {
  color: var(--text-primary);
}

.highlight-search {
  background: rgba(245, 158, 11, 0.25);
  border-bottom: 2px solid var(--accent-orange);
  padding: 0 2px;
  border-radius: 2px;
}

/* Back button in mobile header */
.nav-back-home {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-back-home:hover {
  color: var(--primary-hover);
}

/* Mobile responsive legal pages */
@media (max-width: 992px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .legal-sidebar {
    position: static;
    padding: 16px;
  }
  
  .legal-nav-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .legal-nav-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .legal-nav-btn {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .legal-content-card {
    padding: 24px;
  }
  
  .legal-hero h1 {
    font-size: 2.2rem;
  }
  
  .legal-header-left h2 {
    font-size: 1.8rem;
  }
}

/* ==========================================
   16. HERO REDESIGN & FLOATING DEVICES STYLES
   ========================================== */
.hero-what-we-sell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px;
  background: rgba(29, 78, 216, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  max-width: 580px;
}

.sell-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.sell-item i {
  color: var(--primary);
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
}

/* Floating devices style composition with circular glassmorphic frames */
.floating-devices-container {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-device {
  position: absolute;
  filter: drop-shadow(0 20px 45px rgba(15, 23, 42, 0.12));
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.circular-frame {
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.circle-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.laptop-float {
  width: 420px;
  height: 420px;
  left: 2%;
  top: 2%;
  z-index: 1;
  animation: floatLaptop 6s ease-in-out infinite;
}

.phone-float {
  width: 270px;
  height: 270px;
  right: 2%;
  bottom: 2%;
  z-index: 2;
  animation: floatPhone 5s ease-in-out infinite;
}

.phone-float .circle-content {
  padding: 14px; /* Slightly tighter padding for the mobile circle so the device stands out */
}

@keyframes floatLaptop {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes floatPhone {
  0%, 100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(-16px) rotate(-2deg);
  }
}

/* Mobile styling overrides for Hero Circular Frames */
@media (max-width: 992px) {
  .floating-devices-container {
    height: 400px;
  }
  
  .laptop-float {
    width: 340px;
    height: 340px;
    left: 2%;
    top: 5%;
  }
  
  .phone-float {
    width: 220px;
    height: 220px;
    right: 2%;
    bottom: 5%;
  }
}

@media (max-width: 768px) {
  .floating-devices-container {
    height: 340px;
    margin-top: 20px;
  }
  
  .laptop-float {
    width: 260px;
    height: 260px;
    left: 2%;
    top: 5%;
  }
  
  .phone-float {
    width: 170px;
    height: 170px;
    right: 2%;
    bottom: 5%;
  }
  
  .circle-content {
    padding: 14px;
  }
  
  .phone-float .circle-content {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .floating-devices-container {
    height: 250px;
    margin-top: 15px;
  }
  
  .laptop-float {
    width: 200px;
    height: 200px;
    left: 2%;
    top: 5%;
  }
  
  .phone-float {
    width: 130px;
    height: 130px;
    right: 2%;
    bottom: 5%;
  }
  
  .circle-content {
    padding: 10px;
  }
  
  .phone-float .circle-content {
    padding: 8px;
  }
}

/* --- Reduce Motion Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   17. ABOUT US SECTION
   ========================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

/* ── Left column ── */
.about-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-title {
  font-family: var(--font-headings);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 14px 0 20px;
  letter-spacing: -0.5px;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 18px;
  border-left: 3px solid var(--primary);
  padding-left: 16px;
}

.about-body {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Value pills row */
.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.value-pill i {
  color: var(--primary);
  font-size: 0.9rem;
}

.value-pill:hover {
  background: var(--primary-glow);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

/* ── Right column ── */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 100px;
}

/* Stats card */
.about-stats-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  text-align: center;
}

/* Vertical divider between column 1 and column 2 */
.about-stat:nth-child(odd) {
  border-right: 1px solid var(--border-light);
}

/* Horizontal divider between row 1 and row 2 */
.about-stat:nth-child(-n+2) {
  border-bottom: 1px solid var(--border-light);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Mission / Vision mini cards */
.about-mission-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 0;
}

.about-mission-card h4 {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-mission-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.mission-icon-wrap {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-right {
    position: static;
  }
}

@media (max-width: 576px) {
  .about-title {
    font-size: 1.9rem;
  }

  .about-stats-card {
    grid-template-columns: 1fr;
  }

  .about-stat {
    border-right: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding: 20px 16px;
  }

  .about-stat:last-child {
    border-bottom: none !important;
  }

  .about-values {
    gap: 8px;
  }

  .value-pill {
    font-size: 0.8rem;
    padding: 7px 13px;
  }
}

