/* ==========================================================================
   Chromium Evidence Archive & Retrieval Platform (CEARP)
   Bespoke Light Theme Design System (Original, Rich, High-Tech & Clean)
   ========================================================================== */

:root {
  /* Crisp Canvas & Elevation */
  --bg-canvas: #fafbfd;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-accent-soft: #eff6ff;

  /* Typography */
  --text-title: #090e17;        /* Deep obsidian slate */
  --text-body: #475569;         /* Slate-600 */
  --text-muted: #94a3b8;        /* Slate-400 */

  /* Palette: Cobalt, Electric Indigo, Emerald Integrity */
  --color-primary: #1d4ed8;     /* Royal Cobalt */
  --color-primary-hover: #1e40af;
  --color-indigo: #4f46e5;
  --color-emerald: #059669;      /* Verification Emerald */
  --color-emerald-bg: #ecfdf5;
  --color-amber: #d97706;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.9);
  --border-focus: #2563eb;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 12px 32px -4px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
  --shadow-float: 0 20px 48px -10px rgba(15, 23, 42, 0.1), 0 4px 16px -2px rgba(15, 23, 42, 0.04);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  min-height: 100vh;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-canvas);
  color: var(--text-title);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(37, 99, 235, 0.06), transparent 70%),
    radial-gradient(ellipse 40% 30% at 95% 40%, rgba(79, 70, 229, 0.04), transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(5, 150, 105, 0.04), transparent 50%);
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  padding: 24px 36px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28);
}

.brand-icon-box svg {
  width: 20px;
  height: 20px;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-title);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* --------------------------------------------------------------------------
   Hero Layout
   -------------------------------------------------------------------------- */
.hero-wrapper {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 36px 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}

/* Left Hero Typography */
.hero-left {
  max-width: 580px;
}

.cohort-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.cohort-tag svg {
  width: 14px;
  height: 14px;
  color: var(--color-emerald);
}

.main-title {
  font-size: clamp(2.6rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-title);
  margin-bottom: 20px;
}

.gradient-accent {
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead-paragraph {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Clean High-Converting Input Row */
.invite-form-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  transition: all 200ms ease;
  margin-bottom: 12px;
}

.invite-form-box:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12), var(--shadow-md);
}

.email-field {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text-title);
  outline: none;
}

.email-field::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 180ms ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
  background: #1e40af;
}

.trust-badges-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.trust-badge-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-emerald);
}

/* Feedback Alert Banner */
.status-toast {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.status-toast.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-toast.warning {
  display: block;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-toast.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   Right Hero: Authentic Digital Evidence Vault Preview Card
   -------------------------------------------------------------------------- */
.vault-preview-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Subtle Radial Glow Behind Vault */
.vault-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.08) 0%, rgba(79, 70, 229, 0.04) 50%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

.vault-window-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

/* Window Header Bar */
.vault-header-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vault-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-1 { background: #f87171; }
.dot-2 { background: #fbbf24; }
.dot-3 { background: #34d399; }

.vault-address-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 3px 12px;
  font-size: 0.725rem;
  font-family: var(--font-code);
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vault-status-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-emerald);
  background: var(--color-emerald-bg);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.vault-body-content {
  padding: 20px;
}

/* Record Metadata Strip */
.evidence-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.evidence-id {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-title);
}

.evidence-timestamp {
  font-size: 0.725rem;
  font-family: var(--font-code);
  color: var(--text-muted);
}

/* Simulated Captured Viewport */
.captured-viewport-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.viewport-watermark {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(29, 78, 216, 0.9);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.viewport-sim-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-bar {
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
}
.sim-bar.accent {
  width: 65%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}
.sim-bar.mid { width: 85%; }
.sim-bar.short { width: 45%; }

/* Cryptographic Verification Badge Ribbon */
.crypto-proof-ribbon {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.crypto-hash-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.crypto-hash-val {
  font-family: var(--font-code);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-primary);
}

.crypto-match-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Vault Properties Grid */
.vault-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.spec-mini-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xs);
  padding: 8px;
  text-align: center;
}

.spec-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spec-val {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-title);
}

/* Floating Accessory Badge Pinned on Side */
.floating-side-badge {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-float);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-title);
}

.floating-side-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-emerald);
}

/* --------------------------------------------------------------------------
   3 Crisp Feature Highlights (Bottom Row)
   -------------------------------------------------------------------------- */
.features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.feature-pill-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-pill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.feature-text-block h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 4px;
}

.feature-text-block p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 24px 36px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-meta-pill {
  font-weight: 600;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-columns {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-left {
    max-width: 100%;
    text-align: center;
  }
  .cohort-tag {
    margin-left: auto;
    margin-right: auto;
  }
  .lead-paragraph {
    margin-left: auto;
    margin-right: auto;
  }
  .invite-form-box {
    margin-left: auto;
    margin-right: auto;
  }
  .trust-badges-row {
    justify-content: center;
  }
  .features-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .floating-side-badge {
    left: 10px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 18px 20px;
  }
  .hero-wrapper {
    padding: 20px 20px 36px 20px;
  }
  .invite-form-box {
    flex-direction: column;
    padding: 8px;
  }
  .email-field {
    width: 100%;
    padding: 8px 10px;
    text-align: center;
  }
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
  .site-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px;
  }
}
