:root {
  color-scheme: dark;
  --bg: #0b0c1a;
  --surface-strong: #19192b;
  --border: rgba(222, 219, 255, .17);
  --text: #fbfaff;
  --muted: #c1c3d6;
  --purple: #9164ed;
  --purple-bright: #c6b0ff;
  --orange: #ffb567;
  --green: #a4ffdc;
  --glass: linear-gradient(135deg, rgba(184, 164, 250, .14), rgba(207, 220, 247, .05) 42%, rgba(114, 223, 201, .09));
  --glass-edge: inset 0 1px 0 rgba(250, 246, 255, .24), inset 0 -1px 0 rgba(163, 232, 223, .09);
  --shadow: 0 24px 70px rgba(3, 5, 16, .32);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 87% 14%, rgba(78, 196, 177, .20), transparent 32rem),
    radial-gradient(ellipse at 14% 0%, rgba(138, 82, 226, .31), transparent 44rem),
    radial-gradient(ellipse at 11% 61%, rgba(107, 66, 192, .19), transparent 52rem),
    linear-gradient(150deg, #161129, var(--bg) 42%, #101c27);
  color: var(--text);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 15px; border-radius: 12px; background: var(--surface-strong); color: var(--text); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header, .hero, .contact-panel, .project-card, .site-announcement {
  border: 1px solid var(--border);
  background: var(--glass), rgba(17, 18, 35, .63);
  box-shadow: var(--glass-edge), var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}

.site-header, main, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 5;
  top: 12px;
  min-height: 64px;
  margin-block: 18px 0;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 30px;
}

.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand img, .footer-brand img { width: 42px; height: 42px; object-fit: contain; object-position: top; filter: drop-shadow(0 6px 18px rgba(124, 60, 255, .35)); }
.brand > span { font-size: 1.2rem; }
.brand > span span { color: var(--purple-bright); }
.site-header nav { display: flex; align-items: center; gap: 5px; }
.site-header nav > a { padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 650; transition: color .2s ease, background .2s ease; }
.site-header nav > a:hover { color: var(--text); background: rgba(238, 230, 255, .10); }
.site-header nav > a.nav-account { border: 1px solid var(--border); background: rgba(216, 206, 255, .09); color: var(--text); }

.language-toggle {
  min-width: 45px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 800;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.language-toggle:hover { border-color: rgba(156,108,255,.7); background: rgba(124,60,255,.12); transform: translateY(-1px); }

.hero {
  min-height: 555px;
  margin: 24px 0;
  padding: clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  align-items: center;
  gap: 18px;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 86% 37%, rgba(87, 206, 186, .19), transparent 42%),
    radial-gradient(ellipse at 55% 100%, rgba(136, 88, 244, .24), transparent 63%),
    var(--glass), rgba(16, 14, 32, .56);
}
.eyebrow, .section-kicker {
  margin: 0 0 16px;
  color: var(--purple-bright);
  font-size: .78rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; color: #d7cdf8; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(80,227,164,.8); }
h1, h2, p { text-wrap: pretty; }
h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 6.3vw, 6rem);
  line-height: .99;
  letter-spacing: -.07em;
  font-weight: 780;
}
.gradient-text { background: linear-gradient(109deg, #e1ccff 3%, #baa6ff 49%, #aaf2da 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-intro { max-width: 630px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 780;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button svg, .text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: #201733; border-color: #e6d9fc; background: linear-gradient(145deg, #efe5ff, #c0a7f2 65%, #a5e3d8); box-shadow: var(--glass-edge), 0 10px 24px rgba(126, 91, 214, .28); }
.button-primary:hover { transform: translateY(-2px); box-shadow: var(--glass-edge), 0 14px 30px rgba(157, 125, 232, .45); }
.button-secondary { color: var(--text); background: linear-gradient(160deg, rgba(235, 220, 255, .12), rgba(227, 246, 255, .04)); border-color: var(--border); box-shadow: var(--glass-edge); }
.button-secondary svg { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.button-secondary:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); }

.hero-mark { position: relative; display: grid; place-items: center; isolation: isolate; }
.logo-stage {
  position: relative;
  width: min(100%, 490px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.logo-stage img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 28px rgba(8, 6, 24, .62)); }
.orbit { position: absolute; width: 92%; aspect-ratio: 1; border: 1px solid rgba(157, 255, 226, .53); border-radius: 50%; pointer-events: none; }
.orbit-one {
  transform: translateY(-4%);
  border-top: 2px solid rgba(209, 255, 240, .82);
  border-right-color: rgba(191, 170, 255, .42);
  border-bottom-color: rgba(192, 163, 255, .22);
  background: radial-gradient(ellipse at 68% 30%, rgba(137, 255, 222, .18), rgba(155, 110, 255, .11) 63%, transparent);
  box-shadow: 0 -3px 26px rgba(151, 249, 218, .24), inset 0 6px 28px rgba(184, 255, 235, .09);
}
.orbit-two { width: 104%; transform: translateY(28%) rotate(-12deg) scaleY(.27); border-color: rgba(183, 162, 255, .34); }

.projects { padding: 95px 0 110px; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.section-heading h2, .contact-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.055em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #d4cfde; text-decoration: none; font-size: .9rem; font-weight: 700; }
.text-link:hover { color: var(--purple-bright); }
.repo-status { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.repo-status[hidden] { display: none; }
.loader { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.13); border-top-color: var(--purple-bright); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-search { display: grid; gap: 6px; max-width: 24rem; color: var(--muted); font-size: .9rem; }
.project-search[hidden] { display: none; }
.project-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.project-controls[hidden] { display: none; }
.project-controls .project-search:first-child { flex: 1 1 16rem; }
.project-search input, .project-search select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-strong); color: var(--text); font: inherit; }
.auth-form { width: min(100%, 22rem); flex: 0 0 auto; }
.download-integrity { margin-top: 16px; }
.download-integrity code { display: block; overflow-wrap: anywhere; }
.docs-faq details { border-top: 1px solid var(--border); padding-block: 12px; }
.docs-faq summary, .download-integrity summary { cursor: pointer; }
.share-link { margin-top: 18px; max-width: 48rem; }
.account-main { padding: clamp(50px, 9vw, 110px) 0; }
.account-main .contact-panel { margin-bottom: 0; }
.project-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-card:has(.project-card-link):is(:hover, :focus-within) { transform: translateY(-3px); border-color: rgba(198, 180, 255, .48); box-shadow: var(--glass-edge), 0 24px 54px rgba(8, 5, 24, .40); }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.project-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(124,60,255,.13); border: 1px solid rgba(156,108,255,.2); color: var(--purple-bright); }
.project-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.project-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); border: 1px solid var(--border); transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.project-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-card:hover .project-arrow { color: var(--text); border-color: rgba(156,108,255,.4); transform: translate(2px,-2px); }
.project-card h3 { margin: 27px 0 10px; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.035em; }
.project-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.project-meta { margin-top: auto; padding-top: 25px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: #c0bacd; font-size: .8rem; font-weight: 650; }
.project-meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.language-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--language-color, var(--purple)); box-shadow: 0 0 12px color-mix(in srgb, var(--language-color, var(--purple)) 60%, transparent); }
.project-card-link { position: absolute; inset: 0; border-radius: inherit; }
.project-card-link:focus-visible { outline: 3px solid var(--orange); outline-offset: -5px; }

