
/* Pros & Cons Grid */
.proscons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.proscons-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proscons-header {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 8px;
}

.proscons-column.cons .proscons-header {
  color: var(--danger);
  border-color: var(--danger);
}

.proscons-column.pros .proscons-header {
  color: var(--success);
  border-color: var(--success);
}

@media (max-width: 768px) {
  .proscons-grid {
    grid-template-columns: 1fr;
  }
}


/* Benefits */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
}

.benefit-item:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateX(4px);
}

.benefit-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
}

.benefit-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   LegalLens - Complete Stylesheet
   Glassmorphism Dark Theme + All Features
   ======================================== */

/* CSS Variables */
:root {
  --bg: #0b1120;
  --bg-card: rgba(30, 41, 59, 0.6);
  --bg-card-solid: #1e293b;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(148, 163, 184, 0.15);
  --border-solid: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Utility */
.hidden { display: none !important; }
.center { text-align: center; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

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

.btn-ghost:hover {
  background: var(--glass);
  color: var(--text);
  border-color: var(--glass-border);
}

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

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-auth {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
}

.btn-premium-sm {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-install {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}

.btn-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   INSTALL BANNER
   ======================================== */
.install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.install-banner span {
  flex: 1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-auth {
  display: flex;
  gap: 12px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.user-menu {
  display: flex;
  gap: 8px;
}

.premium-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-card-solid);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
}

/* Document Card Animation */
.document-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

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

.doc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.doc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.doc-dot.red { background: var(--danger); }
.doc-dot.yellow { background: var(--warning); }
.doc-dot.green { background: var(--success); }

.doc-title {
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.doc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  width: 100%;
}

.doc-line.short { width: 60%; }
.doc-line.medium { width: 80%; }

.analysis-overlay {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-badge-doc {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.risk-badge-doc.critical {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.risk-badge-doc.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.risk-badge-doc.info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ========================================
   ANALYZER SECTION
   ======================================== */
.analyzer-section {
  padding: 80px 0;
}

.analyzer-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.analyzer-header {
  text-align: center;
  margin-bottom: 32px;
}

.analyzer-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

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

/* Limit Banner */
.limit-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.limit-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.limit-icon {
  font-size: 20px;
}

.limit-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.limit-text strong {
  color: var(--warning);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.upload-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.upload-option {
  flex: 1;
  max-width: 200px;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition);
}

.upload-option:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.upload-option h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.upload-option p {
  font-size: 12px;
  color: var(--text-muted);
}

.upload-divider {
  color: var(--text-muted);
  font-size: 14px;
}

.upload-paste {
  margin-top: 24px;
}

.upload-paste .divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.upload-paste .divider::before,
.upload-paste .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.text-input {
  width: 100%;
  min-height: 150px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: var(--transition);
}

.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.text-input::placeholder {
  color: var(--text-dim);
}

.text-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.char-count {
  font-size: 12px;
  color: var(--text-dim);
}

/* Camera Pages */
.camera-pages {
  margin-top: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.camera-header h4 {
  font-size: 16px;
}

.camera-actions {
  display: flex;
  gap: 8px;
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.page-thumb {
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-thumb .page-num {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* OCR Progress */
.ocr-progress {
  margin-top: 24px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.ocr-progress p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Drag Overlay */
.drag-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.1);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

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

.drag-content .upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.drag-content p {
  font-size: 18px;
  color: var(--primary-light);
  font-weight: 600;
}

/* Ad Container */
.ad-container {
  margin-top: 32px;
  text-align: center;
}

.ad-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ad-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 40px;
  color: var(--text-muted);
}

.ad-placeholder p {
  font-size: 18px;
  margin-bottom: 4px;
}

.ad-placeholder small {
  font-size: 12px;
  color: var(--text-dim);
}

/* ========================================
   RESULTS SECTION
   ======================================== */
.results-section {
  padding: 80px 0;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.results-header h2 {
  font-size: 28px;
}

.results-actions {
  display: flex;
  gap: 12px;
}

/* Score Card */
.score-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.score-circle {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.score-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}

.score-progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.score-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.score-details {
  flex: 1;
}

.score-details .risk-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.score-summary {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Results Tabs */
.results-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  background: var(--glass);
  color: var(--text);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Lists */
.risks-list,
.terms-list,
.recommendations-list,
.redflags-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk-item,
.term-item,
.recommendation-item,
.redflag-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
}

.risk-item:hover,
.term-item:hover,
.recommendation-item:hover,
.redflag-item:hover {
  border-color: var(--glass-border);
  transform: translateX(4px);
}

.risk-item.critical {
  border-left: 4px solid var(--danger);
}

.risk-item.warning {
  border-left: 4px solid var(--warning);
}

.risk-item.info {
  border-left: 4px solid var(--info);
}

.risk-item .risk-title,
.term-item .term-title,
.redflag-item .redflag-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-item .risk-desc,
.term-item .term-desc,
.recommendation-item p,
.redflag-item .redflag-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   HISTORY SECTION
   ======================================== */
.history-section {
  padding: 80px 0;
}

.history-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.history-section .section-header h2 {
  font-size: 28px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-empty {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 16px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
}

.history-item:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary);
}

.history-item-icon {
  font-size: 24px;
}

.history-item-info {
  flex: 1;
}

.history-item-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.history-item-date {
  font-size: 12px;
  color: var(--text-dim);
}

.history-item-score {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
  padding: 100px 0;
}

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

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

.section-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
}

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

.feature-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03), transparent);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  padding: 32px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}

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

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
}

.step-arrow {
  font-size: 24px;
  color: var(--primary);
  margin-top: 60px;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-section {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
}

.pricing-price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-brand .logo-icon {
  font-size: 32px;
}

.footer-brand .logo-text {
  font-size: 20px;
  font-weight: 700;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 13px;
}

.footer-bottom .disclaimer {
  margin-top: 8px;
  font-size: 12px;
}

/* ========================================
   MODALS
   ======================================== */
/* Auth Header (compact modal) */
.auth-header {
  text-align: center;
  margin-bottom: 24px;
  padding-top: 8px;
}

.auth-logo {
  font-size: 48px;
  margin-bottom: 12px;
}

.auth-header h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-features-compact {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.auth-feature-item {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--glass);
  color: var(--text);
}

/* Auth Modal - Clean Centered */
.auth-modal {
  max-width: 420px;
  width: 100%;
  padding: 40px;
  margin: auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 16px;
}

.auth-header h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 12px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition);
  text-align: center;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  background: var(--primary);
  color: white;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
  width: 100%;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
  text-align: center;
  padding: 10px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.auth-features-compact {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.auth-feature-item {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* Upgrade Modal */
.upgrade-modal {
  max-width: 450px;
  padding: 40px;
  text-align: center;
}

.upgrade-header {
  margin-bottom: 24px;
}

.upgrade-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.upgrade-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

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

.upgrade-features {
  text-align: left;
  margin-bottom: 24px;
}

.upgrade-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
}

.upgrade-check {
  color: var(--success);
  font-weight: 700;
}

.upgrade-price {
  margin-bottom: 24px;
}

.upgrade-price .price {
  font-size: 48px;
  font-weight: 800;
}

.upgrade-price .period {
  color: var(--text-muted);
  font-size: 16px;
}

.upgrade-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

/* Ad Modal */
.ad-modal {
  max-width: 400px;
  padding: 40px;
  text-align: center;
}

.ad-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-timer {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

.timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.ad-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.ad-content > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ad-slot {
  width: 100%;
  margin-bottom: 24px;
}

.ad-slot .ad-label {
  margin-bottom: 4px;
}

.ad-slot .ad-placeholder {
  padding: 30px;
}

/* ========================================
   TOAST
   ======================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-icon {
  font-size: 18px;
}

.toast-message {
  font-size: 14px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

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

  .hero-cta,
  .hero-trust,
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-auth,
  .nav-user {
    display: none;
    .auth-logo {
    font-size: 36px;
  }

  .auth-header h2 {
    font-size: 20px;
  }

  .auth-features-compact {
    gap: 12px;
  }

  .auth-feature-item {
    font-size: 11px;
  }

}

  .mobile-menu-btn {
    display: block;
  }
  .auth-modal {
    padding: 32px 24px;
    margin: 16px;
    max-height: calc(100vh - 32px);
  }

  .auth-logo {
    font-size: 42px;
  }

  .auth-header h2 {
    font-size: 22px;
  }

  .auth-tabs {
    gap: 4px;
  }

  .auth-tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .auth-features-compact {
    gap: 8px;
  }

  .auth-feature-item {
    font-size: 11px;
    padding: 5px 10px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .analyzer-card {
    padding: 24px;
  }

  .upload-options {
    flex-direction: column;
  }

  .upload-option {
    max-width: 100%;
  }

  .score-card {
    flex-direction: column;
    text-align: center;
  }

  .results-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

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

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

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 60px;
  }

  .hero-title {
    font-size: 28px;
  }

  .analyzer-card {
    padding: 20px;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-actions {
    width: 100%;
  }

  .modal {
    margin: 16px;
    max-height: calc(100vh - 32px);
  }
}

/* SVG Gradient for score circle */
svg defs {
  display: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-solid);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Selection */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text);
}


/* Google Sign-In Button */
.btn-google {
  background: white;
  color: #333;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Password visibility toggle */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  line-height: 1;
}

.password-toggle:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

.password-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}