:root {
  color-scheme: light;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Noto Sans SC", "Segoe UI", sans-serif;
  --background: #f6f3fb;
  --background-bottom: #eff3f8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-container: #eceff6;
  --surface-container-high: #e1e8f2;
  --surface-accent: #f4e6dd;
  --text: #18202b;
  --text-muted: #596474;
  --outline: rgba(78, 92, 112, 0.16);
  --outline-strong: rgba(78, 92, 112, 0.28);
  --primary: #335f8d;
  --primary-hover: #294f76;
  --primary-container: #d8e7f6;
  --primary-soft: rgba(216, 231, 246, 0.72);
  --on-primary: #ffffff;
  --primary-shadow: rgba(51, 95, 141, 0.22);
  --primary-shadow-soft: rgba(51, 95, 141, 0.12);
  --brand-shadow: rgba(51, 95, 141, 0.14);
  --shadow: rgba(30, 41, 57, 0.1);
  --shadow-strong: rgba(30, 41, 57, 0.16);
  --top-bar-bg: linear-gradient(180deg, rgba(246, 243, 251, 0.92), rgba(246, 243, 251, 0.72));
  --top-bar-bg-elevated: linear-gradient(180deg, rgba(246, 243, 251, 0.98), rgba(246, 243, 251, 0.86));
  --top-bar-shell-bg: rgba(255, 255, 255, 0.72);
  --top-bar-shell-border: rgba(255, 255, 255, 0.86);
  --interactive-surface: rgba(255, 255, 255, 0.56);
  --interactive-surface-border: rgba(255, 255, 255, 0.8);
  --hover-surface: rgba(255, 255, 255, 0.74);
  --outline-button-bg: rgba(255, 255, 255, 0.66);
  --outline-button-border: rgba(51, 95, 141, 0.18);
  --panel-overlay: rgba(255, 255, 255, 0.82);
  --panel-overlay-soft: rgba(255, 255, 255, 0.62);
  --panel-border: rgba(255, 255, 255, 0.74);
  --hero-visual-top: rgba(255, 255, 255, 0.84);
  --hero-visual-bottom-start: rgba(236, 239, 246, 0.96);
  --hero-visual-bottom-end: rgba(244, 246, 251, 0.9);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 245, 251, 0.9));
  --muted-badge-text: #4f5d72;
  --muted-badge-bg: rgba(79, 93, 114, 0.12);
  --device-frame-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 249, 0.98));
  --device-frame-border: rgba(255, 255, 255, 0.86);
  --device-notch: rgba(24, 32, 43, 0.12);
  --device-screen: #0f151e;
  --max-width: 1180px;
  --bar-height: 96px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #060708;
  --background-bottom: #0c0d0f;
  --surface: rgba(15, 16, 18, 0.78);
  --surface-strong: rgba(24, 25, 28, 0.94);
  --surface-container: #141518;
  --surface-container-high: #1b1c20;
  --surface-accent: #1a1713;
  --text: #f3f1ed;
  --text-muted: #aaa39a;
  --outline: rgba(255, 255, 255, 0.12);
  --outline-strong: rgba(255, 255, 255, 0.2);
  --primary: #e7b36b;
  --primary-hover: #f1c488;
  --primary-container: #493014;
  --primary-soft: rgba(73, 48, 20, 0.72);
  --on-primary: #171006;
  --primary-shadow: rgba(231, 179, 107, 0.24);
  --primary-shadow-soft: rgba(231, 179, 107, 0.14);
  --brand-shadow: rgba(231, 179, 107, 0.16);
  --shadow: rgba(0, 0, 0, 0.38);
  --shadow-strong: rgba(0, 0, 0, 0.54);
  --top-bar-bg: linear-gradient(180deg, rgba(6, 7, 8, 0.92), rgba(6, 7, 8, 0.68));
  --top-bar-bg-elevated: linear-gradient(180deg, rgba(6, 7, 8, 0.98), rgba(6, 7, 8, 0.84));
  --top-bar-shell-bg: rgba(16, 17, 19, 0.8);
  --top-bar-shell-border: rgba(255, 255, 255, 0.08);
  --interactive-surface: rgba(20, 21, 24, 0.84);
  --interactive-surface-border: rgba(255, 255, 255, 0.08);
  --hover-surface: rgba(231, 179, 107, 0.12);
  --outline-button-bg: rgba(14, 15, 17, 0.84);
  --outline-button-border: rgba(231, 179, 107, 0.24);
  --panel-overlay: rgba(12, 13, 15, 0.9);
  --panel-overlay-soft: rgba(12, 13, 15, 0.76);
  --panel-border: rgba(255, 255, 255, 0.08);
  --hero-visual-top: rgba(231, 179, 107, 0.12);
  --hero-visual-bottom-start: rgba(18, 18, 20, 0.94);
  --hero-visual-bottom-end: rgba(10, 10, 11, 0.96);
  --card-bg: linear-gradient(180deg, rgba(22, 23, 25, 0.98), rgba(14, 15, 17, 0.96));
  --muted-badge-text: #c1baaf;
  --muted-badge-bg: rgba(255, 255, 255, 0.08);
  --device-frame-bg: linear-gradient(180deg, rgba(24, 25, 28, 0.98), rgba(14, 15, 17, 0.98));
  --device-frame-border: rgba(255, 255, 255, 0.08);
  --device-notch: rgba(255, 255, 255, 0.12);
  --device-screen: #030303;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background-color: var(--background);
  font-family: var(--font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: background-color 280ms ease, color 280ms ease;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  transition: opacity 320ms ease;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(244, 230, 221, 0.92), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(216, 231, 246, 0.9), transparent 24%),
    linear-gradient(180deg, #f6f3fb 0%, #eff3f8 100%);
  opacity: 1;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(231, 179, 107, 0.16), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(180deg, #060708 0%, #0c0d0f 100%);
  opacity: 0;
}

[data-theme="dark"] body::before {
  opacity: 0;
}

[data-theme="dark"] body::after {
  opacity: 1;
}

.top-bar__inner,
.top-nav,
.lang-switch,
.hero-shell,
.release-strip,
.release-card,
.hero__visual,
.device-frame,
.gallery__item,
.footer {
  transition: background-color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 999px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

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

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--bar-height);
  padding-top: 12px;
  backdrop-filter: blur(24px);
  background: var(--top-bar-bg);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.top-bar[data-elevated="true"] {
  background: var(--top-bar-bg-elevated);
}

.top-bar__inner,
.section,
.footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
  padding: 12px 20px;
  background: var(--top-bar-shell-bg);
  border: 1px solid var(--top-bar-shell-border);
  border-radius: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  padding-right: 6px;
  text-decoration: none;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px var(--brand-shadow);
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__text span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.top-nav,
.top-bar__actions {
  display: flex;
  align-items: center;
}

.top-nav {
  flex: 1;
  justify-content: center;
  gap: 10px;
}

.top-nav__link {
  padding: 10px 14px;
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 180ms ease;
}

.top-nav__link:hover {
  color: var(--text);
  background: var(--hover-surface);
}

.top-bar__actions {
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--interactive-surface);
  border: 1px solid var(--interactive-surface-border);
  border-radius: 999px;
}

