:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #181b20;
  --panel-strong: #20242b;
  --text: #f4f1ea;
  --muted: #bab3a7;
  --line: #38342d;
  --accent: #d49a35;
  --accent-strong: #f2bd55;
  --link: #7fd4dc;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(127, 212, 220, 0.12), transparent 30rem),
    linear-gradient(180deg, #101114 0%, #161211 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current],
.site-footer a[aria-current] {
  color: var(--accent-strong);
}

main {
  position: relative;
  height: calc(100dvh - 144px);
}

.view {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(10px);
  transform: translateZ(0);
  transform-origin: center;
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 420ms step-end;
}

.view.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
  transform: translateZ(0);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0ms step-start;
}

.intro {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: clamp(32px, 8vw, 96px);
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.92;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 1rem;
}

.intro p:not(.eyebrow) {
  max-width: 58ch;
  margin: 24px 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(242, 189, 85, 0.55);
  border-radius: 6px;
  background: rgba(212, 154, 53, 0.14);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.hero-logo {
  width: min(100%, 320px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.38));
}

.legal-section {
  padding: clamp(24px, 5vw, 48px) 0;
  scrollbar-width: thin;
}

.legal-section {
  height: 100%;
  overflow: auto;
}

.legal-section > p {
  max-width: 78ch;
  color: var(--muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-grid > div,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.74);
  padding: 20px;
}

address {
  font-style: normal;
}

.legal-grid p,
.notice p {
  margin: 0;
  color: var(--muted);
}

.notice {
  margin-top: 16px;
}

.notice p + p {
  margin-top: 12px;
}

.back-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .site-header {
    height: 72px;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 0.88rem;
  }

  .brand img {
    width: 36px;
  }

  nav {
    gap: 10px;
    font-size: 0.82rem;
  }

  main {
    height: calc(100dvh - 122px);
  }

  .intro {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding: 10px 0;
  }

  .hero-logo {
    grid-row: 1;
    width: min(54vw, 190px);
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

  .intro p:not(.eyebrow) {
    margin: 18px 0;
    font-size: 1rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid > div,
  .notice {
    padding: 16px;
  }

  .site-footer {
    height: 50px;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 20px, 1120px);
  }

  .brand span {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  nav {
    gap: 8px;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view,
  .view.is-active {
    filter: none;
    transform: none;
    transition: none;
  }
}
