/* ClaimForce Theme */
:root {
  --bg: #0B1628;
  --bg-2: #0F1E33;
  --bg-card: #111D30;
  --fg: #E8EEF4;
  --fg-muted: #7A8FA8;
  --accent: #00D4A4;
  --accent-dim: rgba(0, 212, 164, 0.12);
  --border: rgba(255,255,255,0.07);
  --denied: #FF5252;
  --paid: #00D4A4;
  --appealed: #F5A623;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 22, 40, 0.92);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.nav-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,164,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
}

/* Claim Stack Visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.claim-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.claim-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  min-width: 280px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.claim-card + .claim-card { margin-top: -2px; }
.claim-card.claim-denied { border-color: rgba(255,82,82,0.3); }
.claim-card.claim-appealed { border-color: rgba(245,166,35,0.4); }
.claim-card.claim-paid { border-color: rgba(0,212,164,0.4); }

.claim-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.claim-label { background: rgba(255,82,82,0.15); color: #FF5252; }
.claim-label.appealed { background: rgba(245,166,35,0.15); color: #F5A623; }
.claim-label.paid { background: rgba(0,212,164,0.15); color: #00D4A4; }

.claim-detail {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.claim-amount {
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.claim-denied-reason {
  font-size: 12px;
  color: var(--denied);
}
.claim-ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.claim-success {
  font-size: 12px;
  color: var(--paid);
}
.claim-arrow {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

/* Problem section */
.problem {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 40px;
}
.problem-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.problem-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}
.problem-callout {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
  color: var(--fg);
  line-height: 1.6;
}

/* Section shared */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 56px;
}

/* How it works */
.how { padding: 100px 40px; }
.how-header { text-align: center; }
.how-header .section-title { margin-bottom: 64px; }
.how-steps {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
}
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.step-icon { margin-bottom: 20px; }
.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-connector {
  display: flex;
  align-items: center;
  padding: 0 16px;
  padding-top: 60px;
}
.step-connector::before {
  content: '';
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(0,212,164,0.3));
}

/* Outcomes */
.outcomes { padding: 100px 40px; background: var(--bg-2); border-top: 1px solid var(--border); }
.outcomes-inner { max-width: 1200px; margin: 0 auto; }
.outcomes-head { text-align: center; }
.outcomes-head .section-title { margin-bottom: 56px; }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.outcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
}
.outcome-value {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.outcome-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}
.outcome-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Pricing Model */
.model { padding: 100px 40px; }
.model-inner { max-width: 900px; margin: 0 auto; }
.model-head { text-align: center; }
.model-head .section-title { margin-bottom: 12px; }
.model-sub { font-size: 18px; color: var(--fg-muted); margin-bottom: 56px; }
.model-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
}
.model-card.primary {
  border-color: rgba(0,212,164,0.35);
  background: linear-gradient(135deg, var(--bg-card), rgba(0,212,164,0.04));
}
.model-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
}
.model-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
}
.model-rate {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}
.model-rate-label {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.model-features {
  list-style: none;
  margin-bottom: 24px;
}
.model-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.model-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.model-note {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}

/* Closing */
.closing {
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,212,164,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; }
.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.closing-pulse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,164,0.25);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}
.footer-meta {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Dashboard */
.dashboard { padding: 100px 40px 60px; max-width: 1100px; margin: 0 auto; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.dashboard-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--fg); }
.dashboard-sub { font-size: 14px; color: var(--fg-muted); margin-top: 4px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.stat-card-val { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-card-label { font-size: 13px; color: var(--fg-muted); font-weight: 500; }

.claims-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.table-header {
  display: grid;
  grid-template-columns: 100px 120px 1fr 120px 130px 160px;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.table-row {
  display: grid;
  grid-template-columns: 100px 120px 1fr 120px 130px 160px;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.15s;
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: rgba(255,255,255,0.02); }

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.status-denied   { background: rgba(255,82,82,0.15);   color: #FF5252; }
.status-appealing { background: rgba(245,166,35,0.15); color: #F5A623; }
.status-resubmitted { background: rgba(0,212,164,0.15); color: #00D4A4; }

.empty-state { text-align: center; padding: 60px 24px; color: var(--fg-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }

/* Claim Form */
.form-page { padding: 100px 40px 60px; max-width: 640px; margin: 0 auto; }
.form-title { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.form-sub { font-size: 15px; color: var(--fg-muted); margin-bottom: 40px; }
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--fg-muted); margin-top: 6px; }
.form-error { font-size: 13px; color: var(--denied); margin-top: 4px; display: none; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer; border: none; transition: opacity 0.2s, transform 0.15s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: rgba(255,255,255,0.07); color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-loading { opacity: 0.6; cursor: wait; }
.btn-loading::after { content: '…'; }

/* Appeal preview */
.appeal-preview { margin-top: 32px; }
.appeal-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.preview-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.appeal-letter {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.7;
  max-height: 400px;
  overflow-y: auto;
  color: var(--fg);
}
.appeal-actions { display: flex; gap: 12px; margin-top: 20px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--fg);
  z-index: 9999;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.toast.show { display: block; }
.toast.error { border-color: var(--denied); }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .problem-inner { flex-direction: column; gap: 32px; }
  .problem-divider { width: 60px; height: 1px; }
  .how-steps { grid-template-columns: 1fr; gap: 20px; }
  .step-connector { padding: 0; }
  .step-connector::before { display: none; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .model-options { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
