/* ============================================================
   GEO-CN Stylesheet
   Dark theme with purple/blue accents
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Background colors */
  --bg-primary: #0f0f1e;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: #1a1a2e;
  --bg-hover: #222240;
  --bg-input: #0d0d1a;

  /* Accent colors */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #8b5cf6;
  --secondary: #3b82f6;
  --secondary-hover: #2563eb;
  --accent-purple: #7c3aed;
  --accent-blue: #3b82f6;

  /* Score colors */
  --score-green: #28a745;
  --score-blue: #17a2b8;
  --score-yellow: #ffc107;
  --score-orange: #fd7e14;
  --score-red: #dc3545;

  /* Text colors */
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --text-white: #ffffff;

  /* Borders */
  --border-color: #2a2a3e;
  --border-light: #333350;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(124, 58, 237, 0.3);

  /* Fonts */
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Layout */
  --container-max: 1200px;
  --navbar-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  height: auto;
}

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

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 30, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.navbar-logo:hover {
  color: var(--text-white);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-accent {
  color: var(--primary);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.navbar-cta {
  margin-left: 8px;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
  color: var(--text-white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  left: -100px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -150px;
  right: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: var(--text-white);
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 20px;
}

.hero-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.hero-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.hero-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-quick-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quick-btn {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--text-white);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  padding: 48px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--bg-secondary);
}

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

.step-card {
  text-align: center;
  padding: 32px;
  position: relative;
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.9;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================================
   STANDARDIZED SERVICE FLOW
   ============================================================ */

.service-flow {
  padding: 80px 0;
}

.flow-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.flow-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.flow-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.flow-step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--primary), transparent);
  margin-top: 8px;
  min-height: 40px;
}

.flow-step:last-child .flow-step-line {
  display: none;
}

.flow-step-body {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  flex: 1;
  transition: all 0.3s ease;
}

.flow-step-body:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

.flow-step-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.flow-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.flow-step-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

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

.flow-tag {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ============================================================
   DATA DASHBOARD PREVIEW
   ============================================================ */

.data-dashboard {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.03), transparent);
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.12);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.dashboard-icon {
  font-size: 1.5rem;
}

.dashboard-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.dashboard-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dashboard-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.metric-trend {
  font-size: 0.75rem;
  font-weight: 600;
}

.metric-trend.up {
  color: #28a745;
}

.metric-trend.down {
  color: #dc3545;
}

/* Platform match bars */
.platform-match-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-match {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  width: 80px;
  flex-shrink: 0;
}

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

.pm-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1s ease;
}

.pm-score {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

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

  .flow-step {
    flex-direction: column;
    gap: 12px;
  }

  .flow-step-line {
    display: none;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.comparison-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

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

.comparison-table th,
.data-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.9rem;
}

.comparison-table td,
.data-table td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.col-highlight {
  background: rgba(124, 58, 237, 0.08);
}

.col-highlight:first-child {
  background: transparent;
}

.comparison-table .check {
  color: var(--score-green);
  font-weight: 600;
}

.comparison-table .cross {
  color: var(--score-red);
}

.comparison-table .partial {
  color: var(--score-yellow);
}

.data-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.05);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: 64px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ============================================================
   CARDS & FORMS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.form-card {
  margin-bottom: 32px;
}

.analyze-form .form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}

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

