:root {
  --orange: #e95420;
  --orange-deep: #cf4316;
  --ink: #2c001e;
  --aubergine: #2c001e;
  --plum: #77216f;
  --warm: #aea79f;
  --cream: #f6f1ea;
  --paper: #fffdfb;
  --sand: #efe6da;
  --line: rgba(44, 0, 30, 0.12);
  --muted: #6d5c62;
  --shadow: 0 24px 60px rgba(44, 0, 30, 0.16);
  --nav-h: 4.4rem;
  --font: "Ubuntu", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(233, 84, 32, 0.16), transparent 60%),
    var(--cream);
  line-height: 1.5;
}

body.nav-open { overflow: hidden; }

::selection {
  background: var(--orange);
  color: var(--ink);
}

img { max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}
.skip:focus { top: 0.5rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(3.3rem, 8vw, 6.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }

.lead, .cabinet__lead {
  font-size: 1.15rem;
  max-width: 38rem;
  color: var(--muted);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
}

.btn, .text-link, .icon-btn, .nav__toggle {
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.8rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--orange {
  background: var(--orange);
  color: var(--ink);
}
.btn--orange:hover { background: #f07040; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-light {
  border-color: rgba(246, 241, 234, 0.35);
  color: var(--cream);
}
.btn--ghost-light:hover { border-color: var(--cream); }

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--orange);
}
.text-link--block { margin-top: 0.4rem; }

.icon-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.6rem 1.25rem;
  background: rgba(246, 241, 234, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.brand__mark { width: 1.55rem; height: 1.55rem; }

.nav__links {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink);
}
.nav__links a:hover { color: var(--orange-deep); }

