/* ─────────────────────────────────────────────────────────────
   SITESENTINEL - PROFESSIONAL CSS STYLING
   ───────────────────────────────────────────────────────────── */

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

:root {
  --primary-color: #2d2d2d;
  --primary-light: #4b4b4b;
  --primary-dark: #1a1a1a;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  --background: #fcfbf9;
  --surface: #ffffff;
  --surface-dark: #f3f4f6;
  --border-color: #e5e7eb;
  --text-primary: #2d2d2d;
  --text-secondary: #525252;
  --text-light: #9ca3af;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-brand: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─────────────────────────────────────────────────────────────
   NAVIGATION BAR
   ───────────────────────────────────────────────────────────── */

.nav-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  min-width: 600px;
  max-width: 90%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  padding-left: 15px;
}

.brand-logo {
  width: 28px;
  height: 28px;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-brand h1 {
  font-family: var(--font-brand); /* Keeping original font as requested */
  font-size: 1.2em;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.navbar-links {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.navbar-actions {
  padding-right: 5px;
}

.btn-nav {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-nav:hover {
  background-color: var(--surface-dark);
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */

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

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h2 {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.search-container {
  max-width: 500px; /* Reduced width to match button style */
  margin: 0 auto;
}

.input-wrapper {
  display: flex;
  flex-direction: column; /* Stack on mobile, row on desktop if needed, but image shows just a button usually */
  gap: 15px;
  align-items: center;
}

/* If we want the input to be hidden or styled differently */
.url-input {
  display: none; /* Hiding input initially to match image exactly, or we can style it */
}

/* Wait, the user wants the functionality to remain. The image has a "Start for free" button. 
   I should probably keep the input but style it to look good, or make the button open a modal.
   For now, I'll style the input to be subtle or just keep the button prominent.
   Actually, let's make the input visible but clean.
*/

.url-input {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  background: white;
  text-align: center;
  margin-bottom: 15px;
}

.url-input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background-color: black;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.input-hint {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Top navigation tabs */
.top-nav { display:flex; align-items:center; }
.tabs { list-style:none; padding:0; margin:0; display:flex; gap:12px; }
.tab { display:flex; align-items:center; gap:8px; padding:8px 12px; color:var(--text-primary); text-decoration:none; border-radius:6px; }
.tab:hover { background: rgba(255,255,255,0.06); }
.tab.active { background: rgba(255,255,255,0.08); font-weight:600; }
.tab-icon { width:20px; height:20px; display:inline-block; }
.brand-logo { width:36px; height:36px; margin-right:8px; }

.feature-icon img { width:48px; height:48px; display:block; }

/* Page-specific styling to keep main page visuals unchanged */

/* Professional hero section */
.pro-hero {
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.pro-hero h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.2;
}

.pro-hero .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Features showcase grid */
.page-features .features-showcase {
  padding: 40px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.page-features .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.page-features .feature-item {
  text-align: center;
  transition: transform 0.2s ease;
}

.page-features .feature-item:hover {
  transform: translateY(-4px);
}

.page-features .feature-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
  transition: box-shadow 0.3s ease;
}

.page-features .feature-item:hover .feature-circle {
  box-shadow: 0 12px 32px rgba(30, 64, 175, 0.25);
}

.page-features .feature-circle img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.page-features .feature-item h3 {
  font-size: 1.25em;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.page-features .feature-item p {
  font-size: 0.9em;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Features details section */
.page-features .features-details {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-features .detail-row {
  margin-bottom: 50px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-features .detail-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.page-features .detail-content h2 {
  font-size: 1.8em;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.page-features .detail-content p {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* CTA section */
.page-features .cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  margin-top: 40px;
}

.page-features .cta-section h2 {
  font-size: 2em;
  margin-bottom: 12px;
}

.page-features .cta-section p {
  font-size: 1.1em;
  margin-bottom: 24px;
  opacity: 0.95;
}

.page-features .cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-features .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* About page styling */
.page-about .pro-hero {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.page-about .pro-hero h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.page-about .pro-hero .lead {
  font-size: 1.2em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-about .about-highlights {
  padding: 40px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.page-about .highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.page-about .highlight-card {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-about .highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.page-about .highlight-number {
  font-size: 3em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.page-about .highlight-card h3 {
  font-size: 1.25em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.page-about .highlight-card p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-about .about-details {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-about .detail-block {
  margin-bottom: 40px;
}

.page-about .detail-block h2 {
  font-size: 1.8em;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.page-about .detail-block p {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-about .cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  margin-top: 40px;
}

.page-about .cta-section h2 {
  font-size: 2em;
  margin-bottom: 12px;
}

.page-about .cta-section p {
  font-size: 1.1em;
  margin-bottom: 24px;
  opacity: 0.95;
}

.page-about .cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-about .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Docs page styling */
.page-docs .pro-hero {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.page-docs .pro-hero h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.page-docs .pro-hero .lead {
  font-size: 1.2em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-docs .docs-content {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-docs .doc-section {
  margin-bottom: 60px;
}

.page-docs .doc-section h2 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.page-docs .endpoint-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-docs .endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.page-docs .http-method {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
}

.page-docs .http-method.post {
  background: #10b981;
  color: white;
}

.page-docs .http-method.get {
  background: #3b82f6;
  color: white;
}

.page-docs .endpoint-path {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-primary);
}

.page-docs .endpoint-desc {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.page-docs .endpoint-note {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-top: 12px;
}

.page-docs .code-block {
  background: #1e293b;
  border-radius: 6px;
  padding: 16px;
  margin: 12px 0;
  overflow-x: auto;
}

.page-docs .code-block pre {
  margin: 0;
  color: #e2e8f0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.5;
}

.page-docs .info-note {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.95em;
  color: #1e40af;
  margin-bottom: 20px;
}

.page-docs .info-note code {
  background: #dbeafe;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.page-docs .quickstart-steps {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.page-docs .step-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-docs .step-number {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-docs .step-card h3 {
  font-size: 1.25em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-docs .cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  margin-top: 40px;
}

.page-docs .cta-section h2 {
  font-size: 2em;
  margin-bottom: 12px;
}

.page-docs .cta-section p {
  font-size: 1.1em;
  margin-bottom: 24px;
  opacity: 0.95;
}

.page-docs .cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-docs .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */

.hero {
  padding: 100px 20px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0e7ff 100%);
  text-align: center;
  margin-bottom: 60px;
  border-radius: 20px;
}

.hero-content h2 {
  font-size: 3em;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.3em;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-container {
  max-width: 700px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.url-input {
  flex: 1;
  min-width: 250px;
  padding: 15px 20px;
  border: 2px solid white;
  border-radius: 12px;
  font-size: 1.05em;
  background-color: white;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.url-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.input-hint {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────── */

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 1.05em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(30, 64, 175, 0.05);
}

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

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

.btn-loading {
  animation: spin 1s linear infinite;
  display: inline-block !important;
}

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

/* ─────────────────────────────────────────────────────────────
   RESULTS SECTION
   ───────────────────────────────────────────────────────────── */

.results-section {
  animation: fadeIn 0.5s ease-in;
  margin-bottom: 60px;
}

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

.results-header {
  margin-bottom: 40px;
  text-align: center;
}

.results-header h3 {
  font-size: 2em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.analyzed-url {
  font-size: 1.1em;
  color: var(--text-secondary);
  word-break: break-all;
  padding: 10px;
  background-color: var(--surface-dark);
  border-radius: 8px;
  display: inline-block;
}

/* Overall Score Card */
.overall-score-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 40px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  margin: 0 auto;
}

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

.score-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 6;
}

.score-progress {
  fill: none;
  stroke: var(--success-color);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

.score-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-number {
  font-size: 3.5em;
  font-weight: 700;
  color: var(--primary-color);
}

.score-label {
  font-size: 1.2em;
  color: var(--text-secondary);
  font-weight: 600;
}

.score-details h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: white;
}

.score-details p {
  font-size: 1em;
  opacity: 0.9;
  margin-bottom: 20px;
}

.score-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.breakdown-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.breakdown-item strong {
  display: block;
  font-size: 0.95em;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.breakdown-item .score {
  font-size: 1.8em;
  font-weight: 700;
  color: white;
}

/* AI Assessment Card */
.ai-assessment-card {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  padding: 24px 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.ai-badge {
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.ai-score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 16px 24px;
  border-radius: 10px;
  min-width: 140px;
}

.ai-score-label {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.ai-score-value {
  font-size: 2.2em;
  font-weight: 700;
  color: #fff;
}

.ai-message {
  font-size: 1.05em;
  line-height: 1.5;
  opacity: 0.95;
  padding: 8px 0;
}

/* AI Assessment Inline (within score card) */
.ai-assessment-inline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}

.ai-inline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ai-inline-badge {
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.ai-inline-score {
  font-size: 1.6em;
  font-weight: 700;
  color: #fff;
}

.ai-inline-message {
  font-size: 0.95em;
  line-height: 1.5;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.95);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.category-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border-top: 4px solid var(--border-color);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-card-header {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-icon {
  font-size: 2.5em;
}

.category-title {
  flex: 1;
}

.category-title h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.category-score {
  font-size: 1.1em;
  color: var(--text-secondary);
}

.category-badge {
  background: var(--primary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
}

.category-badge.good {
  background: var(--success-color);
}

.category-badge.fair {
  background: var(--warning-color);
}

.category-badge.poor {
  background: var(--danger-color);
}

.category-body {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.category-card.expanded .category-body {
  max-height: 2000px;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-item:last-child {
  border-bottom: none;
}

.check-icon {
  font-size: 1.3em;
  min-width: 25px;
  text-align: center;
}

.check-details {
  flex: 1;
}

.check-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-size: 0.95em;
}

.check-description {
  font-size: 0.9em;
  color: var(--text-secondary);
}

/* External Links Section */
.external-links-section {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border-top: 2px solid var(--border-color);
}

.external-links-section h4 {
  font-size: 1em;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 600;
}

.external-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.external-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.external-link-item:hover {
  border-color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.external-link-item.safe {
  border-left: 4px solid #10b981;
}

.external-link-item.warning {
  border-left: 4px solid #f59e0b;
}

.external-link-item.unsafe {
  border-left: 4px solid #ef4444;
}

.external-link-item.broken,
.external-link-item.unreachable {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
}

.external-link-item.unknown,
.external-link-item.not-scored {
  border-left: 4px solid #94a3b8;
}

.external-link-item .link-icon {
  font-size: 1.1em;
  flex-shrink: 0;
}

.external-link-item .link-url-text {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.external-link-item .link-url-text:hover {
  text-decoration: underline;
}

.link-score-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.link-score-badge .score-value {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 700;
  color: white;
  min-width: 36px;
  text-align: center;
}

.link-score-badge .score-value.not-scored {
  background: #94a3b8;
  color: white;
}

.link-score-badge .score-status {
  font-size: 0.8em;
  color: var(--text-secondary);
  font-weight: 600;
  min-width: 80px;
}

/* Results Actions */
.results-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

/* ─────────────────────────────────────────────────────────────
   FEATURES SECTION
   ───────────────────────────────────────────────────────────── */

.features-section {
  padding: 80px 0;
  background-color: #0f172a; /* Dark background */
  color: #f3f4f6;
}

.features-section h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}

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

.feature-card {
  background: #1e293b; /* Slightly lighter dark for cards */
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  border-top: 4px solid #374151;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  border-top-color: var(--primary-light);
  background: #263346;
}

.feature-icon {
  font-size: 3em;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

.feature-card h3 {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 15px;
}

.feature-card p {
  color: #9ca3af;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   HOW IT WORKS SECTION
   ───────────────────────────────────────────────────────────── */

.how-it-works-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
}

.how-it-works-section h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

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

.step-card h3 {
  font-size: 1.3em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */

.footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 20px 20px;
  margin-top: 80px;
  border-radius: 20px 20px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────
   MODAL
   ───────────────────────────────────────────────────────────── */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .overall-score-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .score-circle {
    margin: 0 auto;
  }

  .hero-content h2 {
    font-size: 2.2em;
  }

  .hero-content p {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    gap: 15px;
    font-size: 0.9em;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero-content h2 {
    font-size: 1.8em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .input-wrapper {
    flex-direction: column;
  }

  .url-input {
    min-width: 100%;
  }

  .btn {
    width: 100%;
  }

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

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

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .navbar .container {
    flex-direction: column;
    gap: 15px;
  }

  .navbar-brand h1 {
    font-size: 1.2em;
  }

  .navbar-links {
    gap: 10px;
    font-size: 0.8em;
  }

  .hero {
    padding: 40px 15px;
    margin-bottom: 30px;
  }

  .hero-content h2 {
    font-size: 1.5em;
  }

  .hero-content p {
    font-size: 0.95em;
  }

  .overall-score-card {
    padding: 20px;
  }

  .score-circle {
    width: 140px;
    height: 140px;
  }

  .score-number {
    font-size: 2.5em;
  }

  .features-section,
  .how-it-works-section {
    padding: 40px 0;
  }

  .features-section h2,
  .how-it-works-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }
}


