* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--noctis-font-body);
  background: var(--noctis-night);
  color: var(--noctis-text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
code {
  font-size: 0.92em;
  color: var(--noctis-rift);
}

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--noctis-font-display);
  letter-spacing: 0.06em;
  color: var(--noctis-moon);
}

.ver {
  color: var(--noctis-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px 28px 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--noctis-border);
  background:
    radial-gradient(ellipse 58% 72% at 68% 38%, rgba(155, 180, 208, 0.16), transparent 64%),
    linear-gradient(168deg, #0a1018 0%, var(--noctis-night) 52%, #04060a 100%);
}

.rift {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.rift img {
  width: min(46vw, 300px);
  filter: drop-shadow(0 0 56px rgba(232, 238, 245, 0.14));
  animation: rise 1.35s ease-out both;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: fadeup 0.95s 0.2s ease-out both;
}

.eyebrow {
  color: var(--noctis-moon-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-family: var(--noctis-font-display);
  font-size: clamp(3.4rem, 10vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--noctis-moon);
}

.lede {
  margin-top: 18px;
  color: var(--noctis-muted);
  max-width: 28em;
  font-size: 1.05rem;
}

.cta { margin-top: 28px; }

.hint {
  margin-top: 12px;
  min-height: 1.4em;
  color: var(--noctis-moon-dim);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--noctis-border);
  background: var(--noctis-night-elevated);
  color: var(--noctis-moon);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  border-color: var(--noctis-moon-dim);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--noctis-rift);
  outline-offset: 3px;
}

.btn.primary {
  background: var(--noctis-moon);
  color: var(--noctis-night);
  border-color: var(--noctis-moon);
}

.btn.primary:hover {
  background: #f4f7fb;
  border-color: #f4f7fb;
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.clients {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--noctis-border);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--noctis-border);
  animation: fadeup 0.7s ease-out both;
}

.row:nth-child(2) { animation-delay: 0.05s; }
.row:nth-child(3) { animation-delay: 0.1s; }
.row:nth-child(4) { animation-delay: 0.15s; }
.row:nth-child(5) { animation-delay: 0.2s; }

.row h2 {
  font-family: var(--noctis-font-display);
  font-size: 1.35rem;
  color: var(--noctis-moon);
  font-weight: 600;
}

.row p {
  margin-top: 6px;
  color: var(--noctis-muted);
  font-size: 0.95rem;
}

.row .meta {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--noctis-moon-dim);
  word-break: break-all;
}

.muted-row {
  opacity: 0.72;
}

.soon {
  color: var(--noctis-warn);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.note {
  margin-top: 48px;
}

.note h2 {
  font-family: var(--noctis-font-display);
  font-size: 1.2rem;
  color: var(--noctis-moon);
  margin-bottom: 14px;
}

.note ul {
  padding-left: 1.15em;
  color: var(--noctis-muted);
}

.note li + li { margin-top: 8px; }

.attr {
  margin-top: 18px;
  color: var(--noctis-moon-dim);
  font-size: 0.88rem;
}

.foot {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--noctis-border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--noctis-muted);
  font-size: 0.9rem;
}

.foot a:hover { color: var(--noctis-moon); }

@keyframes rise {
  from { opacity: 0; transform: scale(0.92) translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .top { padding: 18px 20px; }
  .hero { padding: 88px 20px 48px; min-height: 92vh; }
  .row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .btn, .soon { justify-self: start; }
}

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