/* ==============================================================================
   CERTIALAB SOC & ODOO 18 AI - PORTAL GUÍA INTERACTIVA
   Tema: High-Tech Enterprise Light Canvas + Obsidian Dark Navigation & Footer
   ============================================================================== */

:root {
  /* Apple Pro Enterprise Platinum Studio Canvas (Zero Pastel / Zero Escolar) */
  --bg-primary: #f5f5f7;
  --bg-secondary: #eef0f3;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --border-light: #e2e8f0;
  --border-card-hover: #0ea5e9;

  /* Typography Colors (Apple High-Contrast Studio) */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;

  /* Accents */
  --accent-cyan: #0284c7;
  --accent-sky: #0ea5e9;
  --accent-blue: #2563eb;
  --accent-emerald: #059669;
  --accent-emerald-light: #d1fae5;
  --accent-rose: #e11d48;
  --accent-rose-light: #ffe4e6;
  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;
  --accent-violet: #6366f1;

  /* Obsidian Dark Palette (For Navbar, Footer, and Terminal Simulators) */
  --obsidian-bg: #070a13;
  --obsidian-card: #0d1424;
  --obsidian-border: rgba(255, 255, 255, 0.1);
  --obsidian-text: #f8fafc;
  --obsidian-muted: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 16px 36px -4px rgba(2, 132, 199, 0.16), 0 0 0 1px rgba(2, 132, 199, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Ensure anchor links never hide the container top beneath the sticky navbar */
section[id],
article[id],
.guide-step[id],
.hero-section[id],
[id] {
  scroll-margin-top: 78px;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background: 
    radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 55%),
    var(--bg-primary);
}

/* Subtle ambient hairline grid */
.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==============================================================================
   DARK OBSIDIAN NAVBAR
   ============================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 10, 19, 0.94);
  border-bottom: 1px solid var(--obsidian-border);
  padding: 16px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  color: #fff;
  font-size: 1.25rem;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.brand-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: #38bdf8;
}

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

.btn-demo-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(56, 189, 248, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-demo-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==============================================================================
   HERO SECTION (Light High-Tech)
   ============================================================================== */
.hero-section {
  padding: 70px 0 35px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #0f172a;
}

.hero-title .highlight-blue {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 860px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 45px;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid #cbd5e1;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Status Ribbon */
.status-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 18px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.4);
}

.status-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.status-info p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Sections Common Headings */
.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: #e0f2fe;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 35px;
}

/* ==============================================================================
   VIDEO SHOWCASE SECTION
   ============================================================================== */
.video-showcase {
  margin-bottom: 80px;
}

.video-frame-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #020617;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.15);
}

.video-frame-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.9) 0%, #070a13 90%);
  text-align: center;
  padding: 30px;
  cursor: pointer;
  color: #f8fafc;
}

.video-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030712;
  font-size: 2rem;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.6);
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.video-placeholder-overlay:hover .video-play-btn {
  transform: scale(1.1);
}

.video-placeholder-overlay h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-placeholder-overlay p {
  font-size: 0.92rem;
  color: #94a3b8;
  max-width: 500px;
}

/* ==============================================================================
   ARCHITECTURE SECTION
   ============================================================================== */
.arch-section {
  margin-bottom: 80px;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(14px);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.arch-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.arch-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}