.nav__actions {
  display: flex;
  gap: 0.45rem;
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}
.nav__burger {
  width: 1rem;
  height: 1px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

body:not(.is-auth) [data-open-cabinet],
body:not(.is-auth) [data-logout],
body.is-auth [data-open-login] {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding: 3.2rem 0 4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.stage {
  position: relative;
}

.desktop {
  width: min(440px, 100%);
  margin-left: auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--aubergine);
  box-shadow: var(--shadow);
}

.desktop__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  color: #f6f1ea;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.desktop__wallpaper {
  position: relative;
  height: 250px;
  background:
    radial-gradient(circle at 68% 42%, #ffb088 0 8%, #e95420 18%, #7a2f55 48%, #2c001e 72%);
  overflow: hidden;
}

.sun, .sun__ring {
  position: absolute;
  left: 62%;
  top: 38%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.sun {
  width: 92px;
  height: 92px;
  background: #ff8a55;
  box-shadow: 0 0 40px rgba(233, 84, 32, 0.8);
}
.sun__ring {
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 236, 220, 0.45);
}

.desktop__dock {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem;
  background: rgba(20, 0, 14, 0.72);
}
.desktop__dock span {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.4rem;
  background: var(--c);
}

.chip {
  position: absolute;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(44, 0, 30, 0.12);
  font-size: 0.95rem;
}
.chip--a { top: 14%; left: 0; }
.chip--b { right: 1.25rem; top: calc(100% - 0.3rem); }

.facts {
  border-block: 1px solid var(--line);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 auto;
  padding: 1.3rem 0;
  list-style: none;
}
.facts__list strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.facts__list span { color: var(--muted); font-size: 0.92rem; }

.philosophy {
  background: var(--aubergine);
  color: var(--cream);
}
.philosophy__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  padding: 4.5rem 0;
  align-items: end;
}
.philosophy blockquote { margin: 0; }
.philosophy blockquote p {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.philosophy footer {
  margin-top: 1rem;
  color: var(--warm);
}
.philosophy__copy p { color: #eadfd8; font-size: 1.05rem; }
.philosophy__copy p + p { margin-bottom: 0; }

.section { padding: 4.5rem 0; }
.section--sand { background: var(--sand); }

.platforms {
  list-style: none;
  margin: 0;
  padding: 0;
}
.platforms li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.platforms li:last-child { border-bottom: 1px solid var(--line); }
.platforms__n {
  font-size: 0.95rem;
  color: var(--orange);
  font-weight: 700;
  padding-top: 0.35rem;
}
.platforms p { margin: 0; max-width: 46rem; color: #4e3e44; }
.tag {
  justify-self: end;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(233, 84, 32, 0.12);
  color: var(--orange-deep);
  font-size: 0.85rem;
  white-space: nowrap;
}
.flavors {
  max-width: 46rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
}

.releases {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}
.release {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 1.25rem;
  background: var(--paper);
  border: 1px solid transparent;
}
.release .btn,
.release .text-link { margin-top: auto; }
.release--lts { border-color: var(--orange); }
.release__kind {
  margin-bottom: 0.7rem;
  color: var(--orange-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.release h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 0.2rem; }
.release__name { margin-bottom: 0.8rem; color: var(--plum); font-size: 1.15rem; }
.release p:last-of-type { color: #4e3e44; }
.release-note { margin: 1rem 0 0; color: var(--muted); }

.start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.steps li { display: grid; gap: 0.15rem; }
.steps strong { font-weight: 500; font-size: 1.15rem; }
.steps span { color: var(--muted); }

.term-wrap { min-width: 0; }
.term__caption {
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.term {
  margin: 0;
  padding: 1.2rem 1.15rem;
  border-radius: 1rem;
  background: var(--aubergine);
  color: #f6f1ea;
  overflow-x: auto;
  line-height: 1.7;
  font-family: "Ubuntu", ui-monospace, monospace;
  font-size: 0.95rem;
}
.prompt { color: #ffb088; }
.term__hint { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.92rem; }

.gate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem 2.5rem;
  border-radius: 1.5rem;
  background: var(--aubergine);
  color: var(--cream);
}
.gate h2 { max-width: 18em; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.gate p { max-width: 38rem; color: #eadfd8; margin-bottom: 0; }
.gate__actions { display: flex; flex-direction: column; gap: 0.6rem; flex: none; }

.cabinet { padding: 2.5rem 0 4rem; }
.cabinet__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}
.cabinet__lead { margin-bottom: 1.5rem; }
.note, .account {
  background: var(--paper);
  border-radius: 1.15rem;
  padding: 1.2rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
}
.note + .note { margin-top: 0.8rem; }
.note ul, .account__links { margin: 0; padding-left: 1.1rem; }
.note li + li { margin-top: 0.4rem; }
.note__hint { color: var(--muted); font-size: 0.92rem; }
.checks { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.checks label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
}
.checks input {
  accent-color: var(--orange);
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  flex: none;
}

.account { position: sticky; top: calc(var(--nav-h) + 1rem); }
.account__label { margin-bottom: 0.15rem; color: var(--muted); font-size: 0.85rem; }
.account__name {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.account__links {
  margin-top: 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.account__links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 0.18em;
}

.footer {
  background: var(--aubergine);
  color: #eadfd8;
  padding: 2.5rem 0;
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.footer .brand { color: var(--cream); }
.footer p { max-width: 32rem; margin: 0.4rem 0 0; }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}
.footer__links a { color: var(--cream); }

.login-dialog {
  width: min(440px, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.login-dialog::backdrop {
  background: rgba(44, 0, 30, 0.62);
  backdrop-filter: blur(5px);
}
.login {
  padding: 1.4rem 1.35rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.login__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.login__top h2 { margin: 0; font-size: 1.8rem; }
.login__lead { color: var(--muted); margin: 0.7rem 0 1rem; }

.ticket {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.8rem;
  background: var(--sand);
}
.ticket span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.ticket code { font-family: var(--font); font-size: 1.05rem; }

.field { display: grid; gap: 0.3rem; margin-bottom: 0.75rem; }
.field span { font-size: 0.9rem; }
.field input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #e4d8cc;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field input:focus {
  outline: 2px solid var(--orange);
  border-color: transparent;
}
.form-error {
  margin: 0 0 0.7rem;
  color: #9d1c12;
  font-weight: 500;
}
.login.is-invalid .field input { border-color: #e95420; }
.login__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 980px) {
  .hero, .philosophy__grid, .releases, .start, .cabinet__layout, .facts__list {
    grid-template-columns: 1fr;
  }
  .stage { min-height: 0; display: grid; justify-items: center; gap: 0.7rem; }
  .desktop { margin: 0; }
  .chip { position: static; }
  .gate { flex-direction: column; align-items: flex-start; }
  .account { position: static; }
  .platforms li { grid-template-columns: auto 1fr; }
  .tag { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 0.4rem 1.25rem 1rem;
    flex-direction: column;
    gap: 0.2rem;
    background: #f6f1ea;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(44, 0, 30, 0.08);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.7rem 0; }
  .nav { position: sticky; }
  .footer__grid { flex-direction: column; }
  .gate, .login { padding: 1.2rem; }
  .facts__list { grid-template-columns: 1fr 1fr; }
}

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