/* ==========================================================================
   DebtShark Landing Page Stylesheet
   Modern, Dark-Mode Glassmorphism Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-darker: #06090e;
  --bg-dark: #0a0f18;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --bg-glass: rgba(13, 20, 36, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(16, 185, 129, 0.25);
  --border-glow: rgba(16, 185, 129, 0.4);

  /* Brand Accents */
  --mint-50: #ecfdf5;
  --mint-100: #d1fae5;
  --mint-300: #6ee7b7;
  --mint-400: #34d399;
  --mint-500: #10b981;
  --mint-600: #059669;
  --mint-glow: rgba(16, 185, 129, 0.35);

  --cyan-400: #38bdf8;
  --cyan-500: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.3);

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);

  --rose-400: #fb7185;
  --rose-500: #f43f5e;

  /* Typography Colors - High WCAG AAA Contrast */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-white: #ffffff;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--mint-glow);
  --shadow-glow-cyan: 0 0 35px var(--cyan-glow);

  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

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

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

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

/* Background Atmospheric Meshes */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  contain: strict;
  animation: float 20s infinite alternate ease-in-out;
}

.mesh-blob-1 {
  width: 600px;
  height: 600px;
  background: var(--mint-500);
  top: -150px;
  left: 15%;
}

.mesh-blob-2 {
  width: 500px;
  height: 500px;
  background: var(--cyan-500);
  top: 40%;
  right: -100px;
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}

.mesh-blob-3 {
  width: 450px;
  height: 450px;
  background: #3b82f6;
  bottom: 5%;
  left: 5%;
  animation-duration: 22s;
}

@keyframes float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 30px, 0) scale(1.05); }
  100% { transform: translate3d(0, -20px, 0) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blob {
    animation: none;
  }
}

/* Subtle Grid Background Pattern */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 0;
  transition: var(--transition-normal);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 14px var(--mint-glow);
  transition: var(--transition-fast);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--mint-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.github-star-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.github-star-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--mint-500), var(--mint-600));
  color: #06090e;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 16px var(--mint-glow);
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
  color: #000;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--mint-300);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 8px var(--mint-400);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 950px;
  margin: 0 auto 1.5rem;
  color: var(--text-white);
}

.hero-title .highlight-mint {
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--mint-400), var(--mint-600));
  color: #06090e;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 28px var(--mint-glow);
  transition: var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
  color: #000;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}

.btn-hero-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Trust Badges Bar */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.2rem 2rem;
  margin: 0 auto 3rem;
  max-width: 980px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--mint-400);
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Showcase Frame (App Window)
   ========================================================================== */
.showcase-container {
  max-width: 1100px;
  margin: 0 auto 5rem;
  position: relative;
}

.showcase-window {
  background: #0d1424;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(16, 185, 129, 0.18);
  overflow: hidden;
  transition: var(--transition-normal);
}

.showcase-header {
  background: #111a2e;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.traffic-lights {
  display: flex;
  gap: 0.45rem;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.light-red { background: #ff5f56; }
.light-yellow { background: #ffbd2e; }
.light-green { background: #27c93f; }

.window-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.window-badges {
  display: flex;
  gap: 0.5rem;
}

.window-badge-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: var(--mint-300);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Tab Navigation for Preview */
.showcase-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  background: #0a0f1d;
  border-bottom: 1px solid var(--border-glass);
  overflow-x: auto;
}

.showcase-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

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

.showcase-tab.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--mint-300);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.showcase-screen {
  position: relative;
  background: #070a10;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}

.showcase-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.showcase-screen:hover img {
  transform: scale(1.015);
}

.screen-zoom-hint {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-glass);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.showcase-screen:hover .screen-zoom-hint {
  opacity: 1;
  color: var(--mint-300);
  border-color: var(--border-glow);
}

.showcase-caption {
  padding: 1rem 1.4rem;
  background: #0d1424;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.showcase-caption strong {
  color: var(--text-white);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint-400);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Statutory Defense Engines (The 4 Pillars Grid)
   ========================================================================== */
.defense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.defense-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.defense-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--mint-500), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.defense-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.15);
  background: var(--bg-card-hover);
}

