:root {
  color-scheme: dark;
  --canvas: #11161e;
  --panel: #19212c;
  --line: #344253;
  --text: #f0f5fa;
  --muted: #abbaca;
  --blue: #7bb9f5;
  --mint: #71e5ca;
  --icon-bg: #1b2736;
  --icon-line: #2a394c;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(73rem, calc(100% - 4rem)); margin-inline: auto; }
.accent { color: var(--blue); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; z-index: 5; inset: 0.5rem auto auto 0.5rem; padding: 0.6rem 1rem; background: var(--panel); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header, .site-footer { background: #111821; }
.site-header { border-bottom: 1px solid #263344; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; font-size: 1.2rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 50%;
  background: #203049 url("assets/aethersync-logo.png") 50% 45.5% / 158% no-repeat;
}
nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.7vw, 2.15rem); }
nav a, .footer-inner > a:last-child { color: var(--muted); font-size: 0.95rem; font-weight: 550; text-decoration: none; }
nav a:hover, .footer-inner > a:last-child:hover { color: var(--text); }
nav .nav-download { color: var(--blue); border: 1px solid #35516f; background: #182738; border-radius: 7px; padding: 0.44rem 0.85rem; }
nav .nav-download:hover { border-color: var(--blue); }

.hero {
  padding: clamp(3.4rem, 7vw, 7.7rem) 0 clamp(3.2rem, 6vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid #263344;
  background:
    radial-gradient(ellipse at 83% 40%, #213753 0%, transparent 55%),
    linear-gradient(145deg, #141d2a 0%, #11161e 60%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(1.8rem, 5vw, 5rem); align-items: center; }
.kicker { color: var(--blue); font-size: 0.9rem; font-weight: 650; }
h1 { margin-top: 0.7rem; font-size: clamp(3.35rem, 6.55vw, 6.15rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.062em; }
.hero-summary { color: var(--muted); max-width: 26rem; margin-top: 1.45rem; font-size: clamp(1.07rem, 1.6vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.65rem; }
.button {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.14rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 650;
  text-decoration: none;
}
.button-primary { background: var(--blue); color: #102034; }
.button-primary:hover { background: #a1cfff; }
.button-secondary { background: #1b2635; color: var(--text); border-color: var(--line); }
.button-secondary:hover { border-color: var(--blue); }
.button:disabled { color: #b3c4d7; background: #213044; border-color: #3a4d63; cursor: default; }
.platform { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); margin-top: 1.15rem; font-size: 0.9rem; }
.platform .icon { color: var(--blue); width: 1rem; height: 1rem; }

.app-preview { min-width: 0; }
.app-preview img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 1.25rem 3rem #070b1380; }
.app-preview figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; color: var(--muted); margin: 0.8rem 0.15rem 0; font-size: 0.81rem; }
.app-preview figcaption a { color: var(--blue); }

.section { padding-block: clamp(2.4rem, 5.8vw, 5rem); }
h2 { font-size: clamp(1.85rem, 3.1vw, 2.6rem); line-height: 1.12; letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 1.6rem; }
.feature-copy { display: grid; gap: 1rem; }
.feature { padding: 1.3rem; border: 1px solid #2c394b; border-radius: 10px; background: var(--panel); }
.feature-heading, .feature-note { display: flex; align-items: center; gap: 0.75rem; }
.feature-heading { margin-bottom: 0.75rem; }
.feature p, .feature-note p, .setup-list p, .download-panel p { color: var(--muted); }
.feature-details { display: grid; gap: 0.7rem; margin: 1rem 0 0; }
.feature-details div { padding-top: 0.7rem; border-top: 1px solid #2c394b; }
.feature-details dt { font-weight: 650; }
.feature-details dd { margin: 0.12rem 0 0; color: var(--muted); }
.feature-note { margin-top: 1rem; padding: 0.9rem 1.3rem; border: 1px solid #2c394b; border-radius: 8px; background: #151d28; }
.feature-note p { margin-top: 0.2rem; }
.icon-frame { width: 2.55rem; height: 2.55rem; flex: none; display: inline-grid; place-items: center; border-radius: 7px; border: 1px solid var(--icon-line); background: var(--icon-bg); color: var(--blue); }

#download { padding-top: 0; }
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.1rem 1.75rem;
  align-items: center;
  padding: clamp(1.3rem, 4.1vw, 2.6rem);
  border-radius: 12px;
  border: 1px solid #3a5574;
  background: linear-gradient(115deg, #1d2c40, #17222f 62%);
}
.download-panel h2 { margin-bottom: 0.55rem; }
.download-actions .button { min-width: 10.75rem; }
.download-actions p, .release-version { margin-top: 0.55rem; font-size: 0.9rem; }
.release-history { display: inline-block; margin-top: 0.35rem; font-size: 0.9rem; color: var(--blue); }
.checksum { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.checksum summary { color: var(--blue); cursor: pointer; }
.checksum code { display: block; color: var(--muted); margin-top: 0.45rem; overflow-wrap: anywhere; }
.install { padding-top: 0; }
.setup-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.55rem 0 0; padding: 0; }
.setup-list li { display: flex; align-items: flex-start; gap: 0.75rem; border-top: 1px solid #2e3c4f; padding: 1.1rem 0.25rem 0 0; }
.setup-list h3 { margin-bottom: 0.4rem; }
.setup-list a { color: var(--blue); }
code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 0.9em; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid #263344; padding-block: 1.35rem; }
.site-footer p { color: var(--muted); font-size: 0.875rem; }
.site-footer .wordmark { font-size: 1.05rem; }
.site-footer .brand-mark { width: 1.65rem; height: 1.65rem; }

@media (max-width: 56rem) {
  .shell { width: min(42rem, calc(100% - 3rem)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .features .feature-grid, .setup-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.8rem; }
  h1 { font-size: clamp(2.85rem, 10.5vw, 4rem); }
  .hero { padding-top: 2.9rem; }
  .download-panel { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 1; width: 100%; }
}
@media (max-width: 27rem) {
  nav a:not(.nav-download) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
