:root {
  color-scheme: dark;
  --bg: #07080d;
  --panel: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f8ff;
  --muted: #a9adbd;
  --blue: #4d7cff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 14% 2%, rgba(77, 124, 255, .23), transparent 27rem), radial-gradient(circle at 88% 24%, rgba(154, 92, 255, .18), transparent 25rem), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
.site-header { width: min(1120px, calc(100% - 40px)); height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { position: relative; display: inline-block; width: 34px; height: 34px; }
.brand-mark i { position: absolute; left: 5px; width: 24px; height: 17px; border-radius: 6px; background: linear-gradient(135deg, #7aa2ff, #4d7cff); box-shadow: 0 8px 18px rgba(77,124,255,.25); }
.brand-mark i:nth-child(1) { top: 2px; opacity: .35; }
.brand-mark i:nth-child(2) { top: 8px; opacity: .65; }
.brand-mark i:nth-child(3) { top: 14px; }
nav { display: flex; gap: 26px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--text); }
.hero { width: min(1120px, calc(100% - 40px)); min-height: 720px; margin: 0 auto; padding: 110px 0 84px; position: relative; overflow: hidden; }
.eyebrow, .section-heading > span { color: #86a6ff; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
h1 { max-width: 680px; margin: 18px 0 22px; font-size: clamp(58px, 8vw, 102px); line-height: 1.08; letter-spacing: -.075em; }
.lead { max-width: 610px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; }
.hero-actions a { padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.primary { background: var(--text); color: #11131b; }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.stitch-demo { position: absolute; right: -25px; bottom: 95px; width: 485px; height: 430px; }
.demo-card, .demo-long { position: absolute; padding: 28px; border: 1px solid rgba(255,255,255,.16); background: rgba(17,20,31,.92); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.demo-card { width: 185px; height: 255px; border-radius: 26px; transform: rotate(-8deg); }
.demo-card.left { left: 0; top: 20px; }
.demo-card.middle { left: 82px; top: 108px; transform: rotate(5deg); }
.demo-card span, .demo-long span { display: block; height: 18px; border-radius: 8px; margin: 17px 0; background: #2b3450; }
.demo-card span:nth-child(even), .demo-long span:nth-child(even) { width: 72%; margin-left: auto; background: #3a61c9; }
.merge-arrow { position: absolute; left: 263px; top: 178px; color: #9ab2ff; font-size: 34px; font-weight: 700; }
.demo-long { right: 4px; top: 0; width: 150px; height: 390px; border-radius: 30px; transform: rotate(5deg); border-color: rgba(91,133,255,.55); }
.section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 44px; }
h2 { margin: 8px 0 8px; font-size: clamp(38px, 5vw, 62px); line-height: 1.2; letter-spacing: -.055em; }
.section-heading p, .updated { color: var(--muted); }
.cards, .policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards article, .policy-grid article, .english-columns article { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); backdrop-filter: blur(14px); }
.number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(77,124,255,.18); color: #9bb3ff; font-size: 13px; font-weight: 800; }
.number.purple { background: rgba(154,92,255,.18); color: #c5a5ff; }
.number.green { background: rgba(53,201,162,.18); color: #72e2c5; }
.number.amber { background: rgba(255,177,69,.16); color: #ffd08b; }
h3 { margin: 18px 0 8px; font-size: 21px; }
article p { color: #c3c6d2; }
.tip { margin-top: 16px; padding: 24px 30px; border-left: 3px solid var(--blue); border-radius: 0 18px 18px 0; background: rgba(77,124,255,.08); }
.tip p { margin: 4px 0 0; color: var(--muted); }
.privacy { background: radial-gradient(circle at 0 50%, rgba(53,201,162,.1), transparent 38rem); }
.policy-grid article h3, .english-columns article h3 { margin-top: 0; }
.policy-grid a, .english a { color: #9bb3ff; }
.english-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 60px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.footer-brand { color: var(--text); }
.brand-mark.small { transform: scale(.75); transform-origin: left center; width: 28px; }
footer a { margin-left: auto; text-decoration: none; }

@media (max-width: 860px) {
  nav a:not(:last-child) { display: none; }
  .hero { padding-top: 76px; min-height: 920px; }
  .stitch-demo { right: 50%; transform: translateX(50%) scale(.85); transform-origin: bottom center; }
  .cards, .policy-grid, .english-columns { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  footer a { margin-left: 0; }
}
@media (max-width: 520px) {
  .site-header, .hero, .section, footer { width: min(100% - 28px, 1120px); }
  h1 { font-size: 53px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stitch-demo { transform: translateX(50%) scale(.69); }
  .cards article, .policy-grid article, .english-columns article { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
