:root {
  --bg: #090806;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7f4ee;
  --muted: #aaa49a;
  --gold: #f4bd43;
  --gold-light: #ffe6a0;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 48% -20%, rgba(232, 151, 15, 0.09), transparent 43%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.ambient--one { top: -20rem; left: -15rem; background: rgba(255, 181, 33, 0.16); }
.ambient--two { right: -20rem; bottom: -20rem; background: rgba(186, 91, 0, 0.12); }

.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  border-radius: 13px;
  box-shadow: 0 0 35px rgba(241, 177, 50, 0.14);
}
.brand span { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 17px; letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-size: 11px; }

.github-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.github-link {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
}
.github-link svg { width: 18px; fill: currentColor; }
.github-link:hover { border-color: rgba(244, 189, 67, 0.5); background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }

main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding: 58px 0 96px;
}

.eyebrow,
.section-label {
  margin: 0 0 22px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 15px var(--gold); }

h1, h2, p { text-wrap: pretty; }
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(52px, 7.2vw, 102px);
  line-height: 0.93;
  letter-spacing: -0.065em;
  font-weight: 860;
}
h1 em {
  color: var(--gold);
  font-style: normal;
  font-weight: 760;
}

.intro {
  max-width: 690px;
  margin: 30px 0 0;
  color: #c1bbb1;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.primary-button {
  min-height: 54px;
  margin-top: 34px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe28a, #e9a81f);
  color: #191107;
  box-shadow: 0 16px 50px rgba(214, 139, 7, 0.16);
}
.primary-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-button:hover { transform: translateY(-2px); }

.boundary {
  max-width: 660px;
  margin: 22px 0 0;
  color: #777269;
  font-size: 13px;
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 40%, rgba(236, 157, 19, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.008));
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
}
.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(244, 189, 67, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 189, 67, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 12% 16% 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 113, 0.7), transparent);
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(72%, 400px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28%;
  mix-blend-mode: screen;
  filter: saturate(0.95) contrast(1.03);
}
.visual-caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -18px;
}
.visual-caption strong { font-size: clamp(27px, 4vw, 42px); letter-spacing: -0.045em; }
.visual-caption span { margin-top: 7px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 0.34em; text-transform: uppercase; }

.phase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(50px, 8vw, 110px);
  padding: 110px 0;
  border-top: 1px solid var(--line);
}
.phase h2,
.next-step h2 {
  margin: 0;
  font-size: clamp(37px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.phase-copy p,
.next-step > p:not(.section-label) {
  margin: 0;
  color: #aaa49a;
  font-size: 17px;
  line-height: 1.75;
}
.phase-copy p + p { margin-top: 22px; }

.next-step {
  margin-bottom: 90px;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgba(244, 189, 67, 0.18);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(244, 189, 67, 0.075), rgba(255, 255, 255, 0.02));
}
.next-step h2 { max-width: 920px; }
.next-step > p:not(.section-label) { max-width: 760px; margin-top: 24px; }
.next-step a {
  display: inline-block;
  margin-top: 28px;
  color: var(--gold-light);
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: #716c64;
  font-size: 12px;
}
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 520px; }
  .phase { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 28px, var(--max)); }
  .site-header { padding: 16px 0; }
  .brand small { display: none; }
  .github-link { padding: 0 13px; }
  .hero { padding: 52px 0 74px; gap: 52px; }
  h1 { font-size: clamp(48px, 15vw, 70px); }
  .intro { margin-top: 24px; }
  .primary-button { width: 100%; }
  .hero-visual { min-height: 390px; border-radius: 25px; }
  .hero-visual img { width: 78%; }
  .phase { padding: 80px 0; }
  .next-step { margin-bottom: 64px; border-radius: 24px; }
  footer { flex-direction: column; }
}

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

/* Project, Kaspa and licensing explanation */
.explain,
.license {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(50px, 8vw, 112px);
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.explain h2,
.kaspa h2,
.license h2 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 1;
  letter-spacing: -0.058em;
}

.explain-copy p,
.section-intro > p:not(.section-label),
.license-copy p {
  margin: 0;
  color: #aaa49a;
  font-size: 17px;
  line-height: 1.78;
}

.explain-copy .lead {
  color: #ddd6ca;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.explain-copy p + p,
.license-copy p + p { margin-top: 22px; }

code {
  padding: 0.12em 0.36em;
  border: 1px solid rgba(244, 189, 67, 0.16);
  border-radius: 6px;
  background: rgba(244, 189, 67, 0.07);
  color: var(--gold-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.kaspa {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 860px;
}

.section-intro > p:not(.section-label) {
  max-width: 760px;
  margin-top: 26px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.info-card {
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255,255,255,0.046), rgba(255,255,255,0.012));
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 189, 67, 0.25);
  border-radius: 50%;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.info-card h3 {
  margin: 42px 0 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.info-card p {
  margin: 18px 0 0;
  color: #99938a;
  font-size: 15px;
  line-height: 1.72;
}

.independence-note {
  max-width: 920px;
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(244, 189, 67, 0.04);
  color: #8f897f;
  font-size: 13px;
  line-height: 1.7;
}

.license {
  align-items: center;
}

.license-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  border: 1px solid rgba(244, 189, 67, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 45%, rgba(244, 189, 67, 0.14), transparent 42%),
    rgba(255,255,255,0.025);
  color: var(--gold);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  letter-spacing: -0.09em;
  text-shadow: 0 0 55px rgba(244, 189, 67, 0.12);
}

.license-copy a {
  display: inline-block;
  margin-top: 28px;
  color: var(--gold-light);
  font-weight: 780;
  text-underline-offset: 6px;
}

@media (max-width: 900px) {
  .explain,
  .license { grid-template-columns: 1fr; gap: 38px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: auto; }
  .license-mark { min-height: 260px; }
}

@media (max-width: 620px) {
  .explain,
  .kaspa,
  .license { padding: 78px 0; }
  .info-grid { margin-top: 36px; }
  .info-card { padding: 24px; border-radius: 21px; }
  .info-card h3 { margin-top: 30px; }
  .license-mark { min-height: 210px; border-radius: 24px; }
}
