/* NatalCast Design System — Luxury Astronomical Observatory Aesthetic
 * Colors: Deep Obsidian (#050807, #0B100E), Celestial Brass (#E0BA63, #D4AF37),
 * Stellar Teal (#67B9A5), Crisp Starlight (#F1F5F2, #C7D4CD, #94A49C)
 */

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

:root {
  /* Cosmic Backgrounds */
  --bg-space: #050807;
  --bg-space-dark: #020403;
  --bg-surface: #0B100E;
  --bg-surface-elevated: #0E1513;
  --bg-surface-glass: rgba(11, 16, 14, 0.78);
  --bg-input: rgba(6, 10, 8, 0.9);

  /* Celestial Brass / Gold Accents */
  --brass-primary: #E0BA63;
  --brass-light: #F7E1A0;
  --brass-dark: #B88F3A;
  --brass-border: rgba(224, 186, 99, 0.24);
  --brass-glow: rgba(224, 186, 99, 0.16);
  --brass-gradient: linear-gradient(135deg, #F5D78A 0%, #E0BA63 45%, #C29532 100%);
  --brass-subtle-bg: rgba(224, 186, 99, 0.06);

  /* Stellar Teal Accents */
  --teal-primary: #67B9A5;
  --teal-light: #8DE0CD;
  --teal-dark: #3F8775;
  --teal-border: rgba(103, 185, 165, 0.24);
  --teal-glow: rgba(103, 185, 165, 0.18);
  --teal-subtle-bg: rgba(103, 185, 165, 0.08);

  /* Alerts / Danger Accents */
  --alert-red: #F87171;
  --alert-red-dark: #DC2626;
  --alert-red-bg: rgba(239, 68, 68, 0.08);
  --alert-red-border: rgba(239, 68, 68, 0.28);

  /* Typography / Starlight Palette */
  --text-primary: #F1F5F2;
  --text-secondary: #C7D4CD;
  --text-muted: #94A49C;
  --text-dim: #5C6E66;

  /* Borders & Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(224, 186, 99, 0.32);

  /* Shadows */
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 28px rgba(224, 186, 99, 0.12);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.9);

  /* Fonts */
  --font-serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-space);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Luxury Observatory Ambient Background */
.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, 0.5) 100%, transparent),
    radial-gradient(1.2px 1.2px at 28% 44%, rgba(247, 225, 160, 0.6) 100%, transparent),
    radial-gradient(1px 1px at 72% 18%, rgba(255, 255, 255, 0.45) 100%, transparent),
    radial-gradient(1.2px 1.2px at 85% 62%, rgba(141, 224, 205, 0.5) 100%, transparent),
    radial-gradient(1px 1px at 52% 82%, rgba(255, 255, 255, 0.4) 100%, transparent),
    radial-gradient(circle at 50% 12%, rgba(224, 186, 99, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 85% 65%, rgba(103, 185, 165, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(224, 186, 99, 0.03) 0%, transparent 50%);
  background-size: 650px 650px, 780px 780px, 820px 820px, 920px 920px, 740px 740px, 100% 100%, 100% 100%, 100% 100%;
  z-index: -2;
  pointer-events: none;
}

.cosmic-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

.glow-1 {
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 380px;
  background: radial-gradient(circle, rgba(224, 186, 99, 0.1) 0%, rgba(103, 185, 165, 0.05) 60%, transparent 100%);
}

.glow-2 {
  top: 850px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(103, 185, 165, 0.08) 0%, transparent 70%);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Observatory Navbar */
.navbar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 7, 0.85);
  transition: all 0.3s ease;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(224, 186, 99, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover .nav-logo-icon {
  transform: rotate(12deg) scale(1.04);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--brass-primary);
  text-transform: uppercase;
  font-weight: 600;
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 14px;
}

.free-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--teal-light);
  background: rgba(103, 185, 165, 0.12);
  border: 1px solid var(--teal-border);
  padding: 5px 12px;
  border-radius: 9999px;
}

.free-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--teal-light);
  box-shadow: 0 0 6px var(--teal-light);
  animation: pulse-teal 2s infinite ease-in-out;
}

@keyframes pulse-teal {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Primary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--brass-gradient);
  color: #050807;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(224, 186, 99, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(224, 186, 99, 0.45);
  filter: brightness(1.05);
}

.btn-nav {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(224, 186, 99, 0.12);
  color: var(--brass-light);
  border: 1px solid var(--brass-border);
}

.btn-nav:hover {
  background: var(--brass-primary);
  color: #050807;
  border-color: var(--brass-primary);
  box-shadow: 0 0 16px rgba(224, 186, 99, 0.35);
}

