/* ResQVoice — coming-soon page. Standalone brand, deliberately NOT Argos/IA
   palette (deep clinical navy + a focused emergency-red accent + warm off-white —
   reads as "trustworthy medical infrastructure," not a startup landing page). */

:root {
  --navy-950: #0a1220;
  --navy-900: #0f1b30;
  --navy-800: #16274a;
  --navy-700: #1f3564;
  --ink-100: #eef2f8;
  --ink-300: #b7c2d6;
  --ink-500: #7c8aa6;
  --red-500: #e0473e;
  --red-400: #ef6259;
  --white: #ffffff;
  --radius-lg: 20px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--navy-950);
  color: var(--ink-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Background ---------- */
.bg-field {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 700px at 18% -10%, rgba(31,53,100,.55), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(224,71,62,.14), transparent 55%),
    var(--navy-950);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 600px at 50% 20%, black, transparent 75%);
}

/* ---------- Nav ---------- */
.nav { padding: 24px 0; position: relative; z-index: 5; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--red-500), var(--navy-700)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 8px; }
.nav-links a { color: var(--ink-300); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-status { font-size: 13px; color: var(--ink-500); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-400); box-shadow: 0 0 0 4px rgba(224,71,62,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; text-align: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,71,62,.12); border: 1px solid rgba(224,71,62,.35);
  color: var(--red-400); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 28px;
  opacity: 0; animation: fadeUp .8s var(--ease) .1s forwards;
}
.badge--urgent { border-color: rgba(224,71,62,.55); box-shadow: 0 0 0 0 rgba(224,71,62,.4); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-400); animation: pulse 1.6s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -.03em; margin: 0 0 22px; color: var(--white);
}
.hero h1 .accent { color: var(--red-400); }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-300); max-width: 640px;
  margin: 0 auto 40px; line-height: 1.6;
  opacity: 0; animation: fadeUp .9s var(--ease) .9s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-cta {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .9s var(--ease) 1.05s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none; transition: all .2s var(--ease); border: 1px solid transparent;
}
.btn--lg { padding: 18px 32px; font-size: 16px; border-radius: 14px; }
.btn--primary { background: var(--red-500); color: var(--white); box-shadow: 0 10px 30px -8px rgba(224,71,62,.55); }
.btn--primary:hover { background: var(--red-400); transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(224,71,62,.65); }
.btn--ghost { background: rgba(255,255,255,.07); color: var(--ink-100); border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ---------- Hero video + kinetic headline ---------- */
.hero--video { padding: 0; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .55; }
.hero-media-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,10,20,.55) 0%, rgba(6,11,22,.72) 55%, var(--navy-950) 100%),
    radial-gradient(900px 500px at 50% 20%, rgba(31,53,100,.35), transparent 60%);
}
.hero-pulse {
  position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(70% 60% at 20% 100%, rgba(224,71,62,.35), transparent 60%),
              radial-gradient(70% 60% at 80% 100%, rgba(0,87,184,.3), transparent 60%);
  animation: lightSweep 5s ease-in-out infinite;
}
@keyframes lightSweep { 0%,100% { opacity: .35; } 50% { opacity: .8; } }
.hero-content { position: relative; z-index: 1; padding: 60px 24px; }
.kinetic-h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 22px; color: var(--white); }
.kinetic-h1 .kw {
  display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(14px) scale(1.04);
  animation: kineticIn .55s cubic-bezier(.19,1,.22,1) forwards; animation-delay: calc(var(--d) * .09s);
}
.kinetic-h1 .accent { color: var(--red-400); }
@keyframes kineticIn { to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
.hero-trustrow {
  margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  color: var(--ink-500); font-size: 13px; font-weight: 600;
  opacity: 0; animation: fadeUp .9s var(--ease) 1.2s forwards;
}
.hero-trustrow .sep { opacity: .5; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1;
  color: var(--ink-300); opacity: 0; animation: fadeUp .8s var(--ease) 1.5s forwards, bob 2.2s ease-in-out 2.3s infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .kinetic-h1 .kw { animation: none; opacity: 1; filter: none; transform: none; }
  .hero-pulse { animation: none; opacity: .5; }
  .scroll-cue { animation: fadeUp .8s var(--ease) forwards; }
  .badge-dot, .nav-status .dot { animation: none; }
}

/* ---------- Stats band ---------- */
.stats { padding: 56px 0; position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg);
  padding: 38px 30px; text-align: center;
}
.stat-card--accent { background: linear-gradient(160deg, rgba(224,71,62,.14), rgba(255,255,255,.02)); border-color: rgba(224,71,62,.3); }
.stat-number { font-size: clamp(2.9rem, 6vw, 4.1rem); font-weight: 900; letter-spacing: -.02em; color: var(--white); line-height: 1; margin-bottom: 16px; }
.stat-card--accent .stat-number { color: var(--red-400); }
.stat-label { color: var(--ink-300); font-size: 16.5px; line-height: 1.6; max-width: 320px; margin: 0 auto; }
.stat-source { max-width: 320px; margin-left: auto; margin-right: auto; }
.stat-source { margin-top: 10px; color: var(--ink-500); font-size: 11.5px; }

/* ---------- Demo ---------- */
.demo { padding: 30px 0 100px; text-align: center; }
.demo h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.section-lead { max-width: 640px; margin: 0 auto 44px; color: var(--ink-300); font-size: 16.5px; line-height: 1.7; }
.demo-card {
  max-width: 860px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, rgba(31,53,100,.4), rgba(255,255,255,.03));
  border: 1px solid rgba(224,71,62,.25); border-radius: 28px; padding: 38px 40px 32px;
  box-shadow: 0 30px 80px -30px rgba(224,71,62,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.demo-card-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 30px; }
