:root {
  --ink: #071522;
  --ink-2: #0d2134;
  --muted: #5f7185;
  --blue: #0787ff;
  --blue-2: #45b8ff;
  --line: rgba(7, 21, 34, 0.11);
  --soft: #f4f8fc;
  --white: #fff;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(7, 21, 34, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Noto Sans", "Noto Sans JP", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: #fff; color: #071522; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #fff;
  background: rgba(4, 16, 27, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 26px; }
.brand { flex: 0 0 auto; }
.brand img { width: 184px; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-left: auto; }
.site-nav a { color: rgba(255,255,255,.79); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.language-menu { position: relative; }
.language-menu summary {
  min-width: 72px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: "⌄"; transform: translateY(-2px); color: rgba(255,255,255,.7); }
.language-menu[open] summary { border-color: var(--blue-2); background: rgba(7,135,255,.13); }
.language-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}
.language-menu-popover a { display: flex; justify-content: space-between; padding: 10px 11px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 700; }
.language-menu-popover a:hover, .language-menu-popover a:focus-visible { background: var(--soft); }
.language-menu-popover a[aria-current="page"] { color: #087eff; background: #edf7ff; }
.language-menu-popover small { color: var(--muted); font-size: 11px; }

.btn { min-height: 46px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 800; line-height: 1.2; cursor: pointer; }
.btn-primary { color: #fff; background: linear-gradient(120deg, #1698ff, #066cff); box-shadow: 0 12px 28px rgba(7, 126, 255, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(7, 126, 255, .36); }
.btn-secondary { color: #fff; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
.btn-light { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.btn-small { min-height: 42px; padding-inline: 16px; font-size: 13px; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #061421;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,14,24,.98) 0%, rgba(3,14,24,.88) 48%, rgba(3,14,24,.62) 100%), url("assets/head.png") center/cover; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -210px; border-radius: 50%; background: rgba(7,135,255,.18); filter: blur(90px); }
.hero-inner { position: relative; z-index: 1; min-height: 670px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(340px, .8fr); align-items: center; gap: 72px; padding-block: 82px; }
.eyebrow { margin: 0 0 12px; color: #1599ff; font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero h1, .page-hero h1 { margin: 0; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 em { color: var(--blue-2); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 690px; margin: 24px 0 0; color: rgba(255,255,255,.75); font-size: clamp(17px, 2vw, 20px); }
.hero-actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { padding: 6px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.06); font-size: 12px; font-weight: 750; }
.terminal-card { padding: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(6,25,41,.78); box-shadow: 0 30px 80px rgba(0,0,0,.3); backdrop-filter: blur(16px); }
.terminal-head { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28); }
.terminal-label { margin-left: auto; color: rgba(255,255,255,.45); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-card pre { margin: 0; overflow: auto; color: #cce9ff; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.code-blue { color: #48baff; }
.code-green { color: #67e2aa; }

.trust-strip { background: #081a2b; color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 26px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.trust-item:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.trust-value { display: block; color: #4abbff; font-size: 29px; font-weight: 900; letter-spacing: -.03em; }
.trust-label { color: rgba(255,255,255,.62); font-size: 13px; }

.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-dark { color: #fff; background: var(--ink); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.16; letter-spacing: -.035em; }
.section-heading > p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.section-dark .section-heading > p:not(.eyebrow) { color: rgba(255,255,255,.64); }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 36px rgba(7,21,34,.045); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 15px; color: #087eff; background: #e9f5ff; font-weight: 900; }
.card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step-card { position: relative; min-height: 270px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 36px; border-radius: 12px; color: #087eff; background: #e9f5ff; font-weight: 900; }
.step-card h3 { margin: 0 0 9px; font-size: 19px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-copy h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.15; letter-spacing: -.035em; }
.split-copy > p { color: rgba(255,255,255,.66); }
.check-list { margin: 25px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; margin-top: 2px; border-radius: 50%; color: #fff; background: #087eff; font-size: 12px; font-weight: 900; }
.api-card { padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: #0c2236; box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.api-card pre { margin: 0; overflow-x: auto; color: #d2e9fb; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }

.support-panel { padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, #fff, #f4f9ff); }
.asset-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.asset-chip { min-height: 58px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-weight: 850; }
.asset-chip img { width: 32px; height: 32px; object-fit: contain; }
.fee-note { margin-top: 20px; padding: 18px 20px; border-left: 4px solid #087eff; border-radius: 12px; color: #385067; background: #eaf6ff; }

.pricing-teaser { padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 28px; color: #fff; background: radial-gradient(circle at 85% 0, rgba(14,127,255,.55), transparent 35%), #071522; }
.pricing-teaser h2 { margin: 0; font-size: clamp(29px, 4vw, 44px); }
.pricing-teaser p { max-width: 720px; margin: 10px 0 0; color: rgba(255,255,255,.67); }

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.faq-list summary { padding: 20px 23px; cursor: pointer; list-style: none; font-weight: 850; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: #087eff; font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 23px 22px; color: var(--muted); }

.final-cta { padding: 0 0 100px; }
.final-cta-panel { padding: 52px; text-align: center; border-radius: 30px; color: #fff; background: radial-gradient(circle at 10% 20%, rgba(39,167,255,.25), transparent 32%), linear-gradient(135deg, #061421, #0b2841); }
.final-cta-panel h2 { margin: 0; font-size: clamp(31px, 4vw, 48px); }
.final-cta-panel p { max-width: 680px; margin: 14px auto 26px; color: rgba(255,255,255,.65); }

.page-hero { padding: 94px 0 70px; color: #fff; background: radial-gradient(circle at 75% 10%, rgba(11,130,255,.38), transparent 28%), #061421; }
.page-hero-inner { max-width: 880px; }
.page-hero p { margin: 20px 0 0; color: rgba(255,255,255,.68); font-size: 18px; }
.stripe-badge { width: fit-content; margin-top: 22px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #dceeff; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 800; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.price-card.featured { border: 2px solid #087eff; box-shadow: 0 24px 60px rgba(7,126,255,.15); }
.popular-badge { position: absolute; top: 0; right: 24px; transform: translateY(-50%); padding: 6px 11px; border-radius: 999px; color: #fff; background: #087eff; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.plan-name { margin: 0; color: #087eff; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.price { margin: 14px 0 3px; font-size: 44px; font-weight: 900; line-height: 1.1; letter-spacing: -.04em; }
.price small { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.plan-desc { min-height: 52px; margin: 14px 0 22px; color: var(--muted); }
.price-card .check-list { margin-bottom: 28px; }
.price-card .btn { margin-top: auto; }
.pricing-disclaimer { margin-top: 26px; color: var(--muted); font-size: 13px; text-align: center; }

.cost-table { width: 100%; border-collapse: collapse; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.cost-table th, .cost-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cost-table tr:last-child th, .cost-table tr:last-child td { border-bottom: 0; }
.cost-table th { width: 32%; background: var(--soft); }
.stripe-connect { padding: 28px; border: 1px dashed rgba(7,126,255,.45); border-radius: 22px; background: #f4faff; }
.stripe-connect h3 { margin-top: 0; }
.stripe-connect p { color: var(--muted); }
.implementation-note { display: inline-block; padding: 5px 9px; border-radius: 8px; color: #735e05; background: #fff4c2; font-size: 12px; font-weight: 850; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-logo img { width: 175px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; }

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 45px; }
  .terminal-card { max-width: 700px; }
  .benefit-grid, .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .price-card { min-height: auto; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand img { width: 138px; }
  .header-contact { display: none; }
  .language-menu summary { min-width: 66px; height: 38px; }
  .hero-inner { padding-block: 66px; }
  .hero h1, .page-hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .hero-copy > p:not(.eyebrow), .page-hero p { font-size: 16px; }
  .hero-actions-row { flex-direction: column; align-items: stretch; }
  .hero-actions-row .btn { width: 100%; }
  .terminal-card { padding: 18px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .trust-item:last-child { border-right: 0; border-bottom: 0; }
  .section { padding: 76px 0; }
  .benefit-grid, .steps { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-number { margin-bottom: 24px; }
  .pricing-teaser { padding: 30px; align-items: flex-start; flex-direction: column; }
  .final-cta-panel { padding: 38px 22px; }
  .page-hero { padding: 70px 0 55px; }
  .price-card, .card, .support-panel { padding: 25px; }
  .cost-table, .cost-table tbody, .cost-table tr, .cost-table th, .cost-table td { display: block; width: 100%; }
  .cost-table th { padding-bottom: 5px; }
  .cost-table td { padding-top: 5px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
