:root {
  color-scheme: dark;
  --bg: #08100f;
  --panel: #111918;
  --panel-2: #17211f;
  --text: #f2fbf9;
  --muted: #9eb5b0;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #4fe6d5;
  --yellow: #ffd45a;
  --orange: #ff9d4d;
  --green: #75d86d;
  --red: #ef6262;
  --blue: #6788ff;
  --purple: #bf78ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.site-header.compact {
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(79, 230, 213, 0.44);
  border-radius: 8px;
  background: rgba(79, 230, 213, 0.12);
  color: var(--yellow);
  font-size: 24px;
  font-weight: 900;
}

.brand-ja,
.brand-en {
  display: block;
}

.brand-ja {
  font-size: 15px;
  font-weight: 900;
}

.brand-en {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 42px;
  max-width: 1120px;
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.hero h1,
.section h2,
.legal h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 760px;
  font-size: 6.5rem;
  font-weight: 950;
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  border-color: rgba(79, 230, 213, 0.45);
  background: linear-gradient(135deg, rgba(79, 230, 213, 0.24), rgba(255, 212, 90, 0.16));
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.button.disabled {
  opacity: 0.62;
  pointer-events: none;
}

.phone-preview {
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.phone-top,
.phone-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.phone-top strong {
  color: var(--text);
}

.board {
  position: relative;
  aspect-ratio: 10 / 16;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    rgba(0, 0, 0, 0.28);
  background-size: 10% 6.25%;
}

.cell {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 4px;
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.18);
}

.cyan { background: var(--cyan); }
.yellow { background: var(--yellow); }
.orange { background: var(--orange); }
.green { background: var(--green); }
.red { background: var(--red); }
.blue { background: var(--blue); }
.purple { background: var(--purple); }

.c1 { left: 40%; top: 78%; }
.c2 { left: 50%; top: 78%; }
.c3 { left: 60%; top: 72%; }
.c4 { left: 30%; top: 66%; }
.c5 { left: 40%; top: 66%; }
.c6 { left: 50%; top: 60%; }
.c7 { left: 20%; top: 84%; }
.c8 { left: 70%; top: 84%; }
.c9 { left: 50%; top: 24%; }
.c10 { left: 60%; top: 24%; }

.arrow {
  position: absolute;
  left: 50%;
  top: 44%;
  color: var(--yellow);
  font-size: 48px;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.phone-controls span {
  display: block;
  width: 30%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 24px;
}

.section h2,
.legal h1 {
  font-size: 3.4rem;
}

.section-heading {
  max-width: 680px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.feature {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(79, 230, 213, 0.36);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 18px;
  font-weight: 950;
}

.feature h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.feature p,
.download p,
.legal p,
.legal li {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-weight: 700;
}

.steps li::before {
  content: counter(steps);
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  place-items: center;
  border-radius: 6px;
  background: rgba(79, 230, 213, 0.14);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.download {
  border-top: 1px solid var(--line);
}

.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal section {
  margin-top: 34px;
}

.legal h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.legal p {
  margin: 8px 0 0;
}

.legal ul {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-footer div {
  display: flex;
  gap: 14px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-top: 24px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .section h2,
  .legal h1 {
    font-size: 2.25rem;
  }

  .lead {
    font-size: 17px;
  }

  .phone-preview {
    max-width: 280px;
  }

  .feature-grid,
  .split {
    grid-template-columns: 1fr;
  }
}
