/* GoodAI Monitor - Modern Responsive Dashboard Stylesheet (100% English) */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Status Colors */
  --color-up: #10b981;
  --color-up-bg: rgba(16, 185, 129, 0.15);
  --color-down: #ef4444;
  --color-down-bg: rgba(239, 68, 68, 0.15);
  --color-degraded: #f59e0b;
  --color-degraded-bg: rgba(245, 158, 11, 0.15);
  --color-paused: #6b7280;
  --color-paused-bg: rgba(107, 114, 128, 0.15);
  --color-pending: #3b82f6;
  --color-pending-bg: rgba(59, 130, 246, 0.15);

  --accent-blue: #2563eb;
  --accent-teal: #06b6d4;
}

body.theme-dark {
  --bg-page: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-elevated: #334155;
  --bg-subtle: #1e293b;
  --border-color: #334155;
  --border-subtle: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  --header-bg: rgba(15, 23, 42, 0.85);
}

body.theme-light {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-subtle: #f8fafc;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.85);
}

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

/* Universal Button Base Reset */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 100vh;
}

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--bg-surface-elevated);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
  transition: all 0.2s ease;
}

.logo-icon:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
}

.brand-logo-img {
  width: 1.625rem;
  height: 1.625rem;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-icon:hover .brand-logo-img {
  transform: scale(1.08);
}

.brand-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clock-display {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
}

.btn-secondary {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.375rem;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.125rem;
}

/* Main Content */
.app-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Status Banner */
.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  flex-wrap: wrap;
  gap: 1rem;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.banner-message h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.banner-message p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.banner-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.metric-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-icon {
  font-size: 1.125rem;
  opacity: 0.7;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.metric-value.text-accent {
  color: var(--accent-teal);
}

.metric-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.progress-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.375rem;
}

.progress-bar-container {
  width: 100%;
  height: 0.5rem;
  background-color: var(--bg-surface-elevated);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--color-up);
  border-radius: 9999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.metric-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Badges */
.badge, .badge-subtle, .banner-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.banner-status-badge {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.badge-up {
  color: var(--color-up);
  background-color: var(--color-up-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-down {
  color: var(--color-down);
  background-color: var(--color-down-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-degraded {
  color: var(--color-degraded);
  background-color: var(--color-degraded-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-paused {
  color: var(--color-paused);
  background-color: var(--color-paused-bg);
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.badge-pending {
  color: var(--color-pending);
  background-color: var(--color-pending-bg);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-indicator-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
}

.status-indicator-dot.online {
  background-color: var(--color-up);
  box-shadow: 0 0 8px var(--color-up);
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: currentColor;
  animation: pulse-animation 2s infinite;
}

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

/* Content Sections */
.content-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.section-count {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background-color: var(--bg-surface-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  color: var(--text-secondary);
}

/* Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.service-cell {
  display: flex;
  flex-direction: column;
}

.service-name {
  font-weight: 600;
  color: var(--text-primary);
}

.service-tags {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.url-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background-color: var(--bg-surface-elevated);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  color: var(--text-secondary);
}

.code-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-up);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.empty-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--color-up-bg);
  color: var(--color-up);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.empty-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 400px;
}

/* Footer */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-divider {
  margin: 0 0.5rem;
  opacity: 0.4;
}

@media (max-width: 640px) {
  .app-header {
    padding: 0.75rem 1rem;
  }
  .app-main {
    padding: 1rem;
  }
  .status-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-meta {
    align-items: flex-start;
  }
}

/* ==========================================================================
   Full-Screen Hero Landing Page & High-Tech Showcase Styles (100% English)
   ========================================================================== */

.landing-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  width: 100%;
}

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 1rem 1.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(6, 182, 212, 0.16) 35%, rgba(15, 23, 42, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

body.theme-light .hero-glow {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.1) 40%, rgba(248, 250, 252, 0) 70%);
  filter: blur(50px);
}

.hero-pill-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

.pill-glow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-animation 2s infinite;
}

.hero-headline {
  position: relative;
  z-index: 1;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 860px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 45%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid #3b82f6;
  border-radius: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.btn-hero-primary:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

.btn-hero-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: #3b82f6;
  transform: translateY(-2px);
}

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

.btn-hero-secondary:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
}

.hero-checklist {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.hero-checklist-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

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

/* Bento Showcase Console */
.hero-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 1.5rem auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.theme-dark .hero-showcase {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 99, 235, 0.12);
}

body.theme-light .hero-showcase {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 20px rgba(37, 99, 235, 0.05);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.window-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
}
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.showcase-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.showcase-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

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

.showcase-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-dark .showcase-card {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-dark .showcase-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(37, 99, 235, 0.15);
}

body.theme-light .showcase-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

body.theme-light .showcase-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.showcase-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
}

.showcase-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.showcase-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.timing-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.timing-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.timing-bar-track {
  width: 100%;
  height: 0.25rem;
  background-color: var(--bg-surface-elevated);
  border-radius: 9999px;
  overflow: hidden;
}

.timing-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 9999px;
}

/* Architectural Pillars Bento Grid */
.pillars-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-hero-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.section-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-hero-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}

body.theme-dark .pillar-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-dark .pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.2);
}

body.theme-light .pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
}

