/* Fire Dispatch — shared landing styles */

:root {
  --control-dark: #1a1f2e;
  --panel-slate: #2b3344;
  --panel-slate-light: #343f52;
  --dispatch-red: #d22b2b;
  --dispatch-red-glow: rgba(210, 43, 43, 0.45);
  --alert-orange: #ff6b00;
  --engine-gold: #ffb800;
  --radio-blue: #4cc9f0;
  --radio-blue-dim: rgba(76, 201, 240, 0.15);
  --success-green: #34c759;
  --text-primary: #fdfdfd;
  --text-secondary: #8e99a8;
  --glass: rgba(43, 51, 68, 0.72);
  --glass-border: rgba(253, 253, 253, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --font-ui: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--control-dark);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--dispatch-red-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(76, 201, 240, 0.08), transparent),
    linear-gradient(160deg, var(--control-dark) 0%, #121722 50%, var(--control-dark) 100%);
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 201, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 240, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  animation: scan 8s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(48px); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 12px var(--dispatch-red-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--radio-blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(26, 31, 46, 0.6);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  border-color: rgba(76, 201, 240, 0.35);
}

.nav-links a.active {
  color: var(--engine-gold);
  border-color: rgba(255, 184, 0, 0.4);
  background: rgba(255, 184, 0, 0.08);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.12);
}

.hero {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 340px;
  display: grid;
  align-items: end;
  margin-bottom: 48px;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 31, 46, 0.92) 0%, rgba(26, 31, 46, 0.55) 45%, rgba(26, 31, 46, 0.25) 100%),
    linear-gradient(0deg, rgba(26, 31, 46, 0.95) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 36px;
  width: 100%;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 10px var(--success-green);
  animation: pulse-led 2s ease-in-out infinite;
}

.led.red {
  background: var(--dispatch-red);
  box-shadow: 0 0 10px var(--dispatch-red);
}

.led.gold {
  background: var(--engine-gold);
  box-shadow: 0 0 10px var(--engine-gold);
}

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

.status-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--engine-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero-accent {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: 0.05em;
  user-select: none;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

.card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.card.red::before { background: linear-gradient(180deg, var(--dispatch-red), var(--alert-orange)); }
.card.blue::before { background: linear-gradient(180deg, var(--radio-blue), #2980b9); }
.card.gold::before { background: linear-gradient(180deg, var(--engine-gold), var(--alert-orange)); }
.card.green::before { background: linear-gradient(180deg, var(--success-green), #2ecc71); }

.card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h2 .icon { font-size: 1rem; opacity: 0.8; }

.card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--engine-gold);
  margin: 20px 0 8px;
}

.card p, .card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card ul, .card ol {
  padding-left: 1.25rem;
  margin-top: 10px;
}

.card li { margin-bottom: 8px; }

.card li strong, .card p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.meta-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--radio-blue);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  opacity: 0.85;
}

.sidebar-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
  position: relative;
  aspect-ratio: 4/3;
}

.sidebar-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sidebar-visual:hover img { transform: scale(1.04); }

.sidebar-visual .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(26, 31, 46, 0.95), transparent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.radio-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.radio-waves {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin-bottom: 12px;
}

.radio-waves span {
  display: block;
  width: 3px;
  height: 12px;
  background: var(--radio-blue);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.radio-waves span:nth-child(2) { animation-delay: 0.15s; height: 20px; }
.radio-waves span:nth-child(3) { animation-delay: 0.3s; height: 32px; }
.radio-waves span:nth-child(4) { animation-delay: 0.45s; height: 20px; }
.radio-waves span:nth-child(5) { animation-delay: 0.6s; height: 12px; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.radio-panel p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 18px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.98rem;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}

.faq-q::before {
  content: "▸";
  color: var(--engine-gold);
  flex-shrink: 0;
}

.faq-a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding-left: 22px;
}

.contact-box {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(26, 31, 46, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.contact-row:hover {
  border-color: rgba(76, 201, 240, 0.35);
  background: rgba(76, 201, 240, 0.06);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-icon.mail { background: rgba(210, 43, 43, 0.2); }
.contact-icon.info { background: rgba(76, 201, 240, 0.15); }

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.contact-value {
  font-size: 0.95rem;
  color: var(--radio-blue);
  font-weight: 500;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 0;
}

@media (max-width: 600px) {
  .image-strip { grid-template-columns: 1fr; }
}

.strip-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 16/10;
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
  transition: filter 0.3s;
}

.strip-item:hover img {
  filter: saturate(1.1) brightness(1.05);
}

.site-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--engine-gold); }

.disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(210, 43, 43, 0.08);
  border: 1px solid rgba(210, 43, 43, 0.25);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.disclaimer strong { color: var(--alert-orange); }

.hub-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

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

.hub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 201, 240, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hub-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.hub-card-body {
  padding: 22px 24px;
  position: relative;
}

.hub-card-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.hub-card.privacy .hub-card-body::before {
  background: linear-gradient(180deg, var(--dispatch-red), var(--alert-orange));
}

.hub-card.support .hub-card-body::before {
  background: linear-gradient(180deg, var(--radio-blue), var(--engine-gold));
}

.hub-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--radio-blue);
  margin-bottom: 6px;
}

.hub-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.hub-card-arrow {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--engine-gold);
}

.hero-index {
  min-height: 380px;
}

.hero-index .hero-bg {
  object-position: center 40%;
}

.card a {
  color: var(--radio-blue);
}

.card a.gold-link {
  color: var(--engine-gold);
}
