/* ═══ MCP IN RAILS ══════════════════════════════════════════════════ */
:root {
  --acc:  #e53935;
  --acc2: rgba(229,57,53,0.10);
  --acc3: rgba(229,57,53,0.04);
  --bg:   #08000a;
  --text: #cdc7c0;
  --dim:  rgba(205,199,192,0.48);
  --grn:  #00c896;
  --mono: 'JetBrains Mono', monospace;
  --serif:'Cormorant Garamond', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; }
a { color: var(--acc); text-decoration: none; }
strong { color: #f0ebe4; font-weight: 600; }
code { font-family: var(--mono); font-size: 0.82em; color: var(--acc); }

/* HERO */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7rem 2rem 5rem; position: relative; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(229,57,53,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(229,57,53,0.04) 1px,transparent 1px); background-size: 44px 44px; pointer-events: none; }
.hero-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; color: rgba(229,57,53,0.55); margin-bottom: 2.5rem; }
.hero-title { font-family: var(--serif); font-size: clamp(3.5rem,9vw,7rem); font-weight: 300; letter-spacing: -0.02em; color: #f0ebe4; line-height: 1; margin-bottom: 1.2rem; }
.hero-sub { font-family: var(--serif); font-size: 1.35rem; font-style: italic; font-weight: 300; color: var(--dim); margin-bottom: 2.5rem; }
.hero-tag { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; color: rgba(229,57,53,0.65); }

/* LAYERS */
.s { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.s-2 { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.s-divider { border: none; border-top: 1px solid rgba(229,57,53,0.09); }
.sec-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; color: rgba(229,57,53,0.52); text-transform: uppercase; margin-bottom: 1.2rem; }
h2 { font-family: var(--serif); font-size: clamp(1.9rem,3.5vw,2.7rem); font-weight: 300; color: #f0ebe4; margin-bottom: 1.6rem; line-height: 1.2; }
p { margin-bottom: 1.1rem; }
.pull { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--acc); line-height: 1.55; margin: 2rem 0; padding-left: 1.2rem; border-left: 2px solid rgba(229,57,53,0.38); }

/* CODE BLOCK */
.code-block { font-family: var(--mono); font-size: 0.72rem; line-height: 1.85; background: rgba(0,0,0,0.5); border: 1px solid rgba(229,57,53,0.18); border-left: 3px solid var(--acc); border-radius: 3px; padding: 1.4rem 1.6rem; overflow-x: auto; }
.cb-comment { color: rgba(205,199,192,0.35); }
.cb-acc { color: var(--acc); }
.cb-grn { color: var(--grn); }
.cb-str { color: rgba(255,220,150,0.8); }
.cb-kw  { color: rgba(200,160,255,0.85); }

/* SPEC BOX */
.spec-box { font-family: var(--mono); font-size: 0.74rem; line-height: 1.75; background: rgba(229,57,53,0.035); border: 1px solid rgba(229,57,53,0.14); border-radius: 3px; padding: 1.4rem 1.6rem; }
.sb-head { font-size: 0.6rem; letter-spacing: 0.18em; color: rgba(229,57,53,0.65); margin-bottom: 1rem; }
.sb-row { display: flex; gap: 0.8rem; padding: 0.22rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sb-key { color: rgba(229,57,53,0.68); min-width: 8rem; }
.sb-val { color: var(--text); }

/* PROTOCOL CARDS */
.proto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(229,57,53,0.15); border: 1px solid rgba(229,57,53,0.15); margin-top: 2rem; }
.proto-card { background: var(--bg); padding: 1.6rem 1.4rem; }
.pc-badge { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.15em; color: var(--acc); margin-bottom: 0.5rem; }
.pc-name { font-family: var(--serif); font-size: 1.5rem; color: #f0ebe4; margin-bottom: 0.5rem; font-weight: 300; }
.pc-sub { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); margin-bottom: 1rem; }
.pc-desc { font-size: 0.92rem; line-height: 1.65; }
.pc-ex { font-family: var(--mono); font-size: 0.65rem; color: rgba(229,57,53,0.6); margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* TOOL ANATOMY */
.tool-anatomy { margin-top: 2rem; }
.ta-step { display: flex; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); align-items: flex-start; }
.ta-n { font-family: var(--mono); font-size: 0.62rem; color: rgba(229,57,53,0.5); min-width: 1.5rem; padding-top: 0.2rem; }
.ta-key { font-family: var(--mono); font-size: 0.72rem; color: var(--acc); min-width: 7rem; padding-top: 0.2rem; }
.ta-val { font-size: 0.9rem; color: var(--text); line-height: 1.5; }

/* STACK FLOW */
.stack-flow { font-family: var(--mono); font-size: 0.74rem; line-height: 2.2; background: rgba(0,0,0,0.38); border: 1px solid rgba(229,57,53,0.14); border-radius: 3px; padding: 1.4rem; color: var(--text); }
.sf-acc { color: var(--acc); }
.sf-dim { color: rgba(205,199,192,0.35); }
.sf-grn { color: var(--grn); }

/* CLOSE */
.s-close { background: rgba(229,57,53,0.03); border-top: 1px solid rgba(229,57,53,0.1); }
.close-inner { max-width: 820px; margin: 0 auto; padding: 7rem 2rem; text-align: center; }
.close-inner h2 { font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 300; color: #f0ebe4; font-style: italic; line-height: 1.3; margin-bottom: 0; }
.site-footer { text-align: center; padding: 1.8rem; font-family: var(--mono); font-size: 0.68rem; color: var(--dim); border-top: 1px solid rgba(255,255,255,0.04); }

@media (max-width: 760px) {
  .s-2 { grid-template-columns: 1fr; padding: 3rem 1.2rem; }
  .s   { padding: 3rem 1.2rem; }
  .proto-grid { grid-template-columns: 1fr; }
}
