@font-face {
  font-family: "Libre Caslon Condensed";
  src: url("assets/fonts/LibreCaslonCondensed-BoldItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #05080a;
  --surface: #0b1013;
  --surface-soft: rgba(15, 22, 26, 0.78);
  --fg: #f2f3ed;
  --muted: #9ca39d;
  --line: rgba(225, 235, 226, 0.14);
  --line-strong: rgba(225, 235, 226, 0.24);
  --lime: #c7ff32;
  --warm: #ffb36b;
  --ink: #071006;
  --page: min(1240px, calc(100vw - 56px));
  --font-display: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "PingFang SC", sans-serif;
  --font-editorial: "Libre Caslon Condensed", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--fg);
  background:
    radial-gradient(circle at 50% -8%, rgba(85, 117, 60, 0.13), transparent 31rem),
    radial-gradient(circle at 92% 16%, rgba(28, 59, 98, 0.14), transparent 30rem),
    var(--bg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-user-select: none;
  user-select: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

button,
a,
summary {
  font: inherit;
}

a {
  color: inherit;
}

button,
summary {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 11px 15px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 88px;
  border-bottom: 1px solid transparent;
  background: rgba(5, 8, 10, 0);
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
  view-transition-name: mivo-header;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 8, 10, 0.82);
  backdrop-filter: blur(20px) saturate(1.15);
}

.nav-shell {
  width: var(--page);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand {
  min-height: 48px;
  font-size: 21px;
  font-weight: 780;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-anchor {
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.nav-anchor:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  width: var(--page);
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: clamp(84px, 12vh, 146px) 0 clamp(100px, 14vh, 170px);
  display: grid;
  place-items: center;
  text-align: center;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.site-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100svh;
  background:
    radial-gradient(ellipse at 17% 72%, rgba(11, 57, 84, 0.96), transparent 58%),
    radial-gradient(ellipse at 76% 58%, rgba(7, 26, 43, 0.92), transparent 60%),
    radial-gradient(ellipse at 50% 14%, rgba(4, 11, 32, 0.95), transparent 62%),
    linear-gradient(135deg, #040b20, #030f18 58%, #000 100%);
  filter: saturate(1.18) contrast(1.03);
  opacity: 0.96;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  display: flex;
  align-items: center;
  flex-direction: column;
}

.hero-mark {
  position: relative;
  width: 78px;
  height: 78px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 24px 70px rgba(152, 220, 35, 0.14);
}

.hero-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

h1 {
  max-width: 1240px;
  margin-bottom: 0;
  font-size: clamp(46px, 6.3vw, 95px);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.hero-title-line {
  display: block;
}

.hero-title-line--accent {
  margin-top: 0.04em;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.download-cta {
  position: relative;
  margin-top: 42px;
  display: inline-flex;
  justify-content: center;
}

.ios-button {
  min-width: 244px;
  min-height: 72px;
  padding: 9px 20px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(10, 13, 10, 0.14);
  border-radius: 18px;
  color: #0a0d0a;
  background: var(--fg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.36), inset 0 -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
  transition: transform 220ms var(--ease), background 180ms ease, box-shadow 220ms ease;
}

.ios-button:hover {
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(199, 255, 50, 0.16);
  transform: translateY(-2px);
}

.ios-button svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  fill: currentColor;
}

.ios-button-copy {
  display: grid;
  justify-items: start;
  line-height: 1;
}

.ios-button-copy > span {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.ios-button-copy strong {
  font-size: 29px;
  font-weight: 580;
  letter-spacing: -0.035em;
}

.qr-popover {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  z-index: 20;
  width: 212px;
  padding: 14px;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  visibility: hidden;
  opacity: 0;
  background: rgba(11, 16, 19, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(22px);
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 8px) scale(0.98);
  transform-origin: bottom center;
  transition: opacity 180ms ease, transform 220ms var(--ease), visibility 180ms ease;
}

.qr-popover::before {
  position: absolute;
  bottom: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  content: "";
  background: #0b1013;
  transform: rotate(45deg);
}

.qr-popover img {
  width: 100%;
  margin-bottom: 4px;
  padding: 8px;
  border-radius: 13px;
  background: #fff;
  image-rendering: pixelated;
}

.qr-popover strong {
  width: 100%;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
  text-align: center;
}

.download-cta:focus-within .qr-popover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

@media (hover: hover) {
  .download-cta:hover .qr-popover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
  }
}

.section {
  padding: clamp(110px, 13vw, 186px) 0;
}

.section-shell {
  width: var(--page);
  margin: 0 auto;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 64px;
}

.section-heading h2,
.faq-heading h2 {
  margin-bottom: 22px;
  font-size: clamp(48px, 6.5vw, 86px);
  font-weight: 640;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading > p:last-child,
.faq-heading > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.features {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.features .section-heading {
  max-width: 1080px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  outline: none;
}

.feature-grid:focus-visible {
  border-radius: 30px;
  outline: 3px solid var(--lime);
  outline-offset: 8px;
}

.feature-card {
  min-width: 0;
  padding: 13px 13px 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transition: border-color 240ms ease, transform 280ms var(--ease), box-shadow 280ms ease;
}

.feature-card:hover {
  border-color: rgba(199, 255, 50, 0.26);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(-8px);
}

.feature-caption {
  min-height: 148px;
  padding: 15px 14px 26px;
  display: grid;
  grid-template-rows: auto minmax(64px, 1fr);
  align-content: stretch;
  gap: 18px;
}

.feature-caption span {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.feature-caption h3 {
  min-height: 64px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(19px, 1.65vw, 24px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}

.feature-card figure {
  margin: 0;
  overflow: hidden;
  border-radius: 23px;
  background: transparent;
}

.feature-card img {
  width: 100%;
  height: auto;
}

.faq {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 38%);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(60px, 10vw, 150px);
}

.faq-heading {
  position: sticky;
  top: 124px;
}

.faq-heading h2 {
  font-size: clamp(46px, 5.6vw, 76px);
}

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

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

.faq-list summary {
  position: relative;
  min-height: 98px;
  padding: 27px 56px 27px 0;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.025em;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 18px;
  height: 1.5px;
  content: "";
  background: var(--lime);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.faq-list summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-list summary:hover {
  color: var(--lime);
}

.faq-list details p {
  max-width: 720px;
  margin: -5px 0 30px;
  padding-right: 56px;
  color: var(--muted);
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: var(--page);
  min-height: 210px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  font-size: 19px;
  font-weight: 760;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: contain;
}

.copyright {
  color: #646b66;
  font-size: 15px;
}

.footer-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #858c87;
  font-size: 13px;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--fg);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms ease, transform 860ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.page-transitions.page-leaving body {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 130ms ease, transform 130ms ease;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 120ms ease both page-fade-out;
}

::view-transition-new(root) {
  animation: 280ms var(--ease) both page-fade-in;
}

@keyframes page-fade-out {
  to { opacity: 0; }
}

@keyframes page-fade-in {
  from { opacity: 0; }
}
