:root {
  --bg: #0B0A24;
  --bg-deep: #08071C;
  --panel: #171533;
  --rose: #E58FBE;
  --gold: #E8C597;
  --text: #F7F1F8;
  --muted: #A79BC9;
  --cta: #A93E76;
  --cta-hover: #B0447C;
  --line: rgba(232, 197, 151, 0.22);
  --line-soft: rgba(167, 155, 201, 0.16);
  --display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Segoe UI Variable Text", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --shell: 1180px;
  --pad: clamp(20px, 4vw, 46px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rose);
}

button,
summary,
a {
  touch-action: manipulation;
}

::selection {
  background: var(--cta);
  color: #F7F1F8;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--gold);
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  top: -70px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--bg);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(800px, 100svh);
  overflow: clip;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 30%;
  opacity: 0.62;
  filter: saturate(0.9) contrast(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 10, 36, 0.98) 0%, rgba(11, 10, 36, 0.93) 33%, rgba(11, 10, 36, 0.54) 63%, rgba(11, 10, 36, 0.72) 100%),
    linear-gradient(180deg, rgba(11, 10, 36, 0.32) 0%, rgba(11, 10, 36, 0.12) 44%, var(--bg) 100%),
    radial-gradient(55% 55% at 78% 22%, rgba(232, 197, 151, 0.13), transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: clamp(22px, 3vw, 34px);
  padding-bottom: 22px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.brand img {
  width: 28px;
  height: 28px;
}

.top-version {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  flex: 1;
  align-items: center;
  gap: clamp(32px, 4.5vw, 60px);
  padding-block: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 44px);
}

