/* PulseMyLife — Coming Soon
   Palette: navy #0B1220, electric blue #00B1FF, metallic silver #A7B1BD */

:root {
  --navy: #0B1220;
  --navy-deep: #070c15;
  --panel: #101a2c;
  --panel-border: rgba(167, 177, 189, 0.14);
  --blue: #00B1FF;
  --blue-soft: rgba(0, 177, 255, 0.35);
  --silver: #A7B1BD;
  --text: #E7ECF2;
  --text-dim: #B7C0CC;
  --radius: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--blue);
  color: #06131f;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

a { color: var(--blue); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: 720px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,177,255,0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 40%, var(--navy));
}

.pulse-field {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--blue-soft);
  opacity: 0;
  animation: pulse-out 3.6s ease-out infinite;
}
.ring-1 { width: 260px; height: 260px; animation-delay: 0s; }
.ring-2 { width: 260px; height: 260px; animation-delay: 1.2s; }
.ring-3 { width: 260px; height: 260px; animation-delay: 2.4s; }

@keyframes pulse-out {
  0%   { width: 220px; height: 220px; opacity: 0.55; }
  100% { width: 720px; height: 720px; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}

.hero-logo {
  width: min(320px, 60vw);
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 34px rgba(0,177,255,0.25));
}

.tagline {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--silver);
  margin: 8px 0 4px;
  letter-spacing: 0.01em;
}
.tagline span {
  color: var(--blue);
}

.hero-sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  max-width: 480px;
  margin: 12px 0 28px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(16, 26, 44, 0.7);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 600;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(0,177,255,0.6);
  animation: dot-pulse 1.8s ease-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,177,255,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(0,177,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,177,255,0); }
}

.ecg-line {
  width: min(420px, 70vw);
  height: 48px;
  margin-top: 36px;
  color: var(--blue);
  opacity: 0.85;
}
.ecg-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: ecg-draw 3.2s ease-in-out infinite;
}

@keyframes ecg-draw {
  0%   { stroke-dashoffset: 900; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -900; }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 40px;
  border: 1.5px solid var(--panel-border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section.alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 15%, transparent 85%);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 20px;
  text-align: center;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-dim);
  text-align: center;
  margin: 0 auto;
}

/* ---------- Capability grid ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.capability-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.capability-card:hover {
  border-color: var(--blue-soft);
  transform: translateY(-3px);
}

.capability-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: var(--blue);
}
.capability-icon svg { width: 100%; height: 100%; }

.capability-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text);
}
.capability-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- Journey links ---------- */
.journey-links {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.journey-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 14px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.journey-links a:hover {
  border-color: var(--blue-soft);
  color: var(--blue);
  transform: translateY(-2px);
}

.journey-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--blue);
}
.journey-icon svg { width: 100%; height: 100%; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--panel-border);
  text-align: center;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-mark {
  border-radius: 6px;
  opacity: 0.85;
}
.footer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 72px 0;
  }
  .hero {
    padding-top: 72px;
  }
}

/* ---------- Scroll reveal (progressive enhancement, JS-driven) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .pulse-ring,
  .status-dot,
  .ecg-path,
  .scroll-cue span {
    animation: none !important;
  }
  .ecg-path {
    stroke-dashoffset: 0;
  }
}
