/* ==========================================================================
   anorma.ch — Swiss LegalTech Product Interface & Modern Design System
   Human-Crafted Elegance | Sharp Geometry | Specular Hairline Gold
   Palette: Dark (Onyx Black, Deep Charcoal, Specular Gold) | Light (Pure White, Slate, Gold)
   ========================================================================== */

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

/* Dark Luxury Tokens */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  
  --bg-dark: #07080a;
  --bg-secondary: #0d0f14;
  --bg-card: #12141c;
  --bg-card-hover: #171a24;
  --bg-input: #090b10;
  --bg-paper: #0b0d12;
  --bg-console: #050608;
  --bg-modal: rgba(7, 8, 10, 0.95);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(212, 175, 55, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  
  --gold-primary: #d4af37;
  --gold-hover: #e6c200;
  --gold-glow: rgba(212, 175, 55, 0.1);
  --gold-border: rgba(212, 175, 55, 0.25);
  --gold-specular: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.4) 50%, transparent 100%);
  --gold-gradient-soft: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, transparent 100%);

  --swiss-red: #dc2626;
  --compliance-green: #10b981;

  --radius-sm: 0px;
  --radius-md: 2px;
  --radius-lg: 2px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Light Luxury Tokens */
:root[data-theme="light"] {
  color-scheme: light;
  
  --bg-dark: #f8f9fa;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-paper: #ffffff;
  --bg-console: #0f172a;
  --bg-modal: rgba(255, 255, 255, 0.96);
  
  --border-color: rgba(0, 0, 0, 0.09);
  --border-highlight: rgba(184, 134, 11, 0.35);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --gold-primary: #b8860b;
  --gold-hover: #966f00;
  --gold-glow: rgba(184, 134, 11, 0.1);
  --gold-border: rgba(184, 134, 11, 0.28);
  --gold-specular: linear-gradient(90deg, transparent 0%, rgba(184, 134, 11, 0.35) 50%, transparent 100%);
  --gold-gradient-soft: linear-gradient(180deg, rgba(184, 134, 11, 0.05) 0%, transparent 100%);

  --swiss-red: #dc2626;
  --compliance-green: #059669;

  --radius-sm: 0px;
  --radius-md: 2px;
  --radius-lg: 2px;
  
  --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-hover);
}

/* App Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-modal);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-specular);
  opacity: 0.5;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

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

.swiss-cross-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--swiss-red);
  color: white;
  border-radius: 0px;
  font-size: 0.9rem;
  font-weight: 900;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  border-radius: 0px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--gold-primary);
  background: var(--gold-gradient-soft);
}

.partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  border-radius: 0px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.partner-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--gold-gradient-soft);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  border-radius: 0px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--gold-primary);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-hero-primary {
  padding: 0.8rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  color: var(--text-primary);
  border-radius: 0px;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-specular);
}

.btn-hero-primary:hover {
  background: var(--gold-gradient-soft);
  color: var(--gold-primary);
}

.btn-hero-secondary {
  padding: 0.8rem 1.4rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 0px;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--gold-border);
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* REAL INTERACTIVE PRODUCT UI SHOWCASE WINDOW */
.product-showcase-window {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 0px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.product-showcase-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-specular);
  z-index: 5;
}

.window-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.window-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 340px;
}

@media (max-width: 640px) {
  .window-body {
    grid-template-columns: 1fr;
  }
}

.code-pane {
  background: var(--bg-console);
  padding: 1.15rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-right: 1px solid var(--border-color);
  overflow-x: auto;
}

