/* ==========================================================================
   TakinCyber - Minimalist Dark Tech Obsidian Theme & Landing Styles
   Strict RTL • Heebo Typography • Glassmorphism • Cyber Titanium Palette
   ========================================================================== */

:root {
  --bg-obsidian: #07090e;
  --bg-darker: #020617;
  --bg-slate: #0f172a;
  --bg-surface: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(14, 165, 233, 0.22);
  --glass-border-hover: rgba(0, 240, 255, 0.45);

  --cyan-glow: #00f0ff;
  --cyber-blue: #0ea5e9;
  --cyber-emerald: #10b981;
  --cyber-indigo: #6366f1;
  --cyber-critical: #ef4444;
  --cyber-warning: #f59e0b;

  --text-bright: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #ffffff;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

body {
  background-color: var(--bg-obsidian);
  color: var(--text-bright);
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography Helpers --- */
.micro-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text-heading);
}

/* --- Glassmorphism Effect --- */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
}

/* --- Top Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.nav-brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyber-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-brand-badge {
  font-size: 0.65rem;
  color: var(--cyan-glow);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  letter-spacing: 0.08em;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--cyan-glow);
}

/* --- Magnetic Action Buttons --- */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary-glow {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(2, 132, 199, 0.9));
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, var(--cyan-glow), var(--cyber-blue));
  color: #07090e;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary-titanium {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-bright);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
}

.btn-secondary-titanium:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: var(--cyan-glow);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

/* --- Hero Section & 3D Canvas --- */
.hero-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}

#spotlightCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  transition: filter 0.15s ease-out, opacity 0.15s ease-out;
  will-change: filter, opacity;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 1.5rem;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan-glow);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
}

/* --- Anonymized Showcase Section --- */
.showcase-section {
  position: relative;
  z-index: 10;
  padding: 6rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  color: var(--cyan-glow);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Tab Switcher */
.report-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.report-tab-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-tab-btn.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--cyan-glow);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Showcase Cards & Previews */
.showcase-card {
  padding: 2.5rem;
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.domain-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--cyan-glow);
}

.score-overview {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 820px) {
  .score-overview {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.score-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid var(--glass-border);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.score-val {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.score-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.score-meta h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.score-meta p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pillar Progress Grid */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.pillar-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
}

/* Findings List */
.findings-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.finding-row {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border-right: 4px solid var(--cyber-critical);
}

.finding-row.warning {
  border-right-color: var(--cyber-warning);
}

.finding-row.success {
  border-right-color: var(--cyber-emerald);
}

.finding-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tag-statute {
  background: rgba(14, 165, 233, 0.15);
  color: var(--cyan-glow);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.tag-severity {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.finding-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.finding-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.finding-code-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  direction: ltr;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-copy-code {
  background: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-copy-code:hover {
  border-color: var(--cyan-glow);
}

/* --- Color Swatches (Report 2) --- */
.swatch-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.swatch-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.swatch-chip {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Modals & Footer: Modularized in landing-modals.css (Rule 3.1) --- */

