/* Shared header + footer used on every page */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

body > main {
  flex: 1 0 auto;
}

.sc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 max(20px, calc((100% - 1600px) / 2 + 20px));
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #16213a;
  border-bottom: 1px solid rgb(47 125 224 / 18%);
  box-shadow: 0 2px 14px rgb(20 60 130 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #16213a;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.sc-brand img {
  display: block;
  filter: drop-shadow(0 0 1px rgb(22 33 58 / 70%)) drop-shadow(0 1px 2px rgb(22 33 58 / 45%));
}

.sc-tagline {
  margin: 0;
  color: #5b7392;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.sc-footer {
  position: sticky;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 8.5px max(20px, calc((100% - 1600px) / 2 + 20px));
  background: rgb(255 255 255 / 82%);
  border-top: 1px solid rgb(47 125 224 / 18%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #5b7392;
  box-shadow: 0 -2px 14px rgb(20 60 130 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  line-height: 1.2;
}

.sc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.sc-footer a {
  color: inherit;
  text-decoration: none;
}

.sc-footer a:hover,
.sc-footer a:focus-visible {
  color: #16213a;
}

/* Pages that reserved room for the old fixed nav/footer */
.shell {
  min-height: 0;
  flex: 1 0 auto;
  padding-top: 24px;
  padding-bottom: 32px;
}

.page-wrap {
  padding-top: 32px !important;
  padding-bottom: 48px !important;
}

/* Identical metrics on every page, regardless of page-level body styles */
.sc-header,
.sc-footer {
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 400;
  text-align: left;
}

.sc-header *,
.sc-footer * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.sc-header p,
.sc-footer p {
  margin: 0;
}

/* ---------- Dark mode (all pages) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    color: #e8eefb;
    --ink: #e8eefb;
    --muted: #9db0cc;
    --soft: rgb(232 238 251 / 72%);
    --line: rgb(111 168 255 / 22%);
    --deep: #0b0f1a;
    --shadow: rgb(0 0 0 / 40%);
  }

  html,
  body {
    background: #0b0f1a;
  }

  body::before {
    opacity: 0.35;
  }

  #aurora-canvas {
    display: none;
  }

  /* header + footer */
  .sc-header,
  .sc-footer {
    background: rgb(11 15 26 / 82%);
    color: #9db0cc;
  }

  .sc-header {
    border-bottom-color: rgb(111 168 255 / 20%);
    box-shadow: 0 2px 14px rgb(0 0 0 / 35%);
  }

  .sc-footer {
    border-top-color: rgb(111 168 255 / 20%);
    box-shadow: 0 -2px 14px rgb(0 0 0 / 35%);
  }

  .sc-brand,
  .sc-footer a:hover,
  .sc-footer a:focus-visible {
    color: #fff;
  }

  .sc-tagline {
    color: #9db0cc;
  }

  .sc-brand img {
    filter: none;
  }

  /* main page */
  .app-card {
    background: #141a2b;
    box-shadow: 0 1px 2px rgb(0 0 0 / 40%);
  }

  .app-card:hover,
  .app-card:focus-visible {
    box-shadow: 0 2px 4px rgb(0 0 0 / 40%), 0 14px 32px rgb(0 0 0 / 45%);
  }

  .app-tag {
    background: color-mix(in srgb, var(--accent-app) 28%, #0b0f1a);
    color: #cfe0ff;
  }

  .app-card p,
  .app-platform {
    color: #9db0cc;
  }

  .app-search input {
    background: #141a2b;
    border-color: rgb(111 168 255 / 25%);
    box-shadow: none;
  }

  .app-search input::placeholder {
    color: #7f93b3;
  }

  /* app pages */
  .usecase-card {
    background: linear-gradient(160deg, rgb(61 139 239 / 14%), rgb(20 26 43 / 70%));
    box-shadow: 0 20px 50px rgb(0 0 0 / 35%);
  }

  .phone {
    background: linear-gradient(160deg, #222c44, #131a2b);
    box-shadow: 0 40px 110px rgb(0 0 0 / 55%), inset 0 0 0 2px rgb(255 255 255 / 8%);
  }

  .phone-notch {
    background: #131a2b;
  }

  .badge,
  .eyebrow {
    background: rgb(111 168 255 / 12%);
  }
}
