:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #15171c;
  --body: #3b3f48;
  --muted: #4a4f5a;
  --rule: #ddd8ce;
  --rule-soft: #eae6dd;
  --rule-strong: #b9b2a4;
  --m-accent: #2448c7;
  --m-tint: #eef1fb;
  --t-accent: #0f7564;
  --dark: #15171c;
  --dark-text: #c9ccd3;
  --dark-rule: #3a3e47;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.7; }
a { color: var(--ink); }
a:hover { color: var(--m-accent); }
a:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { width: min(100% - 48px, 1200px); margin: 0 auto; }
.serif { font-family: var(--serif); }
.phrase { display: inline-block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-md); font-weight: 500; text-decoration: none; }
.btn-primary { background: var(--m-accent); color: #fff; font-weight: 700; }
.btn-primary:hover { background: #1c3aa6; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2e36; color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .24em; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav .lang { color: var(--muted); }
.nav-sections { display: none; gap: 28px; }
.site-nav .btn { min-height: 44px; padding: 0 20px; }
@media (min-width: 1024px) { .nav-sections { display: flex; } }
@media (max-width: 479px) { .site-nav .btn { display: none; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section h2 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.45; font-weight: 700; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 800px; }
.section-head .lead { font-size: 18px; color: var(--body); }

/* Hero */
.hero .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) 520px; gap: 72px; } }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.5; padding: 10px 20px; border-radius: var(--radius-sm); color: #fff; }
.badge-m { background: var(--m-accent); }
.badge-t { background: var(--t-accent); }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.35; letter-spacing: .01em; }
.hero .lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--body); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted); }

