/* ==============================================================================
   Guardian — Website Design System
   True-black, flat, functional. Mirrors the product's own UI: thin borders,
   a single blue accent, monospace for data, color used only to mean something.
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --bg-raised: #0a0a0d;
  --bg-raised-2: #101014;
  --bg-hover: #16161b;

  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.18);

  --text-primary: #f5f5f7;
  --text-secondary: #9aa1ac;
  --text-tertiary: #62666f;

  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.12);
  --blue-border: rgba(59, 130, 246, 0.4);

  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);

  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);

  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg);
}

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

code, .mono {
  font-family: var(--font-mono);
}

/* Faint static grid — no color, no blur, no animation */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  z-index: 0;
}

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

/* Reserve space above in-page anchor targets so the fixed navbar never
   covers the section heading it jumped to. */
section[id], header[id] {
  scroll-margin-top: 84px;
}

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background-color 0.2s ease;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  flex-shrink: 0;
}

.brand-mark .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-github:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #549bfa;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 148px;
  padding-bottom: 72px;
  text-align: center;
  position: relative;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.pill-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 20px;
  color: var(--text-primary);
}

.hero-title .accent {
  color: var(--blue);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-cta .btn-primary,
.hero-cta .btn-github {
  padding: 11px 22px;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Hero screenshot — the actual dashboard, shown immediately, above the fold
   -------------------------------------------------------------------------- */
.hero-showcase {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-showcase-caption {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Spec strip — styled like the dashboard's own stat tiles, real fixed facts
   -------------------------------------------------------------------------- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 780px;
  margin: 0 auto 48px;
  overflow: hidden;
}

.spec-tile {
  background: var(--bg-raised);
  padding: 16px 18px;
  text-align: left;
}

.spec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.spec-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Install Hub
   -------------------------------------------------------------------------- */
.install-hub {
  max-width: 800px;
  margin: 0 auto 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
}

.install-header {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-raised-2);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.install-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.install-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tab-btn.active {
  background: var(--bg-raised-2);
  color: var(--text-primary);
}

.tab-btn:hover:not(.active) {
  color: var(--text-primary);
}

.tab-content {
  display: none;
}

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

/* Command Box (One-liner) */
.command-box {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.command-text {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-prompt {
  color: var(--blue);
  user-select: none;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.btn-copy:hover {
  background: #549bfa;
}

.btn-copy:active {
  transform: scale(0.98);
}

/* Compose Box */
.compose-box {
  background: var(--bg);
  padding: 18px;
  position: relative;
  max-height: 420px;
  overflow-y: auto;
}

.compose-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #b7bdc6;
  white-space: pre;
}

.compose-copy-floating {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  margin-bottom: -38px;
}

/* Syntax Highlighting */
.hl-key { color: #6fa8f5; font-weight: 600; }
.hl-val { color: #9fd8ae; }
.hl-str { color: #e6c66b; }
.hl-cmt { color: var(--text-tertiary); font-style: italic; }

.install-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 18px;
  background: var(--bg-raised-2);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.install-footer-note code {
  color: var(--text-secondary);
}

.install-footer-note a {
  color: var(--blue);
  text-decoration: none;
}

.install-footer-note a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Section headers (shared)
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-tag {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}

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

/* --------------------------------------------------------------------------
   Quick Install
   -------------------------------------------------------------------------- */
.quickstart-section {
  padding: 88px 0;
  position: relative;
}

.browser-mockup {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.browser-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-raised-2);
  border-bottom: 1px solid var(--border);
}

.browser-address {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.browser-address-icon {
  color: var(--green);
  display: flex;
}

.browser-address-icon .icon {
  width: 12px;
  height: 12px;
}

.screenshot-stage {
  position: relative;
  background: #000;
  min-height: 460px;
  cursor: zoom-in;
}

.screenshot-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.screenshot-image.active {
  opacity: 1;
  position: relative;
}

/* Gallery Selector Tabs */
.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.gallery-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.gallery-tab .tab-icon {
  color: var(--text-tertiary);
  display: flex;
  transition: color 0.15s ease;
}

.gallery-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.gallery-tab.active {
  background: var(--blue-soft);
  border-color: var(--blue-border);
  color: var(--blue);
}

.gallery-tab.active .tab-icon {
  color: var(--blue);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.lightbox-close:hover {
  background: var(--bg-hover);
}

/* --------------------------------------------------------------------------
   Feature Cards Grid
   -------------------------------------------------------------------------- */
.features-section {
  padding: 88px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

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

.feature-card:hover {
  border-color: var(--border-hover);
}

.feature-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.feature-icon-wrap .icon {
  width: 19px;
  height: 19px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feat-badge {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   Comparison Table Section
   -------------------------------------------------------------------------- */
.comparison-section {
  padding: 72px 0;
}

.comparison-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.comparison-table th,
.comparison-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-raised-2);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.comparison-table td.highlight {
  background: var(--blue-soft);
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.check {
  color: var(--green);
  font-weight: 700;
}

.cross {
  color: var(--red);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hardware & OS Compatibility Strip
   -------------------------------------------------------------------------- */
.compat-section {
  padding: 48px 0 88px;
}

.compat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.compat-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.compat-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.compat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Call To Action (CTA) Section
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 88px 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  max-width: 860px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 22px;
  height: 22px;
}

.footer-brand .brand-mark .icon {
  width: 13px;
  height: 13px;
}

.footer-brand strong {
  color: var(--text-primary);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Toast Notification for Clipboard Copy */
.copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  z-index: 2000;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .command-box {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 112px;
  }

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

  .gallery-nav {
    flex-direction: column;
  }

  .gallery-tab {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .navbar-inner {
    gap: 8px;
  }

  .brand-badge {
    display: none;
  }

  .btn-github span {
    display: none;
  }

  .btn-github {
    padding: 8px 10px;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn-primary {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   Privacy & Security Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.12);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.privacy-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.privacy-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--blue-soft);
  color: #60a5fa;
  border: 1px solid var(--blue-border);
}

.privacy-section h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.privacy-section p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.privacy-section code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #93c5fd;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

