/* Reset and Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica, Arial, sans-serif; line-height: 1.6; color: #333; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 1rem 0; }
header .container { display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 2rem; font-weight: bold; }
nav a { margin-left: 1rem; text-decoration: none; color: white; padding: 0.5rem 1rem; border-radius: 5px; transition: all 0.3s; }
nav a:hover { background: rgba(255,255,255,0.2); }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.5rem; text-decoration: none; border-radius: 5px; font-weight: 500; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background: #4CAF50; color: white; }
.btn-primary:hover { background: #45a049; }
.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: #667eea; }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-outline { background: transparent; color: #667eea; border: 2px solid #667eea; }
.btn-outline:hover { background: #667eea; color: white; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); padding: 4rem 0; text-align: center; }
.hero h2 { font-size: 3rem; margin-bottom: 1rem; color: #333; }
.subtitle { font-size: 1.2rem; color: #666; margin-bottom: 2rem; }
.cta-buttons { margin-top: 2rem; }
.cta-buttons a { margin: 0 1rem; }

/* Features */
.features { padding: 4rem 0; background: white; }
.features h3 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #333; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-card { background: #f8f9fa; padding: 2rem; border-radius: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.feature-card h4 { font-size: 1.3rem; margin-bottom: 1rem; color: #333; }
.feature-card p { color: #666; }

/* Screenshots */
.screenshots { padding: 4rem 0; background: #f8f9fa; }
.screenshots h3 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #333; }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.screenshot-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.screenshot-card h4 { font-size: 1.3rem; margin-bottom: 1rem; color: #333; }
.screenshot-placeholder { background: #e9ecef; padding: 3rem; border-radius: 5px; text-align: center; font-size: 2rem; margin-bottom: 1rem; }
.screenshot-card p { color: #666; }

/* Contact */
.contact { padding: 4rem 0; background: white; }
.contact h3 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #333; }
.contact-info { text-align: center; }
.contact-info p { font-size: 1.1rem; margin-bottom: 0.5rem; color: #666; }

/* Footer */
footer { background: #333; color: white; padding: 2rem 0; text-align: center; }

/* Dashboard Styles */
main { padding: 2rem 0; min-height: calc(100vh - 200px); }
h2, h3 { color: #333; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.dashboard-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dashboard-card h3 { margin-bottom: 1.5rem; color: #333; }

/* Site Form */
.site-form { display: flex; gap: 1rem; align-items: end; }
.site-form input { flex: 1; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-item { text-align: center; padding: 1rem; background: #f8f9fa; border-radius: 8px; }
.stat-number { display: block; font-size: 2rem; font-weight: bold; color: #4CAF50; }
.stat-label { font-size: 0.9rem; color: #666; }

/* Sites Section */
.sites-section { margin-top: 2rem; }
.sites-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }
.site-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-left: 4px solid #4CAF50; }
.site-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.site-header h4 { margin: 0; color: #333; }
.delete-form { margin: 0; }

/* Site Info */
.site-info { margin-bottom: 1.5rem; }
.site-info p { margin: 0.5rem 0; }

/* Tracking Code */
.tracking-code h5 { margin-bottom: 1rem; color: #333; }
.code-block { position: relative; margin-bottom: 1rem; }
.code-block pre { background: #f7f7f7; padding: 1rem; border-radius: 5px; overflow-x: auto; margin: 0; }
.code-block button { position: absolute; top: 0.5rem; right: 0.5rem; }

/* Instructions */
.instructions { margin-top: 1rem; }
.instructions p { margin: 0.5rem 0; color: #666; }
.instructions pre { background: #f7f7f7; padding: 1rem; border-radius: 5px; overflow-x: auto; font-size: 0.9rem; }

/* Empty State */
.empty-state { text-align: center; padding: 3rem; background: #f8f9fa; border-radius: 10px; color: #666; }

/* Button Variants */
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }

/* Form Elements */
input, button { padding: 0.75rem; margin: 0.5rem 0; border: 1px solid #ddd; border-radius: 5px; }
input { width: 100%; max-width: 400px; }
button { background: #4CAF50; color: white; cursor: pointer; border: none; }
button:hover { background: #45a049; }

/* Code Elements */
pre { background: #f7f7f7; padding: 1rem; border-radius: 5px; overflow-x: auto; }
code { background: #f7f7f7; padding: 0.2rem 0.4rem; border-radius: 3px; font-family: monospace; }

/* Analytics Styles */
.site-selector { margin-bottom: 2rem; }
.site-selector select { padding: 0.75rem; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; }

.analytics-content { margin-top: 2rem; }

/* Stats Overview */
.stats-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); text-align: center; }
.stat-card .stat-number { display: block; font-size: 2.5rem; font-weight: bold; color: #4CAF50; margin-bottom: 0.5rem; }
.stat-card .stat-label { color: #666; font-size: 1rem; }

/* Analytics Sections */
.analytics-section { margin-bottom: 3rem; }
.analytics-section h4 { margin-bottom: 1.5rem; color: #333; font-size: 1.5rem; }

/* Table Styles */
.table-container { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); overflow: hidden; }
.analytics-table { width: 100%; border-collapse: collapse; }
.analytics-table th, .analytics-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #eee; }
.analytics-table th { background: #f8f9fa; font-weight: 600; color: #333; }
.analytics-table tr:hover { background: #f8f9fa; }
.page-info strong { display: block; margin-bottom: 0.25rem; }
.page-info small { color: #666; }

/* Daily Stats */
.daily-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.daily-card { background: white; padding: 1.5rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.daily-card .date { font-weight: bold; color: #333; margin-bottom: 1rem; }
.daily-numbers { display: flex; flex-direction: column; gap: 0.5rem; }
.daily-numbers span { color: #666; font-size: 0.9rem; }

/* Auth Pages Styles */
.auth-container { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  min-height: calc(100vh - 200px); 
  padding: 2rem 0; 
}

.auth-card { 
  background: white; 
  padding: 3rem; 
  border-radius: 15px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
  width: 100%; 
  max-width: 450px; 
  border: 1px solid #f0f0f0;
}

.auth-header { 
  text-align: center; 
  margin-bottom: 2rem; 
}

.auth-header h2 { 
  font-size: 2rem; 
  margin-bottom: 0.5rem; 
  color: #333; 
}

.auth-header p { 
  color: #666; 
  font-size: 1rem; 
  line-height: 1.5; 
}

.auth-form { 
  margin-bottom: 2rem; 
}

.form-group { 
  margin-bottom: 1.5rem; 
}

.form-group label { 
  display: block; 
  margin-bottom: 0.5rem; 
  font-weight: 500; 
  color: #333; 
  font-size: 0.9rem; 
}

.form-group input { 
  width: 100%; 
  padding: 1rem; 
  border: 2px solid #e1e5e9; 
  border-radius: 8px; 
  font-size: 1rem; 
  transition: all 0.3s ease; 
  background: #fafbfc;
}

.form-group input:focus { 
  outline: none; 
  border-color: #4CAF50; 
  background: white; 
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1); 
}

.form-group input::placeholder { 
  color: #999; 
}

.auth-footer { 
  text-align: center; 
  padding-top: 1.5rem; 
  border-top: 1px solid #f0f0f0; 
}

.auth-footer p { 
  color: #666; 
  margin: 0; 
}

.auth-link { 
  color: #4CAF50; 
  text-decoration: none; 
  font-weight: 500; 
  transition: color 0.3s ease; 
}

.auth-link:hover { 
  color: #45a049; 
  text-decoration: underline; 
}

.error-message { 
  background: #fee; 
  border: 1px solid #fcc; 
  border-radius: 8px; 
  padding: 1rem; 
  margin-bottom: 1.5rem; 
  text-align: center; 
}

.error-message span { 
  color: #c33; 
  font-weight: 500; 
}

/* Responsive */
@media (max-width: 768px) {
  .hero h2 { font-size: 2rem; }
  .container { padding: 0 15px; }
  header .container { flex-direction: column; gap: 1rem; }
  .cta-buttons a { display: block; margin: 0.5rem 0; }
  
  /* Dashboard Responsive */
  .dashboard-grid { grid-template-columns: 1fr; }
  .sites-grid { grid-template-columns: 1fr; }
  .site-form { flex-direction: column; align-items: stretch; }
  .site-header { flex-direction: column; gap: 1rem; align-items: stretch; }
  .stats-grid { grid-template-columns: 1fr; }
  .code-block button { position: static; margin-top: 0.5rem; }
  
  /* Auth Responsive */
  .auth-container { padding: 1rem 0; }
  .auth-card { padding: 2rem; margin: 1rem; }
  .auth-header h2 { font-size: 1.5rem; }
}

/* Device Info */
.device-info {
  font-size: 0.9rem;
  line-height: 1.4;
}
.device-info strong {
  color: #333;
  font-weight: 600;
}
.device-info small {
  color: #666;
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   HOMEPAGE STYLES (body.home-page) - Cerebro Insight Dark Theme
   ========================================================================== */

body.home-page {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f2550;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Global Style Overrides for Homepage --- */
body.home-page h1,
body.home-page h2,
body.home-page h3,
body.home-page h4,
body.home-page h5,
body.home-page h6 {
  color: #fff;
  margin-bottom: 0;
}

body.home-page .hp-section-title,
body.home-page .hp-cta-title {
  text-align: center;
}

body.home-page .hp-navbar a {
  margin-left: 0;
  color: inherit;
  text-decoration: none;
}

body.home-page .hp-footer {
  background: none;
  text-align: left;
}

body.home-page .hp-footer a {
  margin-left: 0;
  color: inherit;
  text-decoration: none;
}

body.home-page .hp-mobile-toggle {
  background: none;
  color: #cbd5e1;
  border: none;
  padding: 0.5rem;
  margin: 0;
}

body.home-page ::selection {
  background: rgba(6, 182, 212, 0.3);
  color: #fff;
}

body.home-page ::-webkit-scrollbar { width: 8px; }
body.home-page ::-webkit-scrollbar-track { background: #0a1a3a; }
body.home-page ::-webkit-scrollbar-thumb { background: #3a5d93; border-radius: 99px; }
body.home-page ::-webkit-scrollbar-thumb:hover { background: #0891b2; }

/* --- Container --- */
.hp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Utility Classes --- */
.hp-gradient-text {
  background: linear-gradient(135deg, #22d3ee, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-text-cyan { color: #22d3ee; }

.hp-icon-xs { width: 16px; height: 16px; }
.hp-icon-sm { width: 20px; height: 20px; }

/* --- Glass Effect --- */
.hp-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

/* --- Scroll Reveal --- */
.hp-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hp-reveal.hp-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navbar --- */
.hp-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  background: transparent;
}

.hp-navbar-scrolled {
  background: rgba(15, 37, 80, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hp-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1rem;
}

.hp-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
}

.hp-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

.hp-logo:hover .hp-logo-icon {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.hp-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.hp-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hp-nav-link {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s;
}

.hp-nav-link:hover,
.hp-nav-link.active {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
}

.hp-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s;
}

.hp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.hp-btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.hp-btn-primary-sm:hover {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.hp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.5rem;
}

.hp-mobile-toggle:hover { color: #fff; }

/* --- Mobile Menu --- */
.hp-mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(15, 37, 80, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.2s;
  pointer-events: none;
}

.hp-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.hp-mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s;
}

.hp-mobile-link:hover {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
}

.hp-mobile-actions {
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- Hero Section --- */
.hp-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hp-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hp-blob-1 {
  top: 25%;
  left: 25%;
  width: 384px;
  height: 384px;
  background: rgba(6, 182, 212, 0.1);
  animation: hp-pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hp-blob-2 {
  bottom: 25%;
  right: 25%;
  width: 384px;
  height: 384px;
  background: rgba(34, 197, 94, 0.1);
  animation: hp-pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 2s;
}

.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, #0f2550 70%);
}

@keyframes hp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.hp-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hp-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
  text-align: center;
}

.hp-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hp-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hp-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.hp-btn-cta:hover {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
}

.hp-btn-ghost-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s;
}

.hp-btn-ghost-lg:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hp-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 480px;
  margin: 4rem auto 0;
}

.hp-hero-stat {
  text-align: center;
}

.hp-hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.25rem;
}

.hp-hero-stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* --- Sections --- */
.hp-section {
  padding: 5rem 1rem;
}

.hp-section-dark {
  background: rgba(10, 26, 58, 0.5);
}

.hp-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.hp-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-align: center;
}

.hp-section-desc {
  color: #94a3b8;
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Module Cards --- */
.hp-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.hp-module-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: default;
}

.hp-module-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.1);
  transform: translateY(-4px);
}

.hp-module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hp-module-icon svg { width: 24px; height: 24px; }

.hp-module-icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.hp-module-icon-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.hp-module-icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.hp-module-icon-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.hp-module-icon-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.hp-module-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
  transition: color 0.2s;
}

.hp-module-card:hover .hp-module-title { color: #22d3ee; }

.hp-module-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* --- Early Access Badge --- */
.hp-module-card {
  position: relative;
}

.hp-badge-early {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  color: #0f2550;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- How It Works (Steps) --- */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.hp-steps-line {
  display: none;
  position: absolute;
  top: 40px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, rgba(6,182,212,0.5), rgba(6,182,212,0.2), rgba(6,182,212,0.5));
}

.hp-step {
  text-align: center;
}

.hp-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  position: relative;
}

.hp-step-icon svg { width: 32px; height: 32px; color: #22d3ee; }

.hp-step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hp-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

.hp-step-desc {
  color: #94a3b8;
  line-height: 1.6;
}

/* --- Stats Section --- */
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.hp-stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.hp-stat-icon {
  width: 32px;
  height: 32px;
  color: #22d3ee;
  margin: 0 auto 0.75rem;
}

.hp-stat-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.hp-stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* --- Testimonials --- */
.hp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hp-testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.hp-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.hp-star-filled {
  width: 16px;
  height: 16px;
  color: #facc15;
  fill: #facc15;
}

.hp-star-empty {
  width: 16px;
  height: 16px;
  color: #4b5563;
}

.hp-testimonial-text {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
  flex: 1;
}

.hp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.hp-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.hp-author-role {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* --- CTA Banner --- */
.hp-cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #0891b2, #16a34a);
  padding: 4rem;
  text-align: center;
}

.hp-cta-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent);
}

.hp-cta-content {
  position: relative;
  z-index: 10;
}

.hp-cta-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-align: center;
}

.hp-cta-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hp-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hp-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0891b2;
  background: #fff;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hp-btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.hp-btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s;
}

.hp-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* --- Footer --- */
body.home-page .hp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 26, 58, 0.5);
  padding: 4rem 1rem 2rem;
}

.hp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hp-footer-brand {
  margin-bottom: 1rem;
}

.hp-footer-desc {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.hp-footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.hp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-footer-links li { margin-bottom: 0.625rem; }

.hp-footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.hp-footer-links a:hover { color: #22d3ee; }

.hp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hp-footer-bottom p {
  font-size: 0.875rem;
  color: #64748b;
}

.hp-footer-made {
  font-size: 0.875rem;
  color: #64748b;
}

/* --- Homepage Responsive --- */
@media (min-width: 769px) {
  .hp-steps-line { display: block; }
}

@media (max-width: 1024px) {
  .hp-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hp-nav-links,
  .hp-nav-actions { display: none; }

  .hp-mobile-toggle { display: block; }
  .hp-mobile-menu { display: block; }

  .hp-hero { min-height: 80vh; }
  .hp-hero-title { font-size: 2rem; }
  .hp-hero-buttons { flex-direction: column; }
  .hp-hero-buttons a { width: 100%; text-align: center; }
  .hp-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .hp-modules-grid { grid-template-columns: 1fr; }
  .hp-steps { grid-template-columns: 1fr; }
  .hp-steps-line { display: none; }
  .hp-stats-grid { grid-template-columns: 1fr 1fr; }
  .hp-testimonials-grid { grid-template-columns: 1fr; }

  .hp-cta-banner { padding: 2rem 1.5rem; }

  .hp-footer-grid { grid-template-columns: 1fr; }
  .hp-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hp-hero-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .hp-stats-grid { grid-template-columns: 1fr; }
  .hp-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
  }
}

/* ==========================================================================
   AUTH PAGES STYLES (body.auth-page) - Login & Register Dark Theme
   ========================================================================== */

body.auth-page {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f2550;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.auth-page h1,
body.auth-page h2,
body.auth-page h3 {
  color: #fff;
  margin-bottom: 0;
}

body.auth-page a {
  color: inherit;
  text-decoration: none;
}

body.auth-page .hp-navbar a {
  margin-left: 0;
}

/* --- Auth Wrapper --- */
.hp-auth-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 2rem;
  min-height: calc(100vh - 140px);
}

.hp-auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* --- Auth Card --- */
.hp-auth-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 460px;
}

.hp-auth-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hp-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.hp-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  margin-bottom: 1.25rem;
}

.hp-auth-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.hp-auth-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hp-auth-header p {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* --- Auth Error --- */
.hp-auth-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  color: #f87171;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Auth Form --- */
.hp-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hp-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hp-form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
}

.hp-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.hp-input-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

body.auth-page .hp-input-wrapper input {
  width: 100%;
  max-width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9375rem;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.2s;
  margin: 0;
}

body.auth-page .hp-input-wrapper input::placeholder {
  color: #64748b;
}

body.auth-page .hp-input-wrapper input:focus {
  outline: none;
  border-color: #22d3ee;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

/* --- Auth Submit Button --- */
.hp-auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

/* --- Auth Footer --- */
.hp-auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-auth-footer p {
  color: #94a3b8;
  font-size: 0.875rem;
}

.hp-auth-link {
  color: #22d3ee;
  font-weight: 600;
  transition: color 0.2s;
}

.hp-auth-link:hover {
  color: #67e8f9;
}

/* --- Auth Bottom Footer --- */
.hp-auth-bottom-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
}

.hp-auth-bottom-footer p {
  font-size: 0.875rem;
  color: #64748b;
}

/* --- Auth Responsive --- */
@media (max-width: 768px) {
  body.auth-page .hp-nav-actions { display: none; }

  .hp-auth-wrapper {
    padding: 5rem 1rem 1.5rem;
  }

  .hp-auth-card {
    padding: 2rem 1.5rem;
  }

  .hp-auth-header h2 {
    font-size: 1.5rem;
  }
}