:root {
  --bg: #131318;
  --bg-soft: #1A1B21;
  --panel: #1A1B21;
  --panel-2: #22232A;
  --border: #3C4043;
  --border-soft: #2A2B32;
  --ink: #E8EAED;
  --body: #BDC1C6;
  --muted: #9AA0A6;
  --blue: #4285F4;
  --blue-deep: #1A73E8;
  --blue-link: #8AB4F8;
  --blue-link-2: #AECBFA;
  --red: #EA4335;
  --red-soft: #F28B82;
  --yellow: #FBBC04;
  --yellow-soft: #FDD663;
  --green: #34A853;
  --green-soft: #81C995;
  --code-bg: #202124;
  --code-ink: #E8EAED;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-link); text-decoration: none; }
a:hover { color: var(--blue-link-2); }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.18; }
code, pre { font-family: "Cascadia Code", "SF Mono", Consolas, monospace; }
code { background: var(--panel-2); border: 1px solid var(--border-soft); padding: 2px 7px; border-radius: 6px; font-size: 13.5px; color: var(--yellow-soft); }
pre { background: var(--code-bg); border: 1px solid var(--border-soft); border-radius: 14px; padding: 20px 22px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
pre code { background: none; border: 0; padding: 0; color: var(--code-ink); }

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

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: rgba(19, 19, 24, 0.86); border-bottom: 1px solid var(--border-soft); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.nav .brand { display: flex; align-items: center; margin-right: auto; }
.nav .brand img { height: 32px; display: block; }
.nav a.link { color: var(--body); font-size: 14.5px; font-weight: 500; padding: 6px 2px;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a.link:hover { color: var(--ink); border-bottom-color: var(--yellow); }
@media (max-width: 760px) { .nav a.link { display: none; } }
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 600;
  font-size: 14.5px; border: 1px solid var(--border); color: var(--ink); background: transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: var(--muted); color: var(--ink); }
.btn.primary { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn.primary:hover { background: var(--blue); box-shadow: 0 6px 22px rgba(66, 133, 244, 0.35); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 54px; margin: 0 0 18px; }
.hero p.lead { font-size: 19.5px; color: var(--muted); margin: 0 0 30px; max-width: 33em; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } .hero h1 { font-size: 40px; } }

/* the word "live": Google 4-color shimmer */
.live-word {
  background: linear-gradient(90deg, #8AB4F8, #F28B82, #FDD663, #81C995, #8AB4F8);
  background-size: 320% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 320% 0; } }

/* status chip with pulsing dot */
.status-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); border: 1px solid var(--border-soft); background: var(--panel);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-soft); position: relative; }
.status-chip .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(129, 201, 149, 0.5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 80%, 100% { transform: scale(1.4); opacity: 0; } }

/* device frames: floating phone with a screenshot inside */
.device-wrap { display: flex; justify-content: center; position: relative; }
.phone { position: relative; width: 236px; border-radius: 30px; padding: 10px;
  background: #26272E; border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  animation: floaty 6.5s ease-in-out infinite; }
/* Fixed device proportions: tall screenshots crop from the top instead of
   stretching the section. */
.phone img { display: block; width: 100%; height: 452px; object-fit: cover;
  object-position: top; border-radius: 21px; }
.phone .notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 16px; background: #26272E; border-radius: 0 0 12px 12px; }
.phone .badge { position: absolute; left: 50%; transform: translateX(-50%); bottom: -16px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px;
  font-size: 12.5px; font-weight: 600; color: var(--body); white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.phone.still { animation: none; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* streaming arcs behind the phone */
.arcs { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); z-index: -1; }
.arcs path { stroke-linecap: round; fill: none; opacity: 0; animation: arc 3.4s ease-out infinite; }
.arcs path:nth-child(2) { animation-delay: .45s; }
.arcs path:nth-child(3) { animation-delay: .9s; }
@keyframes arc { 0% { opacity: 0; } 18% { opacity: .9; } 60% { opacity: .25; } 100% { opacity: 0; } }
@media (max-width: 920px) { .arcs { display: none; } }

/* ---------- sections ---------- */
section.block { padding: 64px 0; border-top: 1px solid var(--border-soft); }
section.block h2 { font-size: 34px; margin: 0 0 10px; }
section.block p.sub { color: var(--muted); margin: 0 0 38px; max-width: 46em; font-size: 17px; }
.kicker { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; }
.kicker.blue { color: var(--blue-link); } .kicker.red { color: var(--red-soft); }
.kicker.yellow { color: var(--yellow-soft); } .kicker.green { color: var(--green-soft); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 920px) { .grid3, .grid4, .grid2 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); border-color: var(--border); }
.card h3 { font-size: 17.5px; margin: 0 0 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.card .top { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 800; margin-bottom: 14px; color: #fff; }
.top.c-blue { background: var(--blue); } .top.c-red { background: var(--red); }
.top.c-yellow { background: var(--yellow); color: #202124; } .top.c-green { background: var(--green); }

/* outcome stats strip - real measured numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 920px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border-radius: 16px; padding: 22px; background: var(--panel); border: 1px solid var(--border-soft); }
.stat .n { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.stat:nth-child(1) .n { color: var(--blue-link); } .stat:nth-child(2) .n { color: var(--green-soft); }
.stat:nth-child(3) .n { color: var(--yellow-soft); } .stat:nth-child(4) .n { color: var(--red-soft); }
.stat .l { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* use-case rows */
.usecase { display: flex; gap: 16px; align-items: flex-start; padding: 18px 6px; border-bottom: 1px solid var(--border-soft); }
.usecase:last-child { border-bottom: 0; }
.usecase .who { flex: 0 0 220px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.usecase .what { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .usecase { flex-direction: column; gap: 4px; } }

/* who section: cards + the real-frame phone side by side */
.who-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 44px; align-items: center; }
@media (max-width: 920px) { .who-grid { grid-template-columns: 1fr; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .live-word, .status-chip .dot::after, .arcs path { animation: none !important; }
}

/* footer */
footer { border-top: 1px solid var(--border-soft); padding: 38px 0 52px; color: var(--muted); font-size: 14px; background: #0E0F13; }
footer .cols { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
footer img { height: 24px; }
footer .right { margin-left: auto; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 44px 0 96px; }
@media (max-width: 920px) { .docs { grid-template-columns: 1fr; } }
.docs nav.side { position: sticky; top: 90px; align-self: start; font-size: 14.5px; }
.docs nav.side .group { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.docs nav.side a { display: block; padding: 7px 12px; border-radius: 999px; color: var(--body); }
.docs nav.side a:hover { background: var(--panel-2); color: var(--ink); }
.docs nav.side a.active { background: rgba(138, 180, 248, 0.16); color: var(--blue-link-2); font-weight: 600; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc p.lead { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.doc h2 { font-size: 23px; margin: 40px 0 12px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.doc h3 { font-size: 17px; margin: 26px 0 8px; color: var(--blue-link); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0 24px;
  border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; background: var(--panel); }
.doc th { text-align: left; padding: 11px 14px; background: var(--panel-2); color: var(--ink); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.05em; }
.doc td { padding: 11px 14px; border-top: 1px solid var(--border-soft); vertical-align: top; }
.doc .note { border-left: 4px solid var(--green); background: rgba(52, 168, 83, 0.12); border-radius: 0 12px 12px 0;
  padding: 13px 17px; margin: 16px 0; font-size: 14.5px; color: var(--green-soft); }
.doc .warn { border-left-color: var(--yellow); background: rgba(251, 188, 4, 0.10); color: var(--yellow-soft); }
