:root {
  --bg: #0b0f17; --panel: #131a26; --panel2: #0f1622; --border: #26334a;
  --fg: #e8eef8; --muted: #93a4bc; --accent: #5aa2ff; --accent2: #46c78c;
  --amber: #e8b356; --violet: #a78bfa; --rose: #f47a9e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--fg); line-height: 1.6;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; color: #9ecbff; }

header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,15,23,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 60px; padding: 6px 0; flex-wrap: wrap; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; padding: 0; margin-left: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 1px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.logo { font-size: 22px; font-weight: 800; color: var(--fg); text-decoration: none; letter-spacing: -.3px; white-space: nowrap; flex-shrink: 0; }
.logo .sg { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--fg); }
.lang-badge {
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 10px;
  font-size: 13px; color: var(--muted); text-decoration: none;
}
.lang-badge:hover { color: var(--fg); border-color: var(--accent); }

.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 72% 30%, rgba(90,162,255,.12), transparent 65%),
              radial-gradient(500px 300px at 15% 80%, rgba(167,139,250,.10), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: 44px; line-height: 1.14; font-weight: 800; letter-spacing: -0.6px; }
.accent { color: var(--accent); }
.tagline { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 640px; }
.buttons { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #0b0f17; }
.btn-primary:hover { background: #79b8ff; }
.btn-outline { border-color: var(--border); color: var(--fg); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }

section { padding: 60px 0; border-top: 1px solid var(--border); }
h2 { font-size: 30px; font-weight: 750; margin-bottom: 14px; letter-spacing: -.4px; }
.lead { color: var(--muted); font-size: 17px; max-width: 780px; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px;
  transition: border-color .15s ease;
}
.card:hover { border-color: #37507a; }
.card h3 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card p, .card li { color: var(--muted); font-size: 15px; }
.card ul { padding-left: 18px; margin-top: 6px; }
.card li { margin-bottom: 4px; }
.icon { width: 30px; height: 30px; flex: none; }

.case { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px; margin-bottom: 18px; }
.case h3 { font-size: 19px; margin-bottom: 8px; }
.case .biz { color: var(--muted); font-size: 15px; }
.case .gain { margin-top: 12px; font-size: 14px; color: var(--accent2); font-weight: 600; }
.case .gain::before { content: "→ "; }
.code {
  background: #080c12; border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; color: #c9d6ea; line-height: 1.55; white-space: pre;
}
.code .c { color: #6b7a90; }
.code .k { color: #ff8a9a; }
.code .s { color: #9ecbff; }
.code .n { color: #e8b356; }

table.spec { width: 100%; border-collapse: collapse; }
table.spec td, table.spec th {
  border: 1px solid var(--border); padding: 10px 14px; font-size: 15px; text-align: left;
}
table.spec th { background: var(--panel); }
table.spec td { color: var(--muted); }
table.spec td:first-child { color: var(--fg); }
table.spec td code { color: #9ecbff; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700;
  vertical-align: middle; letter-spacing: .2px;
}
.badge-ok { background: rgba(70,199,140,.16); color: var(--accent2); }
.badge-rc { background: rgba(90,162,255,.16); color: var(--accent); }
.badge-map { background: rgba(167,139,250,.16); color: var(--violet); }

.roadmap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 18px; }
.rm h4 { font-size: 16px; margin-bottom: 10px; }
.rm p { font-size: 14px; }
.rm .ph { font-size: 12px; color: var(--violet); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }

.fig { background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 26px; margin: 28px 0; }
.fig svg { width: 100%; height: auto; display: block; }
.fig-cap { color: var(--muted); font-size: 14px; margin-top: 14px; text-align: center; }

footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer a { color: var(--accent); text-decoration: none; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; color: var(--fg); font: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-status { margin-top: 12px; font-size: 14px; color: var(--accent2); min-height: 20px; }
#cf-send:disabled { opacity: .55; cursor: default; }
.about-grid { grid-template-columns: 1fr; align-items: start; }

.sha { cursor: default; }
.sha-copy {
  background: none; border: 1px solid var(--border); border-radius: 5px;
  color: var(--muted); font-size: 11px; padding: 1px 7px; margin-left: 7px;
  cursor: pointer; vertical-align: 1px;
}
.sha-copy:hover { color: var(--accent); border-color: var(--accent); }
.sha-copy.copied { color: var(--accent2); border-color: var(--accent2); }

.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 8, 14, .72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.modal h3 { margin-bottom: 6px; font-size: 20px; }
.modal-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--fg); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 0 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; padding: 12px 8px; border-top: 1px solid var(--border); }
  .nav-links a:first-child { border-top: none; }
  .nav-links .lang-badge { width: max-content; margin: 10px 0 2px 8px; padding: 6px 16px; border-top: none; }
}


/* ---- brand integration: logo lockup + mascot ---- */
.logo {
  display: flex; align-items: center; height: 59px; align-self: center;
}
.logo img { height: 59px; width: auto; display: block; }
@media (max-width: 860px) { .logo { height: 41px; } .logo img { height: 41px; width: auto; } }
/* header fits the larger lockup */
.nav { min-height: 72px; }
/* never paint alt text while an image loads */
.suga img, .mascot img { color: transparent; }


/* About: two columns on desktop, stacked on mobile */
.about-grid { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 36px; }
.about-text { min-width: 0; }
.about-text .btn { margin-top: 24px; }
.about-art { display: flex; justify-content: center; }
.suga { margin: 0; width: 100%; max-width: 280px; }
.suga img { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 26px rgba(0,0,0,.45)); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-art { justify-content: flex-start; margin-top: 24px; }
  .suga { max-width: 220px; }
}