.lang-switch__button {
  min-width: 48px;
  height: 36px;
  padding: 0 12px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  transition: color 160ms ease, background 180ms ease, box-shadow 180ms ease;
}

.lang-switch__button:hover {
  color: var(--text);
}

.lang-switch__button.is-active {
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: 0 2px 8px var(--shadow);
}

.section {
  padding: 72px 0;
}

.mw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.mw-button--filled {
  color: var(--on-primary);
  background: var(--primary);
  box-shadow: 0 8px 18px var(--primary-shadow);
}

.mw-button--filled:hover {
  background: var(--primary-hover);
}

.mw-button--outlined {
  color: var(--primary);
  background: var(--outline-button-bg);
  border-color: var(--outline-button-border);
}

.mw-button--tonal {
  color: var(--primary);
  background: var(--primary-container);
}

.top-bar__button {
  min-height: 40px;
  padding: 0 18px;
}

.hero {
  min-height: calc(100svh - var(--bar-height));
  padding-top: 28px;
  padding-bottom: 28px;
}

.screenshots {
  padding-top: 24px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 40px;
  align-items: center;
  padding: 40px;
  background:
    linear-gradient(180deg, var(--panel-overlay), var(--panel-overlay-soft)),
    var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: 36px;
  box-shadow: 0 22px 56px var(--shadow);
}

.hero__copy {
  max-width: 540px;
  align-self: start;
}

.hero__copy h1 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h1,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 7vw, 5.6rem);
}

.hero__lede,
.footer {
  color: var(--text-muted);
}

.hero__lede {
  max-width: 34rem;
  margin-bottom: 20px;
  font-size: 1.06rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.release-strip,
.release-card,
.gallery__item {
  border: 1px solid var(--outline);
  box-shadow: 0 14px 32px rgba(34, 45, 61, 0.08);
}

.release-strip {
  padding: 24px;
  background:
    linear-gradient(180deg, var(--surface-strong), var(--surface)),
    var(--surface);
  border-radius: 30px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 360ms ease,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    box-shadow 280ms ease;
}

.release-strip[hidden] {
  display: none;
}

.release-strip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.release-strip__header {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.release-strip__eyebrow,
.release-strip__title,
.release-card__meta,
.release-card__version {
  margin: 0;
}

.release-strip__eyebrow {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-strip__title {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.release-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.release-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: var(--card-bg);
  border-radius: 24px;
}

.release-card__row,
.release-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.release-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--primary);
  background: var(--primary-container);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.release-card__badge--muted {
  color: var(--muted-badge-text);
  background: var(--muted-badge-bg);
}

.release-card__link {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.release-card__version {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.1;
}

.release-card__meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.release-card__label {
  font-weight: 700;
}

.hero__visual {
  display: grid;
  min-height: 660px;
  padding: 24px 20px 28px;
  background:
    radial-gradient(circle at top, var(--hero-visual-top), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--hero-visual-bottom-start), var(--hero-visual-bottom-end));
  border-radius: 30px;
  overflow: hidden;
}

.device-cluster {
  position: relative;
  width: min(100%, 560px);
  min-height: 580px;
  margin: auto;
  transform: translateY(-16px);
}

.device-frame {
  position: absolute;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  background: var(--device-frame-bg);
  border: 1px solid var(--device-frame-border);
  border-radius: 34px;
  box-shadow: 0 20px 48px rgba(37, 49, 67, 0.12);
}

.device-frame::before {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 82px;
  height: 8px;
  content: "";
  background: var(--device-notch);
  border-radius: 999px;
  transform: translateX(-50%);
}

.device-frame img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: var(--device-screen);
}

.device-frame--center {
  top: 56px;
  left: 152px;
  z-index: 3;
  width: 258px;
  transform: rotate(-4deg);
}

.device-frame--left {
  top: 18px;
  left: 28px;
  z-index: 1;
  width: 232px;
  transform: rotate(-10deg);
}

.device-frame--right {
  top: 126px;
  right: 16px;
  z-index: 1;
  width: 224px;
  transform: rotate(7deg);
  opacity: 0.92;
}

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

.gallery__item {
  margin: 0;
  padding: 14px;
  background: var(--surface);
  border-radius: 28px;
}

.gallery__item img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 32px;
  border-top: 1px solid var(--outline);
}

