:root {
  color-scheme: dark;
  --ink: #f5f7fa;
  --muted: #aeb3bd;
  --line: #343842;
  --paper: #090a0d;
  --panel: #15171c;
  --charcoal: #090a0d;
  --charcoal-soft: #20232b;
  --coral: #f0644b;
  --coral-dark: #c53b2b;
  --cyan: #0a8791;
  --blue: #3f67d8;
  --shadow: 0 26px 70px rgba(16, 19, 27, 0.18);
  --section-band: #0d0f13;
  --nav-text: #dfe3e9;
  --glass-fill: rgba(28, 31, 39, 0.48);
  --glass-fill-strong: rgba(25, 28, 35, 0.68);
  --glass-edge: rgba(255, 255, 255, 0.24);
  --glass-edge-soft: rgba(255, 255, 255, 0.1);
  --glass-shine: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #191b20;
  --muted: #626772;
  --line: #d9dee5;
  --paper: #f3f5f7;
  --panel: #ffffff;
  --charcoal: #e9edf2;
  --charcoal-soft: #ffffff;
  --section-band: #ffffff;
  --nav-text: #343842;
  --shadow: 0 26px 70px rgba(16, 19, 27, 0.14);
  --glass-fill: rgba(255, 255, 255, 0.5);
  --glass-fill-strong: rgba(255, 255, 255, 0.7);
  --glass-edge: rgba(255, 255, 255, 0.92);
  --glass-edge-soft: rgba(62, 72, 88, 0.12);
  --glass-shine: rgba(255, 255, 255, 0.86);
  --glass-shadow: 0 24px 58px rgba(41, 55, 78, 0.18), inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .hero {
  background: rgba(243, 245, 247, 0.34);
  box-shadow: 0 0 0 100vmax rgba(243, 245, 247, 0.34);
}

html[data-theme="light"] .product-showcase {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 100vmax rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .platform-showcase {
  background: rgba(243, 245, 247, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(124deg, transparent 0 18%, rgba(240, 100, 75, 0.14) 34%, transparent 49%),
    linear-gradient(56deg, transparent 0 54%, rgba(10, 135, 145, 0.15) 70%, transparent 88%);
  background-attachment: fixed;
  line-height: 1.55;
}

body::selection {
  background: var(--coral);
  color: #fff;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  min-height: 62px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--glass-shine), transparent 32%, rgba(255, 255, 255, 0.05) 72%),
    var(--glass-fill-strong);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 24px 0 32px;
  color: var(--muted);
  background: transparent;
  font-size: 0.95rem;
}

.site-footer a {
  margin-left: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.1rem;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(240, 100, 75, 0.22);
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.96rem;
  font-weight: 650;
}

nav a {
  color: var(--nav-text);
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

nav a:hover {
  color: var(--ink);
  border-color: var(--glass-edge-soft);
  background: rgba(255, 255, 255, 0.09);
  text-decoration: none;
}

.header-actions,
.preferences {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 22px;
}

.preferences {
  gap: 8px;
}

.language-control select,
.theme-toggle {
  min-height: 36px;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--glass-shine), transparent 42%),
    var(--glass-fill);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.language-control select {
  padding: 0 26px 0 10px;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  cursor: pointer;
}

.theme-icon {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -4px -2px 0 0 var(--panel);
}

html[data-theme="light"] .theme-icon {
  background: var(--coral);
  box-shadow: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: 54px;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  padding: 42px 0 64px;
  background: rgba(9, 10, 13, 0.28);
  box-shadow: 0 0 0 100vmax rgba(9, 10, 13, 0.28);
  clip-path: inset(0 -100vmax);
  color: var(--ink);
}

.hero h1,
.page-hero h1,
.legal-page h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.page-hero h1,
.legal-page h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-store-download {
  margin-top: 28px;
  padding: 12px;
}

.app-store-link {
  display: inline-block;
  border-radius: 7px;
  vertical-align: middle;
}

.app-store-link img {
  display: block;
  width: auto;
  height: 48px;
}

.app-store-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.app-store-download + .actions {
  margin-top: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--glass-shine), transparent 40%),
    var(--glass-fill);
  color: var(--ink);
  font-weight: 750;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 var(--glass-shine);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button.primary {
  border-color: var(--coral);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 40%),
    rgba(240, 100, 75, 0.82);
  color: #fff;
}

.button.primary:hover {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
}

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

.hero .button:not(.primary) {
  border-color: var(--glass-edge);
  background:
    linear-gradient(145deg, var(--glass-shine), transparent 40%),
    var(--glass-fill);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 var(--glass-shine);
}

.hero-product-shot {
  position: relative;
  margin: 0;
}

.hero-product-shot::before {
  position: absolute;
  inset: 12% -4% -10% 14%;
  z-index: -1;
  border-radius: 8px;
  background: var(--coral);
  content: "";
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background: var(--glass-fill-strong);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
}

.media-frame::after,
.device-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 18%, transparent 72%, rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, transparent 0 72%, rgba(255, 255, 255, 0.1) 84%, transparent 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 1px 0 0 rgba(255, 255, 255, 0.12);
  content: "";
  pointer-events: none;
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.12);
  transform-origin: center;
  will-change: transform;
}

