:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-muted: #f2f2ee;
  --ink: #111317;
  --ink-muted: #4b5260;
  --border: #e6e6e2;
  --accent: #162a45;
  --accent-hover: #0f1e33;
  --trust: #0f766e;
  --trust-bg: #eef7f6;
  --warn-bg: #f8f4ea;
  --radius: 14px;
  --radius-sm: 10px;
  --max-w: 1040px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "palt" 1;
  line-height: 1.75;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.82;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 8px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--trust-bg);
  color: var(--trust);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(26px, 3.2vw, 37px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.nowrap-phrase {
  display: inline-block;
  white-space: nowrap;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--ink-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  opacity: 1;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: #c8c8c0;
  opacity: 1;
}

.trust-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.trust-points li::before {
  content: "✓ ";
  color: var(--trust);
  font-weight: 700;
}

/* Architecture Diagram Card */
.arch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.arch-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.zero-pill {
  background: var(--trust-bg);
  color: var(--trust);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-node {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--bg);
}

.arch-node strong {
  display: block;
  font-size: 14px;
}

.arch-node span {
  font-size: 12px;
  color: var(--ink-muted);
}

.arch-arrow {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1;
}

.arch-blocked {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed #cfcfc7;
  font-size: 12px;
  color: var(--ink-muted);
  background: #fcfcfa;
}

/* Sections */
.section {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
}

.section-sub {
  margin: 0 0 26px;
  color: var(--ink-muted);
  font-size: 15px;
}

/* 3 Core Features */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--trust);
  margin-bottom: 8px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.45;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Comparison Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: var(--surface-muted);
  font-weight: 700;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: none;
}

.col-kz {
  background: #f5faf9;
  font-weight: 600;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(22, 42, 69, 0.06);
}

.price-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--trust);
}

.price-val {
  margin: 8px 0 4px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.price-val span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

.price-list {
  margin: 16px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-muted);
}

.price-list li {
  margin-bottom: 6px;
}

.pricing-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Waitlist Box */
.waitlist-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  flex: 1 1 220px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #d4d4cd;
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
}

.form-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--trust);
  min-height: 20px;
}

/* Article / Legal Pages */
.prose-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.prose-wrap h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.35;
}

.prose-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.prose-wrap h2 {
  margin: 34px 0 12px;
  font-size: 21px;
  line-height: 1.4;
}

.prose-wrap p,
.prose-wrap li {
  font-size: 15.5px;
  color: #262a33;
}

.dev-note {
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.legal-table {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.legal-table th {
  width: 32%;
  background: var(--surface-muted);
}

.notice-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  border: 1px solid #e5d8b8;
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 0;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Responsive (390px iPhone clean layout) */
@media (max-width: 820px) {
  .hero-grid,
  .cards-3,
  .pricing-grid,
  .waitlist-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 0 30px;
  }

  .section {
    padding: 32px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 13px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .waitlist-form button {
    width: 100%;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }
}