.btn-play-store {
  background: #0B100E;
  color: #FFFFFF;
  border: 1px solid var(--brass-border);
  padding: 10px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-play-store:hover {
  border-color: var(--brass-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(224, 186, 99, 0.25);
}

.play-store-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.play-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.play-store-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.play-store-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* Hero Section */
.hero {
  padding: 68px 0 42px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(224, 186, 99, 0.08);
  border: 1px solid var(--brass-border);
  color: var(--brass-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brass-primary);
  box-shadow: 0 0 6px var(--brass-primary);
  animation: pulse-gold 2s infinite ease-in-out;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.hero-title-gradient {
  background: linear-gradient(180deg, #FFFFFF 25%, #E0BA63 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-item-icon {
  color: var(--teal-light);
}

/* Calculator Form Card */
.calculator-section {
  padding: 24px 0 60px;
}

.calc-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-surface-glass);
  border: 1px solid var(--brass-border);
  border-radius: 24px;
  padding: 34px 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-primary), transparent);
}

.card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--brass-light);
  background: rgba(224, 186, 99, 0.1);
  border: 1px solid rgba(224, 186, 99, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.badge-mini-logo {
  width: 14px;
  height: 14px;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.full-width-input {
  grid-column: 1 / -1;
}

.input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.input-group .req {
  color: var(--brass-primary);
}

.input-group .optional {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.input-field {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: var(--brass-primary);
  box-shadow: 0 0 0 3px rgba(224, 186, 99, 0.18);
  background: rgba(11, 16, 14, 0.95);
}

.select-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E0BA63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.select-field option {
  background: #0B100E;
  color: #F1F5F2;
}

.btn-generate {
  width: 100%;
  padding: 16px 28px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.btn-generate:hover .btn-arrow {
  transform: translateX(4px);
}

/* ========================================================
 * ELEVATED DOSSIER RESULT LEDGER (The Observatory Ledger)
 * ======================================================== */
.dossier-result {
  margin-top: 36px;
  animation: fadeInDossier 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hidden {
  display: none !important;
}

/* Unified Master Parchment Container */
.dossier-sheet {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--brass-border);
  border-radius: 24px;
  padding: 34px 32px;
  box-shadow: var(--shadow-card), 0 0 50px rgba(224, 186, 99, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.dossier-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-primary), var(--teal-primary), transparent);
}

/* Dossier Header */
.dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.dossier-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dossier-brand-logo {
  width: 22px;
  height: 22px;
}

.dossier-brand-title {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--brass-primary);
  text-transform: uppercase;
}

.dossier-status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dossier-status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-light);
  background: var(--teal-subtle-bg);
  border: 1px solid var(--teal-border);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.6px;
}

.dossier-timestamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Profile Hero */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-seal-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-seal-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--brass-primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: rotateSeal 30s linear infinite;
}

@keyframes rotateSeal {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 186, 99, 0.22) 0%, #080C0B 75%);
  border: 2px solid var(--brass-primary);
  box-shadow: 0 0 20px rgba(224, 186, 99, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--brass-light);
  z-index: 1;
}

.profile-meta {
  flex: 1;
}

.profile-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--brass-primary);
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.2;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.tag-sign {
  background: rgba(224, 186, 99, 0.12);
  color: var(--brass-light);
  border: 1px solid var(--brass-border);
}

.tag-element {
  background: rgba(103, 185, 165, 0.12);
  color: var(--teal-light);
  border: 1px solid var(--teal-border);
}

.tag-modality {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tag-status {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* Dossier Section Block */
.dossier-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-micro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title-wrap-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  color: var(--brass-primary);
  font-size: 1.1rem;
}

.section-title-wrap-inner h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.6px;
}

.section-micro-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* Section 1: Calibrated Battery Dials */
.battery-meters-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.gauge-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 18px;
  transition: border-color 0.2s ease;
}

.gauge-card:hover {
  border-color: rgba(224, 186, 99, 0.3);
}

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

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

.gauge-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
}

.gauge-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.gauge-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brass-light);
}

.gauge-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  position: relative;
  overflow: visible;
}

.gauge-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.fill-gold {
  background: linear-gradient(90deg, #B88F3A, #E0BA63, #F7E1A0);
  box-shadow: 0 0 10px rgba(224, 186, 99, 0.4);
}

.fill-teal {
  background: linear-gradient(90deg, #2D6B5C, #67B9A5, #8DE0CD);
  box-shadow: 0 0 10px rgba(103, 185, 165, 0.4);
}

.fill-amber {
  background: linear-gradient(90deg, #B9402C, #F87171, #FCA5A5);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.4);
}

.gauge-ticks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.gauge-ticks span {
  width: 1px;
  height: 11px;
  margin-top: -2px;
  background: rgba(255, 255, 255, 0.15);
}

/* Executive Directive Callout */
.directive-box {
  background: rgba(224, 186, 99, 0.08);
  border-left: 3px solid var(--brass-primary);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.directive-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.directive-content strong {
  display: block;
  font-size: 0.85rem;
  color: var(--brass-light);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.directive-content p {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Section 2: Red Flag Audit (Balanced 2 Columns) */
.roast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.roast-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.roast-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--alert-red);
  margin-bottom: 8px;
}

.roast-text {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
}

/* Section 3: Situationship Reality Check */
.chem-body {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px 24px;
}

.chem-score-column {
  flex-shrink: 0;
}

.chem-score-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--brass-primary);
  background: radial-gradient(circle, rgba(224, 186, 99, 0.15) 0%, transparent 70%);
  box-shadow: 0 0 16px rgba(224, 186, 99, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chem-score-val {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brass-light);
  line-height: 1;
}

.chem-score-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.chem-details-column {
  flex: 1;
}

.chem-headline {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.35;
}

.chem-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Section 4: 48-Hour Danger Window */
.dossier-danger-section {
  background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.08) 0%, rgba(14, 21, 19, 0.8) 65%);
  border: 1px solid var(--alert-red-border);
  border-radius: 18px;
  padding: 24px;
  margin-top: 24px;
}

.danger-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 18px;
}

