:root {
  --ink: #241634;
  --purple: #6b36ee;
  --purple-dark: #4c1fc3;
  --orange: #ff6b35;
  --pink: #ffb8d1;
  --cream: #fffaf5;
  --white: #fff;
  --muted: #71647a;
  --line: rgba(56, 28, 75, 0.13);
  --shadow: 0 36px 90px rgba(70, 40, 89, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 13px 30px rgba(107, 54, 238, 0.22);
}

.button-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 16px 34px rgba(107, 54, 238, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.section-title {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.muted {
  color: var(--muted);
}

nav {
  position: relative;
  z-index: 10;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  overflow: hidden;
  border-radius: 10px 10px 10px 3px;
  background: var(--purple);
  transform: rotate(-5deg);
}

.brand-mark:before,
.brand-mark:after {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 5px;
  border-radius: 4px;
  background: #fff;
}

.brand-mark:before {
  left: 8px;
  height: 9px;
}

.brand-mark:after {
  left: 17px;
  height: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
  font-weight: 650;
}

.nav-links > a:not(.button):hover {
  color: var(--purple);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 100px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.blob.one {
  right: -140px;
  top: -170px;
  width: 520px;
  height: 520px;
  background: #e4d8ff;
  opacity: 0.62;
}

.blob.two {
  left: -160px;
  bottom: -120px;
  width: 350px;
  height: 350px;
  background: #ffd9cb;
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 62px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--purple);
  background: #eee7ff;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 25px 0 23px;
  font-size: clamp(58px, 7.2vw, 94px);
  line-height: 0.88;
  letter-spacing: -0.078em;
}

h1 span {
  position: relative;
  color: var(--purple);
  white-space: nowrap;
}

h1 span:after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: -4px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.82;
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-copy {
  max-width: 590px;
  margin: 0;
  color: #665a70;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #807287;
  font-size: 11px;
}

.hero-note svg {
  width: 15px;
  color: var(--purple);
}

.dashboard-wrap {
  position: relative;
}

.dashboard-wrap:before {
  content: "";
  position: absolute;
  inset: 30px -26px -28px;
  border-radius: 38px;
  background: linear-gradient(135deg, #ded0ff, #ffd4c4);
  transform: rotate(2deg);
}

.dashboard {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dash-top {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee7f2;
  color: #8f8297;
  font-size: 9px;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8cfdd;
}

.sample {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--purple);
  background: #f1ecff;
  font-weight: 800;
}

.dash-body {
  display: grid;
  grid-template-columns: 145px 1fr;
  min-height: 435px;
}

.sidebar {
  padding: 18px 11px;
  border-right: 1px solid #eee7f2;
  color: #8b7d93;
  font-size: 9px;
}

.sidebar b {
  display: block;
  margin: 0 8px 18px;
  color: var(--ink);
  font-size: 13px;
}

.sidebar div {
  padding: 9px;
  margin: 3px 0;
  border-radius: 8px;
}

.sidebar .active {
  color: var(--purple);
  background: #f1ecff;
  font-weight: 800;
}

.dash-main {
  padding: 22px;
}

.dash-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-heading strong {
  display: block;
  font-size: 17px;
}

.dash-heading span {
  display: block;
  margin-top: 4px;
  color: #94869c;
  font-size: 9px;
}

.connected {
  padding: 7px 9px;
  border-radius: 999px;
  color: #4d9b64;
  background: #edf9f0;
  font-size: 8px;
  font-weight: 800;
}

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

.metric {
  padding: 13px;
  border: 1px solid #eee7f2;
  border-radius: 12px;
  background: #fff;
}

.metric:nth-child(2) {
  background: #f3eeff;
}

.metric:nth-child(3) {
  background: #fff0e9;
}

.metric label {
  display: block;
  color: #95889d;
  font-size: 8px;
}

.metric strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 23px;
  letter-spacing: -0.05em;
}

.metric small {
  color: var(--purple);
  font-size: 7px;
}

.people {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #eee7f2;
  border-radius: 12px;
}

.person {
  display: grid;
  grid-template-columns: 31px 1.25fr 0.85fr 0.75fr;
  gap: 9px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid #eee7f2;
  font-size: 8px;
}

.person:last-child {
  border-bottom: 0;
}

.avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4b2b57;
  background: #eadfff;
  font-size: 8px;
  font-weight: 900;
}

.person:nth-child(2) .avatar {
  background: #ffd8ca;
}

.person:nth-child(3) .avatar {
  background: #d9efff;
}

.person b {
  font-size: 9px;
}

.person > span {
  color: #96899e;
}

.tag {
  width: max-content !important;
  padding: 5px 7px;
  border-radius: 999px !important;
  color: var(--purple) !important;
  background: #f1ebff;
  font-weight: 800;
}

.tag.review {
  color: #c64a1e !important;
  background: #ffe7de;
}

.trust-rail {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.trust-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.trust-inner > strong {
  max-width: 340px;
  font-size: 15px;
}

.trust-items {
  display: flex;
  gap: 25px;
  color: #786b80;
  font-size: 11px;
}

.trust-items span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-items i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
}

.section {
  padding: 118px 0;
}

.section-head {
  max-width: 800px;
  margin-bottom: 52px;
}

.section-head .eyebrow {
  margin-bottom: 17px;
}

.bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 300px 300px;
  gap: 15px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.card.large {
  grid-row: span 2;
  color: #fff;
  background: var(--ink);
}

.card.soft-purple {
  background: #f0eaff;
}

.card.soft-orange {
  background: #ffe6dc;
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
}

.icon svg {
  width: 19px;
}

.large .icon {
  color: var(--purple);
  background: #fff;
}

.card h3 {
  margin: 22px 0 11px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.card p {
  max-width: 410px;
  margin: 0;
  color: #74677c;
  font-size: 13px;
  line-height: 1.65;
}

.large p {
  color: #b9aac2;
}

.gap-radar {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.radar-disc {
  position: absolute;
  right: -215px;
  bottom: -215px;
  width: clamp(470px, 48vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(183, 151, 255, 0.32);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(107, 54, 238, 0.14),
    rgba(107, 54, 238, 0.035) 58%,
    transparent 72%
  );
  box-shadow:
    inset 0 0 70px rgba(107, 54, 238, 0.04),
    0 0 80px rgba(107, 54, 238, 0.05);
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(255, 184, 209, 0.22);
  border-radius: 50%;
  opacity: 0.52;
  animation: radar-ring-fade 8s ease-in-out infinite;
}

.radar-ring:nth-child(1) {
  inset: 11%;
  animation-delay: -1s;
}

.radar-ring:nth-child(2) {
  inset: 22%;
  border-color: rgba(183, 151, 255, 0.3);
  animation-delay: -3s;
}

.radar-ring:nth-child(3) {
  inset: 33%;
  animation-delay: -5s;
}

.radar-ring:nth-child(4) {
  inset: 44%;
  border-color: rgba(183, 151, 255, 0.34);
  background: rgba(183, 151, 255, 0.07);
  animation-delay: -7s;
}

.radar-signal {
  position: absolute;
  z-index: 2;
  top: var(--y);
  left: var(--x);
  width: 7px;
  height: 7px;
  border: 2px solid #d8c7ff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(183, 151, 255, 0.06);
  transform: translate(-50%, -50%);
}

.radar-signal.gap {
  width: 12px;
  height: 12px;
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.11);
}

.radar-signal.gap:after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(255, 107, 53, 0.7);
  border-radius: 50%;
  animation: gap-pulse 2.8s ease-out infinite;
}

.radar-core {
  position: absolute;
  z-index: 2;
  inset: 47%;
  border: 2px solid #eadfff;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 7px rgba(107, 54, 238, 0.18);
}

@keyframes radar-ring-fade {
  0%,
  100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes gap-pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

.evidence-lines {
  display: grid;
  gap: 8px;
  margin-top: 23px;
}

.evidence-lines div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(70, 40, 89, 0.12);
  border-radius: 10px;
  color: #76697d;
  background: rgba(255, 255, 255, 0.52);
  font-size: 9px;
}

.evidence-lines i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
}

@media (min-width: 1200px) {
  .radar-disc {
    right: -225px;
    bottom: -225px;
    width: 588px;
  }
}

.how {
  background: #fff;
}

.how-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.how-copy {
  position: sticky;
  top: 30px;
}

.how-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step:before {
  content: "0" counter(step);
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
}

.step b {
  display: block;
  font-size: 20px;
}

.step span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.local {
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.vault-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.vault {
  width: 260px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 151, 255, 0.43);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(183, 151, 255, 0.08);
}

.vault:before,
.vault:after {
  content: "";
  position: absolute;
  width: 340px;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 184, 209, 0.28);
  border-radius: 50%;
}