.defense-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-400);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.8rem;
  letter-spacing: -0.015em;
}

.card-statute {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--mint-300);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.2rem;
}

.card-bullets li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-bullets li svg {
  color: var(--mint-400);
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive SOL Calculator / Defense Simulator
   ========================================================================== */
.simulator-section {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.6) 0%, rgba(8, 12, 22, 0.9) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  margin-bottom: 6rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.simulator-section::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sim-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: center;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-select {
  width: 100%;
  background: #0f172a;
  color: var(--text-white);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.control-select:focus {
  border-color: var(--mint-400);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.sim-result-card {
  background: rgba(10, 16, 28, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

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

.result-state-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
}

.result-badge-sol {
  background: linear-gradient(135deg, var(--mint-500), var(--mint-600));
  color: #06090e;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.result-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mint-300);
}

.stat-value.protected {
  color: var(--mint-400);
}

.stat-value.warning {
  color: var(--amber-400);
}

.result-citation-box {
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid var(--mint-400);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.result-citation-box strong {
  color: var(--text-white);
  font-family: var(--font-mono);
}

/* ==========================================================================
   The 7 Automated Letters Showcase
   ========================================================================== */
.letters-section {
  margin-bottom: 6rem;
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.letter-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.letter-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.letter-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mint-400);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.8rem;
}

.letter-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.letter-statute {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-400);
  margin-bottom: 0.8rem;
}

.letter-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

/* ==========================================================================
   Cryptographic Architecture / Air-Gapped Stack
   ========================================================================== */
.security-section {
  margin-bottom: 6rem;
}

.security-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 26, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.sec-feature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sec-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
}

.sec-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

.sec-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Download Hub & Matrix
   ========================================================================== */
.download-section {
  margin-bottom: 6rem;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
}

.download-card.featured {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
  background: rgba(16, 26, 46, 0.85);
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card-tag-top {
  position: absolute;
  top: -12px;
  background: linear-gradient(135deg, var(--mint-500), var(--mint-600));
  color: #06090e;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.os-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-icon svg {
  width: 52px;
  height: 52px;
}

.os-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.3rem;
}

.os-version {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-download-os {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--mint-500), var(--mint-600));
  color: #06090e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
  box-shadow: 0 0 18px var(--mint-glow);
}

.btn-download-os:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.5);
  color: #000;
}

.btn-download-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 1.2rem;
  transition: var(--transition-fast);
}

.btn-download-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.checksum-accordion {
  width: 100%;
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
  font-size: 0.78rem;
  text-align: left;
}

.checksum-accordion details summary {
  cursor: pointer;
  color: var(--text-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checksum-accordion details summary:hover {
  color: var(--text-muted);
}

.checksum-box {
  margin-top: 0.6rem;
  background: #090e18;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  word-break: break-all;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-copy-hash {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: var(--mint-300);
  cursor: pointer;
  align-self: flex-end;
  font-family: var(--font-body);
  font-size: 0.7rem;
  transition: var(--transition-fast);
}

.btn-copy-hash:hover {
  background: rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  max-width: 850px;
  margin: 0 auto 6rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  padding: 1.3rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

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

.faq-icon-arrow {
  transition: transform 0.25s ease;
  color: var(--mint-400);
}

details[open] .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.6rem 1.4rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #04070b;
  border-top: 1px solid var(--border-glass);
  padding: 4.5rem 0 2rem;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.studio-logo {
  height: 24px;
  width: auto;
  border-radius: 4px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--mint-400);
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Modal Lightbox for Screenshots
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 12, 0.92);
  backdrop-filter: blur(20px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  background: #0d1424;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(16, 185, 129, 0.2);
  overflow: hidden;
}

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

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1220px) and (min-width: 993px) {
  .navbar .nav-wrapper {
    gap: 1rem;
  }
  .nav-links {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.35rem 0.5rem;
  }
  .brand-link {
    font-size: 1.15rem;
  }
  .github-star-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
  .btn-primary-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 992px) {
  .sim-container {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #090e18;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 640px) {
  .trust-bar {
    gap: 1.2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}
