/* 
  ReputationAI - Premium Design System
  Focus: High contrast, readability, and modern aesthetics.
*/

:root {
  /* Colors */
  --bg-primary: hsl(220, 20%, 8%);
  --bg-secondary: hsl(220, 20%, 12%);
  --text-primary: hsl(0, 0%, 98%);
  --text-secondary: hsl(220, 10%, 70%);
  --accent-primary: hsl(230, 80%, 60%);
  --accent-hover: hsl(230, 80%, 70%);
  --success: hsl(150, 60%, 50%);
  --warning: hsl(40, 90%, 60%);
  --danger: hsl(0, 80%, 60%);
  --border: hsla(0, 0%, 100%, 0.1);
  --glass: hsla(220, 20%, 12%, 0.7);
  --glass-border: hsla(0, 0%, 100%, 0.12);
  --card-glow: hsla(230, 80%, 60%, 0.15);

  /* Spacing & Sizes */
  --radius: 12px;
  --pad: 1.5rem;
  --sidebar-w: 260px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
}

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: var(--pad);
  max-width: 1200px;
  margin-right: auto;
  transition: var(--transition);
}

/* Mobile Nav (Bottom) */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  z-index: 1001;
  padding: 0 1rem;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
}

.mobile-nav-item {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mobile-nav-item.active { color: var(--accent-primary); }

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    padding: 1rem 1rem 80px 1rem;
  }
  .mobile-nav {
    display: flex;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .revenue-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .revenue-card > div:nth-child(2) {
    border-left: none;
    padding-left: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  h1 { font-size: 1.5rem; }
}

/* Typography */
h1 { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 2rem; }
h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
p { color: var(--text-secondary); }

/* Components */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--pad);
  transition: var(--transition);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--card-glow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card .value { 
  background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem; 
  font-weight: 900; 
}
.stat-card .label { font-size: 0.875rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }

/* Bento Grid */
.bento-grid {
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: var(--glass);
}

/* Badges */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-success { background: hsla(150, 60%, 50%, 0.1); color: var(--success); }
.badge-warning { background: hsla(40, 90%, 60%, 0.1); color: var(--warning); }

/* Review Feed */
.review-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stars { color: var(--accent-primary); margin-bottom: 0.5rem; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-secondary);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
}

/* Navigation */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-primary);
  text-decoration: none;
}

/* Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  padding: 120px 0;
  text-align: left;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

.waitlist-form {
  display: flex;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  max-width: 500px;
}

.waitlist-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 1rem;
  font-size: 1rem;
  outline: none;
}

/* Feature Grid */
.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  padding: 4rem 2rem;
}

/* Floating Stats (Hero) */
.floating-stat {
  position: absolute;
  bottom: -30px;
  left: -30px;
  min-width: 150px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 10;
}

/* 🛡️ RESPONSIVE FIX v14.1 */
@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    padding: 60px 1.5rem;
    gap: 2rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    margin: 0 auto 2rem;
  }
  .waitlist-form {
    flex-direction: column;
    max-width: 100%;
    gap: 0.5rem;
    padding: 1rem;
  }
  .hero-image img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
  }
  .floating-stat {
    display: none; /* Hide floating stats on mobile for cleaner view */
  }
  .landing-nav {
    padding: 1rem;
  }
}
