:root {
  color-scheme: dark;
  --bg: #05080d;
  --panel: #0c1420;
  --panel-2: #101b29;
  --line: #223448;
  --text: #eef6ff;
  --muted: #94a8bd;
  --blue: #58a9ff;
  --green: #77e99b;
  --amber: #ffd27a;
  --purple: #b78cff;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% -12%, rgba(42, 111, 203, .36), transparent 35rem),
    linear-gradient(180deg, #09111d 0, var(--bg) 62%);
  color: var(--text);
  font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }

.wrap {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 16px max(42px, env(safe-area-inset-bottom));
}

.hero { padding: 18px 10px 20px; text-align: center; }

.orb {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 2px auto 18px;
  overflow: visible;
  border: 1px solid rgba(147, 205, 255, .62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, #eff9ff 0 4%, #8bd0ff 12%, #4a9df7 28%, #246fda 51%, #071c41 82%),
    #0a2b5d;
  box-shadow: 0 0 0 8px rgba(63, 145, 255, .06), 0 0 38px rgba(58, 151, 255, .56), 0 18px 60px rgba(0, 0, 0, .45);
  animation: jarvis-orb-breathe 3.4s ease-in-out infinite;
  transition: transform 180ms ease, border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.orb::before {
  position: absolute;
  z-index: -1;
  inset: -8px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    transparent 0 8%,
    rgba(198, 233, 255, .9) 12%,
    rgba(71, 165, 255, .42) 16%,
    transparent 21% 43%,
    rgba(111, 186, 255, .8) 48%,
    transparent 53% 76%,
    rgba(110, 111, 255, .72) 82%,
    transparent 88% 100%
  );
  content: "";
  opacity: .78;
  pointer-events: none;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: jarvis-orb-scan 7s linear infinite;
}

.orb::after {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(218, 240, 255, .38);
  border-radius: inherit;
  box-shadow: inset 0 0 16px rgba(156, 218, 255, .16), 0 0 12px rgba(94, 176, 255, .16);
  content: "";
  pointer-events: none;
  animation: jarvis-orb-ring 2.6s ease-in-out infinite;
}

.orb span {
  position: relative;
  z-index: 1;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.08em;
  text-shadow: 0 0 8px rgba(228, 246, 255, .7), 0 0 22px rgba(105, 184, 255, .54);
  animation: jarvis-orb-core 2.6s ease-in-out infinite;
}

.orb:hover { transform: scale(1.035); border-color: rgba(193, 228, 255, .9); }
.orb:active { transform: scale(.97); }

@keyframes jarvis-orb-breathe {
  0%, 100% {
    box-shadow: 0 0 0 8px rgba(63, 145, 255, .05), 0 0 32px rgba(58, 151, 255, .46), 0 18px 60px rgba(0, 0, 0, .45);
    filter: saturate(1) brightness(1);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(73, 155, 255, .09), 0 0 52px rgba(73, 164, 255, .72), 0 18px 64px rgba(0, 0, 0, .48);
    filter: saturate(1.12) brightness(1.07);
  }
}

@keyframes jarvis-orb-scan {
  to { transform: rotate(360deg); }
}

@keyframes jarvis-orb-ring {
  0%, 100% { transform: scale(.96); opacity: .62; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes jarvis-orb-core {
  0%, 100% { transform: scale(.98); opacity: .9; }
  50% { transform: scale(1.045); opacity: 1; }
}

.eyebrow {
  margin: 0 0 5px;
  color: #70b5ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
}

h1 { margin: 0; font-size: clamp(31px, 7vw, 42px); letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }
.subtitle { margin: 5px 0 0; color: var(--muted); font-size: 15px; }

.brainline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 13px auto 0;
  color: #b7cae0;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}
.brainline span {
  padding: 5px 7px;
  border: 1px solid #29445f;
  border-radius: 999px;
  background: rgba(12, 26, 42, .72);
}
.brainline b { align-self: center; color: #579be2; }

.install-button {
  margin: 18px auto 0;
  padding: 11px 16px;
  border: 1px solid rgba(120, 190, 255, .7);
  border-radius: 999px;
  background: linear-gradient(180deg, #2d86eb, #1761be);
  box-shadow: 0 10px 26px rgba(21, 101, 197, .35);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.install-button:focus-visible, .orb:focus-visible, .card:focus-visible, .showcase-link:focus-visible { outline: 3px solid #a9d6ff; outline-offset: 3px; }
.install-help { min-height: 1.4em; margin: 9px 0 0; color: #b8c7d7; font-size: 12px; }

.statusbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 6px 0 25px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 22, 34, .82);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.statusbar b, .statusbar span { display: block; }
.statusbar b { font-size: 13px; }
.statusbar div > span { margin-top: 1px; color: var(--muted); font-size: 12px; }
.status-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(119, 233, 155, .75); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 3px 12px; }
.section-heading h2 { margin: 0; font-size: 21px; }
.count { color: var(--muted); font-size: 11px; text-align: right; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.featured-grid { grid-template-columns: 1fr; }

.card {
  position: relative;
  min-height: 170px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #25384c;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(17, 30, 45, .98), rgba(8, 15, 24, .98));
  box-shadow: 0 15px 38px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .025);
  color: inherit;
  text-decoration: none;
}

.card.enabled { transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.card.enabled:hover { border-color: #3d668e; box-shadow: 0 18px 42px rgba(0, 0, 0, .3), 0 0 20px rgba(74, 163, 255, .08); transform: translateY(-2px); }
.card.enabled:active { transform: scale(.985); }
.card.disabled { opacity: .62; }
.card.capability { border-style: dashed; background: linear-gradient(160deg, rgba(17, 28, 41, .86), rgba(8, 15, 24, .9)); }
.card.featured { min-height: 190px; border-color: #315f8b; background: radial-gradient(circle at 100% 0, rgba(48, 112, 186, .24), transparent 58%), linear-gradient(160deg, rgba(17, 32, 50, .99), rgba(7, 14, 23, .99)); }
.card.contact::before, .card.work::before, .card.travel::before, .card.brain::before, .card.mission::before, .card.browser::before, .card.devices::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: #4ca4ff;
  content: "";
}
.card.work::before { background: #69da90; }
.card.travel::before { background: #b78cff; }
.card.brain::before { width: 3px; background: linear-gradient(#62b6ff, #7868ff); }
.card.mission::before { background: #ffbd66; }
.card.browser::before { background: #55d6d1; }
.card.devices::before { background: #8dc5ff; }

.top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #2a4056; border-radius: 13px; background: #111e2d; font-size: 22px; }
.badge { padding: 5px 8px; border: 1px solid #35516d; border-radius: 999px; color: #b6d8ff; font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.badge.ready { border-color: #39664a; color: #b9f4c3; }
.badge.preview { border-color: #6a5931; color: #ffe5a8; }
.badge.waiting { border-color: #47505b; color: #c2cad4; }
.badge.private { border-color: #365f84; color: #9ed1ff; background: rgba(38, 96, 151, .12); }
.badge.brain-badge { border-color: #635694; color: #d1c3ff; }
.card h3 { margin: 13px 0 5px; font-size: 18px; letter-spacing: -.02em; }
.card p { margin: 0; color: #9bacc0; font-size: 13px; }
.launch { position: absolute; right: 16px; bottom: 14px; color: #84c0ff; font-size: 11px; font-weight: 750; }

.route-note {
  margin: 10px 3px 26px;
  padding: 0 2px;
  color: #8298ae;
  font-size: 11px;
}
.route-note b { color: #b8d8f6; }

.lab-heading { margin-top: 28px; }
.showcase-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid #374565;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(42, 29, 67, .76), rgba(9, 18, 29, .96));
  color: inherit;
  text-decoration: none;
}
.showcase-link > span:last-child { color: #c6a8ff; font-size: 20px; }
.showcase-link small { display: block; margin-top: 3px; color: #a7a4bd; font-size: 11px; font-weight: 450; }
.showcase-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #584b79; border-radius: 14px; background: #181329; font-size: 23px; }

.rule {
  display: flex;
  gap: 11px;
  align-items: start;
  margin: 20px 0 0;
  padding: 14px;
  border: 1px solid #223446;
  border-radius: 16px;
  background: #09121c;
  color: #a8b9ca;
  font-size: 12px;
}

.rule > span { display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #183a29; color: #80eda2; font-weight: 900; }
.rule p { margin: 0; }
.rule b { color: white; }

/* Showcase page */
.showcase-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 2px 20px; }
.back-link { color: #93c9ff; text-decoration: none; font-size: 12px; font-weight: 750; }
.showcase-hero { padding: 12px 4px 22px; }
.showcase-hero h1 { margin-top: 4px; }
.showcase-hero p { max-width: 680px; color: var(--muted); }
.timeline { display: grid; gap: 10px; }
.milestone { position: relative; padding: 15px 16px 15px 46px; border: 1px solid #28394d; border-radius: 18px; background: #0a131e; }
.milestone::before { position: absolute; left: 19px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: #5aaeff; box-shadow: 0 0 14px rgba(90, 174, 255, .6); content: ""; }
.milestone h3 { margin: 0 0 4px; font-size: 16px; }
.milestone p { margin: 0; color: #99aabd; font-size: 12px; }
.milestone small { display: inline-block; margin-top: 7px; color: #7190ad; }
.demo-rule { margin-top: 18px; padding: 14px; border: 1px solid #4b405e; border-radius: 16px; background: #130f1d; color: #b9adca; font-size: 12px; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; margin: 20px 3px 0; color: #73879b; font-size: 10px; }

@media (max-width: 590px) {
  .wrap { padding-inline: 12px; }
  .hero { padding-top: 12px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 152px; }
  .card.featured { min-height: 184px; }
  .brainline { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
