/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-rgb: 37, 99, 235;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #06b6d4 100%);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-blue-light: rgba(37, 99, 235, 0.08);
  --accent-green-light: rgba(16, 185, 129, 0.08);
  --accent-purple-light: rgba(139, 92, 246, 0.08);
  --accent-cyan-light: rgba(6, 182, 212, 0.08);
  
  /* Borders & Glassmorphism */
  --border-light: rgba(226, 232, 240, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.06);
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 20px 40px -5px rgba(37, 99, 235, 0.08);

  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --container-width: 1200px;
  --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.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- CSS RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* --- BACKGROUND DECORATION BLOBS --- */
.blob-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  mix-blend-mode: multiply;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.15);
  top: -100px;
  right: -100px;
  animation: float-blob-1 20s infinite alternate ease-in-out;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(6, 182, 212, 0.12);
  top: 40%;
  left: -200px;
  animation: float-blob-2 25s infinite alternate ease-in-out;
}

.blob-3 {
  width: 550px;
  height: 550px;
  background: rgba(139, 92, 246, 0.1);
  bottom: 10%;
  right: -150px;
  animation: float-blob-1 18s infinite alternate-reverse ease-in-out;
}

@keyframes float-blob-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 80px) scale(1.1); }
}

@keyframes float-blob-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, -60px) scale(1.05); }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px rgba(37, 99, 235, 0.5);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 13px 27px; /* adjusted for 1px border to match height of primary button */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-secondary);
  border-color: #cbd5e1;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --- HEADER / NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border-light);
  height: 70px;
  box-shadow: var(--glass-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: pulse-logo 2s infinite ease-in-out;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* Nav Menu */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background: #ffffff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.close-drawer-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.drawer-content {
  flex-grow: 1;
  padding: 40px 24px;
}

