/* =========================================================================
   Sway, marketing site. Logo-derived neon/cyber brand on a near-black base.
   ========================================================================= */
:root {
  --brand-blue: #0054B6; --brand-blue-bright: #008CE0; --brand-teal: #008C70;
  --brand-green: #1CA854; --brand-green-bright: #38B638;
  --neon-blue: #22B0FF; --neon-green: #2BE06A; --neon-cyan: #2BE0D0;
  --healthy: #2BE06A; --alert: #FF2D4B; --sos: #FF0040; --due: #FFB02E;
  --bg0: #05070E; --bg1: #0A0E1A; --surface: #0E1422;
  --text-hi: #F2F6FF; --text-mid: #AFBCD4; --text-lo: #6C7A95;
  --glass: rgba(255,255,255,0.05); --glass-strong: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12); --radius: 22px;
  --maxw: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg0); color: var(--text-hi);
  font-family: 'Inter', system-ui, sans-serif; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1,h2,h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
b { color: var(--text-hi); font-weight: 600; }

/* ---- atmosphere ---- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; }
.bg-glow--a { width: 620px; height: 620px; top: -240px; left: -160px;
  background: radial-gradient(circle, rgba(34,176,255,.32), transparent 62%); }
.bg-glow--b { width: 680px; height: 680px; top: 420px; right: -240px;
  background: radial-gradient(circle, rgba(43,224,106,.22), transparent 62%); }
.bg-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%); }

.grad { background: linear-gradient(100deg, var(--brand-blue-bright), var(--brand-teal), var(--brand-green-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; max-width: var(--maxw); margin: 0 auto;
  padding: 16px 22px; backdrop-filter: blur(12px); }
.nav::after { content:''; position:absolute; inset:0; z-index:-1; background: rgba(5,7,14,.55);
  border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.25rem; }
.brand img { border-radius: 9px; box-shadow: 0 0 16px rgba(34,176,255,.4); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .94rem; color: var(--text-mid); font-weight: 500; }
.nav-links a:hover { color: var(--text-hi); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text-hi); font-size: 1.5rem; cursor: pointer; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px;
  font-weight: 600; font-size: .96rem; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(100deg, var(--neon-blue), var(--brand-teal));
  color: #00121f; box-shadow: 0 12px 34px rgba(34,176,255,.34); }
.btn--primary:hover { box-shadow: 0 16px 44px rgba(34,176,255,.5); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: var(--text-hi); background: var(--glass); }
.btn--ghost:hover { border-color: var(--neon-blue); }

/* ---- hero ---- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,7vw,90px) 22px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 40px;
  background: var(--glass); border: 1px solid var(--border); font-size: .82rem; color: var(--text-mid); margin-bottom: 22px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-green);
  box-shadow: 0 0 0 0 rgba(43,224,106,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(43,224,106,.6)} 70%{box-shadow:0 0 0 9px rgba(43,224,106,0)} 100%{box-shadow:0 0 0 0 rgba(43,224,106,0)} }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); font-weight: 700; }
.lede { color: var(--text-mid); font-size: 1.15rem; max-width: 30em; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; color: var(--text-lo); font-size: .86rem; }

/* phone mockup */
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art-glow { position: absolute; inset: 10% 18%; background: radial-gradient(circle, rgba(34,176,255,.3), transparent 65%); filter: blur(50px); z-index: -1; }
.phone { width: min(300px, 78vw); aspect-ratio: 300/620; background: linear-gradient(160deg,#141c2e,#0a0e1a);
  border: 1px solid var(--border); border-radius: 42px; padding: 14px; position: relative;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset; }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: #05070e; border-radius: 0 0 16px 16px; }
.phone-screen { background: linear-gradient(180deg,#0b1120,#070b14); height: 100%; border-radius: 30px; padding: 38px 16px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.ps-top { display: flex; align-items: center; justify-content: space-between; }
.ps-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--healthy);
  border: 1px solid rgba(43,224,106,.5); border-radius: 30px; padding: 4px 10px; }
.ps-route { font-family: 'Space Grotesk'; font-weight: 600; font-size: .9rem; }
.ps-map { height: 150px; border-radius: 16px; background: radial-gradient(circle at 70% 20%, #102a44, #0a1322); border: 1px solid var(--border); overflow: hidden; }
.ps-map svg { width: 100%; height: 100%; }
.trail-glow { fill: none; stroke: var(--neon-blue); stroke-width: 9; opacity: .22; stroke-linecap: round; }
.trail { fill: none; stroke: var(--neon-blue); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw 2.6s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dot { fill: var(--neon-blue); stroke: #fff; stroke-width: 1.5; }
.dot--live { fill: var(--neon-green); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 0%,100%{ r: 6; opacity:1 } 50%{ r: 8.5; opacity:.7 } }
.ps-ring { display: flex; align-items: center; gap: 14px; }
.ps-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--healthy); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 80; }
.ps-ring-label b { font-family: 'Space Grotesk'; font-size: 1.4rem; color: var(--healthy); display: block; }
.ps-ring-label small { color: var(--text-lo); font-size: .76rem; }
.ps-btn { margin-top: auto; text-align: center; font-weight: 800; color: #02160c; padding: 13px;
  border-radius: 16px; background: radial-gradient(circle, #2be06a, #1ca854); box-shadow: 0 0 30px rgba(43,224,106,.45); }
.heart { animation: beat 1.4s infinite; display: inline-block; }
@keyframes beat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }

/* ---- bands & sections ---- */
.band { max-width: 820px; margin: 0 auto; padding: 40px 22px; text-align: center; }
.band h2 { font-size: clamp(1.7rem,3.6vw,2.5rem); }
.center { text-align: center; }
.sub { color: var(--text-mid); font-size: 1.08rem; max-width: 40em; margin: 16px auto 0; }
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px,7vw,84px) 22px; }
.section-head { text-align: center; margin-bottom: 44px; }
.kicker { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700; color: var(--neon-blue); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem,4vw,2.8rem); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.step { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.step-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: 'Space Grotesk';
  font-weight: 700; color: #00121f; background: linear-gradient(120deg,var(--neon-blue),var(--brand-teal)); margin-bottom: 16px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-mid); font-size: .96rem; margin: 0; }

/* escalation levels */
.levels { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.level { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden; }
.level::before { content:''; position:absolute; inset:0 0 auto 0; height:3px; }
.level--green::before { background: var(--healthy); } .level--red::before { background: var(--alert); } .level--sos::before { background: var(--sos); }
.level-top { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 700; color: var(--text-mid); margin-bottom: 16px; }
.level-dot { width: 10px; height: 10px; border-radius: 50%; }
.level--green .level-dot { background: var(--healthy); box-shadow: 0 0 12px var(--healthy); }
.level--red .level-dot { background: var(--alert); box-shadow: 0 0 12px var(--alert); }
.level--sos .level-dot { background: var(--sos); box-shadow: 0 0 14px var(--sos); animation: pulse 1.2s infinite; }
.level h3 { font-size: 1.45rem; margin-bottom: 10px; }
.level p { color: var(--text-mid); margin: 0; }
.level--sos { box-shadow: 0 0 50px rgba(255,0,64,.12); }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy h2 { font-size: clamp(1.8rem,3.6vw,2.5rem); margin-bottom: 16px; }
.split-copy > p { color: var(--text-mid); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-mid); }
.ticks li::before { content:'✓'; position: absolute; left: 0; top: 0; color: var(--neon-green); font-weight: 800; }
.split-art { display: grid; gap: 14px; }
.mini-card { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.mini-card b { font-weight: 500; color: var(--text-mid); }
.mini-chip { font-weight: 700; font-size: .9rem; }
.mini--green { border-left: 3px solid var(--healthy); } .mini--red { border-left: 3px solid var(--alert); } .mini--sos { border-left: 3px solid var(--sos); box-shadow: 0 0 30px rgba(255,0,64,.12); }

/* operators art */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 18px; text-align: center; }
.stat b { font-family: 'Space Grotesk'; font-size: 1.9rem; display: block; }
.stat span { color: var(--text-lo); font-size: .82rem; }
.stat--alert { border-color: rgba(255,45,75,.5); } .stat--alert b { color: var(--alert); }
.oversight { display: grid; gap: 8px; }
.ov-row { display: flex; justify-content: space-between; background: var(--glass); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; font-size: .92rem; }
.ov--sos { border-color: rgba(255,0,64,.5); color: var(--sos); }
.ov--alert { border-color: rgba(255,45,75,.45); color: var(--alert); }

/* privacy grid */
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-mid); font-size: .94rem; margin: 0; }

/* demo CTA */
.cta { text-align: center; background: linear-gradient(160deg, rgba(34,176,255,.08), rgba(43,224,106,.06));
  border: 1px solid var(--border); border-radius: 32px; padding: clamp(36px,5vw,60px) 24px; }
.cta h2 { font-size: clamp(1.9rem,4vw,2.8rem); }
.demo-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 28px 0 18px; }
.demo-link { padding: 14px 22px; border-radius: 14px; font-weight: 600; border: 1px solid var(--border); background: var(--glass); transition: transform .15s ease, border-color .2s ease; }
.demo-link:hover { transform: translateY(-2px); }
.demo--green:hover { border-color: var(--healthy); } .demo--red:hover { border-color: var(--alert); }
.demo--sos:hover { border-color: var(--sos); } .demo--blue:hover { border-color: var(--neon-blue); }
.fineprint { color: var(--text-lo); font-size: .88rem; }

/* footer */
.footer { max-width: var(--maxw); margin: 40px auto 0; padding: 30px 22px 50px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 8px; }
.foot-brand b { font-family: 'Space Grotesk'; display: block; }
.foot-brand span { color: var(--text-lo); font-size: .84rem; }
.foot-links { display: flex; gap: 22px; color: var(--text-mid); font-size: .92rem; }
.foot-links a:hover { color: var(--text-hi); }
.foot-copy { color: var(--text-lo); font-size: .84rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; } .hero-cta, .hero-trust { justify-content: center; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .levels, .grid4 { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .stat-row { grid-template-columns: repeat(3,1fr); }
  .nav-links { position: absolute; top: 100%; right: 14px; flex-direction: column; align-items: stretch;
    background: #0c1120; border: 1px solid var(--border); border-radius: 16px; padding: 14px; gap: 14px;
    min-width: 200px; display: none; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) { .steps, .grid4 { grid-template-columns: 1fr; } .grid4 { gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .trail { animation: none; stroke-dashoffset: 0; } }