.arch-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.arch-tag {
  font-size: 0.74rem;
  padding: 3px 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==============================================================================
   COMPARISON MATRIX SECTION: CERTIALAB VS RAGFLOW
   ============================================================================== */
.comparison-section {
  margin-bottom: 90px;
}

.pillar-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.pillar-card.pillar-orange::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.pillar-card.pillar-blue::before { background: linear-gradient(90deg, #0284c7, #2563eb); }
.pillar-card.pillar-emerald::before { background: linear-gradient(90deg, #10b981, #059669); }
.pillar-card.pillar-purple::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }

/* Hardware Benchmark Showcase Card */
.hardware-benchmark-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-top: 35px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hardware-benchmark-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #0284c7, #8b5cf6);
}

.hardware-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}

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

.hardware-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.hardware-kpi-item {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
}

.kpi-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0284c7;
  line-height: 1.2;
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hardware-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.service-pill {
  font-size: 0.76rem;
  padding: 4px 10px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-weight: 600;
}

.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Table Filters */
.matrix-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.matrix-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.matrix-filter-btn:hover, .matrix-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Table Wrapper */
.comparison-table-wrapper {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #cbd5e1;
  overflow-x: auto;
  box-shadow: 0 15px 35px -8px rgba(15, 23, 42, 0.08);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table thead th {
  background: #0f172a;
  color: #f8fafc;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #334155;
}

.comparison-table thead th:first-child {
  border-top-left-radius: var(--radius-xl);
  width: 20%;
}

.comparison-table thead th:last-child {
  border-top-right-radius: var(--radius-xl);
  width: 25%;
}

.comparison-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: #f8fafc;
}

.comparison-table td {
  padding: 16px 20px;
  vertical-align: top;
  line-height: 1.5;
}

.col-dim {
  font-weight: 700;
  color: #0f172a;
}

.col-ragflow {
  color: #991b1b;
  background: #fff5f5;
  border-left: 2px solid #fca5a5;
}

.col-certialab {
  color: #065f46;
  background: #f0fdf4;
  font-weight: 600;
  border-left: 2px solid #86efac;
}

.col-impact {
  color: #1e293b;
  font-size: 0.88rem;
}

.tag-fail {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.tag-win {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

/* ==============================================================================
   STEP-BY-STEP GUIDE SECTION
   ============================================================================== */
.guide-section {
  margin-bottom: 90px;
}

.guide-step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 38px;
  margin-bottom: 40px;
  backdrop-filter: blur(16px);
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.guide-step:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-hover);
}

.step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.step-num-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.step-title-group h2 {
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.step-title-group p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.step-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  align-items: center;
}

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

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

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

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.feature-icon {
  color: var(--accent-cyan);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Code Snippet Box */
.code-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow-x: auto;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: #38bdf8;
  color: #030712;
  border-color: #38bdf8;
}

/* Screenshot Frame */
.screenshot-frame {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 15px 35px -8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.screenshot-frame:hover {
  transform: scale(1.015);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.2);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.screenshot-overlay-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.74rem;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==============================================================================
   INTERACTIVE SIMULATOR SECTION (Keep Terminal Look for Realism)
   ============================================================================== */
.playground-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xl);
  padding: 45px 36px;
  margin-bottom: 80px;
  box-shadow: 0 15px 35px -8px rgba(15, 23, 42, 0.08);
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  margin-top: 25px;
}

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

.prompt-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-chip:hover, .prompt-chip.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.chat-simulator-terminal {
  background: #070a13;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-body {
  padding: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  color: #e2e8f0;
}

/* ==============================================================================
   DARK OBSIDIAN FOOTER & MODAL
   ============================================================================== */
.footer {
  border-top: 1px solid var(--obsidian-border);
  padding: 50px 0 35px;
  background: var(--obsidian-bg);
  color: var(--obsidian-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.social-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
}

.footer-nav a, .btn-link-modal {
  color: #94a3b8;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover, .btn-link-modal:hover {
  color: #38bdf8;
}

.footer-copyright {
  font-size: 0.82rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  width: 100%;
}

/* Modals (Lightbox & Privacy Policy) */
.lightbox-modal, .privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active, .privacy-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--obsidian-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
}

.lightbox-close, .modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid var(--obsidian-border);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-modal-dialog {
  position: relative;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-xl);
  border: 1px solid #334155;
  padding: 36px;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.privacy-modal-dialog h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #38bdf8;
}

.privacy-modal-dialog p {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 14px;
  line-height: 1.6;
}

.privacy-modal-dialog ul {
  margin: 12px 0 20px 24px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.privacy-modal-dialog li {
  margin-bottom: 8px;
}