.demo-mic {
  display: flex; align-items: center; gap: 14px; color: var(--red-400);
  background: rgba(224,71,62,.12); border: 1px solid rgba(224,71,62,.3); border-radius: 999px; padding: 10px 18px;
}
.demo-mic svg { width: 22px; height: 22px; }
.demo-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.demo-wave i { display: block; width: 3.5px; background: var(--red-400); border-radius: 2px; animation: waveBar 1.1s ease-in-out infinite; }
.demo-wave i:nth-child(1) { height: 7px; animation-delay: 0s; }
.demo-wave i:nth-child(2) { height: 17px; animation-delay: .12s; }
.demo-wave i:nth-child(3) { height: 22px; animation-delay: .24s; }
.demo-wave i:nth-child(4) { height: 12px; animation-delay: .36s; }
.demo-wave i:nth-child(5) { height: 18px; animation-delay: .48s; }
@keyframes waveBar { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.demo-live-pill {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--white);
  background: rgba(224,71,62,.18); border: 1px solid rgba(224,71,62,.5); border-radius: 999px; padding: 8px 16px;
}
.demo-feed { display: flex; flex-direction: column; align-items: center; gap: 18px; min-height: 150px; }
.demo-bubble {
  border-radius: 18px; padding: 18px 26px; max-width: 92%; min-height: 26px; text-align: center;
}
.demo-bubble--provider { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.demo-bubble--patient { background: rgba(224,71,62,.16); border: 1px solid rgba(224,71,62,.4); }
.demo-role { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 8px; }
.demo-text { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--ink-100); line-height: 1.45; }
.demo-text:empty::after { content: '\258A'; opacity: .6; animation: caretBlink 1s step-end infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.demo-disclaimer { margin: 26px 0 0; text-align: center; color: var(--ink-500); font-size: 12.5px; }

/* ---------- Pillars ---------- */
.pillars { padding: 40px 0 100px; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg);
  padding: 30px 26px; opacity: 0; animation: fadeUp .8s var(--ease) forwards; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pillar:hover { border-color: rgba(224,71,62,.35); transform: translateY(-3px); }
.pillar:nth-child(1) { animation-delay: .1s; }
.pillar:nth-child(2) { animation-delay: .18s; }
.pillar:nth-child(3) { animation-delay: .26s; }
.pillar:nth-child(4) { animation-delay: .34s; }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(224,71,62,.14);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.pillar-icon svg { width: 22px; height: 22px; stroke: var(--red-400); }
.pillar h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--white); }
.pillar p { margin: 0; font-size: 14.5px; color: var(--ink-500); line-height: 1.6; }

/* ---------- Story ---------- */
.story { padding: 30px 0 90px; }
.story-inner { max-width: 700px; margin: 0 auto 50px; text-align: center; }
.story-inner .badge { position: static; opacity: 1; animation: none; margin-bottom: 18px; }
.story h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.story-lead { margin: 0; color: var(--ink-300); font-size: 16px; line-height: 1.75; }

.service-statement {
  max-width: 780px; margin: 10px auto 0; text-align: center;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; line-height: 1.35;
  letter-spacing: -.01em; color: var(--white);
}

/* ---------- Notify ---------- */
.notify { padding: 20px 0 110px; text-align: center; }
.notify-card {
  max-width: 560px; margin: 0 auto; background: linear-gradient(155deg, rgba(31,53,100,.4), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 44px 36px;
}
.notify-card .badge { margin-bottom: 16px; }
.notify-card h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; color: var(--white); }
.notify-card p { margin: 0 0 26px; color: var(--ink-300); font-size: 14.5px; }
.notify-email {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 14px 22px;
  color: var(--white); font-weight: 700; font-size: 15.5px; text-decoration: none; transition: all .2s var(--ease);
}
.notify-email:hover { border-color: var(--red-400); background: rgba(224,71,62,.08); }
.notify-email svg { width: 18px; height: 18px; stroke: var(--red-400); flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer { padding: 30px 0 50px; text-align: center; border-top: 1px solid rgba(255,255,255,.06); }
.footer p { margin: 0; font-size: 13px; color: var(--ink-500); }
.footer-credit { margin-top: 6px !important; font-size: 11.5px !important; }
.footer-credit a { color: var(--ink-500); }
.footer-credit a:hover { color: var(--ink-300); }

/* ---------- Ambient dispatch-radio toggle ---------- */
.ambient-toggle {
  position: fixed; left: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(10,18,32,.86); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: 11px 18px 11px 15px; color: var(--ink-300);
  font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; transition: all .2s var(--ease);
}
.ambient-toggle:hover { border-color: rgba(255,255,255,.3); color: var(--white); }
.ambient-toggle.is-on { border-color: rgba(224,71,62,.5); color: var(--white); background: rgba(224,71,62,.1); }
.ambient-toggle svg { flex-shrink: 0; }
.ambient-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; width: 12px; }
.ambient-wave i { display: block; width: 2px; height: 4px; background: var(--red-400); border-radius: 1px; opacity: 0; }
.ambient-toggle.is-on .ambient-wave i { opacity: 1; animation: waveBar 1s ease-in-out infinite; }
.ambient-toggle.is-on .ambient-wave i:nth-child(1) { animation-delay: 0s; }
.ambient-toggle.is-on .ambient-wave i:nth-child(2) { height: 8px; animation-delay: .15s; }
.ambient-toggle.is-on .ambient-wave i:nth-child(3) { height: 6px; animation-delay: .3s; }

@media (max-width: 560px) {
  .ambient-toggle { left: 14px; bottom: 14px; padding: 9px 14px 9px 12px; }
  .ambient-label { display: none; }
}

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .hero--video { min-height: 100vh; }
  .demo-bubble { max-width: 96%; }
}
