:root {
  color-scheme: light;
  --blue: #1269e8;
  --blue-dark: #0749a8;
  --blue-soft: #eaf3ff;
  --yellow: #ffc928;
  --ink: #10233f;
  --muted: #5d6d82;
  --line: #dbe6f2;
  --paper: #ffffff;
  --mist: #f4f8fc;
  --shadow: 0 20px 60px rgba(16, 35, 63, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif; line-height: 1.7; }
a { color: inherit; }
button, select { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 10px max(20px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid rgba(219, 230, 242, 0.8); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 11px; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 8px 11px; color: var(--muted); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); }
.language-toggle { min-width: 54px; margin-left: 4px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue-dark); background: var(--paper); font-weight: 800; cursor: pointer; }
.language-toggle:hover { border-color: var(--blue); background: var(--blue-soft); }
.hero { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; min-height: 650px; gap: clamp(40px, 8vw, 100px); padding-block: 80px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.18em; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: 1.04; letter-spacing: -0.06em; }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 21px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 10px 26px rgba(18, 105, 232, 0.24); }
.button.secondary { border-color: var(--line); color: var(--blue-dark); background: #fff; }
.availability { margin: 18px 0 0; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.hero-demo { position: relative; }
.demo-window { position: relative; padding: 18px 18px 34px; border: 1px solid #cddcf0; border-radius: 28px; background: linear-gradient(145deg, #f8fbff, #e7f1ff); box-shadow: var(--shadow); transform: rotate(2deg); }
.demo-topbar { display: flex; gap: 7px; padding-bottom: 18px; }
.demo-topbar span { width: 9px; height: 9px; border-radius: 50%; background: #b9cce5; }
.demo-topbar span:first-child { background: var(--yellow); }
.demo-field { position: relative; padding: 28px; border-radius: 18px; background: #fff; }
.demo-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.demo-select { display: flex; justify-content: space-between; padding: 12px 14px; border: 2px solid var(--blue); border-radius: 9px; font-weight: 800; }
.caret { color: var(--blue); }
.demo-options { display: grid; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 12px 26px rgba(16, 35, 63, 0.12); }
.demo-options span, .demo-options strong { padding: 7px 10px; border-radius: 6px; }
.demo-options strong { color: #fff; background: var(--blue); }
.key-strip { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; color: var(--muted); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 30px; padding: 3px 8px; border: 1px solid #c7d5e6; border-bottom-width: 3px; border-radius: 7px; color: var(--ink); background: #fff; font-family: inherit; font-size: 0.78rem; font-weight: 900; }
.spark { position: absolute; color: var(--yellow); line-height: 1; filter: drop-shadow(0 5px 10px rgba(255, 201, 40, 0.3)); }
.spark-one { top: -34px; right: -24px; font-size: 5rem; }
.spark-two { bottom: -10px; left: -28px; font-size: 2.8rem; }
.section { padding-block: 100px; }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading.compact { margin-bottom: 25px; }
.section h2, .manual-section h2, .support-card h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.2; letter-spacing: -0.035em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 270px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.feature-card:nth-child(2) { background: var(--blue); color: #fff; transform: translateY(22px); }
.feature-card:nth-child(2) p, .feature-card:nth-child(2) .feature-number { color: #dfeeff; }
.feature-number { color: var(--blue); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.15em; }
.feature-card h3 { margin: 58px 0 10px; font-size: 1.28rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.steps-section { margin-bottom: 90px; padding: 62px; border-radius: 30px; background: var(--mist); }
.flow-list { display: grid; margin: 0 0 28px; padding: 0; list-style: none; }
.flow-list li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.flow-list li > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.flow-list strong { font-size: 1.04rem; }
.flow-list p { margin: 3px 0 0; color: var(--muted); }
.text-link { color: var(--blue); font-weight: 900; text-decoration: none; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding-block: 34px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; font-weight: 900; }
.site-footer div { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.site-footer small { grid-column: 1 / -1; color: #8190a3; }
.manual-main { padding-block: 70px 110px; }
.privacy-main { max-width: 860px; padding-block: 70px 110px; }
.privacy-hero { margin-bottom: 54px; }
.privacy-hero h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -0.055em; }
.privacy-updated { margin: 18px 0 0; color: var(--muted); font-weight: 700; }
.privacy-intro { margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.privacy-section { padding: 34px 0; border-top: 1px solid var(--line); }
.privacy-section h2 { margin: 0 0 14px; font-size: 1.6rem; letter-spacing: -0.025em; }
.privacy-section p, .privacy-section li { color: var(--muted); }
.privacy-section ul { display: grid; gap: 10px; padding-left: 24px; }
.manual-hero { max-width: 780px; margin-bottom: 70px; }
.manual-hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.06em; }
.manual-hero > p:last-child { max-width: 680px; margin: 25px 0 0; color: var(--muted); font-size: 1.08rem; }
.manual-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(40px, 8vw, 100px); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.toc strong { margin-bottom: 5px; }
.toc a { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.manual-content { min-width: 0; }
.manual-section { padding: 0 0 90px; scroll-margin-top: 100px; }
.manual-section + .manual-section { padding-top: 80px; border-top: 1px solid var(--line); }
.section-index { margin: 0 0 8px; color: var(--blue); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.16em; }
.manual-section > h2 { margin-bottom: 20px; }
.manual-section > p:not(.section-index) { color: var(--muted); }
.instruction-list { margin: 32px 0 0; padding: 0; counter-reset: instruction; list-style: none; }
.instruction-list li { position: relative; padding: 0 0 34px 56px; counter-increment: instruction; }
.instruction-list li::before { content: counter(instruction); position: absolute; top: -3px; left: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.instruction-list li:not(:last-child)::after { content: ""; position: absolute; top: 38px; bottom: 2px; left: 17px; width: 2px; background: var(--line); }
.instruction-list p { margin: 5px 0 10px; color: var(--muted); }
.instruction-list code { display: inline-block; padding: 7px 11px; border-radius: 7px; color: var(--blue-dark); background: var(--blue-soft); }
.key-table { display: grid; margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.key-table [role="row"] { display: grid; grid-template-columns: 180px 1fr; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); }
.key-table [role="row"]:last-child { border-bottom: 0; }
.key-table [role="cell"] { padding: 14px 18px; }
.key-table [role="cell"]:last-child { color: var(--muted); }
.playground-section { position: relative; }
.playground-note { display: flex; gap: 14px; margin: 24px 0; padding: 16px 18px; border-radius: 12px; color: var(--blue-dark); background: var(--blue-soft); }
.playground-note span { color: var(--yellow); font-size: 1.5rem; }
.playground-note p { margin: 0; }
.playground-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px 20px; padding: clamp(22px, 5vw, 42px); border: 1px solid #cbdced; border-radius: 24px; background: linear-gradient(145deg, #fff, #f4f9ff); box-shadow: 0 15px 40px rgba(16, 35, 63, 0.08); }
.playground-card label { align-self: center; font-weight: 800; }
.playground-card select { width: 100%; min-width: 0; padding: 11px 38px 11px 12px; border: 1px solid #aebfd3; border-radius: 9px; color: var(--ink); background: #fff; }
.playground-card select:focus-visible, .start-button:focus-visible, .finish-button:focus-visible { outline: 3px solid rgba(18, 105, 232, 0.28); outline-offset: 2px; }
.start-button, .finish-button { justify-self: start; padding: 9px 14px; border: 0; border-radius: 9px; font-weight: 800; cursor: pointer; }
.start-button { grid-column: 1 / -1; color: #fff; background: var(--blue); }
.finish-button { grid-column: 2; color: var(--blue-dark); background: var(--blue-soft); }
.playground-output { grid-column: 1 / -1; margin-top: 12px; padding: 20px; border-radius: 14px; background: #fff; }
.playground-output strong { font-size: 0.82rem; }
.playground-output p { margin: 2px 0 16px; color: var(--blue-dark); }
.playground-output ol { max-height: 150px; margin: 4px 0 0; padding-left: 22px; overflow: auto; color: var(--muted); font-size: 0.83rem; }
.limitation-list { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.limitation-list li { position: relative; padding: 18px 20px 18px 48px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.limitation-list li::before { content: "!"; position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--blue-dark); background: var(--yellow); font-size: 0.75rem; font-weight: 900; }
.support-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px; border-radius: 22px; background: var(--mist); }
.support-card h2 { font-size: 1.8rem; }
.support-card p:last-child { margin: 7px 0 0; color: var(--muted); }
.reveal { animation: reveal 650ms both cubic-bezier(0.2, 0.7, 0.2, 1); }
.delay-one { animation-delay: 100ms; }
.delay-two { animation-delay: 200ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { animation: none; } .button { transition: none; } }
@media (max-width: 820px) {
  .site-header { position: static; flex-wrap: wrap; gap: 8px; }
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: 7px; font-size: 0.8rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 65px 90px; }
  .hero-demo { width: min(520px, 92%); margin: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-card:nth-child(2) { transform: none; }
  .feature-card h3 { margin-top: 28px; }
  .manual-layout { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2, 1fr); }
  .toc strong { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  .brand span { display: none; }
  .site-header { min-height: 64px; padding-inline: 14px; }
  .site-nav { margin-left: auto; }
  .site-nav a[data-github-link] { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 15vw, 4.4rem); }
  .demo-field { padding: 18px; }
  .section { padding-block: 70px; }
  .steps-section { width: 100%; margin-bottom: 55px; padding: 50px 20px; border-radius: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer div { flex-wrap: wrap; }
  .site-footer small { grid-column: auto; }
  .manual-main { padding-top: 50px; }
  .manual-hero { margin-bottom: 45px; }
  .manual-section, .manual-section + .manual-section { padding-block: 58px; }
  .manual-section:first-child { padding-top: 0; }
  .key-table [role="row"] { grid-template-columns: 1fr; padding: 12px 0; }
  .key-table [role="cell"] { padding: 5px 14px; }
  .playground-card { grid-template-columns: 1fr; }
  .start-button, .finish-button, .playground-output { grid-column: 1; }
  .playground-card label { margin-top: 6px; }
  .support-card { align-items: flex-start; flex-direction: column; padding: 28px; }
}
