:root {
  --cyan: #50e4ff;
  --paleCyan: #b6f3ff;
  --violet: #8c6cff;
}
:root {
  color-scheme: dark;
  --page: #090d18;
  --text: #f4f7ff;
  --muted: #aebbd0;
  --gutter: clamp(16px, 4vw, 28px);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
}

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

body {
  min-height: 100svh;
  margin: 0;
  background: radial-gradient(ellipse 900px 600px at 50% 95px, #101c36 0%, transparent 72%);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }
h1 { letter-spacing: -.045em; line-height: 1.13; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.shell {
  width: min(900px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon { flex: none; display: block; }

.site-header { border-bottom: 1px solid #9cb7e413; background: #090d18a6; }

.header-row {
  display: flex;
  min-height: 77px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  gap: 11px;
  align-items: center;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 740;
  letter-spacing: -.04em;
}

.brand img { flex: none; animation: mark-enter .43s ease-out both; }
.home-main { padding-top: clamp(24px, 4.6vw, 56px); }

.hero {
  position: relative;
  display: grid;
  min-height: 438px;
  align-items: center;
  isolation: isolate;
  padding: 46px;
  border: 1px solid #2b3b59;
  border-radius: 28px;
  background: radial-gradient(ellipse at 81% 51%, #224982 0%, #17264b 37%, #121a2e 66%, #101826 100%);
  box-shadow: 0 20px 70px #0005, inset 0 1px #c2d8ff13;
}

.hero-copy { position: relative; z-index: 1; width: min(100%, 405px); }

.hero h1 {
  font-size: clamp(34px, 4.8vw, 40px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.062em;
}

@supports (background-clip: text) {
  .hero h1 {
    width: fit-content;
    background: linear-gradient(110deg, var(--text) 24%, var(--paleCyan) 79%);
    background-clip: text;
    color: transparent;
  }
}

.hero-intro { margin-top: 14px; color: #c1cde1; font-size: 16px; line-height: 1.55; }

.hero-art {
  position: absolute;
  inset: 0 0 0 42%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.art-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #abc4ff15 1px, transparent 1px) 50% 50% / 34px 34px,
    linear-gradient(#abc4ff15 1px, transparent 1px) 50% 50% / 34px 34px;
  mask-image: radial-gradient(ellipse 63% 73% at 63% 48%, #000 14%, transparent 86%);
}

.art-orbit {
  position: absolute;
  left: 52%;
  top: 47%;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid #92b8ff38;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.art-orbit--outer { border-color: #7ea7fe27; }
.art-orbit--inner {
  width: 60%;
  border-color: #abbfff25;
  box-shadow: 0 0 34px #4d76e82e, inset 0 0 55px #538cff14;
}

.art-floor {
  position: absolute;
  top: 82%;
  left: 52%;
  width: 70%;
  height: 15%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, #04091e9e, #101e3e25 58%, transparent 72%);
}

.art-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paleCyan);
  box-shadow: 0 0 15px #6de0ff;
  opacity: .8;
}

.art-spark--first { left: 20%; top: 29%; }
.art-spark--second { right: 12%; bottom: 28%; width: 4px; height: 4px; background: var(--violet); box-shadow: 0 0 16px var(--violet); }

.hero-character {
  position: relative;
  width: min(92%, 407px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px #050b2190);
  animation: character-enter .56s ease-out both, character-idle 8s 1s ease-in-out infinite;
}

.sheet-links { display: grid; gap: 12px; margin-top: 24px; }

@property --edge-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.sheet-link {
  position: relative;
  display: grid;
  isolation: isolate;
  overflow: clip;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: 13px;
  align-items: center;
  min-height: 69px;
  padding: 10px 15px 10px 12px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.027em;
  line-height: 1.22;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  animation: link-enter .39s .11s ease-out both;
}

.sheet-link--standard {
  --sheen: #effeff99;
  --edge-light: #b9f8ff;
  --sweep-delay: 0s;
  color: #081625;
  background: linear-gradient(113deg, #b2f0ff, var(--cyan) 68%, #76baff);
  border-color: #dcf8ff99;
  box-shadow: 0 5px 23px #34bcf533, inset 0 1px #effdff88;
}

.sheet-link::before, .sheet-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.sheet-link::before {
  z-index: -1;
  background: linear-gradient(112deg, transparent 33%, var(--sheen) 49%, transparent 65%);
  translate: -115% 0;
  animation: button-sweep 7s var(--sweep-delay) ease-in-out infinite;
}

.sheet-link::after {
  padding: 2px;
  background: conic-gradient(from var(--edge-angle), transparent 55%, var(--edge-light) 71%, #f7ffff 75%, transparent 83%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .69;
  animation: edge-trace 5s linear infinite;
}

.sheet-link--mobile {
  --sheen: #adacff50;
  --edge-light: #ae9dff;
  --sweep-delay: 2.5s;
  color: var(--text);
  border-color: #586e95;
  background: linear-gradient(115deg, #182841, #1a2842 77%, #1e2b48);
  box-shadow: inset 0 1px #b1c8ff12;
  animation-delay: .2s;
}
.sheet-link--mobile::after { animation-delay: -2.5s; }

.sheet-link--register {
  --sheen: #c8b8ff58;
  --edge-light: #c1a9ff;
  --sweep-delay: 4.5s;
  color: #edeaff;
  border-color: #655889;
  background: linear-gradient(115deg, #201f39, #292344);
  box-shadow: inset 0 1px #ded1ff12;
  animation-delay: .28s;
}
.sheet-link--register::after { animation-delay: -1.25s; }

.sheet-offer {
  display: block;
  margin-top: 3px;
  color: #f9d991;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .012em;
}

.sheet-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #0b52701b;
  color: #0b3146;
}
.sheet-symbol .icon { width: 21px; height: 21px; transition: transform .24s ease; }
.sheet-link--mobile .sheet-symbol { color: var(--paleCyan); background: #a1d4ff14; }
.sheet-link--register .sheet-symbol { color: #e3d7ff; background: #baadff1a; }
.sheet-arrow { width: 23px; height: 23px; justify-self: end; transition: transform .18s; }
.sheet-link--mobile .sheet-arrow { color: var(--paleCyan); }
.sheet-link--register .sheet-arrow { color: #e3d7ff; }

@media (hover: hover) {
  .sheet-link:hover { transform: translateY(-3px); }
  .sheet-link--standard:hover { box-shadow: 0 9px 29px #42d8ff63, inset 0 1px #effdff88; }
  .sheet-link--mobile:hover { border-color: #abacff; box-shadow: 0 8px 25px #7461e666, inset 0 1px #d4eeff24; }
  .sheet-link--register:hover { border-color: #c4afff; box-shadow: 0 8px 25px #8f6cda53, inset 0 1px #ded1ff24; }
  .sheet-link:hover::before { animation: button-flash .58s ease-out both; }
  .sheet-link:hover::after { opacity: 1; }
  .sheet-link:hover .sheet-symbol .icon { transform: rotate(-8deg) scale(1.09); }
  .sheet-link:hover .sheet-arrow { transform: translate(3px, -3px); }
}
.sheet-link:focus-visible::before { animation: button-flash .58s ease-out both; }
.sheet-link:focus-visible { box-shadow: 0 0 22px #50e4ff47; }
.sheet-link:active { transform: translateY(1px) scale(.98); }
.sheet-link:active .sheet-arrow { transform: translate(2px, -2px); }

@keyframes mark-enter { from { opacity: .4; transform: scale(.93); } to { opacity: 1; transform: scale(1); } }
@keyframes character-enter { from { opacity: .25; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes character-idle { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes link-enter { from { opacity: .38; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
@keyframes button-sweep { 0%, 8% { translate: -115% 0; } 23%, 100% { translate: 115% 0; } }
@keyframes button-flash { from { translate: -115% 0; } to { translate: 115% 0; } }
@keyframes edge-trace { to { --edge-angle: 360deg; } }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  align-items: baseline;
  gap: 8px 24px;
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid #27354c;
  border-radius: 16px;
  background: #101827;
}
.about h2 { font-size: 17px; font-weight: 740; line-height: 1.4; letter-spacing: -.025em; }
.about p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.site-footer { margin-top: 23px; padding: 0 3px 25px; color: var(--muted); font-size: 13px; }
.error-page { padding-block: 55px; }
.error-page a { display: inline-block; margin-top: 13px; color: var(--paleCyan); text-decoration: underline; }

@media (max-width: 900px) {
  .hero-copy { width: min(59%, 405px); }
  .hero-art { inset-inline-start: 58%; }
}

@media (max-width: 760px) {
  .hero { min-height: 397px; padding: 34px; }
  .hero-copy { width: min(60%, 345px); }
  .hero-character { width: min(112%, 345px); max-width: none; }
}

@media (max-width: 680px) {
  .header-row { min-height: 65px; }
  .brand { gap: 8px; }
  .brand img { width: 37px; height: 37px; }
  .home-main { padding-top: 17px; }
  .hero {
    min-height: 0;
    padding: 26px 19px 19px;
    border-radius: 21px;
    background: radial-gradient(ellipse 95% 67% at 93% 18%, #25457c 0%, #19284a 44%, #121b2e 78%, #101826 100%);
  }
  .hero-copy { width: 100%; }
  .hero h1 { max-width: min-content; font-size: clamp(28px, 7.9vw, 38px); background-image: linear-gradient(180deg, var(--text) 16%, var(--paleCyan) 85%); }
  .hero-intro { position: relative; max-width: min(100%, 22ch); margin-top: 13px; font-size: 15px; }
  .hero-art { --art-height: clamp(159px, 41vw, 182px); inset: 0 0 auto auto; width: 46%; height: var(--art-height); }
  .hero-character { width: min(112%, calc(var(--art-height) - 8px)); margin-top: 4px; filter: drop-shadow(0 8px 15px #080d25b0); }
  .art-orbit { width: 91%; }
  .art-orbit--inner { width: 74%; }
  .art-spark--first { left: 10%; top: 23%; width: 4px; height: 4px; }
  .art-spark--second { right: 11%; bottom: 20%; }
  .art-grid { background-size: 19px 19px; }
  .sheet-links { gap: 9px; margin-top: 19px; }
  .sheet-link { min-height: 65px; gap: 10px; padding: 9px 11px; border-radius: 14px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 15px 17px; }
}

@media (max-width: 359px) {
  .hero { padding-inline: 14px; }
  .hero h1 { font-size: 27px; }
  .hero-intro { max-width: 19ch; }
  .hero-art { --art-height: 161px; width: 42%; }
  .sheet-link { grid-template-columns: 31px minmax(0, 1fr) 19px; gap: 8px; padding-inline: 9px; }
  .sheet-symbol { width: 31px; height: 34px; }
  .sheet-arrow { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sheet-link:hover, .sheet-link:active, .sheet-link:hover .sheet-symbol .icon, .sheet-link .sheet-arrow { transform: none; }
  .sheet-link::after { display: none; }
}