.form-group-grow {
  flex: 1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.required {
  color: var(--score-red);
}

.form-input,
.form-select {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ============================================================
   RESULTS AREA
   ============================================================ */
.results-area {
  margin-top: 32px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

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

/* ============================================================
   SCORE DISPLAY
   ============================================================ */
.score-card-result {
  text-align: center;
  margin-bottom: 24px;
}

.score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.score-circle {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.score-circle.score-green {
  border-color: var(--score-green);
  box-shadow: 0 0 32px rgba(40, 167, 69, 0.3);
}

.score-circle.score-blue {
  border-color: var(--score-blue);
  box-shadow: 0 0 32px rgba(23, 162, 184, 0.3);
}

.score-circle.score-yellow {
  border-color: var(--score-yellow);
  box-shadow: 0 0 32px rgba(255, 193, 7, 0.3);
}

.score-circle.score-orange {
  border-color: var(--score-orange);
  box-shadow: 0 0 32px rgba(253, 126, 20, 0.3);
}

.score-circle.score-red {
  border-color: var(--score-red);
  box-shadow: 0 0 32px rgba(220, 53, 69, 0.3);
}

.score-number-large {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
}

.score-suffix {
  font-size: 1rem;
  color: var(--text-muted);
}

.score-info {
  text-align: left;
}

.score-title {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.score-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.score-rating {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
}

.score-rating.rating-green {
  background: rgba(40, 167, 69, 0.2);
  color: var(--score-green);
}

.score-rating.rating-blue {
  background: rgba(23, 162, 184, 0.2);
  color: var(--score-blue);
}

.score-rating.rating-yellow {
  background: rgba(255, 193, 7, 0.2);
  color: var(--score-yellow);
}

.score-rating.rating-orange {
  background: rgba(253, 126, 20, 0.2);
  color: var(--score-orange);
}

.score-rating.rating-red {
  background: rgba(220, 53, 69, 0.2);
  color: var(--score-red);
}

.score-description {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

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

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

.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   PLATFORM TABLE & LINKS
   ============================================================ */
.platform-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.platform-link-item:hover {
  border-color: var(--primary);
  color: var(--text-white);
}

.platform-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-found {
  background: rgba(40, 167, 69, 0.15);
  color: var(--score-green);
}

.status-not-found {
  background: rgba(220, 53, 69, 0.15);
  color: var(--score-red);
}

.status-checking {
  background: rgba(255, 193, 7, 0.15);
  color: var(--score-yellow);
}

/* ============================================================
   CRAWLER GRID
   ============================================================ */
.crawler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.crawler-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.crawler-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.crawler-status-dot.allowed {
  background: var(--score-green);
}

.crawler-status-dot.blocked {
  background: var(--score-red);
}

.crawler-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.crawler-status.ALLOWED,
.crawler-status.ALLOWED_BY_DEFAULT,
.crawler-status.NOT_MENTIONED {
  background: rgba(40, 167, 69, 0.15);
  color: var(--score-green);
}

.crawler-status.BLOCKED,
.crawler-status.BLOCKED_BY_WILDCARD {
  background: rgba(220, 53, 69, 0.15);
  color: var(--score-red);
}

.crawler-status.PARTIALLY_BLOCKED {
  background: rgba(255, 193, 7, 0.15);
  color: var(--score-yellow);
}

.crawler-status.NO_ROBOTS_TXT {
  background: rgba(107, 107, 128, 0.15);
  color: var(--text-muted);
}

/* ============================================================
   TECH INFO GRID
   ============================================================ */
.tech-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tech-info-item {
  padding: 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.tech-info-label,
.ti-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tech-info-value,
.ti-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
}

/* ============================================================
   CITABILITY LIST
   ============================================================ */
.citability-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.citability-item {
  padding: 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.citability-header,
.ci-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.citability-title,
.ci-heading {
  font-weight: 600;
  color: var(--text-white);
}

.citability-score,
.ci-score {
  font-weight: 700;
  font-size: 1.1rem;
}

.citability-snippet,
.ci-preview {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================================
   BRAND COVERAGE GRID
   ============================================================ */
.brand-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.brand-coverage-item {
  padding: 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
}

.brand-coverage-name {
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.brand-coverage-status {
  font-size: 0.85rem;
}

/* ============================================================
   SUGGESTIONS
   ============================================================ */
.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-light);
}

.suggestion-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-white);
  font-size: 0.9rem;
}

.suggestion-content h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 4px;
}

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

/* ============================================================
   QUESTIONS LIST
   ============================================================ */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question-item {
  padding: 12px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question-text {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.question-platform-tag {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary-light);
}

/* ============================================================
   NEXT STEPS
   ============================================================ */
.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.next-step-item,
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-light);
}

.next-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-light);
  font-size: 0.85rem;
}

.next-step-content h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.next-step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================================
   WIKIPEDIA RESULT
   ============================================================ */
.wikipedia-result {
  padding: 20px;
  font-size: 0.9rem;
}

.wikipedia-found,
.wiki-found {
  padding: 16px;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: var(--radius-md);
  color: var(--score-green);
  font-weight: 600;
}

.wikipedia-not-found,
.wiki-not-found {
  padding: 16px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.wikipedia-found h4,
.wikipedia-not-found h4 {
  margin-bottom: 8px;
}

.wikipedia-found p,
.wikipedia-not-found p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ============================================================
   KPI CARDS (Dashboard)
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.kpi-card {
  text-align: center;
  padding: 24px 16px;
}

.kpi-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.kpi-icon-blue { color: var(--score-blue); }
.kpi-icon-green { color: var(--score-green); }
.kpi-icon-purple { color: var(--primary-light); }
.kpi-icon-yellow { color: var(--score-yellow); }
.kpi-icon-orange { color: var(--score-orange); }

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.kpi-trend {
  font-size: 0.8rem;
  font-weight: 600;
}

.kpi-trend-up {
  color: var(--score-green);
}

.kpi-trend-down {
  color: var(--score-red);
}

/* Add Question Form */
.add-question-form {
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.add-question-form .form-row {
  margin-bottom: 0;
}

/* Matrix Table */
.matrix-table th,
.matrix-table td {
  text-align: center;
  font-size: 0.85rem;
}

.matrix-table td:first-child {
  text-align: left;
}

.matrix-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.matrix-cell.yes {
  background: rgba(40, 167, 69, 0.2);
  color: var(--score-green);
}

.matrix-cell.no {
  background: rgba(220, 53, 69, 0.2);
  color: var(--score-red);
}

.matrix-cell.pending {
  background: rgba(255, 193, 7, 0.15);
  color: var(--score-yellow);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
}

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

.pricing-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.pricing-price {
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-white);
}

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

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features .check {
  color: var(--score-green);
}

.pricing-features .cross {
  color: var(--score-red);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  margin-top: 4rem;
}

.faq-list {
  max-width: 760px;
  margin: 2rem auto 0;
}

.faq-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  cursor: pointer;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 24px;
  margin-top: 80px;
}

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

.footer-brand .navbar-logo {
  margin-bottom: 16px;
  color: var(--text-white);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-white);
}

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

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

