:root {
  color-scheme: dark;
  --ink: #eff4ff;
  --muted: #9eabc0;
  --subtle: #69768c;
  --line: rgba(178, 196, 226, 0.15);
  --surface: rgba(18, 28, 46, 0.86);
  --surface-strong: #111c30;
  --page: #08101d;
  --blue: #78a8ff;
  --blue-strong: #4f7ee8;
  --cyan: #62d9c8;
  --amber: #f2b765;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 2%, rgba(79, 126, 232, 0.2), transparent 30rem),
    radial-gradient(circle at 10% 32%, rgba(98, 217, 200, 0.08), transparent 28rem),
    var(--page);
  color: var(--ink);
}

.water-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    repeating-radial-gradient(ellipse at 72% 28%, rgba(120, 168, 255, .08) 0 1px, transparent 3px 44px),
    linear-gradient(160deg, #07111f, #09172b 58%, #07111f);
  opacity: 1;
}

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

.site-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: white;
  color: #08101d;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(120, 168, 255, .6);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(120,168,255,.25), rgba(98,217,200,.08));
  color: #dfeaff;
  font-weight: 800;
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .94rem; letter-spacing: .02em; }
.brand-copy small { margin-top: .2rem; color: var(--subtle); font-size: .68rem; }

.header-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
}
.header-nav a:hover, .header-nav a:focus-visible { color: var(--ink); }

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.language-switch button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: .4rem .65rem;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  font-size: .75rem;
}
.language-switch button[aria-pressed="true"] { background: #e9f0ff; color: #101a2c; }

main { overflow: clip; }
.hero,
.launcher-section,
.plugins-section,
.method-section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  min-height: 660px;
  padding: 6rem 0 7rem;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-lede {
  max-width: 650px;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 720;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(120,168,255,.55); outline-offset: 3px; }
.button-primary { background: #eaf1ff; color: #0d1728; box-shadow: 0 14px 30px rgba(79,126,232,.17); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.035); color: var(--ink); }
.independence { max-width: 650px; margin-top: 1.4rem; color: var(--subtle); font-size: .77rem; line-height: 1.65; }

.hero-console {
  position: relative;
  border: 1px solid rgba(120,168,255,.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(21,34,57,.96), rgba(10,18,31,.96));
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-console::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(79,126,232,.16);
  filter: blur(55px);
}
.console-topbar { display: flex; align-items: center; gap: .4rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.console-topbar span { width: 8px; height: 8px; border-radius: 50%; background: #43516a; }
.console-topbar span:nth-child(1) { background: #f08e79; }
.console-topbar span:nth-child(2) { background: #f2c66d; }
.console-topbar span:nth-child(3) { background: #66d2aa; }
.console-topbar code { margin-left: auto; color: var(--subtle); font-size: .72rem; }
.console-body { padding: 1.6rem; font-family: "Cascadia Code", Consolas, monospace; font-size: .82rem; }
.console-body p { margin: 0 0 .9rem; color: #b8c3d5; }
.prompt { color: var(--cyan); }
.status-row { display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: center; margin-bottom: 2rem; padding: .85rem 1rem; border: 1px solid rgba(98,217,200,.2); border-radius: 12px; background: rgba(98,217,200,.055); }
.status-row strong { color: var(--cyan); font-size: .72rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(98,217,200,.1); }
.verify-grid { display: grid; grid-template-columns: 1fr auto; gap: .75rem 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.verify-grid strong { color: var(--ink); text-align: right; }

.trust-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.trust-strip > div { padding: 1.35rem clamp(1rem, 3vw, 2.5rem); border-right: 1px solid var(--line); }
.trust-strip > div:first-child { padding-left: max(1rem, calc((100vw - var(--max-width)) / 2)); }
.trust-strip > div:last-child { padding-right: max(1rem, calc((100vw - var(--max-width)) / 2)); border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { margin-bottom: .35rem; font-size: .82rem; }
.trust-strip span { color: var(--subtle); font-size: .72rem; line-height: 1.5; }

.launcher-section, .plugins-section { padding: 8rem 0; }
.section-heading { max-width: 690px; margin-bottom: 2.5rem; }
.section-heading h2, .method-copy h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.6rem); letter-spacing: -.04em; line-height: 1.06; }
.section-heading > p:last-child, .method-copy > p:last-child { color: var(--muted); line-height: 1.75; }
.section-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading-row > div { max-width: 700px; }
.text-link { color: var(--blue); text-underline-offset: 4px; white-space: nowrap; }

.launcher-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  overflow: hidden;
  border: 1px solid rgba(120,168,255,.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(20,32,53,.96), rgba(12,20,34,.96));
  box-shadow: var(--shadow);
}
.launcher-main { display: flex; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); }
.launcher-icon {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(120,168,255,.35);
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(120,168,255,.38), transparent 44%), #0d1a2e;
  box-shadow: inset 0 0 35px rgba(79,126,232,.12);
  font-weight: 850;
  letter-spacing: -.06em;
  font-size: 1.35rem;
}
.launcher-icon i { position: absolute; right: 15px; bottom: 15px; width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(98,217,200,.12); }
.title-line { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.title-line h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.035em; }
.version-pill, .experimental-pill { padding: .28rem .55rem; border: 1px solid rgba(98,217,200,.24); border-radius: 999px; background: rgba(98,217,200,.08); color: var(--cyan); font-size: .7rem; font-weight: 760; }
.launcher-copy > p { color: var(--muted); line-height: 1.7; }
.feature-list { display: grid; gap: .65rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: #c2ccdc; font-size: .87rem; }
.feature-list li::before { content: "✓"; margin-right: .6rem; color: var(--cyan); }

.download-panel { display: grid; align-content: center; gap: 1.1rem; padding: clamp(2rem, 4vw, 3rem); border-left: 1px solid var(--line); background: rgba(3,10,20,.24); }
.download-primary { display: grid; gap: .65rem; }
.download-kicker { color: var(--subtle); font-size: .7rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.button-download { justify-content: space-between; width: 100%; }
.button-download small { color: #53617a; }
.download-count { margin: 0; color: var(--subtle); font-size: .75rem; }
.download-count strong { color: var(--ink); }
.download-secondary { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--muted); }
.download-secondary a { color: var(--blue); text-underline-offset: 4px; }
.checksum-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .6rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; color: var(--subtle); font-size: .68rem; }
.checksum-row code { overflow: hidden; color: #b9c8df; text-overflow: ellipsis; }
.checksum-row a { color: var(--blue); }
.download-note { margin: 0; color: var(--subtle); font-size: .7rem; line-height: 1.6; }

.android-card { margin-top: 1rem; border: 1px solid rgba(242,183,101,.2); border-radius: var(--radius-md); background: rgba(242,183,101,.04); }
.android-card summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; list-style: none; }
.android-card summary::-webkit-details-marker { display: none; }
.android-card summary span:first-child { display: grid; gap: .3rem; }
.android-card summary small { color: var(--subtle); }
.experimental-pill { border-color: rgba(242,183,101,.3); background: rgba(242,183,101,.08); color: var(--amber); }
.android-body { padding: 0 1.4rem 1.4rem; color: var(--muted); line-height: 1.7; }
.android-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .78rem; }
.android-actions > a:not(.button) { color: var(--blue); }

.plugins-section { padding-top: 3rem; }
.plugin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.plugin-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: transform .2s ease, border-color .2s ease; }
.plugin-card:hover { transform: translateY(-3px); border-color: rgba(120,168,255,.32); }
.plugin-visual { position: relative; height: 200px; overflow: hidden; background: radial-gradient(circle at 70% 30%, rgba(120,168,255,.18), transparent 45%), #0c1422; }
.plugin-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -35px 55px rgba(8,16,29,.55); pointer-events: none; }
.plugin-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.plugin-visual.no-image::before { content: "DSH"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(120,168,255,.22); font-size: 4rem; font-weight: 850; letter-spacing: -.08em; }
.plugin-content { padding: 1.35rem; }
.plugin-meta { display: flex; justify-content: space-between; color: var(--subtle); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.plugin-kind { color: var(--cyan); }
.plugin-content h3 { margin: .75rem 0 .55rem; font-size: 1.25rem; letter-spacing: -.02em; }
.plugin-description { min-height: 3.2em; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.compatibility { display: flex; gap: .45rem; margin-top: 1rem; color: var(--subtle); font-size: .7rem; }
.compatibility strong { color: #bdc9dc; font-weight: 600; }
.install-command { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; margin-top: 1rem; padding: .55rem; border: 1px solid var(--line); border-radius: 11px; background: rgba(3,9,18,.4); }
.install-command code { align-self: center; overflow: hidden; padding-left: .25rem; color: #aebbd0; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.install-command button { min-width: 64px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .65rem; background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; font-size: .68rem; }
.plugin-footer { display: flex; justify-content: space-between; margin-top: 1rem; color: var(--subtle); font-size: .7rem; }
.plugin-footer a { color: var(--blue); text-underline-offset: 4px; }

.method-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); padding: 3rem 0 9rem; }
.method-list { display: grid; align-content: center; }
.method-list > div { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.method-list span { color: var(--cyan); font-family: "Cascadia Code", Consolas, monospace; font-size: .7rem; }
.method-list p { margin: 0; color: var(--muted); line-height: 1.65; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--line); }
.site-footer p { margin: .45rem 0 0; color: var(--subtle); font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--muted); font-size: .8rem; text-underline-offset: 4px; }

.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 20; padding: .8rem 1rem; border: 1px solid rgba(98,217,200,.25); border-radius: 12px; background: #14233a; color: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
noscript { display: block; padding: 1rem; background: #4a2d1c; color: white; text-align: center; }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .language-switch { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 5rem 0; }
  .hero-console { max-width: 620px; transform: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip > div:first-child, .trust-strip > div:last-child { padding-inline: 1.25rem; }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .launcher-card { grid-template-columns: 1fr; }
  .download-panel { border-top: 1px solid var(--line); border-left: 0; }
  .method-section { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .water-background { opacity: .82; }
  .site-header { min-height: 70px; }
  .brand-copy small { display: none; }
  .hero, .launcher-section, .plugins-section, .method-section, .site-footer { width: min(calc(100% - 1.25rem), var(--max-width)); }
  .hero { padding-top: 4rem; gap: 3rem; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .status-row { grid-template-columns: auto 1fr; }
  .status-row strong { grid-column: 2; }
  .launcher-section { padding-block: 6rem; }
  .launcher-main { display: grid; gap: 1.4rem; }
  .launcher-icon { width: 78px; height: 78px; border-radius: 22px; }
  .download-secondary, .checksum-row { align-items: start; }
  .checksum-row { grid-template-columns: auto minmax(0,1fr); }
  .checksum-row a { grid-column: 2; }
  .section-heading-row { display: block; }
  .text-link { display: inline-block; margin-top: 1rem; }
  .plugin-grid { grid-template-columns: 1fr; }
  .plugin-visual { height: 175px; }
  .site-footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .water-background { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
