:root {
  color-scheme: dark;
  --page: #000000;
  --page-soft: #08090b;
  --panel: #18181b;
  --panel-soft: #222225;
  --panel-raised: #262629;
  --ink: #f5f5f7;
  --ink-soft: #d6d6dc;
  --muted: #9a9aa3;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --blue: #4169e1;
  --blue-bright: #5f86ff;
  --red: #ff2d32;
  --green: #22c55e;
  --amber: #f59e0b;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.58);
  --soft-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  --radius: 12px;
  --radius-sm: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
}

html:lang(ja) body {
  line-break: strict;
}

a {
  color: inherit;
}

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

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0.12rem 0.34rem;
  overflow-wrap: anywhere;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(255, 45, 50, 0.24);
}

.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-header nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
}

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

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  background: var(--panel-soft);
  border-color: var(--line);
  color: var(--ink);
}

.language-picker {
  min-width: 156px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.language-picker select {
  width: 100%;
  max-width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink);
  padding: 0 34px 0 13px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: none;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 52px;
  align-items: center;
  padding: 58px 0 54px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy::before,
.page-hero h1::before,
.section-heading h2::before,
.support-copy h2::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--red);
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  line-height: 0.96;
  font-weight: 870;
  letter-spacing: 0;
}

html:lang(ja) .hero-copy h1,
html:lang(ja) .page-hero h1 {
  font-size: clamp(2.65rem, 5.5vw, 5.2rem);
  line-height: 1.08;
}

.hero-copy p,
.page-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.48;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 820;
  line-height: 1.2;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button.primary {
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(65, 105, 225, 0.32);
}

.button.primary:hover {
  background: var(--blue-bright);
}

.button.secondary {
  background: var(--panel-soft);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  background: var(--panel-raised);
}

.hero-url {
  display: grid;
  gap: 8px;
  width: min(100%, 390px);
  margin-top: 28px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.hero-url span,
.url-tile span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-url code {
  width: fit-content;
  background: rgba(65, 105, 225, 0.14);
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  font-weight: 850;
}

.hero-media {
  min-width: 0;
  position: relative;
  min-height: 620px;
}

.hero-media figure {
  margin: 0;
}

.media-browser {
  position: absolute;
  right: 0;
  top: 42px;
  width: min(100%, 710px);
}

.media-browser img {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.media-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(34%, 250px);
  z-index: 2;
}

.media-phone img {
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.68);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.flow-section,
.split-section,
.safety-section,
.closing-section,
.support-layout,
.legal-layout {
  margin-top: 76px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 900px;
}

.section-heading h2,
.support-copy h2,
.closing-section h2,
.support-card h2,
.legal-card h2,
.support-side h2,
.privacy-side h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.section-heading p,
.support-copy p,
.closing-section p,
.support-side p,
.privacy-side p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.setup-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.setup-flow article {
  min-width: 0;
  padding: 28px;
}

.setup-flow article + article {
  border-left: 1px solid var(--line);
}

.setup-flow span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
}

.setup-flow h3,
.mode-panel h3,
.support-grid h3 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.16;
}

.setup-flow p,
.mode-panel p,
.support-grid p,
.support-card p,
.legal-card p {
  margin: 0;
  color: var(--muted);
}

.mode-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mode-panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.mode-panel.free {
  border-top: 3px solid var(--blue);
}

.mode-panel.supporter {
  border-top: 3px solid var(--red);
  background: linear-gradient(135deg, #1f1f23 0%, #151519 56%, #0b0b0d 100%);
}

.mode-panel ul,
.support-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.mode-panel li,
.support-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}

.mode-panel li::before,
.support-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.mode-panel.supporter li::before {
  background: var(--red);
}

.safety-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: start;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

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

.support-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.closing-section {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 80px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.closing-section img {
  flex: 0 0 auto;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(255, 45, 50, 0.22);
}

.closing-section div {
  min-width: 0;
  flex: 1;
}

.page-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: end;
  margin-top: 28px;
  padding: 74px 48px 46px;
  border: 1px solid var(--line);
  border-radius: 0 0 26px 26px;
  background: linear-gradient(135deg, #111114 0%, #18181c 54%, #050506 100%);
  box-shadow: var(--soft-shadow);
}

.privacy-hero {
  min-height: 390px;
}

.url-tile {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.url-tile code,
.url-tile strong {
  width: fit-content;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 850;
}

.support-layout,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
  margin-bottom: 80px;
}

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

.support-card,
.legal-card,
.support-side,
.privacy-side {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.support-card,
.legal-card {
  padding: 30px;
}

.support-card h2,
.legal-card h2,
.support-side h2,
.privacy-side h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.18;
}

.support-side,
.privacy-side {
  position: sticky;
  top: 100px;
  overflow: hidden;
  padding: 22px;
}

.support-side img {
  margin: -22px -22px 20px;
  max-width: calc(100% + 44px);
  border-bottom: 1px solid var(--line);
}

.support-side .button,
.privacy-side .button {
  margin-top: 22px;
}

.privacy-side img {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(255, 45, 50, 0.24);
}

.legal-card {
  display: grid;
  gap: 26px;
}

.legal-card h2 + p {
  margin-top: -18px;
}

.legal-card a {
  color: var(--blue-bright);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 32px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  margin-left: 18px;
  font-weight: 750;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-media {
    min-height: 560px;
  }

  .setup-flow,
  .mode-columns,
  .support-grid,
  .safety-section,
  .page-hero,
  .support-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .setup-flow article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .safety-section,
  .page-hero {
    padding: 34px 24px;
  }

  .support-side,
  .privacy-side {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 6px;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .site-header nav a {
    padding: 7px 10px;
  }

  .language-picker {
    min-width: 0;
    width: calc(100% - 20px);
  }

  main,
  .site-footer {
    width: min(100% - 40px, 1180px);
  }

  .hero {
    gap: 28px;
    padding: 34px 0 34px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.05rem, 9.5vw, 2.4rem);
    overflow-wrap: break-word;
  }

  html:lang(ja) .hero-copy h1,
  html:lang(ja) .page-hero h1 {
    font-size: clamp(2rem, 8.8vw, 2.34rem);
    line-height: 1.16;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 1rem;
  }

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

  .hero-actions .button {
    width: 100%;
    padding: 0 16px;
  }

  .hero-url {
    width: 100%;
  }

  .hero-url code {
    max-width: 100%;
    font-size: 1.08rem;
  }

  .hero-media {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .media-browser,
  .media-phone {
    position: static;
    width: 100%;
  }

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

  .flow-section,
  .split-section,
  .safety-section,
  .closing-section,
  .support-layout,
  .legal-layout {
    margin-top: 54px;
  }

  .setup-flow article,
  .mode-panel,
  .support-card,
  .legal-card {
    padding: 22px;
  }

  .safety-section {
    padding: 24px;
  }

  .closing-section {
    display: grid;
    align-items: start;
  }

  .closing-section .button,
  .support-side .button,
  .privacy-side .button {
    width: 100%;
  }

  .page-hero {
    min-height: auto;
    margin-top: 0;
    border-radius: 0 0 18px 18px;
  }

  .site-footer {
    display: grid;
    justify-content: stretch;
  }

  .site-footer a {
    margin-right: 18px;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
