:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: #0d1422;
  --panel-2: #121b2d;
  --text: #f8fbff;
  --muted: #9ca8ba;
  --line: rgba(159, 180, 209, 0.18);
  --cyan: #48e2ff;
  --pink: #ff4fa3;
  --gold: #d8b86f;
  --green: #75f0b7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(72, 226, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(255, 79, 163, 0.14), transparent 24rem),
    linear-gradient(180deg, #080b13 0%, #0a0e18 45%, #070a12 100%);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(7, 10, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  transform: rotate(45deg);
  border-radius: 4px;
  box-shadow: 0 0 22px rgba(72, 226, 255, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.header-cta,
.button,
.plan-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.header-cta,
.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #07101a;
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(44px, 7vw, 84px);
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 10vw, 132px);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.lead {
  width: min(620px, 100%);
  margin: 28px 0 0;
  color: #d7deea;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.65;
  font-weight: 700;
}

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

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(620px, 100%);
  margin: 44px 0 0;
}

.proof-row div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.proof-row dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.proof-row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.trial-band {
  padding-top: clamp(42px, 6vw, 72px);
}

.trial-card {
  width: min(1040px, 100%);
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(72, 226, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.trial-card strong {
  display: block;
  font-size: clamp(20px, 2.6vw, 30px);
  margin-bottom: 8px;
}

.trial-card p {
  max-width: 720px;
  margin: 0;
  color: #d7deea;
  line-height: 1.75;
}

.product-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(72, 226, 255, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border-radius: 16px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.hero-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 12px;
}

.tablet-frame {
  padding: 12px;
  background: linear-gradient(145deg, #232b3b, #090d14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.42);
}

.tablet-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #090d16;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pink);
}

.terminal-bar span:nth-child(2) { background: var(--gold); }
.terminal-bar span:nth-child(3) { background: var(--green); }

.terminal-bar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.pos-screen {
  min-height: 520px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(90deg, rgba(72, 226, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 226, 255, 0.08) 1px, transparent 1px),
    #101827;
  background-size: 32px 32px;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.screen-top p,
.screen-grid small,
.screen-grid span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.screen-top strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.screen-top button {
  border: 0;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--green);
  color: #07101a;
  font-weight: 800;
}

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

.screen-grid article,
.order-list {
  border: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.58);
  border-radius: 8px;
}

.screen-grid article { padding: 18px; }

.screen-grid strong {
  display: block;
  min-height: 34px;
  margin: 14px 0 8px;
  font-size: 22px;
}

.order-list {
  margin-top: 16px;
  padding: 8px;
}

.order-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
}

.order-list div:last-child { border-bottom: 0; }
.order-list span { color: #d7deea; }
.order-list b { color: var(--cyan); }

.section {
  padding: clamp(68px, 10vw, 132px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

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

.feature-list article,
.plan-row article {
  border: 1px solid var(--line);
  background: rgba(13, 20, 34, 0.72);
  border-radius: 8px;
  padding: 26px;
}

.feature-list span {
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
}

.feature-list h3,
.plan-row h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.workflow {
  background: linear-gradient(180deg, rgba(18, 27, 45, 0.55), rgba(7, 10, 18, 0));
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline div {
  min-height: 180px;
  padding: 24px;
  background: #0d1422;
}

.timeline b {
  display: block;
  color: var(--pink);
  font-size: 34px;
  margin-bottom: 38px;
}

.timeline span {
  color: #e9eef7;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
}

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

.plan-row article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.plan-row .featured {
  border-color: rgba(72, 226, 255, 0.55);
  box-shadow: 0 0 60px rgba(72, 226, 255, 0.1);
}

.plan-row strong {
  display: block;
  margin: auto 0 22px;
  font-size: 26px;
}

.plan-row a {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.compliance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 36px;
  align-items: end;
  padding: clamp(28px, 6vw, 62px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(72, 226, 255, 0.16), rgba(255, 79, 163, 0.12)),
    #101827;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-links {
  display: grid;
  gap: 12px;
}

.legal-links a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong { color: var(--text); }
.site-footer p { margin: 6px 0 0; font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 20px 88px;
}

.legal-page h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin: 22px 0 16px;
}

.legal-page h2 {
  margin-top: 40px;
  font-size: 24px;
}

.legal-page p,
.legal-page li {
  color: #d2d9e6;
  line-height: 1.9;
}

.legal-page a { color: var(--cyan); }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) 0 clamp(70px, 9vw, 120px);
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 94px);
  line-height: 1;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 22px 0 0;
  color: #d7deea;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  font-weight: 700;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  margin-top: 28px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.apply-form,
.recovery-form,
.side-panel,
.support-picker,
.support-answer,
.guide-grid article,
.setup-strip,
.store-summary,
.credential-panel,
.checklist-panel,
.handoff-panel {
  border: 1px solid var(--line);
  background: rgba(13, 20, 34, 0.72);
  border-radius: 8px;
}

.apply-form,
.recovery-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.apply-form label,
.recovery-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.apply-form label.full,
.recovery-form label.full { grid-column: 1 / -1; }

.apply-form span,
.recovery-form span {
  color: #e9eef7;
  font-size: 14px;
  font-weight: 800;
}

.apply-form input,
.apply-form select,
.apply-form textarea,
.recovery-form input,
.recovery-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 10, 18, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 14px 13px;
}

