/* ============================================================
   PulsePro — design system
   Dark premium wellness-tech. Cool cyan→violet "resonance" accent.
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #070A12;
  --bg-1:      #0A0E1A;
  --bg-2:      #0E1424;
  --bg-3:      #131B30;
  --panel:     rgba(255,255,255,0.025);
  --panel-2:   rgba(255,255,255,0.045);
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.14);

  /* ink */
  --text:      #EAEFFB;
  --muted:     #9AA6C4;
  --faint:     #6B7794;

  /* accent */
  --cyan:      #22D3EE;
  --teal:      #2DD4BF;
  --violet:    #8B7CFF;
  --blue:      #3B82F6;
  --accent:    #35D6E6;
  --grad:      linear-gradient(118deg, #22D3EE 0%, #5CC4F2 42%, #8B7CFF 100%);
  --grad-soft: linear-gradient(118deg, rgba(34,211,238,.18), rgba(139,124,255,.18));

  --ok:        #34D399;
  --warn:      #FBBF24;

  /* type */
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;

  /* geometry */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 10vw, 136px);

  --shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  --glow:   0 0 0 1px rgba(53,214,230,.35), 0 18px 48px -14px rgba(53,214,230,.35);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(53,214,230,.3); color: #fff; }

/* ---------- ambient background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 2%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(55% 55% at 92% 8%, rgba(139,124,255,.16), transparent 62%),
    radial-gradient(70% 60% at 50% 110%, rgba(59,130,246,.10), transparent 60%);
}
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 40%, transparent 85%);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content:""; width: 22px; height: 1px; background: var(--cyan); opacity:.7; }
h1,h2,h3 { line-height: 1.07; letter-spacing: -.02em; font-weight: 600; }
h2.title { font-size: clamp(30px, 4.6vw, 52px); margin-top: 16px; max-width: 18ch; }
.lede { color: var(--muted); font-size: clamp(16px,1.6vw,19px); max-width: 60ch; margin-top: 18px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.center { text-align: center; }
.center .title, .center .lede { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 10px 30px -10px rgba(53,214,230,.6); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(53,214,230,.8); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--panel-2); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
header.nav.scrolled { border-bottom-color: var(--line); background: rgba(7,10,18,.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
/* mobile sheet */
.mobile-menu {
  position: fixed; inset: 68px 0 auto 0; z-index: 49;
  background: rgba(10,14,26,.98); border-bottom: 1px solid var(--line);
  padding: 18px var(--gutter) 28px; display: none; flex-direction: column; gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 4px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 17px; }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 86px); padding-bottom: var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); font-weight: 700; }
.hero .lede { font-size: clamp(17px,1.7vw,20px); }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; }
.hero-trust b { color: var(--text); font-weight: 600; }
.hero-trust .ci { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

.badge-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-size: 13px; color: var(--muted); margin-bottom: 26px;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* hero device visual */
.hero-visual { position: relative; }
.device-stage {
  position: relative; aspect-ratio: 1/1; display: grid; place-items: center;
}
.device-stage .rings { position: absolute; inset: 0; }
.device-stage svg { width: 100%; height: 100%; }
.floatcard {
  position: absolute; background: rgba(14,20,36,.82); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 12px 14px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow); font-size: 13px;
}
.floatcard .mono { font-family: var(--mono); color: var(--cyan); font-size: 11.5px; letter-spacing:.04em; }
.floatcard .big { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.fc-1 { top: 6%; left: -2%; }
.fc-2 { bottom: 10%; right: -3%; }
.fc-3 { bottom: 34%; left: -6%; }
@media (max-width: 500px){ .fc-1{left:0} .fc-2{right:0} .fc-3{display:none} }

/* ---------- cards / grids ---------- */
.cards { display: grid; gap: 20px; }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c2 { grid-template-columns: repeat(2, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px){ .c3,.c4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .c2,.c3,.c4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  transition: border-color .2s, transform .2s, background .2s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: 18px; color: var(--cyan);
}
.card h3 { font-size: 19.5px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 15px; }
.card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* step / how-it-works */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: s; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; background: var(--panel); position: relative; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: .1em; }
.step h3 { font-size: 20px; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* feature split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,72px); align-items: center; }
.split.rev .split-media { order: 2; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }
.feat-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.feat-list .chk {
  flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan); margin-top: 2px;
}
.feat-list b { color: var(--text); font-weight: 600; }

/* mock surfaces (device/app/cloud) */
.mock {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background:
    radial-gradient(120% 120% at 20% -10%, rgba(34,211,238,.12), transparent 50%),
    linear-gradient(180deg, var(--bg-3), var(--bg-1));
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.mock-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-head .d { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-head .t { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.mock-body { padding: 20px; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat { background: var(--bg-1); padding: 28px 22px; text-align: center; }
.stat .v { font-size: clamp(28px,3.4vw,40px); font-weight: 700; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* data viz bars */
.viz { display: flex; align-items: flex-end; gap: 7px; height: 120px; }
.viz .bar { flex: 1; border-radius: 5px 5px 0 0; background: var(--grad); opacity: .85; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 2px 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { color: var(--cyan); font-size: 22px; transition: transform .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 0 20px; font-size: 15.5px; }

/* cta band */
.ctaband {
  border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(36px,6vw,64px);
  text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(90% 140% at 50% -20%, rgba(139,124,255,.18), transparent 55%),
    radial-gradient(80% 120% at 50% 120%, rgba(34,211,238,.16), transparent 55%),
    var(--bg-1);
}
.ctaband h2 { font-size: clamp(28px,4vw,46px); }
.ctaband .lede { margin: 16px auto 28px; }

/* store buttons */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--panel); transition: border-color .2s, background .2s;
}
.store:hover { border-color: var(--cyan); background: var(--panel-2); }
.store .s1 { font-size: 11px; color: var(--muted); line-height: 1; }
.store .s2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

/* pill tags */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); }

/* disclaimer / note */
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r);
  background: rgba(251,191,36,.05); padding: 18px 22px; color: var(--muted); font-size: 14.5px;
}
.note b { color: var(--text); }

/* article */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(24px,3vw,34px); margin: 40px 0 14px; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { color: var(--muted); margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--cyan); }

/* footer */
footer.ft { border-top: 1px solid var(--line); padding-block: 56px 36px; margin-top: var(--section); }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px){ .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .ft-grid { grid-template-columns: 1fr; } }
.ft h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 16px; font-weight: 600; }
.ft a { display: block; color: var(--muted); font-size: 15px; padding: 5px 0; }
.ft a:hover { color: var(--text); }
.ft .brand { margin-bottom: 14px; }
.ft .desc { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.ft-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* section intro helper */
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; } html{scroll-behavior:auto;} }

/* page hero (subpages) */
.phero { padding-top: clamp(56px,7vw,90px); padding-bottom: clamp(32px,5vw,56px); }
.phero h1 { font-size: clamp(34px,5vw,58px); font-weight: 700; max-width: 16ch; }
.phero .lede { font-size: clamp(17px,1.7vw,20px); }

/* little waveform */
.wave { display:flex; align-items:center; gap:3px; height:28px; }
.wave span{ width:3px; border-radius:2px; background:var(--grad); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{height:20%} 50%{height:100%} }
