:root {
  color-scheme: dark;
  --bg-top: #7b7f86;
  --bg-bottom: #63676e;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #f4f6f8;
  --muted: #d7dbe0;
  --key-top: #4f535a;
  --key-bottom: #3d4147;
  --metal-top: #7b7f86;
  --metal-bottom: #666a71;
  --accent: #dfe4ea;
  --shadow: rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ".SF NS Text", ".SF Pro Text", ".SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: normal;
}

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

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.topbar,
.hero-copy,
.hero-device,
.status-card,
.step-card,
.feature-card,
.faq-card {
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.topbar-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
}

.language-chip {
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.language-chip.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.hero {
  padding-top: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  padding-top: 28px;
}

.hero-copy {
  min-width: 0;
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.07));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 40px var(--shadow);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  max-width: 9.6ch;
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 640;
  font-family: ".SF NS Display", ".SF Pro Display", ".SF NS Text", -apple-system, BlinkMacSystemFont, sans-serif;
  text-wrap: balance;
  word-break: keep-all;
}

html[data-lang="jp"] .hero-title {
  max-width: 12.4ch;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

html[data-lang="jp"] .hero-copy {
  padding-right: 32px;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}

html[data-lang="jp"] .hero-text {
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.72;
}

.section-heading h2,
.feature-card h3,
.step-card h3,
.faq-card h2,
.faq-card h3,
.download-meta {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: flex-start;
}

html[data-lang="jp"] .hero-actions {
  flex-direction: column;
  align-items: stretch;
  max-width: 360px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

html[data-lang="jp"] .primary-button,
html[data-lang="jp"] .secondary-button {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  font-size: 15px;
}

.primary-button {
  background: linear-gradient(180deg, #3e434a, #30343a);
}

.secondary-button {
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.1));
}

.download-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

html[data-lang="jp"] .download-meta {
  max-width: 24ch;
  line-height: 1.5;
}

.hero-device {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 40px var(--shadow);
}

.macbook-frame {
  width: min(100%, 480px);
}

.display-area {
  position: relative;
  height: 270px;
  border-radius: 22px 22px 14px 14px;
  background: linear-gradient(180deg, #171a1f, #0f1216);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}

.display-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,0.08), transparent 38%);
}

.display-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.09);
  font-size: 13px;
  font-weight: 700;
}

.display-lines {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  display: grid;
  gap: 12px;
}

.display-lines span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
}

.display-lines span:nth-child(2) {
  width: 72%;
}

.display-lines span:nth-child(3) {
  width: 56%;
}

.keyboard-deck {
  position: relative;
  margin: -6px auto 0;
  width: 108%;
  height: 180px;
  transform: translateX(-4%);
  border-radius: 20px 20px 34px 34px;
  background: linear-gradient(180deg, var(--metal-top), var(--metal-bottom));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 36px rgba(0,0,0,0.2);
}

.keyboard-deck::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 16px;
  height: 72px;
  border-radius: 16px;
  background-image:
    linear-gradient(to right, transparent 0, transparent 100%),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.16) 0 36px,
      rgba(255,255,255,0.03) 36px 38px
    );
  opacity: 0.55;
}

.trackpad-preview {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 44%;
  height: 76px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: linear-gradient(180deg, #82868d, #72767d);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.speaker {
  position: absolute;
  top: 24px;
  width: 16%;
  height: 118px;
  opacity: 0.22;
  background-image: radial-gradient(circle, #171a1e 0.7px, transparent 0.9px);
  background-size: 6px 6px;
}

.speaker-left {
  left: 6%;
}

.speaker-right {
  right: 6%;
}

.section {
  padding-top: 28px;
}

.section.compact {
  padding-top: 20px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.left {
  margin-bottom: 14px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

p {
  margin: 0;
}

.status-card,
.faq-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
  box-shadow: 0 18px 34px var(--shadow);
}

.status-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.status-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

code {
  font-family: "SF Mono", "SFNSMono", ui-monospace, monospace;
  font-size: 0.92em;
  color: var(--text);
}

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

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

.step-card,
.feature-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.07));
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

.step-card p,
.feature-card p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-list article {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.faq-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .status-card,
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-device {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 1200px);
    padding-top: 10px;
  }

  .topbar {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    border-radius: 24px;
  }

  .topbar-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-copy,
  .hero-device,
  .status-card,
  .step-card,
  .feature-card,
  .faq-card {
    padding: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }
}
