:root {
  --slate-50: #f2f5fa;
  --slate-100: #e1e6ed;
  --slate-200: #c5ccd6;
  --slate-300: #a2abb8;
  --slate-400: #818b99;
  --slate-600: #4a5361;
  --slate-700: #38404d;
  --slate-800: #29303a;
  --slate-900: #1e242b;
  --slate-950: #15191f;
  --ink: #12161c;
  --accent: #2d74cc;
  --accent-hover: #4492f2;
  --accent-soft: #6fadf7;
  --waiting: #f5b441;
  --succeeded: #4fb477;
  --danger: #f26d6a;
  --hairline: #29303a;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
}

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

html {
  color-scheme: dark;
  background: var(--slate-950);
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--slate-50);
  background: var(--slate-950);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  color: #a9cdfa;
}

::selection {
  background: rgba(68, 146, 242, 0.32);
}

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(21, 25, 31, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-50);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}

.nav-links a {
  color: var(--slate-300);
}

.nav-links a:hover {
  color: var(--slate-50);
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-lg {
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-m);
  font-size: 15px;
  font-weight: 600;
}

.btn-xl {
  height: 48px;
  padding: 0 26px;
  font-size: 16px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--slate-700);
  color: var(--slate-200);
}

.btn-ghost:hover {
  border-color: var(--slate-600);
  color: var(--slate-50);
}

.btn-disabled,
.btn[aria-disabled="true"] {
  background: var(--slate-700);
  color: var(--slate-300);
  pointer-events: none;
}

.hero {
  position: relative;
  padding: 96px 32px 104px;
  background:
    radial-gradient(780px 520px at 84% 10%, rgba(111, 173, 247, 0.14), transparent 68%),
    radial-gradient(620px 440px at 96% 38%, rgba(242, 109, 106, 0.06), transparent 70%),
    radial-gradient(600px 420px at 72% 78%, rgba(79, 180, 119, 0.06), transparent 72%),
    radial-gradient(680px 520px at 64% 58%, rgba(45, 116, 204, 0.11), transparent 72%),
    linear-gradient(#15191f, #12161c);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.hero-grid-a,
.hero-grid-b {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid-a {
  background-image:
    linear-gradient(#29303a 1px, transparent 1px),
    linear-gradient(90deg, #29303a 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.5;
  mask-image: radial-gradient(900px 600px at 30% 40%, #000 20%, transparent 78%);
}

.hero-grid-b {
  background-image: radial-gradient(#38404d 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  opacity: 0.35;
  mask-image: radial-gradient(760px 460px at 72% 58%, #000 10%, transparent 72%);
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 48px;
}

.hero-copy {
  max-width: 640px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  border: 1px solid var(--slate-700);
  background: rgba(41, 48, 58, 0.6);
  font-size: 11px;
  color: var(--slate-300);
  font-family: var(--mono);
}

.kicker .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--succeeded);
}

h1 {
  margin: 22px 0 0;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.en-lead {
  margin: 14px 0 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--slate-200);
  letter-spacing: -0.01em;
}

.hero-description {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--slate-300);
  max-width: 460px;
  text-wrap: pretty;
}

.en-sub {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 460px;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.cta-note {
  font-size: 12px;
  color: var(--slate-400);
  line-height: 1.5;
}

.hero-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid rgba(68, 146, 242, 0.45);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--slate-900);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56);
}

.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
  object-fit: contain;
  background: var(--slate-900);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.canvas { color: var(--accent-hover); }
.eyebrow.attention { color: var(--waiting); }
.eyebrow.agent { color: var(--succeeded); }

.section {
  padding: 104px 32px;
  border-bottom: 1px solid var(--slate-900);
}

.section.ink {
  background: linear-gradient(#12161c, #15191f);
}

h2 {
  margin: 16px 0 0;
  font-size: 38px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 680px;
  text-wrap: balance;
}

.h2-en {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--slate-300);
  font-weight: 500;
}

.body {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate-300);
  text-wrap: pretty;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-l);
  border: 1px solid var(--hairline);
  background: #1a1f26;
}

.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.card .en {
  margin-top: 6px;
  font-size: 12px;
  color: var(--slate-400);
  font-family: var(--mono);
}

.card p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-300);
}

.attention-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 1fr);
  gap: 56px;
  margin-top: 26px;
  align-items: start;
}

