/* MCP Pro for Designer - shared styles (site + guides) */
:root {
  --bg: #0b0f14;
  --surface: #121a21;
  --surface-2: #1a2630;
  --border: #26323c;
  --text: #e6edf3;
  --text-muted: #8b98a5;
  --accent: #36c2b4;       /* teal: Designer node ports / procedural */
  --accent-hover: #52d6c8;
  --wire: #f0b44c;         /* amber: node wires */
  --green: #3fb950;
  --red: #f85149;
  --mono: 'Cascadia Code', 'SF Mono', Consolas, 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  line-height: 1.6;
}
:lang(ja) body, body:lang(ja) {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; color: var(--text); }
pre { font-family: var(--mono); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.5; margin: 12px 0 20px; }
pre code { background: none; padding: 0; font-size: inherit; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(11,15,20,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta { background: var(--accent); color: #071311; padding: 7px 16px; border-radius: 6px; font-weight: 700; }
.nav-links a.nav-cta:hover { background: var(--accent-hover); color: #071311; }
.lang-switcher select { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); padding: 4px 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
.nav-hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 4px 14px; font-size: 13px; color: var(--wire); margin-bottom: 20px; font-weight: 600; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wire); }
.hero h1 { font-size: 50px; font-weight: 800; line-height: 1.08; margin-bottom: 18px; letter-spacing: -0.5px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--text-muted); margin-bottom: 28px; max-width: 560px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: #071311; padding: 13px 30px; border-radius: 8px; font-size: 17px; font-weight: 700; text-decoration: none; transition: background .2s; border: 2px solid var(--accent); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #071311; }
.btn-alt { background: transparent; color: var(--accent); }
.btn-alt:hover { background: rgba(54,194,180,0.12); color: var(--text); }
.hero-price { display: block; margin-top: 12px; color: var(--text-muted); font-size: 14px; }

/* hero graph visual */
.graph-visual { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.graph-visual svg { width: 100%; height: auto; display: block; }
.graph-visual .caption { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 64px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.stat-number { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Sections */
.section { margin-bottom: 72px; scroll-margin-top: 72px; }
.section h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
.section .subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; max-width: 760px; }

/* Arch */
.arch { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.arch pre { background: var(--bg); color: var(--accent); margin: 0 0 12px; text-align: left; }
.arch p { color: var(--text-muted); font-size: 14px; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .7; }
.feature h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.feature .tag { font-size: 11px; font-weight: 700; color: var(--wire); border: 1px solid rgba(240,180,76,.4); border-radius: 4px; padding: 0 6px; }
.feature p { color: var(--text-muted); font-size: 14.5px; }
.feature .tools { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); line-height: 1.9; }
.feature .tools code { font-size: 12px; }

/* Recipe gallery */
.gallery-controls { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.gallery-controls button { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); padding: 7px 14px; border-radius: 6px; font-size: 14px; cursor: pointer; font-weight: 600; }
.gallery-controls button[aria-pressed="true"] { background: var(--accent); color: #071311; border-color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.recipe { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0; }
.recipe .img { position: relative; aspect-ratio: 1 / 1; }
.recipe img { width: 100%; height: 100%; display: block; object-fit: cover; position: absolute; inset: 0; transition: opacity .25s; }
.recipe img.worn { opacity: 0; }
.gallery.show-worn .recipe img.worn { opacity: 1; }
.recipe:hover img.worn { opacity: 1; }
.gallery.show-worn .recipe:hover img.worn { opacity: 0; }
.recipe figcaption { padding: 8px 10px; font-size: 13px; }
.recipe figcaption code { background: none; padding: 0; font-size: 13px; color: var(--text); }
.recipe figcaption small { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.gallery-note { color: var(--text-muted); font-size: 13px; margin-top: 12px; }

/* Tables */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data td code { white-space: nowrap; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { color: var(--text-muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
table.data td.num { color: var(--accent); font-weight: 800; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.client { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.client strong { display: block; margin-bottom: 2px; }
.client span { color: var(--text-muted); font-size: 13.5px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px 8px 64px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #071311; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 8px; }
.step pre { margin: 8px 0 14px; }

/* Demo */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.video-slot { aspect-ratio: 16 / 9; background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; display: grid; place-items: center; color: var(--text-muted); font-size: 14px; text-align: center; padding: 16px; overflow: hidden; }
.video-slot iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* Notice */
.notice { background: rgba(240,180,76,0.07); border: 1px solid rgba(240,180,76,0.35); border-radius: 12px; padding: 20px 22px; }
.notice h3 { color: var(--wire); font-size: 17px; margin-bottom: 6px; }
.notice ul { margin: 6px 0 0 20px; color: var(--text-muted); font-size: 14.5px; }
.notice li { margin: 3px 0; }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; color: var(--accent); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .answer { padding: 0 20px 16px; color: var(--text-muted); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, rgba(54,194,180,0.10), rgba(240,180,76,0.06)); border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.price { font-size: 56px; font-weight: 800; line-height: 1; }
.price small { font-size: 18px; color: var(--text-muted); font-weight: 500; }
.pricing ul { list-style: none; }
.pricing li { padding: 5px 0 5px 26px; position: relative; color: var(--text); font-size: 15px; }
.pricing li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }

/* Cards (guides, siblings) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.card span { color: var(--text-muted); font-size: 13.5px; }

/* Article (guides) */
.article { max-width: 780px; margin: 0 auto; padding: 48px 24px 24px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }
.article h1 { font-size: 38px; line-height: 1.15; margin-bottom: 12px; letter-spacing: -0.3px; }
.article .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 24px; margin: 36px 0 10px; scroll-margin-top: 72px; }
.article h3 { font-size: 18px; margin: 22px 0 8px; }
.article p, .article li { font-size: 16px; color: #cfd8e0; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin: 4px 0; }
.article .table-wrap { margin: 12px 0 20px; }
.article figure { margin: 18px 0 24px; }
.article figure img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); display: block; }
.article figcaption { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.tip { background: rgba(54,194,180,0.07); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0 20px; font-size: 15px; color: #cfd8e0; }
.tip.warn { background: rgba(240,180,76,0.07); border-left-color: var(--wire); }
.article-cta { margin: 40px 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.article-cta p { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin: 0 0 24px; font-size: 14.5px; }
.toc ol, .toc ul { margin: 6px 0 0 20px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--text-muted); font-size: 14px; margin-top: 40px; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }
footer p + p { margin-top: 8px; }
footer .legal { font-size: 12.5px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; padding: 24px; }
  .nav-hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 8px 0; }
  .article h1 { font-size: 30px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 32px; }
  .section h2 { font-size: 26px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .article { padding: 32px 16px 16px; }
}

/* Keep long code and pre blocks from widening the page on small screens */
.hero-grid > *, .features > *, .clients > *, .cards > *, .pricing > *, .step, .arch { min-width: 0; }
p code, li code, .client code, .tools code, .hero-price code, .caption code { overflow-wrap: anywhere; }
pre { max-width: 100%; }