.apply-form textarea { resize: vertical; }

.apply-form button,
.recovery-form button {
  grid-column: 1 / -1;
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #07101a;
  font: inherit;
  font-weight: 800;
}

.apply-form button:disabled,
.recovery-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status,
.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 800;
}

.form-status[data-state="success"] { color: var(--green); }
.form-status[data-state="error"] { color: #ff8cbf; }
.form-status[data-state="loading"] { color: var(--cyan); }

.form-note {
  color: var(--muted);
}

.form-note a {
  color: var(--cyan);
  font-weight: 800;
}

.support-picker,
.support-answer {
  padding: clamp(22px, 4vw, 30px);
}

.support-picker h2,
.support-answer h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.support-picker {
  display: grid;
  gap: 10px;
}

.support-picker button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 10, 18, 0.52);
  color: #e9eef7;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  padding: 0 14px;
}

.support-picker button.is-active,
.support-picker button:hover {
  border-color: rgba(72, 226, 255, 0.58);
  color: var(--cyan);
}

.support-answer p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.side-panel {
  padding: 26px;
}

.side-panel h2,
.handoff-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.side-panel ol {
  margin: 0;
  padding-left: 22px;
  color: #e9eef7;
  line-height: 2;
  font-weight: 800;
}

.side-panel p,
.handoff-panel p,
.guide-grid p {
  color: var(--muted);
  line-height: 1.85;
}

.setup-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--line);
}

.store-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--line);
}

.store-summary div {
  min-width: 0;
  padding: 22px;
  background: rgba(13, 20, 34, 0.94);
}

.store-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.store-summary strong {
  display: block;
  color: #e9eef7;
  font-size: 17px;
  line-height: 1.55;
}

.credential-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
}

.credential-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.credential-panel p {
  color: var(--muted);
  line-height: 1.85;
}

.credential-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.credential-panel dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 10, 18, 0.44);
}

.credential-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.credential-panel dd {
  margin: 0;
  color: #e9eef7;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.credential-panel a { color: var(--cyan); }

.setup-strip div {
  min-width: 0;
  padding: 22px;
  background: rgba(13, 20, 34, 0.94);
}

.setup-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.setup-strip a,
.setup-strip p {
  margin: 0;
  color: #e9eef7;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.guide-grid article {
  padding: 24px;
}

.guide-grid b {
  color: var(--pink);
  font-size: 30px;
}

.guide-grid h2 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.handoff-panel {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(72, 226, 255, 0.14), rgba(255, 79, 163, 0.1)),
    #101827;
}

.handoff-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.checklist-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
}

.checklist-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.checklist-panel p {
  color: var(--muted);
  line-height: 1.85;
}

.checklist-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-panel li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 10, 18, 0.44);
  color: #e9eef7;
  font-weight: 800;
  line-height: 1.6;
}

.checklist-panel li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 21px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero,
  .split,
  .compliance-panel,
  .form-layout,
  .support-layout,
  .credential-panel,
  .checklist-panel {
    grid-template-columns: 1fr;
  }
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero {
    min-height: auto;
  }
  .product-stage {
    max-width: 720px;
  }
  .timeline,
  .plan-row,
  .guide-grid,
  .setup-strip,
  .store-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }
  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .page-shell {
    width: calc(100% - 32px);
  }
  .hero {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  .hero h1 {
    font-size: 58px;
  }
  .lead {
    max-width: calc(100vw - 32px);
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  .hero > *,
  .section > * {
    min-width: 0;
  }
  .product-stage {
    width: 100%;
    max-width: calc(100vw - 48px);
  }
  .product-stage *,
  .pos-screen * {
    max-width: 100%;
  }
  .hero-visual {
    aspect-ratio: 16 / 10;
    padding: 8px;
  }
  .proof-row,
  .screen-grid,
  .feature-list,
  .timeline,
  .plan-row,
  .trial-card,
  .apply-form,
  .recovery-form,
  .guide-grid,
  .setup-strip,
  .store-summary,
  .credential-panel dl div {
    grid-template-columns: 1fr;
  }
  .apply-form label.full {
    grid-column: auto;
  }
  .trial-card {
    align-items: stretch;
    flex-direction: column;
  }
  .trial-card .button {
    width: 100%;
  }
  .pos-screen {
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .screen-top {
    align-items: stretch;
    flex-direction: column;
  }
  .screen-top button {
    width: 100%;
  }
  .terminal-bar strong {
    display: none;
  }
  .screen-grid article,
  .order-list,
  .order-list div {
    min-width: 0;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