.contact-panel {
  margin-bottom: 92px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 32px;
}
.contact-panel > div { max-width: 720px; }
.contact-panel p:not(.section-kicker) { margin: 17px 0 0; color: var(--muted); font-size: 1.02rem; }
.contact-panel .button { flex: 0 0 auto; }
.launcher-feature { margin-bottom: 48px; }
.launcher-hero { padding: clamp(72px, 12vw, 150px) 0 clamp(58px, 8vw, 100px); }
.launcher-jump { margin-top: 24px; }
.project-follow { position: relative; z-index: 1; align-self: flex-start; margin-top: 16px; }
.account-project { margin-top: 24px; }
.account-project .button { margin-top: 10px; }
.account-project form { margin-top: 8px; }
.content-page h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.content-stack { display: grid; gap: 18px; margin-top: 32px; }
.content-stack h2 { margin: 0 0 12px; }
.content-stack .text-link { margin-top: 12px; align-self: flex-start; }
.project-preview { margin: 32px 0 0; max-width: 760px; color: var(--muted); font-size: .9rem; }
.project-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 18px; }
.project-preview figcaption { margin-top: 8px; }
.release-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.site-announcement { margin: 24px 0 0; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; overflow-wrap: anywhere; }
.account-form { display: grid; gap: 12px; max-width: 46rem; }
.account-form label { display: grid; gap: 4px; }
.account-form input, .account-form textarea { width: 100%; color: var(--text); background: var(--surface-strong); border: 1px solid var(--border); border-radius: 10px; padding: 10px; font: inherit; }
.account-form button { justify-self: start; }
.account-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.launcher-card { min-height: 0; }
.launcher-card h3 { margin-top: 0; }
.launcher-card p { max-width: 55ch; }

footer { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand { color: var(--text); font-size: .92rem; }
footer p { margin: 0; text-align: right; }
footer a { color: #d7d2df; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .site-header nav > a { padding-inline: 8px; }
  .hero { min-height: 420px; }
  .hero-mark { width: 100%; margin-inline: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(calc(100% - 24px), var(--max)); }
  .site-header { position: relative; top: auto; min-height: 0; gap: 6px; flex-wrap: wrap; border-radius: 22px; padding: 7px 10px; margin-top: 10px; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin-left: auto; }
  .site-header nav > a { padding: 6px; font-size: .79rem; }
  .language-toggle { min-width: 36px; min-height: 34px; }
  .site-header nav > a:not(.launcher-nav) { display: none; }
  .brand img { width: 30px; height: 30px; }
  .brand { gap: 5px; }
  .brand > span { font-size: 1rem; }
  .hero { padding: 36px 22px 6px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  h1 { font-size: clamp(2.5rem, 11.5vw, 4.4rem); overflow-wrap: anywhere; }
  .hero-intro { margin-top: 24px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero .hero-actions { flex-direction: row; margin-top: 26px; }
  .hero .hero-actions .button { width: auto; flex: 1 0 auto; }
  .hero-mark { max-width: 330px; }
  .logo-stage { width: min(100%, 330px); }
  .projects { padding: 72px 0 78px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .project-card { min-height: 290px; padding: 24px; }
  .contact-panel { margin-bottom: 70px; padding: 30px 24px; }
  .contact-panel .button { width: 100%; }
  .launcher-feature { margin-bottom: 36px; }
  .launcher-card { min-height: 0; }
  footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .hero, .contact-panel, .project-card, .site-announcement {
    background: var(--surface-strong);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