.hero-product-shot figcaption,
.product-gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.hero-product-shot figcaption {
  color: var(--muted);
}

.feature-band,
.product-showcase,
.platform-showcase,
.compliance-band,
.page-hero,
.legal-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.feature-band,
.product-showcase,
.platform-showcase,
.compliance-band {
  padding: 68px 0;
}

.product-showcase {
  border-top: 1px solid var(--line);
  background: rgba(13, 15, 19, 0.3);
  box-shadow: 0 0 0 100vmax rgba(13, 15, 19, 0.3);
  clip-path: inset(0 -100vmax);
}

.product-showcase .section-heading p:last-child {
  color: var(--muted);
}

.product-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}

.product-gallery figure {
  margin: 0;
}

.product-gallery figure:nth-child(2) {
  margin-top: 64px;
}

.product-gallery figure:first-child .media-frame {
  border-bottom: 4px solid var(--cyan);
}

.product-gallery figure:nth-child(2) .media-frame {
  border-bottom: 4px solid var(--coral);
}

.platform-showcase {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 13, 0.22);
}

.platform-showcase .section-heading p:last-child {
  color: var(--muted);
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: start;
}

.platform-column {
  min-width: 0;
}

.platform-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.platform-label span {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.platform-label small {
  color: var(--muted);
  font-size: 0.86rem;
}

.device-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.device-pair figure {
  margin: 0;
}

.device-pair figure:nth-child(2) {
  margin-top: 46px;
}

.device-frame {
  position: relative;
  overflow: hidden;
  background: var(--glass-fill-strong);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.1);
  transform-origin: center;
  will-change: transform;
}

.iphone-frame {
  border: 5px solid rgba(255, 255, 255, 0.17);
  border-radius: 26px;
}

.ipad-frame {
  border: 5px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
}

.device-pair figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 26px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-grid,
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.feature-grid article,
.screenshot-grid article {
  min-height: 180px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--glass-shine), transparent 34%, rgba(255, 255, 255, 0.04) 100%),
    var(--glass-fill);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-grid article:hover,
.screenshot-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.38);
}

.feature-grid article {
  border-top: 3px solid var(--line);
}

.feature-grid article:nth-child(1) {
  border-top-color: var(--coral);
}

.feature-grid article:nth-child(2) {
  border-top-color: var(--cyan);
}

.feature-grid article:nth-child(3) {
  border-top-color: var(--blue);
}

.feature-grid article:nth-child(4) {
  border-top-color: #d5a72b;
}

.feature-grid p,
.screenshot-grid p {
  margin: 0;
  color: var(--muted);
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compliance-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 36px;
  border-top: 1px solid var(--line);
}