.footer p {
  margin: 22px 0 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.footer__links a {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .device-frame--center {
    animation: float-center 8s ease-in-out infinite;
  }

  .device-frame--left {
    animation: float-left 10s ease-in-out infinite;
  }

  .device-frame--right {
    animation: float-right 9s ease-in-out infinite;
  }
}

@keyframes float-center {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }

  50% {
    transform: rotate(-3deg) translateY(-10px);
  }
}

@keyframes float-left {
  0%,
  100% {
    transform: rotate(-10deg) translateY(0);
  }

  50% {
    transform: rotate(-9deg) translateY(10px);
  }
}

@keyframes float-right {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(7deg) translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
  }

  .top-bar {
    padding-top: 10px;
  }

  .top-bar__inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__visual {
    min-height: 600px;
  }

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

@media (max-width: 760px) {
  .top-bar__inner,
  .section,
  .footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .top-bar__inner {
    padding: 14px;
    border-radius: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .screenshots {
    padding-top: 18px;
  }

  .hero-shell {
    padding: 26px;
    gap: 28px;
    border-radius: 28px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 11vw, 4.2rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .mw-button {
    width: 100%;
  }

  .release-strip {
    padding: 20px;
  }

  .release-strip__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 468px;
    padding: 16px 12px 20px;
  }

  .device-cluster {
    width: min(100%, 460px);
    min-height: 432px;
    transform: translateY(-10px);
  }

  .device-frame--center {
    top: 48px;
    left: calc(50% - 112px);
    width: 214px;
  }

  .device-frame--left {
    top: 26px;
    left: 0;
    width: 192px;
  }

  .device-frame--right {
    top: 106px;
    right: 0;
    width: 184px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .top-bar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    justify-content: initial;
  }

  .brand {
    gap: 10px;
    min-width: 0;
    padding-right: 0;
  }

  .brand__logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand__text span {
    display: none;
  }

  .brand__text strong {
    font-size: 0.98rem;
  }

  .top-nav {
    grid-column: 1 / -1;
    width: 100%;
    gap: 4px;
    padding: 4px;
    background: var(--interactive-surface);
    border: 1px solid var(--outline);
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 6px;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.15;
    text-align: center;
  }

  .top-bar__actions {
    width: auto;
    grid-column: 2;
    justify-content: flex-end;
    gap: 8px;
  }

  .top-bar__button {
    min-height: 34px;
    padding: 0 12px;
    width: auto;
    border-radius: 999px;
    font-size: 0.84rem;
  }

  .lang-switch {
    width: auto;
    justify-content: flex-start;
    padding: 3px;
  }

  .lang-switch__button {
    min-width: 32px;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 6px;
    font-size: 0.76rem;
  }

  .release-strip,
  .release-card,
  .gallery__item {
    padding: 18px;
    border-radius: 24px;
  }

  .release-card__row,
  .release-card__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .device-cluster {
    min-height: 348px;
    transform: translateY(-6px);
  }

  .device-frame {
    padding: 10px;
    border-radius: 24px;
  }

  .device-frame img {
    border-radius: 16px;
  }

  .device-frame::before {
    width: 64px;
    height: 7px;
  }

  .device-frame--center {
    top: 34px;
    left: calc(50% - 78px);
    width: 150px;
  }

  .device-frame--left {
    top: 18px;
    left: 0;
    width: 138px;
  }

  .device-frame--right {
    top: 84px;
    right: 0;
    width: 130px;
  }
}

@media (max-width: 390px) {
  .top-bar__inner {
    grid-template-columns: 1fr;
  }

  .top-bar__actions {
    grid-column: 1;
    justify-content: space-between;
  }

  .top-nav__link {
    min-height: 36px;
    font-size: 0.76rem;
  }
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