.code-keyword { color: #f472b6; }
.code-string { color: #34d399; }
.code-comment { color: var(--text-muted); }
.code-gold { color: var(--gold-primary); font-weight: 600; }

.legal-pane {
  background: var(--bg-paper);
  padding: 1.15rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-family: 'Inter', serif;
}

.legal-pane-title {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

/* Feature Grid */
.highlights-section {
  padding: 3.5rem 0;
}

.section-title-group {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.section-heading {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
}

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

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  padding: 1.6rem;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-specular);
  opacity: 0.4;
}

.highlight-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.card-icon {
  width: 38px;
  height: 38px;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
}

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

/* Main Studio Section */
.studio-section {
  padding: 3.5rem 0 5rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

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

.studio-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.studio-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-specular);
  opacity: 0.6;
}

.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.box-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.input-control, .select-control, .textarea-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.input-control:focus, .select-control:focus, .textarea-control:focus {
  border-color: var(--gold-primary);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Repo Scanner */
.scanner-input-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.scan-btn {
  padding: 0.8rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  border-radius: 0px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.scan-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--gold-gradient-soft);
}

/* Presets */
.presets-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.presets-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.preset-chip {
  padding: 0.4rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover, .preset-chip.active {
  background: var(--gold-gradient-soft);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 700;
}

/* Console Output */
.console-box {
  background: var(--bg-console);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  padding: 1.15rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 1.35rem;
}

.console-line {
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.65rem;
}

.console-timestamp { color: var(--text-muted); }
.console-msg.success { color: #34d399; }
.console-msg.info { color: var(--gold-primary); }
.console-msg.warning { color: #fbbf24; }

/* Detected Services Grid */
.detected-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.service-card.detected {
  border-color: var(--gold-border);
  background: var(--gold-gradient-soft);
}

.service-card-icon {
  font-size: 1rem;
  color: var(--gold-primary);
}

.service-card-name {
  font-size: 0.84rem;
  font-weight: 600;
}

.service-card-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

/* Document Tabs & Toolbar */
.doc-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.doc-tab-btn {
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.doc-tab-btn.active {
  background: var(--bg-input);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  font-weight: 700;
}

.doc-tab-btn:hover:not(.active) {
  background: var(--gold-gradient-soft);
  color: var(--text-primary);
}

.output-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--gold-gradient-soft);
  border-color: var(--gold-border);
  color: var(--gold-primary);
}

/* Document Paper Box */
.document-paper {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  padding: 2.25rem;
  min-height: 480px;
  max-height: 600px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-family: 'Inter', serif;
  position: relative;
}

.document-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-specular);
}

.document-paper h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.document-paper h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin: 1.5rem 0 0.75rem;
}

.document-paper p { margin-bottom: 1rem; }
.document-paper strong { color: var(--text-primary); }

/* Disclaimer Banner */
.disclaimer-banner {
  margin-top: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.disclaimer-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-specular);
}

@media (max-width: 768px) {
  .disclaimer-banner {
    flex-direction: column;
    text-align: center;
  }
}

.two-dots-partner-card {
  background: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  border-radius: 0px;
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 260px;
}

.two-dots-btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  font-weight: 700;
  border-radius: 0px;
  transition: all var(--transition-fast);
}

.two-dots-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--gold-gradient-soft);
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-specular);
}

.faq-accordion {
  max-width: 800px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.faq-item:hover { border-color: var(--gold-border); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-toggle-icon {
  font-size: 1.1rem;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding-top: 0.75rem;
}

/* Footer */
.footer {
  margin-top: 4.5rem;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: var(--bg-input);
  border: 1px solid var(--gold-border);
  border-radius: 0px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  color: var(--text-primary);
  padding: 0.85rem 1.35rem;
  border-radius: 0px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-modal);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 0px;
  padding: 2.25rem;
  max-width: 520px;
  width: 92%;
  box-shadow: var(--shadow-card);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Jurisdiction Preview Card */
.jurisdiction-card {
  background: var(--bg-input);
  border: 1px solid var(--gold-border);
  border-radius: 0px;
  padding: 0.8rem 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.jurisdiction-title {
  color: var(--gold-primary);
  font-weight: 600;
  display: block;
}

.jurisdiction-court {
  color: var(--text-primary);
  font-weight: 700;
}

.btn-primary-pdf {
  padding: 0.5rem 1.15rem;
  background: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  border-radius: 0px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-primary-pdf:hover {
  border-color: var(--gold-primary);
  background: var(--gold-gradient-soft);
}

/* Raw Markdown Container */
.markdown-view-container {
  background: var(--bg-console);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  padding: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 520px;
  overflow-y: auto;
}

/* Wizard Stepper */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 1.35rem;
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  overflow-x: auto;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: all var(--transition-fast);
  white-space: nowrap;
  padding: 3px 6px;
}

.step-item:hover {
  opacity: 0.85;
  background: var(--gold-gradient-soft);
}

.step-item.active {
  opacity: 1;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--gold-border);
}

.step-circle {
  width: 22px;
  height: 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step-item.active .step-circle {
  background: var(--bg-dark);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.step-item.completed .step-circle {
  background: var(--compliance-green);
  border-color: var(--compliance-green);
  color: #fff;
}

.step-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.active .step-label {
  color: var(--text-primary);
  font-weight: 700;
}

.wizard-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.wizard-btn-prev, .wizard-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 0px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wizard-btn-prev {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.wizard-btn-prev:hover {
  background: var(--gold-gradient-soft);
  color: var(--text-primary);
}

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

.wizard-btn-next:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--gold-gradient-soft);
}

.wizard-step-panel {
  display: block;
  margin-bottom: 1.25rem;
  padding: 1.2rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0px;
}