/* Product visual (illustrative mock) */
.mock { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.mock-label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: var(--radius-lg); }
.bubble-user { align-self: flex-end; background: var(--ink); color: #fff; }
.bubble-ai { align-self: flex-start; background: var(--m-tint); }
.mock-table { border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: hidden; font-size: 13px; }
.mock-row { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.1fr; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--rule-soft); }
.mock-row:first-child { border-top: 0; background: var(--bg); font-weight: 700; }
.status-wait { color: var(--m-accent); font-weight: 700; }
.status-done { color: var(--muted); }
.mock-actions { display: flex; gap: 10px; }
.mock-actions span { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--radius-md); }
.mock-actions .fake-primary { background: var(--m-accent); color: #fff; font-weight: 700; }
.mock-actions .fake-secondary { border: 1px solid var(--rule); background: var(--surface); }
@media (max-width: 479px) {
  .mock-row { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .mock-row span:nth-child(2) { display: none; }
}

/* Problems */
.problems { display: grid; gap: 32px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 768px) { .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.problems li { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.solves { font-size: 13px; font-weight: 700; }
.solves-m { color: var(--m-accent); }
.solves-t { color: var(--t-accent); }
.problems h3 { font-size: 21px; line-height: 1.5; }
.problems p { color: var(--body); }

/* Product flow */
.flow-head { text-align: center; margin: 0 auto 48px; }
.flow { display: grid; gap: 12px; align-items: stretch; }
.flow-end { padding: 24px; border: 1px dashed var(--rule-strong); border-radius: var(--radius-lg); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.flow-end .caption { font-size: 14px; color: var(--muted); }
.flow-end strong { font-size: 19px; line-height: 1.5; }
.flow-end .formats { font-size: 14px; color: var(--muted); white-space: nowrap; }
.flow-product { padding: 28px; border-radius: var(--radius-lg); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.flow-product.m { background: var(--m-accent); }
.flow-product.t { background: var(--t-accent); }
.flow-product .name { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; }
.flow-product .role { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.4; }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.flow-arrow svg { transform: rotate(90deg); }
@media (min-width: 1024px) {
  .flow { grid-template-columns: 210px auto minmax(0, 1fr) auto minmax(0, 1fr) auto 210px; }
  .flow-arrow svg { transform: none; }
}

/* Product sections */
.product-section { border-top: 1px solid var(--rule); }
.product-section .name-line { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; font-weight: 500; }
.m .name-line, .name-line.m { color: var(--m-accent); }
.name-line.t { color: var(--t-accent); }
.product-section h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.4; }
.overview { margin: 0 0 48px; }
.overview-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.overview img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) { .overview img { width: 880px; max-width: none; } }
.overview figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.steps3 { display: grid; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 0; margin: 0 0 48px; list-style: none; background: var(--surface); }
.steps3 li { padding: 28px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); }
.steps3 li:first-child { border-top: 0; }
.step-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--m-accent); }
.steps3 h3 { font-size: 21px; }
.steps3 p { color: var(--body); }
@media (min-width: 768px) {
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps3 li { border-top: 0; border-left: 1px solid var(--rule); }
  .steps3 li:first-child { border-left: 0; }
}
.pillars { display: grid; gap: 32px; margin-bottom: 56px; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.pillars div { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pillars h3 { font-size: 20px; }
.pillars p { color: var(--body); font-size: 15px; }
.video-slot { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--dark); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.video-slot strong { font-size: clamp(16px, 2vw, 20px); }
.video-slot span { font-size: 14px; color: var(--dark-text); }

.trinity-body { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .trinity-body { grid-template-columns: minmax(0, 1fr) 560px; } }
.steps4 { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--t-accent); display: flex; flex-direction: column; gap: 28px; }
.steps4 li { display: flex; flex-direction: column; gap: 4px; }
.steps4 .step-label { font-family: var(--mono); font-size: 13px; color: var(--t-accent); }
.steps4 h3 { font-size: 20px; }
.steps4 p { color: var(--body); }
.example { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.example .mock-label { margin: 0; }
.example .goal { font-size: 19px; font-weight: 700; line-height: 1.55; }
.example dl { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); font-size: 15px; border-top: 1px solid var(--rule-soft); }
.example dt, .example dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.example dt { font-family: var(--mono); color: var(--t-accent); font-size: 14px; }
.example .fake-run { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius-md); background: var(--t-accent); color: #fff; font-weight: 700; }

/* Security */
.section-dark { background: var(--dark); color: #fff; }
.section-dark a { color: #fff; }
.security { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .security { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .security { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.security li { border-top: 1px solid var(--dark-rule); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.security h3 { font-size: 19px; }
.security p { font-size: 15px; color: var(--dark-text); }

/* Launch + waitlist */
.launch { display: grid; gap: 56px; align-items: start; }
@media (min-width: 1024px) { .launch:has(> .signup:not([hidden])) { grid-template-columns: minmax(0, 1fr) 480px; gap: 72px; } }
.launch h2 { margin-bottom: 28px; }
.schedule { margin: 0; border-top: 1px solid var(--rule); }
.schedule div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.schedule dt { font-family: var(--mono); }
.schedule dd { margin: 0; font-size: 17px; }
.schedule .m { color: var(--m-accent); }
.schedule .t { color: var(--t-accent); }
.schedule .other { color: var(--muted); }
.signup { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.signup h3 { font-family: var(--serif); font-size: 26px; }
.signup p { color: var(--body); }
.placeholder-box { border: 1px dashed var(--rule-strong); border-radius: var(--radius-md); padding: 16px; font-size: 15px; color: var(--muted); }

/* Company */
.company { display: grid; gap: 32px; }
@media (min-width: 1024px) { .company { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; } }
.company h2 { font-size: clamp(26px, 3vw, 36px); }
.company dl { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); border-top: 1px solid var(--rule); font-size: 16px; }
@media (min-width: 768px) { .company dl { grid-template-columns: 180px minmax(0, 1fr); } }
.company dt, .company dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.company dt { color: var(--muted); }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 56px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .brand { color: #fff; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.site-footer a:focus-visible { outline-color: #fff; }
