/* OmniGEO - Modern Futuristic Glassmorphism & Cyberpunk Theme */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-pink: #ff0844;
  --accent-purple: #7928ca;
  --accent-green: #00f5a0;
  --accent-yellow: #f6d365;

  --gradient-main: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-purple: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(121, 40, 202, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

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

/* Header & Nav */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-main);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  box-shadow: var(--glow-cyan);
}

.brand-tag {
  font-size: 0.75rem;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 254, 0.3);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-glow {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 8, 68, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 8, 68, 0.5);
}

/* Hero Section */
.hero {
  padding: 70px 0 40px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 30px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #f6d365 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
}

/* Live Scan Input Box */
.scan-box-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--glow-cyan);
  border-radius: 16px;
  padding: 12px;
  max-width: 760px;
  margin: 0 auto 20px;
}

.scan-form {
  display: flex;
  gap: 10px;
}

.scan-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 16px 20px;
  color: #fff;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s;
}

.scan-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.scan-quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quick-pill {
  cursor: pointer;
  color: var(--text-secondary);
  text-decoration: underline;
}

.quick-pill:hover {
  color: var(--accent-cyan);
}

/* Scanning Progress Indicator */
.scan-progress-bar-wrap {
  display: none;
  max-width: 760px;
  margin: 15px auto 25px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: left;
}

.scan-progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.scan-progress-step.active {
  color: var(--accent-cyan);
  font-weight: 700;
}

.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  transition: width 0.4s ease;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Audit Results Section */
.audit-container {
  display: none; /* revealed after scan */
  margin: 40px 0;
  animation: fadeIn 0.5s ease forwards;
}

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

.audit-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px;
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 30px;
  align-items: center;
  margin-bottom: 24px;
}

/* Circular Score Dial */
.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bg-primary) 79%, transparent 80% 100%),
              conic-gradient(var(--accent-cyan) calc(var(--score-pct) * 1%), rgba(255, 255, 255, 0.1) 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  margin: 0 auto;
}

.score-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.score-grade {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.audit-meta h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.audit-url-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  margin-bottom: 12px;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success { background: rgba(0, 245, 160, 0.15); color: var(--accent-green); border: 1px solid rgba(0, 245, 160, 0.3); }
.badge-warning { background: rgba(246, 211, 101, 0.15); color: var(--accent-yellow); border: 1px solid rgba(246, 211, 101, 0.3); }
.badge-danger  { background: rgba(255, 8, 68, 0.15); color: var(--accent-pink); border: 1px solid rgba(255, 8, 68, 0.3); }

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 18px;
}

.cat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.cat-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.cat-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 4px;
  transition: width 1s ease;
}

/* Tabs */
.tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Recommendations List */
.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.rec-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rec-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.rec-action {
  white-space: nowrap;
}

/* Crawler Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.data-table th, .data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Code Snippet Box */
.code-box {
  background: #000;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a5b4fc;
  overflow-x: auto;
  position: relative;
  margin-top: 12px;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Citation Simulator Box */
.ai-preview-box {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.ai-preview-query {
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Pricing Grid */
.pricing-section {
  padding: 80px 0 60px;
  text-align: center;
}

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

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease;
}

.price-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gradient-main);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin: 16px 0;
}

.price-cycle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.features-list {
  list-style: none;
  margin: 24px 0 30px;
}

.features-list li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li::before {
  content: "✓";
  color: var(--accent-cyan);
  font-weight: 800;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 80px;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 32px;
  max-width: 650px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Print Friendly / PDF Export Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  .navbar, .hero, .stats-ribbon, .tab-nav, #features, #pricing, #autopilot, footer, .btn, .scan-box-card {
    display: none !important;
  }
  .audit-container {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .tab-pane {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
  .audit-header-card, .cat-card, .rec-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
  }
  .score-circle {
    background: #fff !important;
    border: 4px solid #0284c7 !important;
  }
  .score-num {
    color: #0284c7 !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.4rem; }
  .stats-ribbon { grid-template-columns: repeat(2, 1fr); }
  .audit-header-card { grid-template-columns: 1fr; text-align: center; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}
