:root {
  --bg: #0a0a0b;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f4f4f6;
  --text-dim: #96969e;
  --text-dimmer: #616167;
  --online: #3ecf6e;
  --offline: #6a6a70;

  --font-display: 'Outfit', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    'Yu Gothic Medium', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
    monospace;

  --wrap: 880px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, p, ol, ul {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 88px;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 60% at center, #000 40%, transparent 90%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: min(320px, 70vw);
}

.hero-tagline {
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- IP panel ---------- */

.ip-panel {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  padding: 16px 20px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ip-panel:hover,
.ip-panel:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.ip-panel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dimmer);
}

.ip-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.copy-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
  white-space: nowrap;
}

.ip-panel.is-copied .copy-indicator {
  color: var(--online);
}

/* ---------- Status pill ---------- */

.status-pill {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.status-pill[hidden] {
  display: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--offline);
}

.status-pill.is-online .status-dot {
  background: var(--online);
}

/* ---------- Sections ---------- */

section.about,
section.join {
  border-top: 1px solid var(--line-soft);
  padding: 88px 0;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
}

.lead {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ---------- Info grid ---------- */

.info-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.info-item {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.info-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dimmer);
}

.info-item h3 {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
}

.info-item p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Steps ---------- */

.steps {
  margin-top: 56px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.steps li {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dimmer);
  padding-top: 2px;
  flex-shrink: 0;
}

.steps h3 {
  font-size: 1rem;
  font-weight: 600;
}

.steps p {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.steps code {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  font-size: 0.88em;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-ip {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--text-dimmer);
  font-size: 0.8rem;
}

.footer-org {
  margin-top: 14px;
  color: var(--text-dimmer);
  font-size: 0.72rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero {
    padding: 72px 0 64px;
  }

  .ip-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .ip-panel-text {
    align-items: center;
  }

  .copy-indicator {
    justify-content: center;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  section.about,
  section.join {
    padding: 64px 0;
  }

  .steps li {
    gap: 16px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-ip {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }
}

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