.hero-copy {
  max-width: 600px;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(3.9rem, 6.6vw, 5.8rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.hero-sub {
  max-width: 34ch;
  margin: 18px 0 0;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero-lede {
  max-width: 44ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.test-warning {
  max-width: 560px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(232, 197, 151, 0.28);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(232, 197, 151, 0.07);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.test-warning strong {
  color: var(--gold);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 26px;
  padding: 0 24px;
  border: 1px solid rgba(247, 241, 248, 0.14);
  border-radius: 10px;
  background: var(--cta);
  box-shadow: 0 14px 38px rgba(169, 62, 118, 0.28);
  color: #F7F1F8;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cta:hover {
  background: var(--cta-hover);
  box-shadow: 0 18px 44px rgba(169, 62, 118, 0.34);
  color: #F7F1F8;
}

.cta:active {
  transform: translateY(1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.meta-dot {
  color: rgba(167, 155, 201, 0.6);
}

.ready {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 500;
}

.ready-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 197, 151, 0.55);
}

.hero-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.hash-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(232, 197, 151, 0.22);
  border-radius: 8px;
  background: rgba(11, 10, 36, 0.42);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.hash-copy:hover {
  border-color: rgba(232, 197, 151, 0.5);
  background: rgba(23, 21, 51, 0.72);
}

.hash-action {
  padding-left: 10px;
  border-left: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
}

.hash-code {
  letter-spacing: 0.02em;
}

.git-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: underline;
  text-decoration-color: rgba(232, 197, 151, 0.4);
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.git-link:hover {
  color: var(--gold);
}

.copy-status {
  min-height: 1.3em;
  max-width: 54ch;
  margin: 7px 0 0;
  color: var(--gold);
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hero-shot {
  justify-self: end;
  align-self: end;
  width: 100%;
  max-width: 500px;
  margin: 0;
}

.hero-shot img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(232, 197, 151, 0.18);
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

.hero-credit {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* Section system */

.inside,
.install,
.faq {
  scroll-margin-top: 24px;
}

.section-head {
  max-width: 690px;
  margin-bottom: 22px;
}

.section-head h2,
.faq-head h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head p,
.faq-head p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* What is inside */

.inside {
  position: relative;
  overflow: clip;
  padding: clamp(40px, 4.5vw, 58px) 0;
  background: var(--bg);
}

.inside::after,
.install::after,
.faq::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: min(760px, 84%);
  height: 112px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 197, 151, 0.07), transparent 72%);
  pointer-events: none;
}

.inside::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34% 55% at 34% 56%, rgba(229, 143, 190, 0.14), transparent 72%),
    radial-gradient(30% 50% at 78% 48%, rgba(232, 197, 151, 0.1), transparent 74%),
    radial-gradient(46% 58% at 14% 8%, rgba(229, 143, 190, 0.08), transparent 72%);
  pointer-events: none;
}

.inside .shell {
  position: relative;
  z-index: 1;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glass {
  display: flex;
  flex-direction: column;
  min-height: 244px;
  padding: 26px 22px 24px;
  border: 1px solid rgba(232, 197, 151, 0.2);
  border-top-color: rgba(232, 197, 151, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(34, 31, 69, 0.62), rgba(23, 21, 51, 0.4) 62%, rgba(23, 21, 51, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(247, 241, 248, 0.08),
    0 20px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.glass-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.glass-num {
  display: block;
  color: var(--rose);
  font-family: var(--display);
  font-size: clamp(2.7rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.glass-label {
  max-width: 18ch;
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.glass p {
  max-width: 30ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Install */

.install {
  position: relative;
  padding: clamp(38px, 4vw, 52px) 0;
}

.install .shell,
.faq .shell {
  position: relative;
  z-index: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 46px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  color: var(--rose);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  max-width: 24ch;
  margin: 0 0 6px;
  font-size: 16.5px;
  line-height: 1.35;
}

.steps p {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* FAQ */

.faq {
  position: relative;
  padding: clamp(38px, 4vw, 52px) 0 clamp(46px, 5vw, 62px);
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.faq-head p {
  max-width: 26ch;
}

.faq-list {
  border-bottom: 1px solid var(--line-soft);
}

.faq details {
  border-top: 1px solid var(--line-soft);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--rose);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  transform-origin: 50% 50%;
  transition: transform 160ms ease, color 160ms ease;
}

.faq summary:hover {
  color: var(--gold);
}

.faq summary:hover::after {
  color: var(--gold);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.answer {
  max-width: 62ch;
  padding: 0 0 18px;
}

.answer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.answer a {
  color: var(--gold);
}

/* Footer */

.site-footer {
  padding: 26px 0 28px;
  border-top: 1px solid rgba(232, 197, 151, 0.32);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

.footer-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.footer-version {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-left: auto;
  font-size: 12.5px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-hash {
  color: var(--muted);
  font-size: 12px;
}

.footer-legal {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Responsive */

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 32px 28px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 8.5vw, 6.4rem);
  }

  .hero-shot {
    justify-self: start;
    max-width: 620px;
  }
}

@media (max-width: 860px) {
  .glass-grid {
    gap: 14px;
  }

  .glass {
    min-height: 230px;
    padding: 20px 16px;
  }

  .glass-num {
    font-size: 44px;
  }

  .glass-label {
    font-size: 16px;
  }

  .glass p {
    font-size: 13.5px;
  }

  .steps {
    gap: 22px;
  }

  .step-num {
    font-size: 36px;
  }

  .steps h3 {
    font-size: 15.5px;
  }
}

@media (max-width: 640px) {
  .hero-bg {
    object-position: 56% 26%;
    opacity: 0.5;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(11, 10, 36, 0.72) 0%, rgba(11, 10, 36, 0.92) 54%, var(--bg) 100%),
      radial-gradient(70% 40% at 70% 10%, rgba(232, 197, 151, 0.1), transparent 70%);
  }

  .hero-sub {
    font-size: 19px;
  }

  .hero-lede {
    font-size: 15.5px;
  }

  .hero-shot img {
    border-radius: 8px;
  }

  .glass-grid {
    grid-template-columns: 1fr;
  }

  .glass {
    min-height: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps li {
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .step-num {
    margin: 0;
    font-size: 32px;
  }

  .steps h3 {
    max-width: none;
  }

  .faq-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .faq-head p {
    max-width: 44ch;
  }

  .footer-links {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

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