@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Colours follow the plugin editor (plugin/PluginEditor.cpp). */
:root {
  --bg: #0a0a0b;
  --panel: #161618;
  --raised: #222225;
  --outline: #35353a;
  --accent: #ffcc00;
  --text: #ececec;
  --dim: #8a8a90;
  --ok: #3ddc97;
  --head: "Space Grotesk", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .88em; background: var(--raised); border: 1px solid var(--outline); border-radius: 4px; padding: .05em .4em; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.3; margin: 0; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10,10,11,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--raised); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 18px; white-space: nowrap; }
.brand img { display: block; }
.nav nav { display: flex; gap: 22px; font-size: 14px; }
.nav nav a { color: var(--dim); text-decoration: none; }
.nav nav a:hover { color: var(--text); }
.nav nav a.gh { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; background: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(255,204,0,.07), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--dim); margin: 0 0 12px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -.02em; }
.lead { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; margin: 16px 0 8px; line-height: 1.6; }
.sub { color: var(--dim); margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; border: 1px solid var(--outline); background: var(--raised); color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; transition: border-color .15s, transform .15s; }
.btn:hover { border-color: var(--dim); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #111; }
.btn.primary:hover { border-color: #fff; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.tags li { font-family: var(--mono); font-size: 12px; color: var(--dim); border: 1px solid var(--outline); border-radius: 999px; padding: 3px 12px; }

.scope { margin: 0; max-width: 400px; justify-self: end; width: 100%; }
.scope canvas { display: block; width: 100%; aspect-ratio: 1; background: var(--panel); border: 1px solid var(--raised); border-radius: 12px; }
.scope-status { font-family: var(--mono); font-size: 11px; color: var(--text); padding-top: 10px; text-align: center; white-space: pre; font-variant-numeric: tabular-nums; }
.scope figcaption { font-size: 12px; color: var(--dim); text-align: center; margin-top: 6px; }

/* Screenshot */
.shot { padding: 24px 0 24px; }
.shot figure { margin: 0; border: 1px solid var(--raised); border-radius: 12px; overflow: hidden; background: var(--panel); }
.shot img { display: block; width: 100%; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--raised); border-bottom: 1px solid var(--raised); }
.section h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 36px; display: flex; gap: 14px; align-items: baseline; }
.num { font-family: var(--mono); font-size: 14px; color: var(--accent); font-weight: 700; flex: none; }
.note { color: var(--dim); font-size: 14px; margin: 24px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--raised); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { margin: 0; color: #c9c9cd; font-size: 15px; }
.card .metric { margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.metric b { display: block; font-size: 28px; color: var(--accent); font-weight: 700; line-height: 1.3; }

.points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.points li { padding-left: 18px; position: relative; color: #c9c9cd; font-size: 15px; }
.points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.points b { color: var(--text); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--raised); border-radius: 12px; padding: 24px 22px; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 13px; margin-bottom: 8px; }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 14px; color: #c9c9cd; }


.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.dl-item { background: var(--bg); border: 1px solid var(--raised); border-radius: 12px; padding: 24px; }
.dl-item h3 { font-size: 19px; margin-bottom: 8px; }
.dl-item p { margin: 0; color: #c9c9cd; font-size: 15px; }

.footer { padding: 48px 0 64px; color: var(--dim); font-size: 13px; }
.footer p { margin: 0 0 10px; max-width: 820px; }
.footer a { color: var(--text); }
.copy { font-family: var(--mono); margin-top: 20px !important; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .scope { justify-self: center; max-width: 340px; }
  .cards, .dl { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav nav a:not(.gh) { display: none; }
  .hero { padding: 48px 0 24px; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .sp-hide { display: none; }
}
