/* CopyrightChains Website - Main Stylesheet */
/* Based on Authenta Invest Design System v1.0 */
/* Created: 2026-01-01 */

/* ==========================================================================
   Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Grotesk:wght@300..700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ==========================================================================
   CSS Variables - Color Palette
   ========================================================================== */
:root {
  /* Primary Brand Color (NIM Blue) */
  --color-nim-primary: #0674bb;
  --color-nim-primary-light: #0891d4;
  --color-nim-primary-dark: #055a94;
  --color-nim-primary-muted: rgba(6, 116, 187, 0.15);

  /* Grey Scale (Dark Theme Foundation) */
  --color-grey-50: #fafafa;
  --color-grey-100: #f4f4f5;
  --color-grey-200: #e4e4e7;
  --color-grey-300: #d4d4d8;
  --color-grey-400: #a1a1aa;
  --color-grey-500: #71717a;
  --color-grey-600: #52525b;
  --color-grey-700: #3f3f46;
  --color-grey-800: #27272a;
  --color-grey-850: #1f1f23;
  --color-grey-900: #18181b;
  --color-grey-950: #0f0f11;

  /* Semantic Aliases */
  --color-bg-primary: #0f0f11;
  --color-bg-secondary: #18181b;
  --color-border: #27272a;
  --color-text-primary: #f4f4f5;
  --color-text-secondary: #71717a;
  --color-accent: #0674bb;
  --color-accent-hover: #055a94;

  /* Semantic Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #0674bb;

  /* Functional Category Colors */
  --color-blockchain: #0674bb;    /* Blue - blockchain, settlement, payments */
  --color-ai: #10b981;            /* Green - AI, detection, monitoring */
  --color-data: #f59e0b;          /* Amber - data, analytics, tracking */
  --color-security: #8b5cf6;      /* Purple - security, protection, compliance */

  /* Font Families */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Type Scale */
  --font-size-hero: 48px;
  --font-size-h1: 36px;
  --font-size-h2: 30px;
  --font-size-h3: 24px;
  --font-size-h4: 20px;
  --font-size-base: 16px;
  --font-size-body: 16px;
  --font-size-sm: 14px;
  --font-size-small: 14px;
  --font-size-xs: 12px;
}

/* ==========================================================================
   Light Theme Variables
   ========================================================================== */
/* ========================================
   LIGHT THEME
   ======================================== */

[data-theme="light"] {
  /* Light Mode Backgrounds */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-border: #e5e7eb;

  /* Light Mode Text */
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;

  /* Inverted Grey Scale for Light Mode */
  --color-grey-950: #f9fafb;
  --color-grey-900: #f3f4f6;
  --color-grey-850: #e5e7eb;
  --color-grey-800: #d1d5db;
  --color-grey-700: #9ca3af;
  --color-grey-600: #6b7280;
  --color-grey-500: #4b5563;
  --color-grey-400: #374151;
  --color-grey-300: #1f2937;
  --color-grey-200: #111827;
  --color-grey-100: #030712;
  --color-grey-50: #000000;
}

[data-theme="light"] body {
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .mobile-menu {
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .nav-logo-img {
  content: url('../creatives120.png');
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, rgba(6, 116, 187, 0.03) 100%);
}

[data-theme="light"] .hero-cta-banner {
  background: rgba(6, 116, 187, 0.05);
  border-color: rgba(6, 116, 187, 0.2);
}

[data-theme="light"] .hero-cta-banner:hover {
  background: rgba(6, 116, 187, 0.08);
  border-color: rgba(6, 116, 187, 0.3);
}

[data-theme="light"] .hero-cta-text {
  color: var(--color-grey-500);
}

[data-theme="light"] .card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card:hover {
  background: var(--color-bg-secondary);
  box-shadow: 0 4px 12px rgba(6, 116, 187, 0.1);
  border-color: #d1d5db;
}

[data-theme="light"] .btn-secondary {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

[data-theme="light"] .btn-secondary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-nim-primary);
}

[data-theme="light"] .footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

[data-theme="light"] .theme-toggle {
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

[data-theme="light"] .theme-toggle:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-nim-primary);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #d1d5db;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

[data-theme="light"] ::selection {
  background: rgba(6, 116, 187, 0.15);
  color: var(--color-text-primary);
}

