:root {
  color-scheme: dark;
  --canvas: #0a1427;
  --page-end: #080f1d;
  --panel: #132743;
  --ink: #f3f7ff;
  --muted: #b6c8e5;
  --blue: #a9d8ff;
  --lilac: #cccbff;
  --edge: #91b9f043;
  --size: 1232px;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 760px 570px at 85% 13rem, #213b718c, transparent 78%),
    radial-gradient(ellipse 580px 470px at 8% 36rem, #11294ba3, transparent 75%),
    linear-gradient(var(--canvas), var(--page-end));
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #d5e8ff;
  outline-offset: 4px;
}
section[id], article[id^="download-"] { scroll-margin-top: 6rem; }
.wrap { width: min(var(--size), calc(100% - 88px)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 8;
  top: 1rem;
  left: 1rem;
  padding: .72rem 1rem;
  background: var(--blue);
  color: #0c203c;
  border-radius: .55rem;
  transform: translateY(-180%);
}
.skip:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid #a6c8ff23;
  background: #0a1427ea;
  backdrop-filter: blur(20px);
}
.topbar-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-self: start;
  text-decoration: none;
  font-weight: 720;
  font-size: 1.13rem;
  letter-spacing: -.026em;
  white-space: nowrap;
}
.wordmark span span { color: #bacfea; font-weight: 500; }
.navigation, .footer nav { display: flex; align-items: center; gap: clamp(1.05rem, 3.2vw, 2.45rem); }
.navigation a, .footer nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}
.navigation a:hover, .footer nav a:hover { color: var(--ink); }
.top-download { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .68rem 1.03rem;
  font-weight: 680;
  font-size: .96rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button-primary {
  background: linear-gradient(130deg, #ecf5ff, #b2d8ff);
  color: #0b2241;
  border-color: #edf5ffc0;
  box-shadow: 0 7px 22px #75abff35;
}
.button-primary:hover { box-shadow: 0 10px 28px #75abff55; }
.button-outline {
  color: var(--ink);
  border-color: #c3ddff56;
  background: #aecbff11;
}
.button-outline:hover { background-color: #4a70b058; border-color: #c3ddff95; }
.top-download { min-height: 41px; padding: .53rem .8rem; font-size: .88rem; }
.file-kind { font-size: .7rem; font-weight: 720; letter-spacing: .07em; opacity: .8; }
.button [aria-hidden="true"] { flex-shrink: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 3rem);
  min-height: clamp(510px, 52vw, 692px);
  padding-block: 4.1rem 3.55rem;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(3rem, 5.85vw, 5.6rem);
  font-weight: 790;
  letter-spacing: -.075em;
  line-height: .99;
}
.hero h1 span {
  color: var(--blue);
  background: linear-gradient(115deg, #eaf5ff 1%, #aad4ff 56%, #c3bcff 105%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  margin-top: 1.35rem;
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.22;
}
.hero-summary {
  max-width: 26rem;
  margin-top: .9rem;
  color: var(--muted);
  font-size: 1.045rem;
  line-height: 1.64;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.65rem; }
.hero-note { margin-top: .8rem; font-size: .83rem; color: var(--muted); }

.hero-stage {
  --frame: #85b2e95f;
  position: relative;
  min-width: 0;
  isolation: isolate;
  aspect-ratio: 1.34;
  overflow: clip;
  overflow-clip-margin: 10px;
}
.stage-glow {
  position: absolute;
  z-index: -1;
  inset: 3% 0 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 74% 69%, #586cee67, transparent 53%),
    radial-gradient(ellipse at 35% 49%, #3b8fef48, transparent 56%);
}
.stage-glow::before, .stage-glow::after {
  content: "";
  position: absolute;
  inset: 14% 9% 12%;
  border: 1px solid #92baff28;
  border-radius: 50%;
  transform: rotate(-23deg);
}
.stage-glow::after { inset: 25% 7% 22%; border-color: #abcaff21; transform: rotate(-14deg); }
.desktop-preview, .phone-preview {
  position: absolute;
  background: linear-gradient(145deg, #345987, #142643 48%, #2d4368);
  border: 1px solid var(--frame);
  box-shadow: 0 22px 62px #020815bc, inset 0 1px 0 #f0f7ff29;
}
.desktop-preview {
  inset: 1% auto auto 2%;
  width: 82%;
  border-radius: clamp(13px, 2vw, 21px);
  padding: clamp(3px, .7vw, 8px);
}
.desktop-preview img { width: 100%; height: auto; border-radius: clamp(9px, 1.35vw, 13px); }
.phone-preview {
  right: 3%;
  bottom: 1%;
  width: 26%;
  border-radius: clamp(13px, 2.5vw, 24px);
  padding: clamp(3px, .5vw, 6px);
  box-shadow: 0 11px 30px #030816da, 0 0 34px #90b8ff24;
}
.phone-preview img { width: 100%; height: auto; border-radius: clamp(9px, 1.95vw, 17px); }

.section { padding-block: 3.8rem; }
.section-heading { margin-bottom: 1.4rem; }
.section-heading h2 {
  font-size: clamp(1.93rem, 4vw, 3.12rem);
  font-weight: 740;
  line-height: 1.05;
  letter-spacing: -.055em;
}
.section-heading p { max-width: 41rem; margin-top: .7rem; color: var(--muted); line-height: 1.62; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .82rem;
}
.feature {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  min-width: 0;
  min-height: 207px;
  padding: clamp(1.05rem, 2.5vw, 1.65rem);
  border: 1px solid var(--edge);
  border-radius: 19px;
  background: radial-gradient(ellipse at 0 0, var(--wash, #243e744d), transparent 80%), #111f37;
  overflow: hidden;
}
.feature h3 { margin-top: .94rem; font-size: 1.19rem; letter-spacing: -.015em; line-height: 1.22; }
.feature p { max-width: 25rem; margin-top: .51rem; color: var(--muted); line-height: 1.58; }
.feature-icon { width: 44px; height: 44px; object-fit: contain; }
.feature-chat, .feature-projects {
  grid-column: span 7;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  align-items: center;
  align-content: stretch;
  gap: .7rem;
}
.feature-pdf, .feature-code { grid-column: span 5; }
.feature-chat { --wash: #294d884f; }
.feature-pdf { --wash: #42437775; }
.feature-code { --wash: #23466366; }
.feature-projects { --wash: #30427e68; }
.feature-preview {
  align-self: end;
  width: 100%;
  height: auto;
  border: 1px solid #95bef654;
  border-radius: 10px;
  box-shadow: 0 12px 30px #050c1bba;
}
.feature-copy { min-width: 0; }

.gallery {
  padding: clamp(1rem, 3.9vw, 2.52rem);
  border: 1px solid var(--edge);
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 72% 45%, #335e9d51, transparent 67%),
    radial-gradient(ellipse at 2% 2%, #42428134, transparent 61%),
    #111f37;
}
.gallery-picker {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: .28rem;
  margin-bottom: .95rem;
  padding: .32rem;
  border: 1px solid #a5c7ff40;
  border-radius: 13px;
  background: #0b172b;
}
.gallery-tab {
  cursor: pointer;
  min-height: 42px;
  padding: .52rem .9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .91rem;
}
.gallery-tab:hover { color: var(--ink); }
.gallery-tab[aria-selected="true"] {
  color: var(--ink);
  border-color: #bad6ff52;
  background: linear-gradient(#365888, #253e67);
}
.gallery-panel {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(1.3rem, 5vw, 4.2rem);
  min-height: 400px;
}
.gallery-panel + .gallery-panel:not([hidden]) { margin-top: 1rem; }
.gallery.is-enhanced .gallery-panel { margin-top: 0; }
.gallery-copy { max-width: 29rem; }
.gallery-copy h3 {
  font-size: clamp(1.55rem, 3.3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.gallery-copy p { margin-top: .84rem; color: var(--muted); line-height: 1.65; }
.gallery-image {
  justify-self: center;
  padding: 5px;
  border: 1px solid #a5c8ff70;
  background: linear-gradient(145deg, #385477, #152845);
  box-shadow: 0 16px 40px #060e20a8;
  border-radius: 16px;
}
.gallery-wide { width: min(100%, 522px); }
.gallery-phone { width: min(215px, 100%); }
.gallery-image img { width: 100%; height: auto; border-radius: 11px; }

.download-section { padding-bottom: 4.9rem; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.download-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: start;
  gap: .92rem;
  padding: clamp(1.15rem, 3vw, 1.9rem);
  border: 1px solid var(--edge);
  border-radius: 19px;
  background: radial-gradient(ellipse at 0 5%, var(--wash, #314e7950), transparent 72%), #111e34;
}
#download-android { --wash: #3d407d68; }
#download-android:target, #download-windows:target { border-color: #b8d7ffaf; }
.download-heading { display: flex; align-items: center; gap: .85rem; }
.download-heading h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.download-heading p { margin-top: .19rem; color: var(--muted); font-size: .88rem; }
.download-card > p, .download-help { color: var(--muted); line-height: 1.58; }
.migration {
  margin-top: .9rem;
  padding: .8rem 1rem;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: #101e34;
}
.migration summary { cursor: pointer; color: var(--ink); font-size: .92rem; font-weight: 630; }
.migration p, .migration ol { margin: .72rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.migration ol { padding-left: 1.3rem; }
.migration li + li { margin-top: .28rem; }
.migration summary:focus-visible { outline: 2px solid #d5e8ff; outline-offset: 4px; }
.download-help { margin-top: 1.06rem; font-size: .9rem; }
.platform-symbol {
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(150deg, #2f4b77, #172b4a);
  border: 1px solid #95b9fe59;
  border-radius: 12px;
}
.platform-windows {
  display: inline-block;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor 0 0) top left / 44% 44% no-repeat,
    linear-gradient(currentColor 0 0) top right / 44% 44% no-repeat,
    linear-gradient(currentColor 0 0) bottom left / 44% 44% no-repeat,
    linear-gradient(currentColor 0 0) bottom right / 44% 44% no-repeat;
}
.platform-symbol .platform-windows { width: 20px; height: 20px; }
.platform-android {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 11px;
  color: var(--lilac);
  border-radius: 18px 18px 3px 3px;
  background: currentColor;
}
.button-primary .platform-android { color: #1b385e; }
.platform-android::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #192b49;
  box-shadow: 8px 0 #192b49;
}
.button-primary .platform-android::before { background: #d3eaff; box-shadow: 8px 0 #d3eaff; }
.platform-android::after {
  content: "";
  position: absolute;
  inset: -4px 4px auto;
  height: 6px;
  border-inline: 1.5px solid currentColor;
  border-radius: 2px;
  transform: perspective(12px) rotateX(-20deg);
}
.footer { border-top: 1px solid var(--edge); background: #080f1e; }
.footer-inner { display: flex; align-items: center; gap: .95rem 2rem; justify-content: space-between; flex-wrap: wrap; min-height: 87px; padding-block: 1rem; }
.footer nav { flex-wrap: wrap; gap: .55rem 1.35rem; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .hero { min-height: 520px; padding-block: 2.6rem 2.4rem; gap: .95rem; }
  .hero h1 { font-size: clamp(2.85rem, 6.55vw, 4.55rem); }
  .feature-chat, .feature-projects { gap: .5rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-column: auto; }
  .feature-preview { align-self: center; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .topbar-inner { grid-template-columns: auto 1fr auto; min-height: 64px; }
  .navigation { justify-content: center; gap: .95rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; padding-block: 2.85rem 1.15rem; }
  .hero h1 { font-size: clamp(3.12rem, 11vw, 5.4rem); }
  .hero-stage { width: min(100%, 570px); justify-self: center; }
  .section { padding-block: 2.64rem; }
  .feature-chat, .feature-projects { grid-template-columns: minmax(0, 1fr); }
  .feature-preview { max-width: 225px; }
  .feature p { font-size: .92rem; }
  .gallery-panel { min-height: 340px; }
  .gallery-phone { width: min(185px, 100%); }
}
@media (max-width: 530px) {
  .wrap { width: calc(100% - 34px); }
  .topbar-inner { grid-template-columns: 1fr auto; min-height: 61px; }
  .navigation { display: none; }
  .hero h1 { font-size: clamp(2.72rem, 11.6vw, 4.3rem); }
  .hero-tagline { margin-top: .91rem; font-size: clamp(1.3rem, 5.3vw, 1.6rem); }
  .hero-summary { margin-top: .57rem; font-size: .98rem; }
  .hero-actions { margin-top: 1.17rem; gap: .45rem; }
  .hero-actions .button { min-height: 44px; padding-inline: .62rem; gap: .36rem; font-size: .88rem; }
  .hero-note { margin-top: .61rem; }
  .phone-preview { width: 30%; right: 2%; }
  .section { padding-block: 2rem; }
  .section-heading { margin-bottom: 1.03rem; }
  .feature-grid { gap: .62rem; }
  .feature { min-height: 0; padding: .85rem; }
  .feature-icon { width: 37px; height: 37px; }
  .feature h3 { margin-top: .65rem; font-size: 1.01rem; }
  .feature p { margin-top: .42rem; font-size: .84rem; }
  .feature-preview { display: none; }
  .gallery-panel { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .gallery-picker { margin-bottom: .95rem; }
  .gallery-tab { min-height: 39px; padding-inline: .54rem; font-size: .85rem; }
  .gallery-copy p { margin-top: .55rem; }
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { min-height: 0; padding-block: 1.3rem; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 26px); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
