:root {
  --bg: #070b12;
  --bg-elevated: #0b1220;
  --bg-card: #121a2b;
  --bg-card-hover: #182235;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --brand: #d2100b;
  --brand-glow: rgba(210, 16, 11, 0.45);
  --brand-soft: rgba(210, 16, 11, 0.14);
  --border: rgba(148, 163, 184, 0.18);
  --fire: #e53935;
  --ambulance: #fb8c00;
  --police: #1e88e5;
  --font-display: "Bebas Neue", Impact, Haettenschweiler, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--brand-glow), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(210, 16, 11, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.78);
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
.site-footer-inner,
.section-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(210, 16, 11, 0.35));
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-word span {
  color: var(--brand);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lang-switch:hover {
  border-color: rgba(210, 16, 11, 0.55);
  background: rgba(210, 16, 11, 0.12);
}

.lang-switch-icon {
  display: inline-flex;
  color: var(--brand);
}

.lang-switch-code {
  min-width: 1.4rem;
}

.site-main {
  flex: 1;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 2rem 0 2.5rem;
}

.site-footer-inner {
  display: grid;
  gap: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
}

.hero-photo {
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: 3.25rem 0 3rem;
  isolation: isolate;
}

.hero-photo-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("/images/respondr-background.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-photo-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 7, 12, 0.92) 0%, rgba(4, 7, 12, 0.72) 42%, rgba(4, 7, 12, 0.35) 70%, rgba(4, 7, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 7, 12, 0.35) 0%, transparent 28%, rgba(4, 7, 12, 0.75) 100%),
    radial-gradient(ellipse 55% 45% at 18% 40%, rgba(210, 16, 11, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 18px rgba(210, 16, 11, 0.45));
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0.4rem 0 0.85rem;
  max-width: 12ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-copy p {
  color: #cbd5e1;
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 0 1.5rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 24px var(--brand-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(210, 16, 11, 0.5);
}

.section {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.4rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.live-panel {
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.95), rgba(11, 18, 32, 0.92));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 0 0 1px rgba(210, 16, 11, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.live-panel-glass {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.78), rgba(8, 12, 20, 0.88));
  backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(210, 16, 11, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.live-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
}

.live-dot.on {
  background: #22c55e;
  animation: statusPulse 1.8s ease-out infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.live-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  overflow: auto;
  flex: 1;
  max-height: 420px;
}

.live-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  animation: cardIn 0.45s ease both;
}

.live-card + .live-card {
  margin-top: 0.35rem;
}

.live-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
}

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

.live-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip-priority {
  background: rgba(210, 16, 11, 0.18);
  color: #fecaca;
}

.chip-service {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.chip-service.fire { background: rgba(229, 57, 53, 0.18); color: #fecaca; }
.chip-service.ambulance { background: rgba(251, 140, 0, 0.18); color: #ffd8a8; }
.chip-service.police { background: rgba(30, 136, 229, 0.18); color: #bfdbfe; }

.live-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card,
.highlight-card,
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.highlight-card {
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand);
  box-shadow: 0 0 16px var(--brand-glow);
}

.feature-card h3,
.highlight-card h3,
.plan-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.feature-card p,
.highlight-card p,
.plan-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.plan-card.featured {
  border-color: rgba(210, 16, 11, 0.55);
  box-shadow: 0 0 28px rgba(210, 16, 11, 0.18);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 1.75rem;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/images/respondr-background.jpg") center 35% / cover no-repeat;
  opacity: 0.35;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.55), rgba(7, 11, 18, 0.96));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.prose {
  max-width: 42rem;
  color: var(--text-muted);
}

.prose h2 {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  margin-top: 2rem;
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.reveal {
  animation: cardIn 0.7s ease both;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .header-actions {
    gap: 0.4rem;
  }
}