.danger-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--alert-red);
  background: var(--alert-red-bg);
  border: 1px solid var(--alert-red-border);
  padding: 3px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.danger-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--alert-red);
  box-shadow: 0 0 6px var(--alert-red);
  animation: pulse-red 1.8s infinite ease-in-out;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.danger-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

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

.danger-vault-teaser {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(248, 113, 113, 0.35);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.vault-blur-content {
  display: flex;
  justify-content: space-around;
  width: 100%;
  filter: blur(4px);
  user-select: none;
  opacity: 0.7;
}

.vault-line {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.vault-unlock-overlay {
  z-index: 2;
}

.btn-reveal {
  padding: 13px 28px;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(224, 186, 99, 0.35);
  animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(224, 186, 99, 0.35); }
  50% { box-shadow: 0 4px 30px rgba(224, 186, 99, 0.6); }
}

/* Section 5: Integrated Action Suite (Sharing + Lead Archive) */
.dossier-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
}

.actions-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-share:hover {
  transform: translateY(-2px);
  border-color: var(--brass-primary);
  background: rgba(224, 186, 99, 0.12);
  color: #FFFFFF;
}

.share-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.email-archive-wrap {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
}

.archive-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.archive-icon {
  font-size: 1.4rem;
}

.archive-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #FFFFFF;
}

.archive-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.archive-form {
  display: flex;
  gap: 10px;
}

.archive-input {
  flex: 1;
  padding: 11px 14px;
}

.btn-archive {
  white-space: nowrap;
  padding: 11px 22px;
  border-radius: 10px;
}

.email-success {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--teal-light);
  background: var(--teal-subtle-bg);
  border: 1px solid var(--teal-border);
  padding: 8px 12px;
  border-radius: 6px;
}

/* ========================================================
 * MOBILE APP SHOWCASE
 * ======================================================== */
.app-showcase {
  padding: 70px 0 60px;
  position: relative;
}

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

.showcase-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brass-light);
  margin-bottom: 4px;
}

.showcase-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

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

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0;
}

.showcase-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.showcase-check {
  color: var(--teal-light);
  font-size: 1.1rem;
  line-height: 1.4;
}

.showcase-item-content strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.showcase-item-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 290px;
  height: 580px;
  background: #000000;
  border: 4px solid #1A221E;
  border-radius: 42px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(224, 186, 99, 0.18);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 15px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  z-index: 10;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Features Grid */
.features {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border-subtle);
}

.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.sub-badge {
  display: inline-block;
  color: var(--brass-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-title-wrap h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

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

.feature-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 26px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.feat-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: inline-block;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Observatory Footer */
.footer {
  padding: 50px 0 35px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(2, 4, 3, 0.95);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand-wrap p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brass-primary);
}

.footer-compliance-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

/* Bottom Sheet Slide-Up Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 4, 3, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.bottom-sheet-modal {
  width: 100%;
  max-width: 560px;
  background: #0B100E;
  border: 1px solid var(--brass-border);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 36px 30px 40px;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.modal-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal-light);
  background: rgba(103, 185, 165, 0.12);
  border: 1px solid var(--teal-border);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  line-height: 1.25;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.5;
}

.modal-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
}

.perk-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.perk-item strong {
  color: #FFFFFF;
}

.btn-modal-download {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 14px;
  margin-bottom: 12px;
}

.store-icon {
  width: 22px;
  height: 22px;
}

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

/* Floating Share Pill */
.floating-share-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  animation: floatUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.pill-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #0B100E;
  border: 1px solid var(--brass-border);
  color: var(--brass-light);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(224, 186, 99, 0.25);
  transition: all 0.2s ease;
}

.pill-share-btn:hover {
  background: var(--brass-primary);
  color: #050807;
  transform: translateY(-2px);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0B100E;
  border: 1px solid var(--brass-primary);
  color: var(--brass-light);
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .showcase-title {
    font-size: 2.1rem;
  }
  .showcase-list {
    text-align: left;
    max-width: 480px;
    margin: 10px auto;
  }
  .phone-mockup-wrapper {
    order: -1;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .floating-share-pill {
    display: none !important;
  }
  .dossier-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .hero-title {
    font-size: 2.35rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .calc-card, .dossier-sheet {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .profile-hero {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .profile-tags {
    justify-content: center;
  }
  .roast-grid {
    grid-template-columns: 1fr;
  }
  .chem-body {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .vault-blur-content {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .share-grid {
    grid-template-columns: 1fr 1fr;
  }
  .archive-form {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .footer-links {
    justify-content: center;
  }
  .bottom-sheet-modal {
    padding: 30px 20px 32px;
  }
}
