/* ==========================================================================
   STOREBUFF ENTERPRISE INTELLIGENCE - CORPORATE LIGHT DESIGN SYSTEM
   Professional Executive SaaS Theme (Stripe / Apple / Sensor Tower Aesthetic)
   ========================================================================== */

:root {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #e2e8f0;
  --bg-surface-glass: rgba(255, 255, 255, 0.97);
  --border-subtle: #cbd5e1;
  --border-focus: #94a3b8;
  --border-accent: rgba(37, 99, 235, 0.35);

  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-50: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.18);

  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-50: #ecfdf5;

  --cyan-600: #0284c7;
  --cyan-50: #f0f9ff;

  --amber-600: #d97706;
  --amber-50: #fffbeb;

  --purple-600: #7c3aed;

  --text-main: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 14px -1px rgba(15, 23, 42, 0.09), 0 2px 6px -1px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.06);
  --shadow-elevated: 0 20px 35px -8px rgba(15, 23, 42, 0.14), 0 10px 16px -4px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.08);
  --shadow-modal: 0 25px 60px -15px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(5, 150, 105, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 15% 40%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

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

/* --------------------------------------------------------------------------
   NAVBAR (Corporate Light Header)
   -------------------------------------------------------------------------- */
.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-surface-glass);
  border-bottom: 1.5px solid var(--border-subtle);
  height: 76px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
}

.brand-logo-frame {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.pro-badge {
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-600);
}

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

/* User Profile Pill */
.user-profile-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.user-profile-pill:hover {
  border-color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.profile-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--emerald-500);
  border: 2px solid #ffffff;
  border-radius: var(--radius-full);
}

.profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.profile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.profile-role {
  font-size: 0.68rem;
  color: var(--primary-600);
  font-weight: 600;
}

.profile-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.user-profile-pill.active .profile-chevron {
  transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 200;
}

.user-dropdown.open {
  display: flex;
}

.dropdown-header {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.dropdown-header .dropdown-user {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.dropdown-header .dropdown-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.dropdown-item.text-emerald {
  color: var(--emerald-600);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

/* Auth Action Buttons */
.btn-nav-auth {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-nav-auth:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-focus);
}

.btn-nav-console {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-600);
  color: #ffffff;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-nav-console:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 50px 24px 60px;
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

/* Prominent Initial Viewport Brand Showcase */
.hero-brand-showcase-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-brand-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  padding: 8px 20px 8px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
  transition: var(--transition);
}

.hero-brand-card:hover {
  border-color: var(--primary-600);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

.hero-brand-logo-frame {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--primary-600);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-brand-logo-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-brand-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hero-brand-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.1;
}

.hero-brand-tag {
  background: linear-gradient(135deg, var(--primary-600), var(--emerald-600));
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-brand-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-500);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--emerald-500);
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-main);
  max-width: 960px;
  margin: 0 auto 24px;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #1d4ed8, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 820px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-600);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.28);
  cursor: pointer;
  border: none;
}

.btn-hero-primary:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.38);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-subtle);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-hero-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary-600);
  color: var(--primary-600);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: var(--transition);
}

.trust-item:hover {
  border-color: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.trust-item span.icon {
  color: var(--emerald-600);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   LOGGED-OUT HERO VISUAL SHOWCASE (Light Theme)
   -------------------------------------------------------------------------- */
.hero-visual-container {
  margin: 44px auto 0;
  max-width: 1200px;
  position: relative;
}

.ambient-glow-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 75%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(5, 150, 105, 0.05) 50%, transparent 80%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

.showcase-window {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  transition: var(--transition);
}

.showcase-window:hover {
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.12);
  border-color: var(--border-focus);
}

.showcase-topbar {
  background: #f8fafc;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.mac-buttons {
  display: flex;
  gap: 6px;
}

.mac-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-btn.close { background: #ef4444; }
.mac-btn.min { background: #f59e0b; }
.mac-btn.max { background: #10b981; }

.showcase-address-bar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  width: 380px;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.showcase-view-controls {
  display: flex;
  gap: 8px;
}

.showcase-view-btn {
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}

.showcase-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f8fafc;
  overflow: hidden;
}

.showcase-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating Badges Over Image */
.floating-badge {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float-badge 4s ease-in-out infinite alternate;
}

.floating-badge.badge-left {
  bottom: 24px;
  left: 24px;
}

.floating-badge.badge-right {
  top: 36px;
  right: 24px;
  animation-delay: 2s;
}

@keyframes float-badge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-text-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.badge-text-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   LIVE MYSQL STATS STRIP
   -------------------------------------------------------------------------- */
.stats-strip-section {
  padding: 50px 24px;
  border-top: 1.5px solid var(--border-subtle);
  border-bottom: 1.5px solid var(--border-subtle);
  background: #e2e8f0;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card.emerald::before { background: var(--emerald-500); }
.stat-card.cyan::before { background: var(--cyan-600); }
.stat-card.blue::before { background: var(--primary-600); }
.stat-card.purple::before { background: var(--purple-600); }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border-color: var(--primary-600);
}

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

.stat-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-icon {
  font-size: 1.2rem;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

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

/* --------------------------------------------------------------------------
   FEATURE HIGHLIGHTS
   -------------------------------------------------------------------------- */
.features-section {
  padding: 90px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

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

.section-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: inline-block;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.feature-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.feature-card:hover {
  border-color: var(--primary-600);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  border: 1.5px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-pill {
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   CTA STRIP
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-box {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  color: #ffffff;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 36px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.marketing-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 50px 24px 40px;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition);
}

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

/* --------------------------------------------------------------------------
   AUTH MODAL & PROFILE MODAL (Corporate Light Theme)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-modal);
  position: relative;
  overflow: hidden;
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.modal-tab-btn.active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-600);
  background: #ffffff;
}

.modal-body {
  padding: 24px;
}

.auth-form-group {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-input.has-toggle {
  padding-right: 42px;
}

/* Interactive Password Show/Hide Toggle */
.pw-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-toggle-btn:hover {
  color: var(--primary-600);
}

/* Password Generator Bar */
.pw-generator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.btn-generate-pw {
  background: var(--primary-50);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-600);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-generate-pw:hover {
  background: #dbeafe;
  border-color: var(--primary-600);
}

.pw-strength-meter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.strength-bar {
  width: 60px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: var(--transition);
}

.strength-fill.weak { width: 33%; background: #ef4444; }
.strength-fill.medium { width: 66%; background: #f59e0b; }
.strength-fill.strong { width: 100%; background: var(--emerald-600); }

.strength-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Profile Avatar Management & WebP Upload */
.profile-avatar-management {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}

.profile-avatar-preview-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-preview-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--primary-500);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  display: block;
}

.profile-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--emerald-500);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 9999px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.btn-avatar-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--primary-700);
  border: 1.5px solid var(--primary-200);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-avatar-upload:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-800);
  transform: translateY(-1px);
}

.btn-avatar-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-avatar-reset:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.avatar-help-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}


/* Modal Buttons & Feedback */
.btn-submit-auth {
  width: 100%;
  background: var(--primary-600);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-submit-auth:hover {
  background: var(--primary-700);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-quick-fill {
  width: 100%;
  margin-top: 10px;
  background: var(--primary-50);
  border: 1px dashed rgba(37, 99, 235, 0.3);
  color: var(--primary-600);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-quick-fill:hover {
  background: #dbeafe;
  border-color: var(--primary-600);
}

.auth-feedback {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
}

.auth-feedback.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-feedback.success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .hero-description { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .cta-title { font-size: 1.8rem; }
  .floating-badge { display: none; }
}
