@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07080d;
  --surface: #0e1018;
  --line: #262a3a;
  --text: #f2f4f8;
  --muted: #979db0;
  --lime: #c8ff2e;
  --lime-soft: #dbff73;
  --violet: #7a5cff;
  --red: #ff6b7a;
  --cut: 12px;
  --tick: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 "Manrope", "Segoe UI", system-ui, sans-serif;
}

a { color: var(--lime); }

h1, h2, h3 { margin: 0; font-family: "Unbounded", "Segoe UI", sans-serif; font-weight: 700; line-height: 1.1; }

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

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(rgba(7, 8, 13, .92), rgba(7, 8, 13, 0));
}

.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { color: var(--text); font-size: 14px; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.nav nav a:hover { color: var(--lime); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 700 17px "Unbounded", sans-serif;
  text-decoration: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px clamp(16px, 4vw, 48px) clamp(40px, 7vh, 72px);
  overflow: hidden;
}

#rift { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-text { position: relative; max-width: 900px; }

.eyebrow { margin: 0 0 14px; color: var(--lime); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

h1 { font-size: clamp(38px, 10.2vw, 148px); letter-spacing: -.035em; line-height: .98; text-transform: uppercase; }
h1 span { color: var(--lime); }

.lead { max-width: 33em; margin: 20px 0 0; color: #c4c9d6; font-size: clamp(17px, 1.6vw, 21px); }
.hint { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }

.glow { display: inline-block; filter: drop-shadow(0 0 20px rgba(200, 255, 46, .38)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  font: 800 15px "Manrope", sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .08s;
}

.btn:active { transform: translateY(1px); }
.btn small { font-size: 13px; font-weight: 500; opacity: .7; }
/* clip-path обрезает обычную рамку фокуса, поэтому рисуем её внутри кнопки */
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--text); }

.btn-primary { background: var(--lime); color: #0b0f00; }
.btn-primary:hover { background: var(--lime-soft); }
.btn-primary:focus-visible { box-shadow: inset 0 0 0 2px #0b0f00; }
.btn-primary:disabled, .btn-primary.is-disabled { background: #2a2e3d; color: var(--muted); cursor: default; }

.btn-ghost { background: #1a1d2b; color: var(--text); }
.btn-ghost:hover { background: #2a2e45; color: var(--lime); }
.btn-small { padding: 9px 18px; --cut: 8px; font-size: 14px; }

/* Угловые метки интерфейса в духе HUD */
.hud {
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--lime), var(--lime)), linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime)), linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: var(--tick) 2px, 2px var(--tick), var(--tick) 2px, 2px var(--tick);
  background-position: 0 0, 0 0, 100% 100%, 100% 100%;
}

.showcase { padding: clamp(64px, 10vw, 128px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 88px); }

.section-head { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 32px; max-width: 1240px; margin: 0 auto 40px; }
.section-head h2, .donate h2 { font-size: clamp(27px, 3.8vw, 48px); letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); }

figure.hud { max-width: 1240px; margin: 0 auto; padding: clamp(6px, 1vw, 12px); box-shadow: 0 0 110px rgba(122, 92, 255, .2); }
figure.hud img { display: block; width: 100%; height: auto; }

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

@media (min-width: 1336px) { .specs { margin-bottom: 0; } }

.specs article { padding: 30px 28px 44px 0; }
.specs article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.specs strong { display: block; margin-bottom: 18px; color: var(--lime); font: 700 clamp(24px, 2.6vw, 34px) "Unbounded", sans-serif; letter-spacing: -.02em; }
.specs h3 { margin-bottom: 8px; font: 800 17px "Manrope", sans-serif; }
.specs p { margin: 0; color: var(--muted); font-size: 15.5px; }

.donate {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 0px);
}

#donate-form { max-width: 460px; margin-top: 26px; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: 800 14px "Manrope", sans-serif;
  cursor: pointer;
}

.chip:hover { border-color: var(--muted); }
.chip.is-active { border-color: var(--lime); color: var(--lime); }

label { display: block; margin-bottom: 16px; color: var(--muted); font-size: 14px; }

input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px "Manrope", sans-serif;
}

input:focus { border-color: var(--lime); outline: none; }

.form-error { min-height: 1.5em; margin: 0 0 10px; color: var(--red); font-size: 14.5px; }
.notice { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.top { align-self: start; padding: 28px; }
.top h3 { margin-bottom: 14px; font-size: 19px; }
.top ol { margin: 0; padding-left: 22px; }
.top li { padding: 5px 0; overflow-wrap: anywhere; }
.top li span { color: var(--lime); font-weight: 800; }
.top ol:empty { display: none; }

.footer { padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer p { margin: 0; }

dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 34px;
  border: 0;
  color: var(--text);
  box-shadow: 0 0 90px rgba(122, 92, 255, .35);
}

dialog::backdrop { background: rgba(4, 5, 9, .8); backdrop-filter: blur(5px); }
dialog h2 { margin-bottom: 18px; font-size: 24px; }

.close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.close:hover { color: var(--text); }
.auth-sub { margin: -8px 0 16px; color: var(--muted); font-size: 15px; }
.auth-sub:empty { display: none; }
dialog .btn { width: 100%; }
.switch { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; text-align: center; }
.link { padding: 0; border: 0; background: none; color: var(--lime); font: inherit; text-decoration: underline; cursor: pointer; }
.link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.profile-email { color: var(--muted); overflow-wrap: anywhere; }

.centered { display: grid; place-items: center; min-height: 100vh; padding: 16px; text-align: center; }
.message h1 { margin-bottom: 18px; font-size: clamp(30px, 6vw, 56px); text-transform: none; letter-spacing: -.02em; }
.message .lead { margin: 0 auto 28px; }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .specs { grid-template-columns: 1fr 1fr; margin-inline: 16px; }
  .specs article { padding-inline: 16px; }
  .specs article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .donate { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .nav nav { gap: 12px; }
  .nav nav a { display: none; }
  .cta, .cta .glow { width: 100%; }
  .cta .btn { width: 100%; }
  .specs { grid-template-columns: 1fr; }
  .specs article, .specs article + article { padding: 22px 0; border-left: 0; }
  .specs article + article { border-top: 1px solid var(--line); }
  dialog { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
