*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0052ff;
  --primary-active: #003ecc;
  --ink: #0a0b0d;
  --body: #5b616e;
  --muted: #7c828a;
  --hairline: #dee1e6;
  --hairline-soft: #eef0f3;
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #eef0f3;
  --surface-dark: #0a0b0d;
  --surface-dark-elevated: #16181c;
  --on-dark-soft: #a8acb3;
  --up: #05b169;
  --radius-card: 24px;
  --max-width: 1200px;
  --content-width: 760px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", "Noto Sans JP", -apple-system, system-ui, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-active);
  text-decoration: underline;
}

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

/* ---- Top nav ---- */
.top-nav {
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.brand:hover {
  text-decoration: none;
}

.brand .dot {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* ---- Dark hero ---- */
.hero {
  background: var(--surface-dark);
  color: #fff;
  padding: 96px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.6px;
}

.hero .lead {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-dark-soft);
}

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

.pill {
  display: inline-block;
  border-radius: 100px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
}

.pill-primary {
  background: var(--primary);
  color: #fff;
}

.pill-primary:hover {
  background: var(--primary-active);
  color: #fff;
  text-decoration: none;
}

.pill-outline-dark {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.pill-outline-dark:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* floating stat cards in hero */
.hero-cards {
  display: grid;
  gap: 16px;
}

.photo-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  line-height: 0;
}

.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.section-photo {
  margin-top: 32px;
  max-width: var(--content-width);
  border-radius: var(--radius-card);
  overflow: hidden;
  line-height: 0;
}

.section-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.stat-card {
  background: var(--surface-dark-elevated);
  border-radius: var(--radius-card);
  padding: 28px 32px;
}

.stat-card .label {
  font-size: 13px;
  color: var(--on-dark-soft);
}

.stat-card .value {
  margin-top: 6px;
  font-family: "JetBrains Mono", "Inter", monospace;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.stat-card .value .up {
  color: var(--up);
  font-size: 14px;
  margin-left: 8px;
}

/* ---- Sections ---- */
.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--surface-soft);
}

.section-label {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 100px;
  padding: 4px 12px;
  text-transform: uppercase;
}

.section h2 {
  margin-top: 16px;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
}

.section .section-intro {
  margin-top: 16px;
  max-width: var(--content-width);
  color: var(--body);
  line-height: 1.8;
}

.prose {
  max-width: var(--content-width);
  margin-top: 32px;
}

.prose p {
  color: var(--body);
  line-height: 1.9;
  margin-bottom: 1.2em;
}

.prose h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 2em 0 0.8em;
}

.prose ul {
  color: var(--body);
  line-height: 1.9;
  margin: 0 0 1.2em 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

/* ---- Feature cards ---- */
.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature-card h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.33;
}

.feature-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.8;
}

/* ---- Steps ---- */
.steps {
  margin-top: 48px;
  display: grid;
  gap: 0;
  max-width: var(--content-width);
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.8;
}

/* ---- Cost table ---- */
.cost-table {
  margin-top: 48px;
  width: 100%;
  max-width: var(--content-width);
  border-collapse: collapse;
}

.cost-table th,
.cost-table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}

.cost-table th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cost-table td.num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  white-space: nowrap;
}

.cost-table td {
  color: var(--body);
}

.cost-table td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.table-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  max-width: var(--content-width);
}

/* ---- FAQ ---- */
.faq {
  margin-top: 48px;
  max-width: var(--content-width);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}

.faq summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.9;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--surface-dark);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.09;
}

.cta-band p {
  margin-top: 16px;
  color: var(--on-dark-soft);
  line-height: 1.8;
}

.cta-band .hero-cta {
  justify-content: center;
}

/* ---- Footer ---- */
.footer {
  background: var(--canvas);
  padding: 64px 0 32px;
}

.footer .cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  font-size: 14px;
  color: var(--body);
}

.legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--muted);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 44px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
    letter-spacing: -0.8px;
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: 28px;
  }

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

  .nav-links {
    display: none;
  }

  .cta-band h2 {
    font-size: 30px;
  }
}
