/* ============================================================
   THE FIREFIGHTER MEDIC — Marketing Site
   DARK THEME — mirrors the app's dark UI as the main canvas
   Navy/deep blues as background, red accent, gold highlights
   ============================================================ */

:root {
  /* Dark backgrounds matching the app's interior pages */
  --bg:       #0a0d14;
  --bg-2:     #0d1117;
  --bg-3:     #121820;
  --panel:    #131c28;
  --card:     #111827;
  --card-2:   #0f1623;

  --border:   rgba(255,255,255,.07);
  --border-2: rgba(255,255,255,.12);

  /* Brand */
  --red:      #c42020;
  --red-2:    #e02020;
  --red-dim:  rgba(196,32,32,.15);
  --gold:     #C5A059;
  --gold-dim: rgba(197,160,89,.15);
  --navy:     #0d1630;
  --navy-2:   #1a2a50;

  /* Blue accent */
  --blue:       #3b82f6;
  --blue-hover: #60a5fa;
  --blue-dim:   rgba(59,130,246,.15);

  /* Text — inverted from app (white on dark) */
  --text:     #F0EDE8;
  --text-2:   rgba(240,237,232,.7);
  --text-3:   rgba(240,237,232,.45);

  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius:    13px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow:    0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --nav-h:     60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: -apple-system, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }

.container { max-width: 1100px; margin-inline: auto; padding-inline: 24px; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(10,13,20,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand img {
  height: 36px; width: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name { font-size: .88rem; font-weight: 700; color: var(--text); }
.nav-brand-tag  { font-size: .62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .09em; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: .84rem;
  font-weight: 500;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  margin-left: 8px;
  transition: background .15s;
}
.nav-cta:hover { background: var(--red-2); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, #0a0d14 0%, #0d1630 60%, #0a0d14 100%);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(197,160,89,.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(196,32,32,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 800px; margin: 0 auto; padding: 0 24px; }

.hero-badge-img {
  width: 160px; height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 40px rgba(197,160,89,.35));
}

.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 4px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: var(--gold-dim);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.08;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-title .accent { color: var(--blue); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* iPhone mockup section */
.hero-phone-section {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-phone-img {
  width: 100%;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 24px 80px rgba(0,0,0,.7),
    0 0 60px rgba(59,130,246,.15);
  position: relative;
  z-index: 2;
}
.hero-phone-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at 50% 50%, rgba(59,130,246,.2), transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  border: none;
  letter-spacing: .01em;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,32,32,.4); }
.btn-outline { background: transparent; border: 1.5px solid var(--border-2); color: var(--text-2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.ticker-inner {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 38s linear infinite;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  text-transform: uppercase;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: 64px; }
.section-inner { max-width: 1100px; margin: 0 auto; padding-inline: 24px; }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
}

.section-sub {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 640px;
}

/* ============================================================
   CAREER JOURNEY TIMELINE
   ============================================================ */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 40px;
  position: relative;
}
.journey-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 50%, var(--red) 100%);
  opacity: 0.5;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  position: relative;
}
.journey-step-dot {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  border: 2px solid;
  position: relative;
  z-index: 2;
}
.journey-step:nth-child(1) .journey-step-dot { background: rgba(59,130,246,.15); border-color: var(--blue); }
.journey-step:nth-child(2) .journey-step-dot { background: rgba(16,185,129,.15); border-color: #10b981; }
.journey-step:nth-child(3) .journey-step-dot { background: rgba(197,160,89,.15); border-color: var(--gold); }
.journey-step:nth-child(4) .journey-step-dot { background: rgba(196,32,32,.15); border-color: var(--red); }
.journey-step:nth-child(5) .journey-step-dot { background: rgba(168,85,247,.15); border-color: #a855f7; }
.journey-step-title { font-size: .92rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.journey-step-desc { font-size: .78rem; color: var(--text-3); line-height: 1.5; }

@media (max-width: 700px) {
  .journey-grid { grid-template-columns: 1fr; gap: 20px; }
  .journey-grid::before { display: none; }
  .journey-step { flex-direction: row; text-align: left; gap: 16px; }
  .journey-step-dot { flex-shrink: 0; }
}

/* ============================================================
   SCREENSHOT SHOWCASE
   ============================================================ */
.screenshot-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.screenshot-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--panel);
}
.screenshot-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}
.screenshot-card-label {
  padding: 14px 18px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-2);
  border-top: 1px solid var(--border);
}
.screenshot-card-label span { color: var(--gold); margin-right: 6px; }

@media (max-width: 640px) {
  .screenshot-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}
.feature-cell {
  background: var(--card);
  padding: 28px 24px;
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.feature-desc { font-size: .85rem; color: var(--text-2); line-height: 1.65; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING TEASER
   ============================================================ */
.pricing-teaser {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-teaser::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,.1), transparent 60%);
  pointer-events: none;
}
.price-big {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.price-big sup { font-size: 2rem; font-weight: 700; color: var(--gold); }
.price-big sub { font-size: 1.2rem; font-weight: 500; color: var(--text-2); }

/* ============================================================
   PRODUCTS PLACEHOLDER
   ============================================================ */
.products-coming {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 48px;
  text-align: center;
}
.page-hero-inner { max-width: 720px; margin: 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #050709;
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  text-align: center;
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-logo { margin-bottom: 20px; }
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-links a { font-size: .82rem; color: var(--text-3); }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 18px; justify-content: center; margin-bottom: 18px; }
.footer-social a { font-size: .78rem; color: var(--gold); }
.footer-social a:hover { color: #fff; }
.footer-copy { font-size: .72rem; color: var(--text-3); }

/* ============================================================
   CARDS (interior pages)
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-top { padding: 20px 22px 0; }
.card-body { padding: 12px 22px 20px; flex: 1; }
.card-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-3);
}

.app-feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.app-feature-icon { font-size: 1.7rem; margin-bottom: 10px; }

.feature-check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.feature-check-list li {
  padding: 8px 0;
  font-size: .92rem;
  color: var(--text-2);
  display: flex; align-items: center; gap: 10px;
}
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red-dim);
  color: var(--red);
  font-size: .72rem; font-weight: 900;
  flex-shrink: 0;
}

/* dividers */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }
