:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #1a1d22;
  --panel-2: #242831;
  --text: #f4f0e8;
  --muted: #b9b0a2;
  --accent: #f2c14e;
  --danger: #e35d4f;
  --ok: #55c68c;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(16, 17, 20, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 84px) 72px;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.96) 0%, rgba(16, 17, 20, 0.74) 42%, rgba(16, 17, 20, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(16, 17, 20, 0) 32%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.lead {
  width: min(560px, 100%);
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero__button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #17130b;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.section {
  padding: 72px clamp(20px, 6vw, 84px);
}

.section__head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section__head p,
.terms p,
.facts p {
  color: var(--muted);
}

.register-shell {
  background: #15171b;
}

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

.panel,
.facts article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

label {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

input:focus {
  outline: 2px solid rgba(242, 193, 78, 0.48);
  outline-offset: 2px;
}

.status {
  min-height: 28px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.status[data-type="success"] {
  color: var(--ok);
}

.status[data-type="error"] {
  color: var(--danger);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.facts article {
  padding: 22px;
}

.facts h2 {
  font-size: 1.15rem;
}

.terms {
  max-width: 900px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 148px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(16, 17, 20, 0.82) 0%, rgba(16, 17, 20, 0.94) 62%, var(--bg) 100%),
      rgba(16, 17, 20, 0.26);
  }

  .register-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