.link-list {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--glass-shine), transparent 36%),
    var(--glass-fill);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  list-style: none;
}

.link-list li + li {
  margin-top: 12px;
}

.page-hero {
  padding: 74px 0 36px;
}

.legal-page {
  max-width: 860px;
  padding: 58px 0 18px;
}

.legal-page.compact {
  padding-top: 48px;
}

.legal-page p {
  color: var(--muted);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.screenshot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.screenshot-grid article {
  display: flex;
  flex-direction: column;
}

.screenshot-grid article.screenshot-wide {
  grid-column: span 2;
}

.screenshot-media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.screenshot-media-phone,
.screenshot-media-tablet {
  aspect-ratio: 9 / 13;
}

.screenshot-media-mac {
  aspect-ratio: 16 / 10;
}

.screenshot-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.platform-label {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 780;
  text-transform: uppercase;
}

.screenshot-grid h2 {
  font-size: 1.25rem;
}

.background-art {
  position: fixed;
  inset: -16vh -10vw;
  z-index: 0;
  background-image: url("../images/lyrio-flower-mark.png");
  background-repeat: no-repeat;
  background-position: 72% 14%;
  background-size: min(94vw, 1180px) auto;
  filter: blur(8px) saturate(130%);
  opacity: 0.78;
  transform: translate3d(0, var(--background-parallax-y, 0), 0) scale(1.08);
  transform-origin: center top;
  pointer-events: none;
  will-change: transform;
}

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

.device-stack {
  position: relative;
  min-height: 580px;
  margin: 0;
  isolation: isolate;
}

.stack-device {
  position: absolute;
  overflow: visible;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.42));
}

.stack-device::after {
  content: none;
}

.stack-device img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.stack-mac {
  top: 34px;
  left: 5%;
  z-index: 1;
  width: 88%;
}

.stack-mac::before {
  content: none;
}

.stack-ipad {
  top: 176px;
  right: 8%;
  z-index: 2;
  width: 45%;
}

.stack-ipad::before {
  content: none;
}

.stack-iphone {
  top: 270px;
  right: 0;
  z-index: 3;
  width: 24%;
}

.stack-iphone::before {
  content: none;
}

.device-stack figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .hero,
  .compliance-band,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .device-stack {
    width: min(100%, 680px);
    min-height: 620px;
    margin: 0 auto;
  }

  .feature-grid,
  .screenshot-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  nav {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    padding-top: 24px;
  }

  .background-art {
    inset: -10vh -35vw;
    background-position: 54% 8%;
    background-size: 150vw auto;
    filter: blur(6px) saturate(125%);
    opacity: 0.72;
  }

  .device-stack {
    min-height: 470px;
  }

  .stack-mac {
    top: 24px;
    left: 4%;
    width: 92%;
  }

  .stack-ipad {
    top: 132px;
    right: 8%;
    width: 48%;
  }

  .stack-iphone {
    top: 210px;
    width: 27%;
  }

  .feature-grid,
  .screenshot-grid,
  .support-grid,
  .product-gallery,
  .device-pair {
    grid-template-columns: 1fr;
  }

  .screenshot-grid article.screenshot-wide {
    grid-column: span 1;
  }

  .product-gallery figure:nth-child(2) {
    margin-top: 12px;
  }

  .device-pair figure:nth-child(2) {
    margin-top: 12px;
  }

  .iphone-pair figure {
    width: min(100%, 360px);
    margin-right: auto;
    margin-left: auto;
  }

  .iphone-pair figure:nth-child(2) {
    margin-right: auto;
    margin-left: auto;
  }

  .media-frame img,
  .device-frame img {
    transform: none;
    will-change: auto;
  }

  .site-footer a {
    margin-left: 0;
    margin-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-art {
    transform: scale(1.08);
    will-change: auto;
  }

  .media-frame img,
  .device-frame img {
    transform: none;
    will-change: auto;
  }
}
