/* GroupVideo — shared styles.
   Palette lifted from the app's own theme (ui/theme/Color.kt) so the site and the
   product read as one thing. */

:root {
  --canvas: #0f0f23;
  --well: #121826;
  --surface: #1a1f2e;
  --border: #2c3348;
  --ink: #e6e1e5;
  --muted: #9aa3b5;
  --accent: #a78bfa;
  --accent-deep: #6d4aff;
  --accent-soft: #9b7cff;
  --cyan: #22d3ee;
  --green: #4ade80;
  --danger: #ef9a9a;
  --radius: 18px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow behind everything — cheap, GPU-friendly, and gives the dark
   canvas some depth without a background image. */
body::before {
  content: "";
  position: fixed;
  inset: -30% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(50% 60% at 20% 20%, rgba(109, 74, 255, .22), transparent 70%),
    radial-gradient(45% 55% at 80% 10%, rgba(34, 211, 238, .12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15, 15, 35, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
header.scrolled { border-bottom-color: var(--border); background: rgba(15, 15, 35, .92); }
.nav { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); font-size: 26px; cursor: pointer; padding: 4px 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-soft));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(109, 74, 255, .8);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(109, 74, 255, .95); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  padding: 110px 0 90px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Dot mesh, masked to fade out at the edges so it never fights the text.
   A mesh rather than a line grid — it reads as "devices in a space". */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(167, 139, 250, .18) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(72% 60% at 62% 38%, #000 25%, transparent 95%);
  mask-image: radial-gradient(72% 60% at 62% 38%, #000 25%, transparent 95%);
}

/* Colour wash + a soft floor so the section reads as its own band and the
   page below it fades in rather than cutting. */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(70% 90% at 72% 28%, rgba(109, 74, 255, .30), transparent 68%),
    radial-gradient(55% 70% at 12% 70%, rgba(34, 211, 238, .10), transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(15, 15, 35, .75) 78%, var(--canvas) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .03);
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: ping 2.4s infinite; }
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.06; letter-spacing: -.03em;
  margin: 20px 0 18px; font-weight: 800;
}
.grad {
  background: linear-gradient(115deg, var(--accent-soft), var(--cyan) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shift 7s linear infinite;
}
@keyframes shift { to { background-position: 200% center; } }
.lede { font-size: 18px; color: var(--muted); max-width: 54ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- phone mock ---------- */
.phones { position: relative; height: 460px; display: grid; place-items: center; }
.phone {
  position: absolute; width: 178px; height: 366px; border-radius: 28px;
  background: linear-gradient(160deg, #1b2136, #10141f);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .9);
  display: grid; place-items: center; overflow: hidden;
}
.phone::after {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 5px; border-radius: 99px; background: #2c3348;
}
.phone .screen {
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(109, 74, 255, .35), transparent 60%),
    linear-gradient(180deg, #141a2b, #0d1018);
  display: grid; place-items: center; align-content: center; gap: 16px;
}
.phone .tag {
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px;
  color: var(--muted); background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
}
.phone .tag-host {
  color: #0f0f23; background: var(--accent); border-color: transparent;
}
.phone .play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(167, 139, 250, .16); border: 1.5px solid var(--accent);
  display: grid; place-items: center; color: var(--accent); font-size: 21px;
}
.phone-main { z-index: 3; animation: float 6s ease-in-out infinite; }
.phone-l { transform: translateX(-124px) rotate(-11deg) scale(.9); opacity: .82; z-index: 2; animation: float 6s ease-in-out infinite .5s; }
.phone-r { transform: translateX(124px) rotate(11deg) scale(.9); opacity: .82; z-index: 2; animation: float 6s ease-in-out infinite 1s; }
@keyframes float { 50% { translate: 0 -14px; } }

.wave {
  position: absolute;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, .55);
  box-shadow: 0 0 30px -6px rgba(109, 74, 255, .45);
  animation: wave 5s ease-out infinite;
  pointer-events: none;
}
.wave:nth-of-type(2) { animation-delay: 1.65s; }
.wave:nth-of-type(3) { animation-delay: 3.3s; }
@keyframes wave {
  0%   { transform: scale(.42); opacity: .85; }
  60%  { opacity: .22; }
  100% { transform: scale(3); opacity: 0; }
}

.sync-ring {
  position: absolute; width: 330px; height: 330px; border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, .32); animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
section { padding: 76px 0; position: relative; z-index: 1; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 12px 0 14px; font-weight: 800; }
.section-lede { color: var(--muted); max-width: 62ch; margin: 0 0 44px; font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--well));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: rgba(167, 139, 250, .55); }
.card h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(167, 139, 250, .13); border: 1px solid rgba(167, 139, 250, .28);
  font-size: 21px;
}

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--well); border: 1px solid var(--border); }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -16px; left: 24px;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-soft));
  color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 8px 20px -8px rgba(109, 74, 255, .9);
}
.step h3 { margin: 12px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- use cases ---------- */
.uses { display: flex; flex-wrap: wrap; gap: 12px; }
.use {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 14px;
  background: var(--well); border: 1px solid var(--border); font-size: 15px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.use:hover { border-color: var(--accent); transform: translateY(-3px); }
.use span:first-child { font-size: 20px; }

/* ---------- callout / cta ---------- */
.callout {
  border-radius: 26px; padding: 52px 40px; text-align: center;
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(109, 74, 255, .3), transparent 62%),
    linear-gradient(180deg, var(--surface), var(--well));
  border: 1px solid var(--border);
}
.callout h2 { margin-top: 0; }
.callout p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }

/* ---------- faq ---------- */
details {
  border: 1px solid var(--border); border-radius: 14px; background: var(--well);
  padding: 18px 22px; margin-bottom: 12px;
}
details[open] { border-color: rgba(167, 139, 250, .5); }
summary { cursor: pointer; font-weight: 650; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* ---------- content pages ---------- */
.page { padding: 60px 0 20px; }
.page h1 { font-size: clamp(30px, 4.6vw, 44px); margin-bottom: 10px; }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.prose { max-width: 74ch; }
.prose h2 { font-size: 22px; margin: 38px 0 12px; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.note {
  border-left: 3px solid var(--accent); background: rgba(167, 139, 250, .07);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 24px 0;
}
.note p { margin: 0; color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--ink); font-weight: 700; }
td { color: var(--muted); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 46px 0 34px; margin-top: 40px; }
.foot { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 30ch; }
.foot-brand p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }
.foot-links { margin-left: auto; display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.copy { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .phones { height: 380px; order: -1; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--canvas); border-bottom: 1px solid var(--border);
    padding: 8px 20px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  .foot-links { margin-left: 0; gap: 40px; }
}

/* Respect a reduced-motion preference: keep the layout, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .wave { display: none; }
  html { scroll-behavior: auto; }
}