.drawer-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-link {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.drawer-link:hover {
  color: var(--text-main);
  padding-left: 8px;
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-light);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.open ~ .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-logo 1.5s infinite ease-in-out;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

/* Phone Mockup */
.phone-mockup {
  background: #0f172a; /* Outer frame border */
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.12), var(--glass-shadow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 9/19;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: #334155;
  border-radius: 10px;
  z-index: 20;
}

.phone-camera {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #1e293b;
  border-radius: 50%;
  z-index: 20;
}

.phone-screen {
  background: #f8fafc;
  border-radius: 30px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Phone Status Bar */
.phone-header {
  height: 38px;
  padding: 12px 18px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  z-index: 10;
}

.phone-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.phone-icon-sm {
  width: 12px;
  height: 12px;
}

/* Phone OS & Sub-Apps Styling */
.phone-home-screen {
  position: absolute;
  inset: 0;
  top: 38px; /* Below status bar */
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-100%);
  z-index: 5;
}

.phone-home-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.os-header {
  text-align: left;
}

.os-date {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.os-greeting {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Stats Widget */
.os-stats-widget {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-title {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-logo 1.5s infinite ease-in-out;
}

.widget-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}

.w-metric {
  display: flex;
  flex-direction: column;
}

.w-val {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.w-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.w-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

/* Apps Grid */
.os-apps-grid-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: left;
}

.os-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.os-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.os-app-item:hover {
  transform: scale(1.05);
}

.os-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.os-app-icon svg, .os-app-icon i {
  width: 22px;
  height: 22px;
  color: white;
  stroke-width: 2px;
}

.bg-gradient-music { background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%); }
.bg-gradient-game { background: linear-gradient(135deg, #f97316 0%, #e11d48 100%); }
.bg-gradient-cleaner { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.bg-gradient-vpn { background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%); }
.bg-gradient-ai { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); }
.bg-gradient-scanner { background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%); }
.bg-gradient-gym { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.bg-gradient-wifiscan { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.os-app-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
}

/* Dock */
.os-dock {
  margin-top: auto;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.dock-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PHONE APP SUB-SCREENS */
.phone-app-screen {
  position: absolute;
  inset: 0;
  top: 38px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(100%);
  z-index: 10;
}

.phone-app-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.app-screen-header {
  height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background: white;
}

.app-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.app-back-btn:hover {
  background: #f1f5f9;
}

.app-back-btn svg {
  width: 14px;
  height: 14px;
}

.app-title {
  flex-grow: 1;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  margin-right: 50px; /* offset back button for centering */
}

.app-screen-body {
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

/* 1. MUSIC PLAYER APP styling */
.music-player-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.music-vinyl-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
}

.music-vinyl {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #334155 40%, #0f172a 70%, #020617 100%);
  border: 4px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(15,23,42,0.2);
}

.vinyl-center {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  border-radius: 50%;
  border: 3px solid #0f172a;
}

.spin-animation {
  animation: spin-vinyl 8s linear infinite;
}

.spin-animation.paused {
  animation-play-state: paused;
}

@keyframes spin-vinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.music-info {
  text-align: center;
}

.track-title {
  font-size: 0.85rem;
  font-weight: 800;
}

.track-artist {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Equalizer */
.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.eq-bar {
  width: 3px;
  height: 4px;
  background: var(--primary);
  border-radius: 10px;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}

.eq-bar-1 { animation-delay: 0.1s; height: 18px; }
.eq-bar-2 { animation-delay: 0.3s; height: 12px; }
.eq-bar-3 { animation-delay: 0.5s; height: 22px; }
.eq-bar-4 { animation-delay: 0.2s; height: 14px; }
.eq-bar-5 { animation-delay: 0.4s; height: 20px; }
.eq-bar-6 { animation-delay: 0.6s; height: 10px; }
.eq-bar-7 { animation-delay: 0.1s; height: 16px; }

.eq-bar.paused {
  animation-play-state: paused;
  height: 4px;
}

@keyframes eq-bounce {
  0% { height: 4px; }
  100% { height: 24px; }
}

.music-btn-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37,99,235,0.25);
  transition: transform var(--transition-fast);
}

.music-btn-play:hover {
  transform: scale(1.05);
}

/* 1. LOOP MAKER PRO SAMPLER PAD STYLING */
.loop-maker-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sampler-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.sampler-pad {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.sampler-pad span {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.sampler-pad small {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Pad active state styles */
.sampler-pad.active {
  color: white;
  border-color: transparent;
  transform: scale(0.96);
}

.sampler-pad.active span, .sampler-pad.active small {
  color: white;
}

#padKick.active {
  background: #ec4899;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

#padSnare.active {
  background: #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

#padHihat.active {
  background: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

#padSynth.active {
  background: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.game-tip {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* 2. CONTROL CENTER STYLING */
.control-center-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cc-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.cc-toggle-btn {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.cc-toggle-btn svg {
  color: var(--text-muted);
  transition: color 0.2s;
}

.cc-toggle-btn span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-main);
}

.cc-toggle-btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(37,99,235,0.15);
}

.cc-toggle-btn.active svg, .cc-toggle-btn.active span {
  color: white;
}

.cc-theme-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-align: left;
  color: var(--text-main);
  margin-top: 4px;
}

.cc-theme-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-theme-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.cc-theme-item.active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.02);
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
}

.swatch-default { background: linear-gradient(135deg, #f8fafc, #f1f5f9); }
.swatch-sunset { background: linear-gradient(135deg, #fef08a, #fda4af); }
.swatch-cyberpunk { background: linear-gradient(135deg, #1e1b4b, #311042); }

/* Theme override gradients for the Home Screen container */
.phone-home-screen.theme-sunset {
  background: linear-gradient(135deg, #fef08a 0%, #f9a8d4 50%, #fda4af 100%);
}

.phone-home-screen.theme-cyberpunk {
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 50%, #030712 100%);
}

.phone-home-screen.theme-cyberpunk .os-greeting, 
.phone-home-screen.theme-cyberpunk .os-apps-grid-title,
.phone-home-screen.theme-cyberpunk .os-app-label {
  color: #f1f5f9;
}

/* 3. EMOJI BATTERY WIDGET STYLING */
.cleaner-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cleaner-dial-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cleaner-dial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid var(--border-light);
  border-top-color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: white;
}

.cleaner-dial.spinning {
  animation: spin-vinyl 1.2s linear infinite;
}

.dial-val {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  transition: color 0.3s;
}

.dial-val.clean {
  color: var(--accent-green);
}

.dial-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

.dial-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-green);
  opacity: 0;
  pointer-events: none;
}

.dial-pulse.pulsing {
  animation: radar-pulse 1s ease-out;
}

.cleaner-info {
  text-align: center;
}

.cleaner-status {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.cleaner-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@keyframes radar-pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* 4. UNIVERSAL TV REMOTE STYLING */
.tv-remote-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-monitor-screen {
  background: #020617;
  border: 2px solid #1e293b;
  border-radius: 8px;
  padding: 10px;
  color: #38bdf8;
  font-family: monospace;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(56,189,248,0.2);
}

.tv-power-status {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.tv-details-status {
  font-size: 0.6rem;
  opacity: 0.85;
}

.remote-keypad {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.remote-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.remote-row.control-pad {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px;
  align-items: center;
}

.control-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.control-divider {
  width: 1px;
  height: 60px;
  background: var(--border-light);
  margin: 0 10px;
}

.remote-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.remote-btn:hover {
  background: #e2e8f0;
}

.remote-btn:active {
  transform: scale(0.96);
}

.btn-power {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #ef4444;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-power:hover {
  background: #fca5a5;
}

.btn-power.active {
  background: #ef4444;
  color: white;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

.btn-source {
  width: 100%;
  padding: 10px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 9px;
  color: var(--primary);
  border-radius: 8px;
}

.btn-source:hover {
  background: #bae6fd;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05), var(--glass-shadow);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.card-1 {
  top: 15%;
  left: -40px;
}

.card-2 {
  bottom: 10%;
  right: -30px;
}

.f-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-card-icon.bg-blue {
  background: var(--accent-blue-light);
  color: var(--primary);
}

.f-card-icon.bg-green {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.f-card-icon i {
  width: 18px;
  height: 18px;
}

.f-card-info {
  display: flex;
  flex-direction: column;
}

.f-card-title {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
}

.f-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Floating Animation */
.float-animation {
  animation: float 6s infinite ease-in-out;
}

.delay-1000 {
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- PARTNERS SECTION --- */
.partners-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.partners-title {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
  font-weight: 600;
}

/* Marquee / Ticker Animation */
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: scroll-marquee 25s linear infinite;
}

.marquee-list {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a; /* bold dark slate for maximum contrast */
  opacity: 1; /* fully bright and visible from the beginning */
  cursor: default;
  flex: 0 0 150px; /* fixed width for closer spacing */
}

.partner-logo i {
  width: 24px;
  height: 24px;
}



.partner-logo img {
  width: auto;
  height: 24px;
  max-width: 120px;
  object-fit: contain;
}

@keyframes scroll-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --- APPS SECTION --- */
.apps-section {
  padding: 100px 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.app-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(37, 99, 235, 0.15);
}

.app-banner {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-banner.bg-gradient-blue { background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(79, 70, 229, 0.15) 100%); }
.app-banner.bg-gradient-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%); }
.app-banner.bg-gradient-purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.15) 100%); }
.app-banner.bg-gradient-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(244, 63, 94, 0.15) 100%); }
.app-banner.bg-gradient-orange { background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(234, 88, 12, 0.15) 100%); }
.app-banner.bg-gradient-green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%); }

.app-preview-visual {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.app-card:hover .app-preview-visual {
  transform: scale(1.1) rotate(5deg);
}

.app-visual-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.os-app-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.app-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.app-rating {
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stats-count {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.app-downloads {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.app-info {
  padding: 28px;
}

.app-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.app-name {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.app-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 72px;
}

.app-download-badges {
  display: flex;
  gap: 12px;
}

.store-badge {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.store-badge i {
  width: 14px;
  height: 14px;
}

.store-badge:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* --- FEATURES SECTION --- */
.features-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-2 { grid-column: span 2; }

.bento-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  position: relative;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.06);
  border-color: rgba(37, 99, 235, 0.1);
}

.bento-inner {
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.bento-inner.flex-row {
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-icon-wrapper i {
  width: 24px;
  height: 24px;
}

.bg-blue-light { background: var(--accent-blue-light); }
.text-blue { color: var(--primary); }

.bg-green-light { background: var(--accent-green-light); }
.text-green { color: var(--accent-green); }

.bg-purple-light { background: var(--accent-purple-light); }
.text-purple { color: var(--accent-purple); }

.bento-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.badge-group {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.mini-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.bento-visual-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-brain-visual {
  position: relative;
  width: 100px;
  height: 100px;
  background: var(--accent-purple-light);
  color: var(--accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-brain-visual i {
  width: 48px;
  height: 48px;
  z-index: 2;
  animation: pulse-brain 3s infinite ease-in-out;
}

.brain-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.3);
  filter: blur(10px);
  animation: pulse-brain-glow 3s infinite ease-in-out;
}

@keyframes pulse-brain {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes pulse-brain-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.3); }
}

/* Background Decorative elements in bento */
.bento-bg-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* --- REVIEWS SECTION --- */
.reviews-section {
  padding: 100px 0;
}

.reviews-carousel-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.reviews-slider {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
}

.review-card {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s; /* extra snappy pure cross-fade */
}

.review-card.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.star-filled {
  fill: #f59e0b;
  color: #f59e0b;
  width: 20px;
  height: 20px;
}

.review-text {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 32px;
  font-style: italic;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviewer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.reviewer-meta {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
}

.reviewer-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.control-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all var(--transition-fast);
}

.control-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.05);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* custom fluid transition */
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35); /* active capsule glow */
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-blue-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon i {
  width: 20px;
  height: 20px;
}

.detail-text {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.social-links-group {
  display: flex;
  gap: 12px;
}

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-circle i {
  width: 18px;
  height: 18px;
}

.social-circle:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: var(--bg-primary);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06), 0 5px 15px rgba(0,0,0,0.02);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.bg-green {
  background: var(--accent-green);
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 280px;
}

.company-tax {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-title {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.newsletter-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  position: relative;
  width: 100%;
}

.newsletter-input {
  width: 100%;
  padding: 12px 60px 12px 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.newsletter-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 4px;
  width: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.newsletter-btn:hover {
  filter: brightness(1.05);
}

.footer-bottom {
  padding: 30px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-address {
  text-align: right;
  max-width: 600px;
}

/* --- SCROLL REVEAL ANIMATIONS (Intersection Observer) --- */
.scroll-reveal {
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.fade-up {
  transform: translateY(40px);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }


/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .apps-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .col-span-3, .col-span-4, .col-span-2 {
    grid-column: span 2;
  }
  
  .bento-inner.flex-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .bento-visual-right {
    align-self: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .btn-nav {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .col-span-3, .col-span-4, .col-span-2 {
    grid-column: span 1;
  }
  
  .review-card {
    padding: 24px;
  }
  
  .review-text {
    font-size: 1.1rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-address {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .card-1 {
    left: -10px;
  }
  
  .card-2 {
    right: -10px;
  }
}

/* ==========================================================================
   NEW MOCK APP SCREENS STYLING
   ========================================================================== */

/* 5. Auray AI Screen */
.ai-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.ai-chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
  max-height: 250px;
  padding-right: 4px;
}

.chat-msg {
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 85%;
  font-size: 0.7rem;
  line-height: 1.4;
}

.msg-ai {
  background: #f1f5f9;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg-user {
  background: var(--primary-gradient);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.font-mono pre {
  margin: 0;
  font-family: monospace;
  font-size: 0.6rem;
  white-space: pre-wrap;
}

.ai-chat-input-area {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.ai-input {
  flex-grow: 1;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.65rem;
}

.ai-send-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 6. Document Scanner Screen */
.scanner-viewfinder {
  position: relative;
  width: 100%;
  height: 200px;
  background: #020617;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.viewfinder-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #38bdf8;
}

.viewfinder-bracket.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.viewfinder-bracket.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.viewfinder-bracket.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.viewfinder-bracket.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

.viewfinder-text {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

.scan-overlay-flash {
  position: absolute;
  inset: 0;
  background: rgba(34, 197, 94, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.scan-overlay-flash.flash {
  animation: scan-flash 0.6s ease-out;
}

@keyframes scan-flash {
  0% { opacity: 0; }
  10% { opacity: 1; }
  100% { opacity: 0; }
}

/* 7. Gym Workout Screen */
.gym-stats-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.gym-stat-box {
  flex: 1;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gym-stat-val {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.gym-stat-lbl {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 700;
}

.gym-routine-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  width: 100%;
}

.gym-routine-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gym-exercise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.gym-timer-box {
  width: 100%;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.gym-timer-time {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

/* 8. WiFi Scan Screen */
.wifi-radar-box {
  position: relative;
  width: 100%;
  height: 110px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wifi-radar-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  transform-origin: center;
}

.wifi-radar-circle.scanning {
  animation: wifi-pulse 1.8s infinite linear;
}

@keyframes wifi-pulse {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.wifi-radar-icon {
  width: 24px;
  height: 24px;
  color: #10b981;
  z-index: 5;
}

.wifi-network-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  opacity: 1;
  transition: opacity 0.3s;
}

.wifi-network-list.scanning {
  opacity: 0.3;
}

.wifi-net-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wifi-net-info {
  display: flex;
  flex-direction: column;
}

.wifi-net-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-main);
}

.wifi-net-details {
  font-size: 0.55rem;
  color: var(--text-muted);
}
