/* =========================================================
   myengine.io — cinematic dark landing.
   Deep-navy scenes, glowing blue accents, serif headlines,
   scroll-driven storytelling. Self-contained (only needs
   tokens.css for font vars).
   ========================================================= */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --l-bg: #050c18;
  --l-bg-2: #081226;
  --l-ink: #eef3fb;
  --l-ink-2: #b9c6da;
  --l-muted: #7e8ca3;
  --l-line: rgba(148, 175, 215, 0.14);
  --l-line-2: rgba(148, 175, 215, 0.26);
  --l-blue: #2f81f7;
  --l-blue-hi: #5ea1ff;
  --l-glow: rgba(47, 129, 247, 0.55);
  --l-card: #0d182e;
  --l-green: #2fd383;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--l-bg);
  color: var(--l-ink);
  font-family: var(--me-sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(47, 129, 247, 0.4); }

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

/* scroll-reveal primitives */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.kicker {
  display: inline-block;
  font-family: var(--me-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--l-blue-hi);
  margin-bottom: 18px;
}
.h2 {
  font-family: var(--me-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.h2 em { font-style: italic; color: var(--l-blue-hi); }
.section-sub { color: var(--l-ink-2); font-size: 16.5px; max-width: 560px; margin: 0; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

section { position: relative; padding: 130px 0; }
.foot { position: relative; }

/* ============ living background (whole page) ============ */
/* pre-blurred gradient blobs + drifting stars; transform-only. */

.aurora {
  position: fixed;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.aurora i { position: absolute; display: block; border-radius: 50%; will-change: transform, opacity; }
.aurora i:nth-child(1) {
  top: -2%; left: 12%;
  width: 62vw; height: 62vw;
  background: radial-gradient(circle, rgba(47, 129, 247, 0.24), transparent 60%);
  animation: fl1 7s ease-in-out infinite alternate, breathe 4.5s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  top: 26%; right: -4%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(94, 161, 255, 0.16), transparent 58%);
  animation: fl2 9s ease-in-out infinite alternate, breathe 6s 1.4s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  bottom: -16%; left: -10%;
  width: 56vw; height: 56vw;
  background: radial-gradient(circle, rgba(30, 92, 205, 0.20), transparent 58%);
  animation: fl3 11s ease-in-out infinite alternate, breathe 5s 2.6s ease-in-out infinite alternate;
}
@keyframes fl1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(11vw, 8vh, 0) scale(1.28); } }
@keyframes fl2 { from { transform: translate3d(0, 0, 0) scale(1.14); } to { transform: translate3d(-10vw, -7vh, 0) scale(0.9); } }
@keyframes fl3 { from { transform: translate3d(0, 0, 0) scale(0.92); } to { transform: translate3d(9vw, -9vh, 0) scale(1.2); } }
@keyframes breathe { from { opacity: 0.55; } to { opacity: 1; } }

.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stars i {
  position: absolute;
  left: 0; right: 0;
  top: -150vh; height: 300vh;
  display: block;
  background-image:
    radial-gradient(1.3px 1.3px at 11% 19%, rgba(214, 230, 255, 0.6), transparent 55%),
    radial-gradient(1px 1px at 37% 64%, rgba(214, 230, 255, 0.45), transparent 55%),
    radial-gradient(1.6px 1.6px at 58% 33%, rgba(150, 190, 255, 0.5), transparent 55%),
    radial-gradient(1px 1px at 74% 81%, rgba(214, 230, 255, 0.4), transparent 55%),
    radial-gradient(1.2px 1.2px at 89% 12%, rgba(180, 210, 255, 0.5), transparent 55%),
    radial-gradient(1px 1px at 24% 92%, rgba(214, 230, 255, 0.35), transparent 55%);
  background-size: 520px 520px;
  animation: starDrift 60s linear infinite, twinkle 3.2s ease-in-out infinite alternate;
}
.stars i:nth-child(2) {
  background-size: 860px 860px;
  animation: starDrift2 100s linear infinite, twinkle 4.6s 1.1s ease-in-out infinite alternate;
}
@keyframes starDrift { to { transform: translateY(520px); } }
@keyframes starDrift2 { to { transform: translateY(860px); } }
@keyframes twinkle { from { opacity: 0.22; } to { opacity: 0.65; } }
@media (prefers-reduced-motion: reduce) {
  .aurora i, .stars i { animation: none; }
  .aurora { transition: none; }
}

/* ================= NAV ================= */

/* the header starts flat, then condenses into a floating glass island */
.navwrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: padding 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 66px;
  border: 1px solid transparent;
  transition:
    max-width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    padding 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-radius 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.navwrap.scrolled { padding-top: 10px; }
.navwrap.scrolled .nav {
  max-width: 900px;
  height: 54px;
  gap: 20px;
  padding: 0 12px 0 20px;
  border-radius: 999px;
  background: linear-gradient(rgba(16, 27, 50, 0.88), rgba(9, 17, 34, 0.88));
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-color: rgba(148, 175, 215, 0.18);
  box-shadow:
    0 18px 50px -18px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}
.navwrap.scrolled .nav-start { padding: 8px 15px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--l-ink); font-weight: 700; font-size: 16px; }
.brand img { width: 26px; height: 26px; }
.brand .tld { color: var(--l-muted); font-weight: 500; }
.nav-mid { display: flex; gap: 22px; margin-left: 14px; }
.nav-mid a { color: var(--l-ink-2); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color 0.15s; white-space: nowrap; }
.nav-mid a:hover { color: var(--l-ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.signin { color: var(--l-ink-2); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.signin:hover { color: var(--l-ink); }
.nav-start {
  text-decoration: none;
  white-space: nowrap;
  background: var(--l-blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 0 24px -6px var(--l-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-start:hover { transform: translateY(-1px); box-shadow: 0 0 34px -4px var(--l-glow); }
.nav-ws { text-decoration: none; white-space: nowrap; color: #fff; background: var(--l-blue); font-size: 13.5px; font-weight: 600; padding: 10px 18px; border-radius: 10px; }
.acct-email { white-space: nowrap; }

/* account chip */
.acct { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--l-line-2);
  background: rgba(13, 24, 46, 0.6);
  color: var(--l-ink-2);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  font-family: var(--me-sans);
  font-size: 12.5px;
  cursor: pointer;
}
.acct-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--l-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.acct-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #0c1730;
  border: 1px solid var(--l-line-2);
  border-radius: 12px;
  padding: 8px;
  min-width: 190px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.acct-plan { font-size: 11px; color: var(--l-muted); padding: 6px 10px 8px; border-bottom: 1px solid var(--l-line); margin-bottom: 6px; }
.acct-menu a, .acct-menu button {
  text-align: left;
  background: none;
  border: none;
  color: var(--l-ink-2);
  font-family: var(--me-sans);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.acct-menu a:hover, .acct-menu button:hover { background: rgba(47, 129, 247, 0.12); color: var(--l-ink); }

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 42% at 50% -6%, rgba(47, 129, 247, 0.22), transparent 62%),
    radial-gradient(38% 32% at 82% 22%, rgba(47, 129, 247, 0.10), transparent 60%),
    radial-gradient(30% 26% at 12% 68%, rgba(94, 161, 255, 0.07), transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(122, 156, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 156, 210, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 52% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 52% at 50% 30%, #000 0%, transparent 78%);
}
.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 54px;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy h1 {
  font-size: clamp(38px, 4.8vw, 66px);
  margin-bottom: 20px;
}
.hero-copy .hero-sub { margin: 0 0 30px; max-width: 480px; }
.hero-copy .hero-ctas { justify-content: flex-start; }
.hero-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--l-muted);
}
.hero-chat .demo-frame { margin: 0; max-width: none; }
.hero-chat .chat { min-height: 400px; }
.hero-chat .chat-scroll { max-height: 330px; min-height: 180px; }

.hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--l-line-2);
  background: rgba(13, 24, 46, 0.55);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12.5px;
  color: var(--l-ink-2);
  margin-bottom: 30px;
}
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--l-green); box-shadow: 0 0 10px var(--l-green); }
.hero-meta b { color: var(--l-ink); }
.hero h1 {
  font-family: var(--me-serif);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
}
.hero h1 .glow {
  font-style: italic;
  color: var(--l-blue-hi);
  text-shadow: 0 0 44px rgba(47, 129, 247, 0.55);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--l-ink-2);
  max-width: 620px;
  margin: 0 auto 38px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--l-blue);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 13px;
  box-shadow: 0 0 40px -8px var(--l-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px -6px var(--l-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--l-line-2);
  color: var(--l-ink-2);
  font-size: 15.5px;
  font-weight: 500;
  padding: 15px 26px;
  border-radius: 13px;
  background: rgba(13, 24, 46, 0.4);
  transition: border-color 0.16s ease, color 0.16s ease;
}
.cta-ghost:hover { border-color: var(--l-blue); color: var(--l-ink); }
.hero-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--me-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--l-muted);
  animation: cue 2.4s infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.35; transform: translateX(-50%) translateY(0); } 50% { opacity: 1; transform: translateX(-50%) translateY(5px); } }