[data-theme="light"] ::-moz-selection {
  background: rgba(6, 116, 187, 0.15);
  color: var(--color-text-primary);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--color-grey-100);
  background-color: var(--color-grey-950);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-grey-50);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

p {
  margin-bottom: 1rem;
  color: var(--color-grey-100);
}

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

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

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

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section-border {
  border-top: 1px solid var(--color-grey-800);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-grey-800);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 50px;
  width: 50px;
  display: block;
}

.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--color-grey-400);
  font-size: var(--font-size-small);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-grey-700);
  border-radius: 8px;
  color: var(--color-grey-100);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--color-grey-850);
  border-color: var(--color-nim-primary);
}

.theme-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  color: var(--color-grey-100);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-grey-900);
  border-bottom: 1px solid var(--color-grey-800);
  padding: 16px;
  z-index: 40;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: var(--font-size-small);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-nim-primary) 0%, var(--color-nim-primary-light) 100%);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(6, 116, 187, 0.3);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--color-grey-900);
  color: var(--color-grey-100);
  border: 1px solid var(--color-grey-700);
}

.btn-secondary:hover {
  background: var(--color-grey-850);
  border-color: var(--color-nim-primary);
}

.btn-large {
  padding: 12px 24px;
  font-size: var(--font-size-body);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--color-grey-900);
  border: 1px solid var(--color-grey-800);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--color-grey-850);
  box-shadow: 0 0 30px rgba(6, 116, 187, 0.15);
}

.card-title {
  font-size: var(--font-size-h3);
  color: var(--color-grey-50);
  margin-bottom: 12px;
}

.card-text {
  font-size: var(--font-size-small);
  color: var(--color-grey-400);
  line-height: 1.6;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--color-grey-950) 0%, var(--color-grey-900) 40%, var(--color-nim-primary) 200%);
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-hero);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-grey-50);
  margin-bottom: 24px;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-grey-300);
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: var(--font-size-body);
  color: var(--color-grey-400);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-cta-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(6, 116, 187, 0.1);
  border: 1px solid rgba(6, 116, 187, 0.3);
  border-radius: 8px;
  margin-top: 24px;
  max-width: 900px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.hero-cta-banner:hover {
  background: rgba(6, 116, 187, 0.15);
  border-color: rgba(6, 116, 187, 0.5);
}

.hero-cta-icon {
  width: 20px;
  height: 20px;
  color: var(--color-nim-primary);
  flex-shrink: 0;
}

.hero-cta-text {
  color: var(--color-grey-200);
  flex: 1;
  text-align: left;
}

.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-nim-primary);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hero-cta-link:hover {
  background: var(--color-nim-primary-light);
  color: white;
  transform: translateY(-1px);
}

.hero-cta-link-icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .hero-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    padding: 14px 16px;
  }

  .hero-cta-link {
    align-self: stretch;
    justify-content: center;
  }
}

/* ==========================================================================
   Grid
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}

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

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Lists
   ========================================================================== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-grey-800);
  color: var(--color-grey-300);
  font-size: var(--font-size-body);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "→";
  color: var(--color-nim-primary);
  font-weight: bold;
  margin-right: 12px;
}

.bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 24px 0;
}

.bullet-list li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-grey-300);
  line-height: 1.7;
}

.bullet-list li::before {
  content: "•";
  color: var(--color-nim-primary);
  font-size: 20px;
  position: absolute;
  left: 8px;
  top: 8px;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-section {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: var(--font-size-h2);
  color: var(--color-grey-50);
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.section-subtitle {
  font-size: var(--font-size-h3);
  color: var(--color-grey-100);
  margin-top: 40px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600;
}

.text-muted {
  color: var(--color-grey-400);
}

.text-secondary {
  color: var(--color-grey-500);
}

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.badge-primary {
  background: var(--color-nim-primary-muted);
  border: 1px solid rgba(6, 116, 187, 0.3);
  color: var(--color-nim-primary-light);
}

.badge-secondary {
  background: var(--color-grey-850);
  border: 1px solid var(--color-grey-700);
  color: var(--color-grey-400);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-grey-900);
  border-top: 1px solid var(--color-grey-800);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  font-size: var(--font-size-small);
  color: var(--color-grey-100);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--color-grey-400);
  font-size: var(--font-size-small);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-grey-800);
  text-align: center;
  color: var(--color-grey-500);
  font-size: var(--font-size-xs);
}

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

::-webkit-scrollbar-track {
  background: var(--color-grey-900);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-grey-600);
}

/* ==========================================================================
   Selection
   ========================================================================== */