.vault:after {
  width: 180px;
  border-style: solid;
}

.vault-core {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 27px;
  color: #fff;
  background: var(--purple);
  box-shadow: 12px 12px 0 var(--orange);
  font-size: 38px;
  font-weight: 900;
}

.local-copy .eyebrow {
  color: #b797ff;
  margin-bottom: 17px;
}

.local-copy p {
  color: #b9aac2;
  font-size: 17px;
  line-height: 1.7;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.checks b {
  color: #b797ff;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}

.faq-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 23px 40px 23px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none;
}

summary:after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 19px;
  color: var(--purple);
  font-size: 24px;
  font-weight: 400;
}

details[open] summary:after {
  content: "−";
}

.answer {
  max-width: 650px;
  padding: 0 40px 24px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.final-cta {
  padding: 115px 0 130px;
  text-align: center;
  background: linear-gradient(135deg, #e7dcff 0%, #fff2eb 70%);
}

.final-cta h2 {
  max-width: 860px;
  margin: 0 auto 20px;
  font-size: clamp(50px, 7.5vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.067em;
}

.final-cta p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.final-cta .button {
  margin-top: 28px;
  min-height: 56px;
  padding: 0 28px;
  font-size: 15px;
}

footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #83768a;
}

.footer-inner .brand {
  color: var(--ink);
  font-size: 17px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .nav-links > a:not(.button) {
    display: none;
  }

  .hero-grid,
  .how-grid,
  .local-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 700px;
  }

  .dashboard-wrap {
    margin-top: 25px;
  }

  .how-copy {
    position: static;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .card,
  .card.large {
    min-height: 310px;
    grid-row: auto;
  }

  .card.large {
    min-height: 570px;
  }

  .trust-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }

  .trust-items {
    flex-wrap: wrap;
  }

  .local-grid {
    gap: 25px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, 1160px);
  }

  nav {
    height: 70px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links .button {
    width: auto;
    min-height: 42px;
    padding: 0 14px;
    font-size: 11px;
  }

  .hero {
    padding: 55px 0 82px;
  }

  h1 span {
    white-space: normal;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .dash-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .dash-main {
    padding: 14px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .person {
    grid-template-columns: 29px 1fr auto;
  }

  .person > span:not(.tag) {
    display: none;
  }

  .dash-top > span:not(.sample) {
    display: none;
  }

  .trust-items {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 88px 0;
  }

  .radar-disc {
    right: -180px;
    bottom: -180px;
    width: 470px;
  }

  .vault-visual {
    min-height: 330px;
  }

  .vault {
    width: 220px;
  }

  .vault:before {
    width: 290px;
  }

  .faq-grid {
    gap: 30px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* The same document is the desktop/web-app entry point. The Solid app
   toggles this class in Tauri and on /app, leaving this page untouched
   everywhere else. */
#root {
  display: none;
}

body.app-shell-active > :not(#root):not(script) {
  display: none;
}

body.app-shell-active #root {
  display: block;
}

#stcm-wrapper {
  --primaryColor: #6b36ee;
  --backgroundColor: #fffaf5;
  --textColor: #241634;
  --iconColor: #fff;
  --iconBackgroundColor: #6b36ee;
}

#stcm-banner,
#stcm-modal {
  border: 1px solid rgba(56, 28, 75, 0.13);
}

#stcm-icon {
  width: 30px;
  height: 30px;
}

#stcm-icon svg {
  width: 19px;
  height: 19px;
}
