/* ==========================================================================
   CONCEPT 1: LIQUID DARK GLASS / CYBER LUXURY
   Aesthetic: Apple visionOS, Linear, Raycast, Dribbble Top Shot
   ========================================================================== */

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

:root {
  --bg-deep: #07090e;
  --bg-surface: #0e131d;
  --bg-card: rgba(18, 25, 38, 0.72);
  --bg-card-hover: rgba(26, 35, 52, 0.85);
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 240, 255, 0.3);
  --glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  
  --primary-cyan: #00f0ff;
  --primary-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --glow-cyan: 0 0 35px rgba(0, 240, 255, 0.22);
  --glow-emerald: 0 0 35px rgba(16, 185, 129, 0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 120px;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Radial Mesh Gradients */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 20% 15%, rgba(0, 240, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
}

.content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Bar */
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.brand-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.cta-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cta-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-emerald);
  box-shadow: 0 0 10px var(--primary-emerald);
}

.hero-heading {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-heading .gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #10b981 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 580px;
}

/* Command Bar Scanner */
.scanner-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}

.scanner-card:focus-within {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: var(--glass-specular), 0 25px 60px -10px rgba(0, 240, 255, 0.15);
}

.scanner-form {
  display: flex;
  gap: 12px;
}

.scanner-input-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.scanner-input-box .icon {
  position: absolute;
  left: 18px;
  font-size: 18px;
  color: var(--text-dim);
  pointer-events: none;
}

.scanner-input {
  width: 100%;
  height: 56px;
  background: rgba(10, 15, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0 20px 0 52px;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.scanner-input:focus {
  border-color: var(--primary-cyan);
  background: rgba(10, 15, 25, 0.9);
}

.scanner-submit-btn {
  height: 56px;
  padding: 0 28px;
  background: linear-gradient(135deg, #00f0ff, #10b981);
  border: none;
  border-radius: var(--radius-md);
  color: #050b14;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.scanner-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.45);
}

/* Preset buttons */
.scanner-presets {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-right: 4px;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--primary-cyan);
}

/* Hero Media Column (Liquid Shield 3D) */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  box-shadow: var(--glass-specular), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.hero-visual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.25);
}

.hero-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-card:hover .hero-img-wrap img {
  transform: scale(1.03);
}

.shield-overlay-hud {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 16px 20px;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shield-stat-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.shield-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.shield-stat-val.safe {
  color: var(--primary-emerald);
}

/* Live Audit Stream Terminal / Results HUD */
.results-container {
  display: none;
  margin-top: 48px;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.audit-hud-box {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), 0 25px 60px -10px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
}

.audit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.audit-site-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.audit-score-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 2px solid var(--accent-rose);
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.3);
}

.score-circle.good {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-emerald);
  border-color: var(--primary-emerald);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.fine-warning-box {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fine-amount {
  font-size: 22px;
  font-weight: 800;
  color: #ff6b81;
  font-family: 'JetBrains Mono', monospace;
}

.risks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk-card-glass {
  background: rgba(15, 23, 38, 0.6);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent-rose);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.2s ease;
}

.risk-card-glass:hover {
  background: rgba(20, 30, 48, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.risk-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.risk-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.risk-law-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
}

.risk-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.risk-solution {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #34d399;
}

/* Bento Grid: 6 Core Compliance Pillars */
.section-title-wrap {
  text-align: center;
  margin: 72px 0 40px;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-cyan);
  margin-bottom: 10px;
}

.section-heading {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: var(--glass-specular), 0 20px 40px -10px rgba(0, 240, 255, 0.1);
}

.bento-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: inline-block;
}

.bento-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.bento-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.bento-fine {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #ff6b81;
  background: rgba(244, 63, 94, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* Interactive Fine Calculator */
.calc-section {
  margin-top: 80px;
  background: linear-gradient(180deg, rgba(18, 25, 38, 0.8) 0%, rgba(10, 15, 24, 0.9) 100%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), 0 30px 80px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.calc-slider-box {
  margin: 24px 0;
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}

.styled-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

.styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 15px var(--primary-cyan);
  cursor: pointer;
}

.calc-result-box {
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.calc-risk-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.calc-risk-total {
  font-size: 44px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #ff6b81;
  margin: 12px 0 20px;
}

/* Modal for Legal Documents */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal-window {
  background: #0e1420;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
}

.doc-textarea {
  width: 100%;
  height: 320px;
  background: #07090e;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 16px;
  margin: 16px 0;
  resize: vertical;
}

/* Footer */
.footer-wrap {
  margin-top: 100px;
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .hero-heading {
    font-size: 38px;
  }
}