::selection {
  background: rgba(6, 116, 187, 0.4);
  color: white;
}

::-moz-selection {
  background: rgba(6, 116, 187, 0.4);
  color: white;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.pt-1 { padding-top: 8px; }
.pt-2 { padding-top: 16px; }
.pt-3 { padding-top: 24px; }
.pt-4 { padding-top: 32px; }

.pb-1 { padding-bottom: 8px; }
.pb-2 { padding-bottom: 16px; }
.pb-3 { padding-bottom: 24px; }
.pb-4 { padding-bottom: 32px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.max-w-prose {
  max-width: 65ch;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-grey-900);
  border-top: 1px solid var(--color-grey-800);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner-visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-grey-50);
  margin-bottom: 8px;
}

.cookie-banner-text p {
  font-size: 14px;
  color: var(--color-grey-300);
  margin: 0;
  line-height: 1.5;
}

.cookie-banner-link {
  color: var(--color-nim-primary);
  text-decoration: underline;
}

.cookie-banner-link:hover {
  color: var(--color-nim-primary-light);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--color-nim-primary);
  color: white;
}

.cookie-btn-accept:hover {
  background: var(--color-nim-primary-light);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--color-grey-300);
  border: 1px solid var(--color-grey-600);
}

.cookie-btn-reject:hover {
  background: var(--color-grey-800);
  color: var(--color-grey-100);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--color-grey-300);
  border: 1px solid var(--color-grey-600);
}

.cookie-btn-settings:hover {
  background: var(--color-grey-800);
  color: var(--color-grey-100);
}

.cookie-btn-save {
  background: var(--color-nim-primary);
  color: white;
}

.cookie-btn-save:hover {
  background: var(--color-nim-primary-light);
}

.cookie-settings-panel {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-grey-800);
}

.cookie-settings-content {
  display: grid;
  gap: 16px;
}

.cookie-category {
  padding: 12px 16px;
  background: var(--color-grey-850);
  border-radius: 8px;
}

.cookie-category-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.cookie-category-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-nim-primary);
}

.cookie-category-name {
  font-weight: 500;
  color: var(--color-grey-100);
  flex: 1;
}

.cookie-category-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--color-nim-primary-muted);
  color: var(--color-nim-primary);
  border-radius: 4px;
}

.cookie-category-desc {
  font-size: 13px;
  color: var(--color-grey-400);
  margin: 8px 0 0 30px;
}

.cookie-settings-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