body.theme-light .pillar-card:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}

.pillar-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #3b82f6;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pillar-specs {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Live Telemetry Proof Section */
.live-status-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.theme-dark .live-status-section {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

body.theme-light .live-status-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
}

.live-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.live-status-title-wrap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.live-status-title-wrap p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.live-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.live-status-node-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 0.625rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.theme-dark .live-status-node-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-light .live-status-node-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
}

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

.node-card-val {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.node-card-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Bottom CTA Banner */
.landing-cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-banner-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.cta-banner-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

/* ==========================================================================
   Comprehensive Button Suite & Interactive Component Resets (100% English)
   ========================================================================== */

/* Auth Navigation Buttons */
.auth-nav-container {
  display: flex;
  align-items: center;
}

.auth-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-auth-signin {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.375rem;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-auth-signin:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--text-secondary);
}

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

.btn-auth-signin:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.btn-auth-signup {
  background-color: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 0.375rem;
  cursor: pointer;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-auth-signup:hover {
  background-color: #1d4ed8;
  border-color: #1e40af;
}

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

.btn-auth-signup:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.btn-auth-logout {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 0.375rem;
  cursor: pointer;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.btn-auth-logout:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

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

.btn-auth-logout:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem 0.25rem 0.375rem;
}

.user-avatar-circle {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.user-display-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Primary Action & Modal Buttons */
.btn-primary-block {
  background-color: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 0.375rem;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 0.25rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-block:hover {
  background-color: #1d4ed8;
}

.btn-primary-block:active {
  transform: scale(0.99);
}

.btn-primary-block:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.btn-primary-block:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary-sm {
  background-color: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 0.375rem;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.btn-primary-sm:hover {
  background-color: #1d4ed8;
}

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

.btn-primary-sm:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.btn-primary-sm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Table Row Action Buttons */
.action-btn-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
}

.btn-action {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-action:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

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

.btn-action:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.btn-action-delete:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.btn-action-pause:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  border: 1px solid #dc2626;
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger:hover {
  background-color: #dc2626;
}

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

.btn-danger:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* Outage Alert & Incident Buttons */
.outage-alert-btn {
  background-color: #ef4444;
  color: #ffffff;
  border: 1px solid #dc2626;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.outage-alert-btn:hover {
  background-color: #dc2626;
}

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

.outage-alert-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.incident-filter-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.incident-filter-btn:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.incident-filter-btn.active {
  background-color: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

.link-btn {
  background: none;
  border: none;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 0.25rem;
  font-size: 0.8125rem;
}

.link-btn:hover {
  color: #2563eb;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ==========================================================================
   Responsive Viewport Fidelity across Mobile, Tablet, and Desktop (AC-5)
   ========================================================================== */

/* Mobile Breakpoint: < 640px */
@media (max-width: 639.98px) {
  .app-header {
    padding: 0.75rem 1rem;
  }
  .app-main {
    padding: 0.75rem;
  }
  .hero-section {
    padding: 2.25rem 0.5rem 1rem;
  }
  .hero-headline {
    font-size: 1.875rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.8125rem 1.25rem;
  }
  .hero-checklist {
    gap: 0.75rem;
    font-size: 0.75rem;
  }
  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.875rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .live-status-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .live-status-section {
    padding: 1.25rem;
  }
  .landing-cta-banner {
    padding: 2rem 1rem;
  }
  .status-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-meta {
    align-items: flex-start;
  }
}

/* Tablet Breakpoint: 640px - 1023.98px */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .hero-section {
    padding: 3rem 1.5rem 1.25rem;
  }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .live-status-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Desktop Breakpoint: >= 1024px */
@media (min-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .live-status-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

/* ==========================================================================
   Web Security & AI Defense Audit Styles (AC-6)
   ========================================================================== */

.audit-control-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: flex-end;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-top: 1rem;
}

.audit-input-wrap {
  flex: 2;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.audit-select-wrap {
  flex: 1.2;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.audit-btn-wrap {
  display: flex;
  align-items: flex-end;
}

.audit-input-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.btn-audit-trigger {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

.audit-scoreboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  page-break-inside: avoid;
}

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

.audit-gauge-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.gauge-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gauge-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.gauge-visual-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.score-wheel-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 12;
}

.score-wheel-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

.gauge-inner-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gauge-score-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.gauge-score-max {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.gauge-grade-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.audit-grade-pill {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.grade-pill-a-plus,
.grade-pill-a {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.grade-pill-b {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.grade-pill-c {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.grade-pill-f {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.audit-grade-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.gauge-meta-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.gauge-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.gauge-meta-row .meta-val {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-domains-container {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.audit-domain-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s ease;
}

.audit-domain-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.domain-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.domain-info-wrap {
  display: flex;
  flex-direction: column;
}

.domain-card-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.domain-card-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.domain-score-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  white-space: nowrap;
}

.domain-progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
}

.domain-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.domain-status-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.audit-findings-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.findings-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.findings-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.findings-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.findings-count-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-color);
}

.findings-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.findings-filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.findings-filter-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.findings-filter-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.badge-PASS {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-LOW {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-MEDIUM {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-HIGH {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-CRITICAL {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.remediation-drawer-container {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.theme-light .remediation-drawer-container {
  background: #f8fafc;
}

.remediation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remediation-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.remediation-code-block {
  background: #030712;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #a5f3fc;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.btn-copy-remediation {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-remediation:hover {
  background: var(--border-color);
}

/* ==========================================================================
   Google OAuth 2.0 Single Sign-On & Auth Dividers (100% English)
   ========================================================================== */

.sso-provider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.btn-google-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6875rem 1rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google-sso:hover {
  background-color: var(--bg-surface);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

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

.btn-google-sso.disabled,
.btn-google-sso[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}

.google-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 0.75rem;
}

body.theme-light .btn-google-sso {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.theme-light .btn-google-sso:hover {
  background-color: #f8fafc;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

/* Web Security & AI Defense Showcase Section */
.security-showcase-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

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

.sec-showcase-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}

body.theme-dark .sec-showcase-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-dark .sec-showcase-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
}

body.theme-light .sec-showcase-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
}

body.theme-light .sec-showcase-card:hover {
  transform: translateY(-3px);
  border-color: #06b6d4;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}

.sec-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #06b6d4;
}

.sec-showcase-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.sec-showcase-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.sec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.sec-tags span {
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background-color: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.security-report-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.25);
  flex-wrap: wrap;
}

.report-banner-left {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-width: 680px;
}

.report-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #10b981;
  letter-spacing: 0.05em;
}

.report-banner-left h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.report-banner-left p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Hero Showcase Dual-Engine Tab Switcher (TASK-012)
   ========================================================================== */
.showcase-tab-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0.25rem;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(15, 23, 42, 0.4);
}

.showcase-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem 0.375rem 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.showcase-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.showcase-tab-btn.active {
  color: #3b82f6;
  background-color: var(--bg-surface);
  border-color: var(--border-color);
  border-bottom: 2px solid #3b82f6;
  margin-bottom: -1px;
}

.showcase-tab-btn .tab-icon {
  font-size: 0.9375rem;
}

.sec-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.sec-tag-chip.verified {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

/* ==========================================================================
   Instant Public Inspection Playground (TASK-012)
   ========================================================================== */
.playground-section {
  margin-top: 3.5rem;
  width: 100%;
}

.playground-box {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.playground-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.playground-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}

.playground-input-wrap {
  display: flex;
  align-items: center;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 0.625rem;
  padding: 0.375rem 0.5rem 0.375rem 1rem;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.playground-input-wrap:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.playground-input-icon {
  font-size: 1.125rem;
  margin-right: 0.75rem;
  opacity: 0.7;
}

.playground-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9375rem;
  outline: none;
  font-family: var(--font-mono);
}

.playground-input::placeholder {
  color: var(--text-muted);
  font-family: inherit;
}

.btn-playground-submit {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.btn-playground-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.btn-playground-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.playground-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.playground-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: rgba(30, 41, 59, 0.4);
  border: 1px dashed var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.public-audit-result-card {
  margin-top: 1.75rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.audit-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.audit-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.audit-hero-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audit-hero-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.audit-score-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
}

.audit-grade-pill {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}

.audit-domains-grid-sm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.audit-domain-box-sm {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.audit-domain-box-sm .domain-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.audit-domain-box-sm .domain-score {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.audit-findings-preview-list {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}

.audit-finding-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.audit-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.audit-cta-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.btn-playground-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-playground-cta:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* ==========================================================================
   Technical FAQ Accordion Section (TASK-012)
   ========================================================================== */
.faq-section {
  margin-top: 4rem;
  width: 100%;
}

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

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.faq-item[open] {
  background-color: var(--bg-surface-elevated);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle-icon {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
  transition: transform 0.2s ease;
  line-height: 1;
}

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

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.25rem;
  padding-top: 0.75rem;
}

.faq-answer p {
  margin: 0 0 0.5rem;
}

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

.faq-answer code {
  background-color: var(--bg-page);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #38bdf8;
  border: 1px solid var(--border-color);
}



