/* ==========================================================================
   WaEm Landing Page Styles
   A modern SaaS landing page CSS file
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Primary palette — WhatsApp Green */
  --primary: #25D366;
  --primary-dark: #128C7E;
  --primary-light: #51e88a;
  --primary-glow: rgba(37, 211, 102, 0.15);
  --gradient-primary: linear-gradient(135deg, #25D366, #128C7E);
  --gradient-hero: linear-gradient(135deg, #042b26 0%, #054640 50%, #075E54 100%);

  /* Light mode (default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(226, 232, 240, 0.8);
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --section-padding: 100px;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Dark mode */
html.dark {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --card-bg: rgba(30, 30, 45, 0.6);
  --card-border: rgba(37, 211, 102, 0.1);
  --navbar-bg: rgba(10, 10, 15, 0.85);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

/* ==========================================================================
   4. Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              padding var(--transition-base);
}

.navbar.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navbar Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.navbar.scrolled .navbar-brand {
  color: var(--text-primary);
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
}

.navbar-brand:hover {
  opacity: 0.85;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
  padding: 4px 0;
}

.navbar.scrolled .nav-link {
  color: var(--text-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: #ffffff;
}

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

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

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar.scrolled .lang-btn {
  background: var(--bg-tertiary);
  border-color: var(--border);
  color: var(--text-secondary);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .lang-btn:hover {
  border-color: var(--primary);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lang-option:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--primary);
  font-weight: 600;
}

.lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

/* Login Button */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar.scrolled .btn-login {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.navbar.scrolled .btn-login:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar.scrolled .mobile-toggle span {
  background: var(--text-primary);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px var(--container-padding);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .btn-login {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}

/* Animated background particles */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(37, 211, 102, 0.3), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(32, 186, 90, 0.2), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(81, 232, 138, 0.3), transparent),
    radial-gradient(2px 2px at 80% 50%, rgba(37, 211, 102, 0.2), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(32, 186, 90, 0.25), transparent),
    radial-gradient(2px 2px at 70% 85%, rgba(37, 211, 102, 0.15), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(81, 232, 138, 0.2), transparent),
    radial-gradient(1px 1px at 90% 15%, rgba(37, 211, 102, 0.2), transparent),
    radial-gradient(2px 2px at 30% 55%, rgba(32, 186, 90, 0.15), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(81, 232, 138, 0.2), transparent);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Content */
.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #51e88a, #25D366);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* CTA Buttons */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  text-decoration: none;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

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

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   6. Hero Mockup
   ========================================================================== */

.hero-mockup {
  perspective: 1200px;
}

.mockup-browser {
  background: #054640;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(37, 211, 102, 0.1);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform var(--transition-slow);
  animation: float 6s ease-in-out infinite;
}

.mockup-browser:hover {
  transform: rotateY(-2deg) rotateX(1deg) scale(1.02);
}

/* Chrome bar */
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) {
  background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
  background: #ffbd2e;
}

.mockup-dots span:nth-child(3) {
  background: #28c840;
}

.mockup-url {
  flex: 1;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Mockup Screen */
.mockup-screen {
  display: flex;
  min-height: 280px;
}

.mockup-sidebar {
  width: 52px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mockup-sidebar-item {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  transition: background var(--transition-fast);
}

.mockup-sidebar-item.active {
  background: var(--primary);
}

.mockup-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.mockup-row-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

.mockup-row-text {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
}

.mockup-row-text.short {
  width: 60%;
}

.mockup-row-badge {
  width: 40px;
  height: 18px;
  border-radius: var(--radius-full);
  background: rgba(37, 211, 102, 0.2);
  flex-shrink: 0;
}

/* ==========================================================================
   7. Stats Section
   ========================================================================== */

.stats-section {
  position: relative;
  z-index: 3;
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   8. Section Base
   ========================================================================== */

.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--bg-secondary);
}

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

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   9. Features Section
   ========================================================================== */

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

.feature-card {
  position: relative;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 211, 102, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   10. Screenshots Section
   ========================================================================== */

.screenshots-section {
  background: var(--bg-secondary);
}

.screenshot-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.screenshot-tab {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.screenshot-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.screenshot-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Screenshot Content */
.screenshot-content {
  max-width: 960px;
  margin: 0 auto;
}

.screenshot-panel {
  display: none;
}

.screenshot-panel.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

/* Screenshot Browser Frame */
.screenshot-browser {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.screenshot-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.screenshot-dots {
  display: flex;
  gap: 6px;
}

.screenshot-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.screenshot-dots span:nth-child(1) { background: #ff5f57; }
.screenshot-dots span:nth-child(2) { background: #ffbd2e; }
.screenshot-dots span:nth-child(3) { background: #28c840; }

.screenshot-url-bar {
  flex: 1;
  padding: 6px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.screenshot-img {
  width: 100%;
  display: block;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Screenshot Screen Area */
.screenshot-screen {
  display: flex;
  min-height: 420px;
}

/* Shared sidebar for screenshots */
.ss-sidebar {
  width: 60px;
  background: var(--bg-tertiary);
  border-right: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ss-sidebar-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.ss-sidebar-icon.active {
  background: var(--primary);
  color: #ffffff;
}

/* Contacts View */
.ss-contacts {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ss-contacts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.ss-contacts-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ss-search-bar {
  width: 200px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.ss-table {
  flex: 1;
  padding: 8px 20px;
}

.ss-table-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ss-table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

.ss-table-name {
  flex: 1;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
}

.ss-table-email {
  width: 140px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
}

.ss-table-tag {
  width: 52px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

/* Messaging View */
.ss-messaging {
  flex: 1;
  display: flex;
}

.ss-msg-settings {
  width: 260px;
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ss-msg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ss-msg-label {
  height: 8px;
  width: 60px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
}

.ss-msg-input {
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.ss-msg-editor {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-msg-toolbar {
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ss-msg-toolbar-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}

.ss-msg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.ss-msg-line {
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
}

.ss-msg-line:nth-child(1) { width: 90%; }
.ss-msg-line:nth-child(2) { width: 100%; }
.ss-msg-line:nth-child(3) { width: 75%; }
.ss-msg-line:nth-child(4) { width: 85%; }
.ss-msg-line:nth-child(5) { width: 45%; }

/* Templates View */
.ss-templates {
  flex: 1;
  padding: 20px;
}

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

.ss-templates-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ss-templates-btn {
  width: 100px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
}

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

.ss-template-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-template-card-title {
  height: 10px;
  width: 70%;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
}

.ss-template-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ss-template-card-line {
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
}

.ss-template-card-line:last-child {
  width: 60%;
}

/* WhatsApp View */
.ss-whatsapp {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}

.ss-qr-code {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background:
    repeating-conic-gradient(var(--text-primary) 0% 25%, transparent 0% 50%) 0 0 / 12px 12px,
    var(--bg-primary);
  position: relative;
}

.ss-qr-code::after {
  content: '';
  position: absolute;
  inset: 35%;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 3px solid #25d366;
}

.ss-qr-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.ss-qr-whatsapp-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
}

/* ==========================================================================
   11. How It Works
   ========================================================================== */

.how-it-works {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

/* Connecting line (desktop) */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.666% + 20px);
  right: calc(16.666% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  opacity: 0.3;
  z-index: 0;
}

.step-card {
  position: relative;
  text-align: center;
  z-index: 1;
}

.step-number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--bg-primary);
  border: 3px solid transparent;
  background-image: linear-gradient(var(--bg-primary), var(--bg-primary)),
                    var(--gradient-primary);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-md);
}

.step-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ==========================================================================
   12. CTA Section
   ========================================================================== */

.cta-section {
  position: relative;
  padding: 100px 0;
  background: var(--gradient-primary);
  overflow: hidden;
  text-align: center;
}

/* Decorative shapes */
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

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

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.footer {
  background: #042b26;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-logo .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

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

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

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

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   14. Ad Slots
   ========================================================================== */

.ad-slot {
  max-width: 728px;
  margin: 40px auto;
  text-align: center;
  position: relative;
  background: var(--bg-tertiary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ad-slot::before {
  content: 'Advertisement';
  display: block;
  padding: 4px 0;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.ad-slot-leaderboard {
  min-height: 90px;
}

.ad-slot-rectangle {
  max-width: 336px;
  min-height: 250px;
}

.ad-slot-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   15. Cookie Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #054640;
  color: rgba(255, 255, 255, 0.85);
  padding: 20px var(--container-padding);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  min-width: 280px;
}

.cookie-banner-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-accept:hover {
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

.btn-cookie-decline {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   16. Animations & Keyframes
   ========================================================================== */

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay helpers */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }

/* Float animation for mockup (does not conflict with scroll animation) */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   17. Responsive Design
   ========================================================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .hero .container {
    gap: 40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

/* Tablets */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --container-padding: 20px;
  }

  /* Navbar mobile */
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .btn-login {
    display: none;
  }

  /* Hero stacks vertically */
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-mockup {
    order: 2;
    perspective: none;
  }

  .mockup-browser {
    transform: none;
  }

  .mockup-browser:hover {
    transform: scale(1.01);
  }

  /* Stats 2x2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Features single column */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Steps vertical */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid::before {
    display: none;
  }

  /* Screenshots */
  .screenshot-screen {
    flex-direction: column;
    min-height: 350px;
  }

  .ss-sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .ss-messaging {
    flex-direction: column;
  }

  .ss-msg-settings {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Cookie banner stacks */
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  /* Section header */
  .section-header {
    margin-bottom: 48px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px;
    --container-padding: 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .screenshot-tabs {
    gap: 6px;
  }

  .screenshot-tab {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .ss-template-grid {
    grid-template-columns: 1fr;
  }

  .ss-qr-code {
    width: 140px;
    height: 140px;
  }

  .step-number {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .btn-cta-white {
    padding: 14px 32px;
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 24px;
  }

  .ad-slot {
    margin: 24px auto;
  }
}

/* ==========================================================================
   18. Print Styles
   ========================================================================== */

@media print {
  .navbar,
  .cookie-banner,
  .ad-slot,
  .mobile-toggle,
  .mobile-menu {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 40px 0;
  }
}
