/* XiVolte website: the same near-black navy, slate and electric blue as the app. */

@font-face {
  font-family: "Nunito";
  src: url("assets/nunito.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Michroma";
  src: url("assets/michroma.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --night: #050913;
  --slate: #0d1524;
  --slate-high: #131d30;
  --edge: #1e2a42;
  --electric: #2f8cff;
  --electric-soft: #3d9bff;
  --icy: #e3f2ff;
  --muted: #97a4be;
  --white: #ffffff;
  --glow: 0 0 0 1px rgba(47, 140, 255, 0.55), 0 0 18px rgba(47, 140, 255, 0.45), 0 0 46px rgba(47, 140, 255, 0.22);
  --radius: 20px;
  --page: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(47, 140, 255, 0.16), transparent 70%),
    radial-gradient(800px 500px at -10% 30%, rgba(47, 140, 255, 0.07), transparent 70%),
    var(--night);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--electric-soft);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--icy);
}

:focus-visible {
  outline: 2px solid var(--electric-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--slate-high);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

/* ------------------------------------------------------------ header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.brand .emblem {
  width: 40px;
  height: 46px;
}

.brand .word {
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 12px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
  background: var(--slate);
}

/* ------------------------------------------------------------ hero */

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 56px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 88px;
  }
}

.eyebrow {
  font-family: "Michroma", "Nunito", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--electric-soft);
  margin: 0 0 14px;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

h1 .lit {
  color: var(--icy);
  text-shadow: 0 0 22px rgba(47, 140, 255, 0.75), 0 0 2px rgba(61, 155, 255, 0.9);
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34em;
  margin: 0 0 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
}

.pill svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.pill.glow {
  background: rgba(47, 140, 255, 0.92);
  color: var(--white);
  box-shadow: var(--glow);
}

.pill.soon {
  background: var(--slate);
  color: var(--icy);
  border: 1px solid var(--edge);
}

.pill.soon small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pill.quiet {
  color: var(--muted);
  font-weight: 700;
  padding-left: 8px;
  padding-right: 8px;
}

.pill.quiet:hover {
  color: var(--white);
}

/* Two phones, the front one glowing. */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 20px;
}

.phone {
  width: min(250px, 44vw);
  border-radius: 34px;
  padding: 7px;
  background: #0a101c;
  border: 1px solid var(--edge);
  flex: none;
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1333;
  object-fit: cover;
  border-radius: 28px;
}

.phone.front {
  position: relative;
  z-index: 1;
  box-shadow: var(--glow), 0 30px 60px rgba(0, 0, 0, 0.55);
  border-color: rgba(61, 155, 255, 0.7);
}

.phone.back {
  margin-left: -9%;
  margin-top: 40px;
  transform: rotate(5deg);
  opacity: 0.9;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------ sections */

.block {
  padding-top: 24px;
  padding-bottom: 64px;
}

h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 10px;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 40em;
}

.features {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 620px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  background: var(--slate);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 14px 0 6px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(47, 140, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(47, 140, 255, 0.5), 0 0 16px rgba(47, 140, 255, 0.35);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 780px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 74px;
  background: var(--slate);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--white);
  background: rgba(47, 140, 255, 0.92);
  box-shadow: var(--glow);
}

.steps strong {
  display: block;
  font-size: 1.1rem;
}

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

/* ------------------------------------------------------------ text pages */

.doc {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin-bottom: 6px;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 28px;
}

.doc h2 {
  font-size: 1.4rem;
  margin: 40px 0 10px;
}

.doc h3 {
  font-size: 1.1rem;
  margin: 24px 0 6px;
}

.doc p,
.doc li {
  color: #c9d3e6;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin: 6px 0;
}

.doc strong {
  color: var(--white);
}

.summary {
  background: var(--slate);
  border: 1px solid rgba(61, 155, 255, 0.5);
  border-radius: var(--radius);
  padding: 6px 22px;
  box-shadow: 0 0 24px rgba(47, 140, 255, 0.12);
}

.summary h2 {
  margin-top: 18px;
  font-size: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--edge);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--edge);
}

th {
  background: var(--slate);
  color: var(--white);
  font-weight: 800;
}

td {
  color: #c9d3e6;
}

tr:last-child td {
  border-bottom: 0;
}

/* On phones each row becomes a small card, with its column name beside each value. */
@media (max-width: 600px) {
  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--edge);
  }

  tr:last-child {
    border-bottom: 0;
  }

  td {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px;
    border-bottom: 0;
    padding: 4px 14px;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
  }
}

.center {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 120px;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.center .actions {
  justify-content: center;
}

/* ------------------------------------------------------------ footer */

.foot {
  border-top: 1px solid var(--edge);
  padding-top: 28px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.foot .links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.foot .links a:hover {
  color: var(--white);
}

.foot .fine {
  margin: 18px 0 0;
  font-size: 0.88rem;
}

.foot .brand .emblem {
  width: 30px;
  height: 34px;
}

.foot .brand .word {
  height: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .phone.front {
    animation: float 7s ease-in-out infinite;
  }

  @keyframes float {
    50% {
      transform: translateY(-8px);
    }
  }
}