.muted {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-400);
  text-wrap: pretty;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--slate-700);
  background: rgba(41, 48, 58, 0.5);
  font-size: 12px;
  color: var(--slate-200);
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status.running {
  border-color: rgba(68, 146, 242, 0.5);
  background: rgba(68, 146, 242, 0.12);
}
.status.waiting {
  border-color: rgba(245, 180, 65, 0.5);
  background: rgba(245, 180, 65, 0.12);
  color: var(--slate-50);
}
.status.succeeded {
  border-color: rgba(79, 180, 119, 0.5);
  background: rgba(79, 180, 119, 0.12);
}
.status.failed {
  border-color: rgba(242, 109, 106, 0.5);
  background: rgba(242, 109, 106, 0.12);
}

.status.quiet .dot { background: #626c7a; }
.status.running .dot { background: var(--accent-hover); }
.status.waiting .dot { background: var(--waiting); }
.status.succeeded .dot { background: var(--succeeded); }
.status.failed .dot { background: var(--danger); }

.keys {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  border: 1px solid var(--hairline);
  background: #1a1f26;
}

kbd {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate-50);
  background: var(--slate-800);
  border: 1px solid var(--slate-600);
  border-radius: var(--radius-s);
  padding: 4px 8px;
  white-space: nowrap;
}

.key-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.key-row span {
  display: block;
  font-size: 13px;
  color: var(--slate-300);
  margin-top: 3px;
}

.agent-grid {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: 56px;
  margin-top: 30px;
  align-items: start;
}

.cli {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--hairline);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--slate-200);
  overflow-x: auto;
}

.cli .dim { color: var(--slate-400); }
.cli .pad { padding-left: 18px; }

.tools {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #1a1f26;
}

.tools-head,
.tools-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 13px 18px;
}

.tools-head {
  justify-content: space-between;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-row {
  border-bottom: 1px solid var(--slate-900);
}

.tools-row:last-child {
  border-bottom: 0;
}

.tools-row code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-soft);
  white-space: nowrap;
}

.tools-row span {
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  color: var(--slate-300);
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cards-4 .card h3 {
  font-size: 16px;
}

.download {
  padding: 112px 32px;
  background:
    radial-gradient(760px 340px at 50% 0%, rgba(68, 146, 242, 0.16), transparent 70%),
    #15191f;
  text-align: center;
}

.download h2 {
  margin: 0 auto;
  font-size: 40px;
  max-width: 16em;
}

.download .h2-en {
  margin-top: 12px;
}

.download .cta-row {
  justify-content: center;
  margin-top: 32px;
}

.foot {
  padding: 30px 32px;
  border-top: 1px solid var(--slate-900);
  background: var(--ink);
}

.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--slate-400);
}

.foot a {
  color: var(--slate-400);
}

.foot a:hover {
  color: var(--slate-200);
}

.foot-links {
  display: flex;
  gap: 20px;
}

.section.shots {
  position: relative;
  padding-top: 96px;
  padding-bottom: 112px;
  background:
    radial-gradient(620px 420px at 16% 30%, rgba(111, 173, 247, 0.09), transparent 72%),
    radial-gradient(760px 520px at 84% 56%, rgba(45, 116, 204, 0.13), transparent 74%),
    linear-gradient(#15191f, #12161c);
}

.shots-copy {
  max-width: 680px;
}

.membership-frame {
  margin: 46px 0 0;
  max-width: 820px;
  border: 1px solid rgba(68, 146, 242, 0.45);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--slate-900);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56);
}

.membership-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 412;
  object-fit: contain;
  background: var(--slate-900);
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 44px;
}

.feature-story h2 { font-size: clamp(28px, 3vw, 38px); }
.tour-art { margin: 0; min-width: 0; }
.tour-art img { width: 100%; aspect-ratio: 660 / 412; object-fit: contain; }
.tour-art a { display: block; border-radius: var(--radius-l); }
.tour-art a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 6px; }
.tour-art figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 4px 0;
  color: var(--slate-300);
  font-size: 12px;
  line-height: 1.6;
}
.tour-art figcaption span { color: var(--slate-400); }
.layered-art a {
  background:
    radial-gradient(ellipse at 14% 12%, rgba(45, 116, 204, 0.55), transparent 65%),
    radial-gradient(ellipse at 88% 38%, rgba(111, 173, 247, 0.25), transparent 62%),
    radial-gradient(ellipse at 52% 72%, rgba(45, 116, 204, 0.16), transparent 65%);
}
.waiting-art { max-width: 820px; margin: 40px 0 48px; }
.waiting-art img { border-radius: var(--radius-l); border: 1px solid var(--hairline); }

@media (max-width: 900px) {
  .nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero,
  .section,
  .download {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner,
  .attention-grid,
  .agent-grid,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .feature-story { grid-template-columns: 1fr; gap: 32px; }

  .section.shots {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  h1 {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

[id] { scroll-margin-top: 88px; }

.foot-inner { flex-wrap: wrap; }