/* ================= SCROLL STORY (sticky phone) ================= */

.story { padding: 0; height: 340vh; }
.story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 40% at 68% 50%, rgba(47, 129, 247, 0.14), transparent 62%);
}
.story-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.story-copy { position: relative; min-height: 240px; }
.story-cap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.story-cap.on { opacity: 1; transform: none; }
.story-cap .kicker { margin-bottom: 12px; }
.story-cap h3 {
  font-family: var(--me-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.story-cap h3 em { font-style: italic; color: var(--l-blue-hi); }
.story-cap p { color: var(--l-ink-2); font-size: 16px; max-width: 420px; margin: 0; }

/* phone mockup */
.phone {
  width: 340px;
  border-radius: 44px;
  border: 1px solid var(--l-line-2);
  background: #0a1424;
  box-shadow:
    0 0 0 10px #060e1c,
    0 0 90px -18px rgba(47, 129, 247, 0.45),
    0 60px 120px -50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  margin-left: auto;
}
.phone-top {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--l-line);
  background: rgba(13, 24, 46, 0.8);
}
.phone-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--l-blue), #16386e);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
}
.phone-name { font-size: 13.5px; font-weight: 700; }
.phone-status { font-size: 11px; color: var(--l-green); }
.phone-time { margin-left: auto; font-family: var(--me-mono); font-size: 10.5px; color: var(--l-muted); }
.phone-body {
  height: 470px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  justify-content: flex-end;
  /* older messages fade out at the top instead of hard-cropping */
  mask-image: linear-gradient(to bottom, transparent 4px, #000 64px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 4px, #000 64px);
}
.pmsg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pmsg.on { opacity: 1; transform: none; }
.pmsg.cust { align-self: flex-end; background: #1d4c8f; color: #eaf2ff; border-bottom-right-radius: 5px; }
.pmsg.agent { align-self: flex-start; background: #101d36; border: 1px solid var(--l-line); color: var(--l-ink-2); border-bottom-left-radius: 5px; }
.pmsg.card {
  align-self: center;
  width: 96%;
  max-width: none;
  background: rgba(47, 129, 247, 0.12);
  border: 1px solid rgba(47, 129, 247, 0.4);
  color: var(--l-ink);
  font-size: 12px;
  border-radius: 12px;
}
.pmsg.card b { color: var(--l-blue-hi); display: block; margin-bottom: 3px; }
.pmsg .t { display: block; font-family: var(--me-mono); font-size: 9.5px; color: var(--l-muted); margin-top: 4px; }

/* ================= CHANNELS SCENE ================= */

.channels-scene { text-align: center; }
.orbit-wrap {
  position: relative;
  width: min(560px, 92vw);
  height: min(560px, 92vw);
  margin: 60px auto 0;
}
.tethers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.tethers line {
  stroke: rgba(94, 161, 255, 0.22);
  stroke-width: 1.3;
  stroke-dasharray: 5 8;
  animation: dashflow 2.8s linear infinite;
  transition: stroke 0.2s ease;
}
.tethers line.hot {
  stroke: rgba(94, 161, 255, 0.9);
  filter: drop-shadow(0 0 5px rgba(47, 129, 247, 0.9));
}
@keyframes dashflow { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .tethers line { animation: none; } }

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(122, 156, 210, 0.18);
  border-radius: 50%;
}
.orbit-ring.r2 { inset: 17%; }
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #2f81f7, #0c2550 70%);
  box-shadow: 0 0 80px -8px var(--l-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.orbit-core img { width: 40px; height: 40px; filter: brightness(4); }
.sat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--l-card);
  border: 1px solid var(--l-line-2);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--l-ink);
  white-space: nowrap;
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.8);
  animation: bob 5.4s ease-in-out infinite;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.sat:hover, .sat.hot {
  animation-play-state: paused;
  border-color: var(--l-blue);
  background: #10203c;
  box-shadow: 0 0 34px -8px var(--l-glow), 0 14px 40px -18px rgba(0, 0, 0, 0.8);
}
.orbit-core { cursor: default; transition: box-shadow 0.25s ease; }
.orbit-wrap:hover .orbit-core { box-shadow: 0 0 110px -6px var(--l-glow); }
.sat .se { font-size: 16px; }
.sat small { display: block; font-weight: 400; font-size: 10.5px; color: var(--l-muted); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.sat.s1 { top: 4%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.sat.s2 { top: 32%; right: -4%; animation-delay: 0.9s; }
.sat.s3 { bottom: 10%; right: 6%; animation-delay: 1.7s; }
.sat.s4 { bottom: 10%; left: 6%; animation-delay: 2.5s; }
.sat.s5 { top: 32%; left: -4%; animation-delay: 3.3s; }

/* ================= DEMO ================= */

.demo-frame {
  max-width: 640px;
  margin: 54px auto 0;
  border-radius: 20px;
  border: 1px solid var(--l-line-2);
  background: var(--l-card);
  overflow: hidden;
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9), 0 0 60px -30px var(--l-glow);
}
.demo-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--l-line);
  background: rgba(9, 17, 34, 0.8);
}
.ddot { width: 10px; height: 10px; border-radius: 50%; background: rgba(122, 156, 210, 0.25); }
.dtitle { margin-left: 8px; font-family: var(--me-mono); font-size: 11.5px; color: var(--l-muted); }
.dpath { margin-left: auto; display: flex; align-items: center; gap: 7px; font-family: var(--me-mono); font-size: 11px; color: var(--l-green); }
.dlive { width: 7px; height: 7px; border-radius: 50%; background: var(--l-green); box-shadow: 0 0 10px var(--l-green); }
.chat { display: flex; flex-direction: column; min-height: 380px; }
.chat-scroll {
  flex: 1; overflow-y: auto;
  padding: 22px 18px 8px;
  display: flex; flex-direction: column; gap: 9px;
  max-height: 400px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  animation: msgin 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes msgin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.agent { align-self: flex-start; background: #101d36; border: 1px solid var(--l-line); color: var(--l-ink-2); border-bottom-left-radius: 5px; }
.msg.customer { align-self: flex-end; background: var(--l-blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--l-muted); animation: tb 1.1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.18s; }
.msg.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes tb { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg.event {
  align-self: center;
  width: 96%;
  max-width: none;
  background: rgba(47, 129, 247, 0.1);
  border: 1px solid rgba(47, 129, 247, 0.38);
  border-radius: 13px;
  font-size: 12.5px;
  color: var(--l-ink);
}
.msg.event .ev-title { font-weight: 700; color: var(--l-blue-hi); display: flex; gap: 8px; align-items: center; margin-bottom: 5px; }
.msg.event .ev-title .tick {
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--l-blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.msg.event ul { margin: 0; padding-left: 17px; }
.msg.event .ev-note { color: var(--l-ink-2); margin-top: 4px; }
.msg.event.complaint { background: rgba(240, 180, 60, 0.08); border-color: rgba(240, 180, 60, 0.34); }
.msg.event.complaint .ev-title { color: #ecc35c; }
.msg.event.complaint .ev-title .tick { background: #b98a2c; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 4px; }
.chat-chips button {
  border: 1px solid var(--l-line-2);
  background: rgba(13, 24, 46, 0.6);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--me-sans);
  font-size: 12.5px;
  color: var(--l-ink-2);
  cursor: pointer;
  transition: all 0.16s ease;
}
.chat-chips button:hover { border-color: var(--l-blue); color: var(--l-blue-hi); transform: translateY(-1px); }
.chat-inputrow { display: flex; gap: 10px; padding: 12px 14px 16px; }
.chat-inputrow input {
  flex: 1;
  border: 1px solid var(--l-line-2);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--me-sans);
  font-size: 14px;
  color: var(--l-ink);
  background: rgba(9, 17, 34, 0.8);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-inputrow input::placeholder { color: var(--l-muted); }
.chat-inputrow input:focus { border-color: var(--l-blue); box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.18); }
.chat-inputrow button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--l-blue);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 0 22px -6px var(--l-glow);
  transition: transform 0.14s ease;
}
.chat-inputrow button:hover { transform: translateY(-1px); }
.chat-inputrow button:disabled { opacity: 0.45; transform: none; }
.chat-foot {
  border-top: 1px solid var(--l-line);
  padding: 12px 18px;
  font-size: 12.5px;
  color: var(--l-muted);
  text-align: center;
  background: rgba(9, 17, 34, 0.6);
}
.chat-foot a { color: var(--l-blue-hi); font-weight: 600; text-decoration: none; }

/* ================= DASHBOARD SHOWCASE ================= */

.dash-scene { overflow: hidden; }
.dash-mock {
  margin: 60px auto 0;
  max-width: 880px;
  border-radius: 18px;
  border: 1px solid var(--l-line-2);
  background: #0c1526;
  color: var(--l-ink-2);
  text-align: left;
  box-shadow: 0 60px 140px -60px rgba(0, 0, 0, 0.95), 0 0 80px -40px var(--l-glow);
  overflow: hidden;
  transform: perspective(1400px) rotateX(8deg) scale(0.96);
  transform-origin: 50% 0%;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.dash-mock.in { transform: perspective(1400px) rotateX(0deg) scale(1); }
.dm-top {
  display: flex; align-items: center; gap: 8px;
  background: #0a1220;
  border-bottom: 1px solid var(--l-line);
  padding: 12px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--l-ink);
}
.dm-top .ddot { background: rgba(122, 156, 210, 0.22); width: 9px; height: 9px; }
.dm-top span:last-child { margin-left: 10px; color: var(--l-muted); font-family: var(--me-mono); font-size: 11px; font-weight: 400; }
.dm-body { display: grid; grid-template-columns: 172px 1fr; }
.dm-side { border-right: 1px solid var(--l-line); background: #0a1220; padding: 12px 10px; font-size: 12px; }
.dm-group {
  font-family: var(--me-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l-muted);
  padding: 9px 10px 4px;
}
.dm-item { display: flex; align-items: center; padding: 6.5px 10px; border-radius: 7px; color: var(--l-ink-2); margin-bottom: 1px; font-size: 11.5px; }
.dm-item.on { background: rgba(59, 139, 255, 0.15); color: var(--l-blue-hi); font-weight: 600; }
.dm-badge {
  margin-left: auto;
  background: var(--l-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
}
.dm-main { padding: 18px; }
.dm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dm-stat { background: #101b30; border: 1px solid var(--l-line); border-radius: 10px; padding: 12px 14px; }
.dm-stat .l { font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--l-muted); }
.dm-stat .n { font-size: 21px; font-weight: 700; margin-top: 3px; color: var(--l-ink); font-variant-numeric: tabular-nums; }
.dm-stat .n.blue { color: var(--l-blue-hi); }
.dm-stat .n span { font-size: 11px; font-weight: 500; color: var(--l-muted); }
.dm-order {
  background: #101b30;
  border: 1px solid var(--l-line);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 8px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11.5px;
  color: var(--l-ink-2);
}
.dm-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-pill { flex-shrink: 0; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 999px; background: rgba(59, 139, 255, 0.16); color: var(--l-blue-hi); }
.dm-pill.g, .dm-pill.paid { background: rgba(47, 211, 131, 0.14); color: var(--l-green); }
.dm-time { flex-shrink: 0; color: var(--l-muted); font-size: 10px; font-family: var(--me-mono); }

/* ================= PRICING ================= */

/* ---- tier tabs ---- */
.ptabs {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  margin: 6px auto 34px;
  padding: 5px;
  background: #0b1424;
  border: 1px solid var(--l-line-2);
  border-radius: 999px;
}
.ptab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 128px;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--me-sans);
  cursor: pointer;
  color: var(--l-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.ptab b { font-size: 14px; font-weight: 700; color: inherit; }
.ptab span { font-size: 12px; }
.ptab:hover { color: var(--l-ink-2); }
.ptab.on { background: #eef3fb; color: #0b1e3a; box-shadow: 0 4px 18px -8px rgba(0, 0, 0, 0.7); }
.ptab.on span { color: #4f5e74; }
.ptab-pop {
  position: absolute;
  top: -9px; right: -4px;
  background: var(--l-blue);
  color: #fff;
  font-size: 9.5px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 3px 9px;
  box-shadow: 0 0 16px -4px var(--l-glow);
}

/* ---- the single tier card ---- */
.pcard {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: #0b1424;
  border: 1px solid var(--l-line-2);
  border-radius: 24px;
  padding: 44px 46px;
  text-align: left;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9), 0 0 70px -40px var(--l-glow);
}
.pc-chip {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--me-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-blue-hi);
  border: 1px solid rgba(94, 161, 255, 0.35);
  background: rgba(59, 139, 255, 0.1);
  border-radius: 999px;
  padding: 6px 13px;
}
.pc-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(59, 139, 255, 0.13);
  border: 1px solid rgba(94, 161, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.pc-name { font-size: 17px; font-weight: 700; color: var(--l-ink); }
.pc-price { display: flex; align-items: baseline; gap: 7px; margin: 10px 0 2px; }
.pc-amt { font-size: 52px; font-weight: 700; letter-spacing: -0.035em; color: var(--l-ink); font-variant-numeric: tabular-nums; }
.pc-per { color: var(--l-muted); font-size: 14px; }
.pc-pilot { color: var(--l-green); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.pc-desc { color: var(--l-ink-2); font-size: 14.5px; line-height: 1.65; margin: 0 0 26px; }
.pc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: none;
  background: var(--l-blue);
  color: #fff;
  font-family: var(--me-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  padding: 15px 22px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 30px -8px var(--l-glow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pc-cta:hover { transform: translateY(-2px); filter: brightness(1.07); }
.pc-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 34px;
  align-content: center;
}
.pc-feat { display: flex; gap: 12px; align-items: flex-start; }
.pc-feat .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px; height: 21px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid rgba(47, 211, 131, 0.55);
  color: var(--l-green);
  font-size: 11px;
  font-weight: 700;
}
.pc-feat b { display: block; font-size: 14.5px; color: var(--l-ink); margin-bottom: 3px; }
.pc-feat span { font-size: 13px; color: var(--l-muted); line-height: 1.55; }

/* ---- trust bar ---- */
.ptrust {
  max-width: 980px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(11, 20, 36, 0.75);
  border: 1px solid var(--l-line);
  border-radius: 16px;
  padding: 16px 22px;
  text-align: left;
}
.pt-left { display: flex; align-items: center; gap: 13px; }
.pt-shield {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(47, 211, 131, 0.13);
  color: var(--l-green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.pt-left b { display: block; font-size: 14px; color: var(--l-ink); }
.pt-left span { font-size: 12.5px; color: var(--l-muted); }
.pt-right { font-size: 12.5px; color: var(--l-muted); }
.pt-right b { color: var(--l-ink-2); }

/* ================= FAQ ================= */

.faq { max-width: 760px; margin: 46px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border: 1px solid var(--l-line-2);
  background: var(--l-card);
  border-radius: 14px;
  padding: 0 22px;
  transition: border-color 0.16s ease;
}
.faq details[open] { border-color: rgba(47, 129, 247, 0.5); }
.faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 17px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  color: var(--l-blue-hi);
  font-size: 19px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--l-ink-2); font-size: 14px; line-height: 1.7; }
.faq p a { color: var(--l-blue-hi); }
.faq-contact { text-align: center; margin-top: 26px; color: var(--l-muted); font-size: 13.5px; }
.faq-contact a { color: var(--l-blue-hi); text-decoration: none; font-weight: 600; }

/* ================= FINAL CTA + FOOTER ================= */

.final {
  text-align: center;
  padding: 150px 0 140px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(47, 129, 247, 0.16), transparent 70%);
}
.final .h2 { font-size: clamp(34px, 5vw, 58px); }

.foot { border-top: 1px solid var(--l-line); padding: 60px 0 40px; background: rgba(4, 9, 18, 0.6); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand-row { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.foot-brand-row img { width: 24px; height: 24px; }
.foot-brand-row .tld { color: var(--l-muted); font-weight: 500; }
.foot-by { display: inline-block; margin: 8px 0 10px; color: var(--l-muted); font-size: 12.5px; text-decoration: none; }
.foot-by b { color: var(--l-ink-2); }
.foot-grid p { color: var(--l-muted); font-size: 13px; max-width: 260px; margin: 0; }
.foot-col h4 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--l-muted); margin: 4px 0 12px; }
.foot-col a { display: block; color: var(--l-ink-2); text-decoration: none; font-size: 13.5px; padding: 4px 0; }
.foot-col a:hover { color: var(--l-blue-hi); }
.foot-base {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--l-line);
  margin-top: 44px; padding-top: 24px;
  font-size: 12.5px; color: var(--l-muted);
}

/* ================= MODAL + TOAST ================= */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(2, 6, 13, 0.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 90; padding: 20px;
}
.modal {
  position: relative;
  width: 100%; max-width: 440px;
  background: #0c1730;
  border: 1px solid var(--l-line-2);
  border-radius: 18px;
  padding: 32px 34px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.modal h3 { font-family: var(--me-serif); font-weight: 400; font-size: 24px; margin: 0 0 12px; }
.modal h3 em { font-style: italic; color: var(--l-blue-hi); }
.modal-sub { color: var(--l-ink-2); font-size: 13.5px; margin: 0 0 16px; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--l-muted); font-size: 22px; cursor: pointer; }
.modal input {
  width: 100%;
  border: 1px solid var(--l-line-2);
  background: rgba(9, 17, 34, 0.8);
  color: var(--l-ink);
  border-radius: 11px;
  padding: 13px 15px;
  font-family: var(--me-sans);
  font-size: 14.5px;
  outline: none;
  margin-bottom: 12px;
}
.modal input:focus { border-color: var(--l-blue); }
.modal-btn {
  width: 100%;
  border: none;
  background: var(--l-blue);
  color: #fff;
  font-family: var(--me-sans);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 11px;
  padding: 13px;
  cursor: pointer;
  box-shadow: 0 0 26px -8px var(--l-glow);
}
.form-error { color: #ff8585; font-size: 13px; margin: 10px 0 0; }
.signin-sent { color: var(--l-ink-2); font-size: 14px; line-height: 1.65; }

.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #10203c;
  border: 1px solid var(--l-line-2);
  color: var(--l-ink);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13.5px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 95;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= RESPONSIVE ================= */

@media (max-width: 940px) {
  section { padding: 90px 0; }
  .nav-mid { display: none; }
  .hero { padding-top: 110px; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-sub { margin: 0 auto 28px; }
  .hero-copy .hero-ctas { justify-content: center; }
  .story { height: auto; padding: 90px 0; }
  .story-pin { position: static; height: auto; }
  .story-cols { grid-template-columns: 1fr; gap: 40px; }
  .story-copy { min-height: 0; }
  .story-cap { position: static; opacity: 1; transform: none; margin-bottom: 26px; display: none; }
  .story-cap.always { display: block; }
  .phone { margin: 0 auto; width: min(340px, 92vw); }
  .pmsg { opacity: 1; transform: none; }
  .pcard { grid-template-columns: 1fr; gap: 30px; padding: 30px 26px; }
  .pc-feats { grid-template-columns: 1fr; gap: 18px; }
  .ptabs { width: 100%; }
  .ptab { min-width: 0; flex: 1; padding: 10px 8px; }
  .ptrust { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .orbit-wrap { height: auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 20px 0; }
  .orbit-ring, .orbit-core, .tethers { display: none; }
  .sat { position: static; animation: none; }
}




