:root {
  --bg: #faf7f2;
  --bg-soft: #f6f3ee;
  --surface: #fffefd;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-tint: #f4f7f5;
  --ink: #0f1d33;
  --ink-soft: #24364f;
  --muted: #5e7fa3;
  --subtle: #8b96a2;
  --line: rgba(15, 29, 51, 0.11);
  --line-strong: rgba(15, 29, 51, 0.16);
  --sage: #8daa8c;
  --sage-soft: #edf3ec;
  --sage-ink: #5f8069;
  --ice: #eaf1f5;
  --warm-gray: #d6d8dc;
  --navy: #0f1d33;
  --navy-2: #152c4e;
  --navy-3: #1f416e;
  --warning-bg: #f6efe3;
  --warning-ink: #766650;
  --shadow: 0 22px 60px rgba(15, 29, 51, 0.09);
  --shadow-soft: 0 10px 28px rgba(15, 29, 51, 0.07);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo,
    sans-serif;
  line-height: 1.75;
  letter-spacing: 0.012em;
  background:
    radial-gradient(circle at 50% 0%, rgba(234, 241, 245, 0.72), transparent 34rem),
    radial-gradient(circle at 84% 22%, rgba(141, 170, 140, 0.12), transparent 28rem),
    linear-gradient(180deg, #fffefd 0%, var(--bg) 54%, #f8f5ef 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0, rgba(15, 29, 51, 0.025) 50%, transparent 100%);
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, black, transparent 58%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(141, 170, 140, 0.42);
  outline-offset: 4px;
}

.site {
  min-height: 100vh;
  padding: 28px clamp(18px, 3.8vw, 48px);
}

.shell {
  width: min(100%, var(--max));
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 68% 18%, rgba(74, 118, 190, 0.34), transparent 34%),
    linear-gradient(145deg, #0f1d33, #162e50);
  box-shadow: 0 10px 22px rgba(15, 29, 51, 0.14);
}

.brand-mark::before {
  position: absolute;
  inset: 8px 10px 7px 11px;
  content: "";
  border: 3px solid #fffefd;
  border-left-width: 5px;
  border-bottom-width: 5px;
  border-radius: 50% 58% 45% 56%;
  transform: rotate(-18deg);
}

.brand-mark::after {
  position: absolute;
  right: 11px;
  bottom: 9px;
  width: 10px;
  height: 17px;
  content: "";
  border-right: 3px solid #8daa8c;
  border-bottom: 3px solid #8daa8c;
  border-radius: 0 0 12px 0;
  transform: rotate(18deg);
}

.nav,
.footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px clamp(18px, 3vw, 36px);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 720;
}

.nav a,
.footer a {
  position: relative;
  padding: 8px 2px;
  opacity: 0.88;
  transition: color 160ms ease, opacity 160ms ease;
}

.nav a::after,
.footer a::after {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: var(--sage);
  opacity: 0;
  transform: scaleX(0.68);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover,
.footer a:hover {
  color: var(--navy);
  opacity: 1;
}

.nav a:hover::after,
.footer a:hover::after,
.nav a[aria-current="page"]::after,
.footer a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.content {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 16px 0 54px;
}

.content > h1 {
  width: min(100%, 900px);
  margin: 0 auto 4px;
  color: var(--navy);
  font-size: clamp(2.3rem, 5.2vw, 4.15rem);
  font-weight: 820;
  line-height: 1.12;
  letter-spacing: -0.065em;
}

.content-card {
  position: relative;
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
    var(--surface);
  box-shadow: var(--shadow);
}

.actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}

.content-card::before {
  position: absolute;
  top: -122px;
  right: -112px;
  width: 300px;
  height: 300px;
  content: "";
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(234, 241, 245, 0.92), rgba(234, 241, 245, 0) 70%);
}

.content-card::after {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  top: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(15, 29, 51, 0.08), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 14px;
  color: var(--sage-ink);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--sage-soft);
}

h1,
h2,
p,
ul,
.invite-box,
.notice,
.token {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(2.25rem, 5.4vw, 4.4rem);
  font-weight: 830;
  line-height: 1.09;
  letter-spacing: -0.065em;
}

h2 {
  margin: 38px 0 10px;
  color: var(--navy);
  font-size: clamp(1.16rem, 2.2vw, 1.42rem);
  font-weight: 790;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
}

.content-card > p:first-child:not(.eyebrow),
.content-card > .eyebrow + p {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

li {
  position: relative;
  margin: 0;
  padding: 18px 0 18px 38px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

li::before {
  position: absolute;
  top: 1.45em;
  left: 2px;
  width: 11px;
  height: 11px;
  content: "";
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 8px rgba(141, 170, 140, 0.15);
}

li:last-child {
  border-bottom: 0;
}

.invite-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.005em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  color: #fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(67, 115, 185, 0.34), transparent 34%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 58%, #0b1729 100%);
  box-shadow: 0 16px 30px rgba(15, 29, 51, 0.2);
}

.button.primary:hover {
  box-shadow: 0 20px 36px rgba(15, 29, 51, 0.24);
}

.button.secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: rgba(15, 29, 51, 0.24);
  background: #fff;
}

.token {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border: 1px dashed rgba(94, 127, 163, 0.28);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(234, 241, 245, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.notice {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(141, 170, 140, 0.24);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  background: rgba(237, 243, 236, 0.62);
  font-size: 0.92rem;
  line-height: 1.8;
}

.invite-box .notice {
  grid-column: 1 / -1;
  margin-top: 0;
}

.footer {
  justify-content: space-between;
  padding: 24px 0 10px;
  color: rgba(94, 127, 163, 0.92);
  border-top: 1px solid var(--line);
}

.footer span {
  padding: 8px 0;
}

@media (min-width: 960px) {
  .content-card {
    padding-left: 64px;
    padding-right: 64px;
  }
}

@media (max-width: 820px) {
  .site {
    padding: 20px;
  }

  .shell {
    min-height: calc(100vh - 40px);
  }

  .header {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .nav {
    gap: 8px 16px;
    font-size: 0.86rem;
  }

  .content {
    align-content: start;
    padding: 16px 0 38px;
  }

  .content-card {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .invite-box {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .button {
    width: 100%;
  }

  .footer {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    line-height: 1.72;
  }

  .site {
    padding: 16px;
  }

  .header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand img {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .brand {
    font-size: 1rem;
  }

  h1,
  .content > h1 {
    font-size: 2.05rem;
    letter-spacing: -0.055em;
  }

  h2 {
    margin-top: 30px;
  }

  p,
  li {
    font-size: 0.95rem;
  }

  li {
    padding-left: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