/* Light theme cookie banner */
[data-theme="light"] .cookie-banner {
  background: var(--color-bg-primary);
  border-top-color: var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cookie-banner-title {
  color: var(--color-text-primary);
}

[data-theme="light"] .cookie-banner-text p {
  color: var(--color-text-secondary);
}

[data-theme="light"] .cookie-btn-reject,
[data-theme="light"] .cookie-btn-settings {
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

[data-theme="light"] .cookie-btn-reject:hover,
[data-theme="light"] .cookie-btn-settings:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

[data-theme="light"] .cookie-settings-panel {
  border-top-color: var(--color-border);
}

[data-theme="light"] .cookie-category {
  background: var(--color-bg-secondary);
}

[data-theme="light"] .cookie-category-name {
  color: var(--color-text-primary);
}

[data-theme="light"] .cookie-category-desc {
  color: var(--color-text-secondary);
}

/* Mobile responsive cookie banner */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   GEO Components - Definition Blocks, Comparison Tables, Answer Blocks
   ========================================================================== */

/* Definition Blocks - Key Terms */
.definition-block {
  background: var(--color-bg-secondary);
  border-left: 4px solid var(--color-accent);
  padding: 24px;
  margin: 32px 0;
  border-radius: 8px;
}

.definition-term {
  font-family: var(--font-display);
  font-size: var(--font-size-h4);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.definition-term-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.definition-text {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.definition-text strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Comparison Tables */
.comparison-table-container {
  margin: 40px 0;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table thead {
  background: var(--color-grey-800);
}

.comparison-table th {
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  border-bottom: 2px solid var(--color-border);
}

.comparison-table th:first-child {
  width: 35%;
}

.comparison-table th.highlight {
  background: rgba(6, 116, 187, 0.15);
  color: var(--color-accent);
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 18px 24px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  vertical-align: top;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--color-text-primary);
}

.comparison-table td.highlight {
  background: rgba(6, 116, 187, 0.05);
  font-weight: 500;
  color: var(--color-text-primary);
}

.comparison-check {
  color: var(--color-success);
  font-weight: 600;
}

.comparison-cross {
  color: var(--color-error);
  font-weight: 600;
}

.comparison-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 600;
}

/* Answer-Ready Blocks - Direct Answers to Target Queries */
.answer-block {
  background: linear-gradient(135deg, rgba(6, 116, 187, 0.1) 0%, rgba(6, 116, 187, 0.05) 100%);
  border: 2px solid rgba(6, 116, 187, 0.3);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
}

.answer-question {
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.answer-question-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.answer-content {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: var(--font-size-base);
}

.answer-content p {
  margin: 0 0 16px 0;
}

.answer-content p:last-child {
  margin-bottom: 0;
}

.answer-content strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.answer-highlight {
  background: rgba(6, 116, 187, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb-link:hover {
  color: var(--color-accent);
}

.breadcrumb-current {
  color: var(--color-text-primary);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--color-grey-600);
  font-size: 12px;
}

/* Differentiation Statement Block */
.differentiation-block {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-left: 4px solid var(--color-security);
  padding: 24px;
  margin: 40px 0;
  border-radius: 8px;
}

.differentiation-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-security);
  margin: 0 0 12px 0;
}

.differentiation-text {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text-primary);
  margin: 0;
  font-weight: 500;
}

/* Light Theme Overrides for GEO Components */
[data-theme="light"] .definition-block {
  background: var(--color-grey-950);
  border-left-color: var(--color-nim-primary);
}

[data-theme="light"] .comparison-table {
  background: var(--color-bg-primary);
}

[data-theme="light"] .comparison-table thead {
  background: var(--color-grey-950);
}

[data-theme="light"] .comparison-table th.highlight {
  background: rgba(6, 116, 187, 0.1);
}

[data-theme="light"] .comparison-table td.highlight {
  background: rgba(6, 116, 187, 0.05);
}

[data-theme="light"] .answer-block {
  background: linear-gradient(135deg, rgba(6, 116, 187, 0.08) 0%, rgba(6, 116, 187, 0.03) 100%);
  border-color: rgba(6, 116, 187, 0.25);
}

[data-theme="light"] .differentiation-block {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.03) 100%);
  border-left-color: var(--color-security);
}

/* Responsive Adjustments for GEO Components */
@media (max-width: 768px) {
  .definition-block,
  .answer-block,
  .differentiation-block {
    padding: 20px;
    margin: 24px 0;
  }

  .definition-term,
  .answer-question {
    font-size: var(--font-size-h4);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 16px;
    font-size: var(--font-size-sm);
  }

  .comparison-table th:first-child {
    width: 40%;
  }

  .breadcrumb {
    font-size: var(--font-size-xs);
  }
}

/* ==========================================================================
   Inline Tables - Simple data tables used in legal/policy pages
   ========================================================================== */
.inline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.inline-table th,
.inline-table td {
  padding: 0.5rem;
  text-align: left;
}

.inline-table th {
  font-weight: 600;
  color: var(--color-text-primary);
}

.inline-table td {
  color: var(--color-text-secondary);
}

.inline-table tr {
  border-bottom: 1px solid var(--color-border);
}

.inline-table tr:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Inline Lists - Simple lists used in expandable content sections
   ========================================================================== */
.inline-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.inline-list li {
  margin-bottom: 0.5rem;
}

.inline-list li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Text Size Utilities
   ========================================================================== */
.text-sm {
  font-size: var(--font-size-sm);
}

.text-xs {
  font-size: var(--font-size-xs);
}

/* ==========================================================================
   Alert/Warning Box Variants
   ========================================================================== */
.tldr-box-warning {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */
.ml-2 { margin-left: 16px; }
.ml-3 { margin-left: 20px; }
.ml-4 { margin-left: 24px; }