/* ============================================================
   LOADING OVERLAY & SPINNER
   ============================================================ */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 30, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 1rem;
}

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

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
}

.toast-success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid var(--score-green);
  border-left: 4px solid var(--score-green);
  color: var(--score-green);
}

.toast-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid var(--score-red);
  border-left: 4px solid var(--score-red);
  color: var(--score-red);
}

.toast-info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--secondary);
  border-left: 4px solid var(--secondary);
  color: var(--secondary);
}

.toast-warning {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid var(--score-yellow);
  border-left: 4px solid var(--score-yellow);
  color: var(--score-yellow);
}

.toast.fade-out {
  animation: slideOut 0.3s ease forwards;
}

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

@keyframes slideOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.progress-bar-fill.fill-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.progress-bar-fill.fill-accent {
  background: var(--score-blue);
}

.progress-bar-fill.fill-warning {
  background: var(--score-yellow);
}

.progress-bar-fill.fill-danger {
  background: var(--score-red);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.muted {
  color: var(--text-muted);
}

.check {
  color: var(--score-green);
}

.cross {
  color: var(--score-red);
}

.partial {
  color: var(--score-yellow);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
  .features-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero-title {
    font-size: 2.4rem;
  }

  .pricing-card-featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-form {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2.2rem;
  }

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

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .score-display {
    flex-direction: column;
    gap: 20px;
  }

  .score-info {
    text-align: center;
  }

  .analyze-form .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .tech-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

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

  .tabs {
    gap: 0;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}
