@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* SwordCLI marketing site — dependency-free stylesheet */
:root {
  --bg: #09090b;
  --bg-2: #0d0d10;
  --surface: #111114;
  --surface-2: #18181b;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef0f5;
  --muted: #9aa1b1;
  --dim: #6b7280;
  --accent: #fbbf24;
  --accent-2: #fde68a;
  --green: #4ade80;
  --grad: linear-gradient(115deg, #fde68a 0%, #fbbf24 52%, #d97706 100%);
  --radius: 16px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .section-head h2, .cta h2 { font-family: var(--display); text-wrap: balance; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sprite { position: absolute; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
code { font-family: var(--mono); font-size: .9em; background: rgba(245,158,11,.12); color: #fde68a; padding: .12em .4em; border-radius: 5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  height: 72px; padding: 0 24px;
  background: rgba(9,9,11,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.wrap, .nav { --nav-max: 1280px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 18px; flex: none; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav .btn-ghost { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn-primary { color: #18120a; background: linear-gradient(115deg, #fbbf24, #fde68a); box-shadow: 0 8px 30px rgba(217, 119, 6, .22); }
.btn-primary:hover { box-shadow: 0 12px 36px rgba(217, 119, 6, .34); }
.btn-outline { border-color: var(--line-strong); background: rgba(255,255,255,.03); color: var(--text); }
.btn-outline:hover { border-color: rgba(245,158,11,.7); background: rgba(245,158,11,.08); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn.full { width: 100%; }

/* ---------- Shared sections ---------- */
.section { padding: 104px 0; position: relative; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker, .mini-label { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-head h2, .cta h2 { margin: 0 0 16px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 100%);
  pointer-events: none;
}
.glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .35; }
.glow-a { width: 520px; height: 520px; background: #4a2b08; top: -190px; left: -140px; }
.glow-b { width: 420px; height: 420px; background: #3b2a0b; top: 40px; right: -160px; opacity: .22; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.03); padding: 7px 13px; border-radius: 100px; margin-bottom: 26px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74,222,128,.14); }
.hero h1 { margin: 0 0 22px; font-size: clamp(2.7rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -.045em; }
.lede { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: var(--dim); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ico { width: 15px; height: 15px; color: var(--green); }
.hero-foot { display: flex; align-items: center; gap: 22px; margin-top: 78px; padding-top: 26px; border-top: 1px solid var(--line); position: relative; }
.mini-label { margin: 0; flex: none; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 5px 11px; border-radius: 100px; background: rgba(255,255,255,.02); }

/* ---------- Terminal ---------- */
.terminal { border: 1px solid var(--line-strong); border-radius: 14px; background: #090e18; box-shadow: 0 34px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(245,158,11,.06); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #0d1422; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f4d; }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.term-title { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-inline: auto; }
.term-badge { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--green); border: 1px solid rgba(74,222,128,.35); padding: 2px 7px; border-radius: 5px; }
.term-body { min-height: 312px; padding: 22px; font-family: var(--mono); font-size: 13px; line-height: 1.85; overflow: hidden; }
.term-line { white-space: pre-wrap; word-break: break-word; opacity: 1; }
.js .term-line:not(.show) { opacity: 0; transform: translateY(4px); }
.js .term-line.show { animation: lineIn .25s ease forwards; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.t-cmd { color: #e6e8f0; } .t-cmd::before { content: "❯ "; color: var(--accent); }
.t-out { color: #aab2c2; } .t-dim { color: #697182; } .t-ok { color: var(--green); } .t-key { color: #fde68a; }
.cursor { display: inline-block; width: 7px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-foot { border-top: 1px solid var(--line); padding: 10px 16px; font-family: var(--mono); font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- Problem / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.card.soft { background: rgba(255,255,255,.02); }
.card.accent { background: linear-gradient(150deg, rgba(245,158,11,.11), rgba(251,191,36,.04)); border-color: rgba(245,158,11,.3); }
.muted-title { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.pain, .gain { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pain li, .gain li { position: relative; padding-left: 30px; color: var(--muted); }
.gain li { color: var(--text); }
.pain li::before, .gain li::before { position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.pain li::before { content: "–"; background: rgba(255,255,255,.06); color: var(--muted); }
.gain li::before { content: "✓"; background: rgba(74,222,128,.15); color: var(--green); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .25s, transform .25s, background .25s; }
.feature:hover { border-color: rgba(245,158,11,.42); transform: translateY(-4px); background: var(--surface-2); }
.ficon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(245,158,11,.12); color: #fbbf24; margin-bottom: 20px; }
.ficon .ico { width: 21px; height: 21px; }
.feature h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.015em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Tabs ---------- */
.tabs { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); max-width: 880px; margin-inline: auto; }
.tab-list { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.tab-list button { flex: 1; padding: 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s; }
.tab-list button:hover { color: var(--text); }
.tab-list button[aria-selected="true"] { background: rgba(245,158,11,.16); color: #fffbeb; box-shadow: inset 0 0 0 1px rgba(245,158,11,.3); }
.tab-panel { padding: 0; }
.code { padding: 28px; font-family: var(--mono); font-size: 13px; line-height: 2; color: #d7dbe6; white-space: pre-wrap; word-break: break-word; }
.code .prompt { color: var(--accent); font-weight: 700; }
.code .dim { color: var(--dim); }

/* ---------- Personas ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.persona { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .25s, border-color .25s; }
.persona:hover { transform: translateY(-4px); border-color: rgba(251,191,36,.4); }
.persona.featured { background: linear-gradient(160deg, rgba(245,158,11,.08), transparent 60%), var(--surface); }
.p-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--mono); font-weight: 700; font-size: 13px; color: #fde68a; background: linear-gradient(135deg, rgba(245,158,11,.3), rgba(251,191,36,.15)); border: 1px solid rgba(245,158,11,.3); }
.badge { font-family: var(--mono); font-size: 10px; color: var(--accent-2); border: 1px solid rgba(251,191,36,.3); border-radius: 100px; padding: 3px 8px; }
.persona h3 { margin: 0 0 4px; font-size: 16px; }
.role { margin: 0 0 12px !important; color: var(--accent) !important; font-size: 12px !important; font-family: var(--mono); }
.persona p { margin: 0; color: var(--muted); font-size: 13px; }
.more-crew { text-align: center; max-width: 820px; margin: 34px auto 0; color: var(--muted); font-size: 14px; }
.more-crew strong { color: #d6dae4; font-weight: 600; }

/* ---------- Gallery ---------- */

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.02); }
tbody th { color: #dfe3ec; font-weight: 600; width: 25%; }
tbody td { color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody .hi { color: var(--text); background: rgba(245,158,11,.055); }
thead .hi { color: #fde68a; background: rgba(245,158,11,.1); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.price.popular { border-color: rgba(245,158,11,.55); background: linear-gradient(165deg, rgba(245,158,11,.13), transparent 55%), var(--surface); box-shadow: 0 20px 60px rgba(146,64,14,.18); }
.ribbon { position: absolute; top: -11px; right: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: #18120a; background: linear-gradient(115deg, #fbbf24, #fde68a); padding: 4px 11px; border-radius: 100px; font-weight: 700; }
.plan { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.amount { font-size: 40px; font-weight: 750; letter-spacing: -.04em; margin: 12px 0 4px; }
.plan-desc { color: var(--muted); font-size: 14px; margin: 0 0 24px; min-height: 44px; }
.price ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.price li .ico { width: 16px; height: 16px; color: var(--green); margin-top: 3px; }
.price .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 110px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(180deg, #0d0f16, #09090b); }
.glow-c { width: 600px; height: 400px; background: #4a2b08; opacity: .22; top: 30%; left: 50%; transform: translateX(-50%); }
.cta-inner { position: relative; max-width: 680px; }
.cta p { color: var(--muted); font-size: 17px; margin: 0 0 32px; }
#waitlistForm { display: flex; gap: 10px; max-width: 540px; margin-inline: auto; padding: 8px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255,255,255,.03); }
#waitlistForm input { flex: 1; min-width: 0; padding: 12px 14px; color: var(--text); background: transparent; border: 0; outline: 0; }
#waitlistForm input::placeholder { color: var(--dim); }
.form-note { font-size: 12px !important; color: var(--dim) !important; margin: 14px 0 0 !important; min-height: 20px; }
.form-note.ok { color: var(--green) !important; }
.form-note.err { color: #fca5a5 !important; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 24px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-copy { color: var(--muted); font-size: 14px; max-width: 300px; margin: 16px 0 0; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 18px; }
.foot-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-grid a:not(.brand) { font-size: 14px; color: var(--muted); }
.foot-grid a:not(.brand):hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav-links { gap: 16px; }
  .hero-grid { gap: 36px; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 24px 20px; background: rgba(12,11,9,.98); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 11px 0; }
  .nav.open .btn-ghost { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .terminal { max-width: 640px; }
  .feature-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 1140px); }
  .section { padding: 72px 0; }
  .hero h1 { font-size: 2.5rem; }
  .lede { font-size: 16px; }
  .btn-lg { padding: 12px 16px; font-size: 14px; }
  .hero-foot { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 50px; }
  .nav-cta { display: none; }
  .feature-grid, .price-grid, .persona-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .term-body { font-size: 11.5px; padding: 16px; min-height: 280px; }
  #waitlistForm { flex-direction: column; }
  #waitlistForm .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; }
  .sec { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Quick Install & Platform Pills ---------- */
.install-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.install-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.install-tabs [role="tab"] {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.install-tabs [role="tab"][aria-selected="true"] {
  background: rgba(245, 158, 11, 0.14);
  color: var(--text);
  border-color: var(--accent);
}
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #06070a;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.copy-row pre {
  margin: 0;
  overflow-x: auto;
  flex: 1;
  font-family: var(--mono);
  font-size: 13.5px;
  color: #e2e8f0;
}
.copy-row pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.install-sub {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.platform-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.plat-pill {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}
.plat-pill.ok strong { color: var(--green); }
.plat-pill.warn strong { color: #fbbf24; }
.plat-pill.exp strong { color: var(--accent-2); }

/* ---------- Web Interface Showcase ---------- */
.web-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.web-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: zoom-in;
}
.web-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.web-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--line);
}
.web-card figcaption {
  padding: 18px;
}
.web-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.web-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.web-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .web-grid { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}



/* Agent architecture: compact, readable, dark technical catalogue. */
.architecture-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.architecture-panel{min-width:0;border:1px solid var(--line-strong);border-radius:16px;background:linear-gradient(180deg,rgba(45,35,18,.72),rgba(12,11,9,.96));overflow:hidden}
.architecture-panel-head{padding:24px 24px 18px;border-bottom:1px solid var(--line);background:rgba(120,53,15,.12)}
.architecture-panel-head>span{font:700 10px var(--mono);letter-spacing:.16em;color:var(--accent-2)}
.architecture-panel-head h3{margin:8px 0 3px;font-size:22px;letter-spacing:-.03em}
.architecture-panel-head p{margin:0;color:var(--muted);font:11px var(--mono);letter-spacing:.06em}
.architecture-list{display:grid;grid-template-columns:1fr 1fr;gap:0}
.architecture-item{padding:14px 15px;border-bottom:1px solid var(--line);min-width:0}
.architecture-item:nth-child(odd){border-right:1px solid var(--line)}
.architecture-item h4{margin:0 0 5px;font-size:13px;color:#eaf1ff}
.architecture-item p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.architecture-item small{display:block;margin-top:8px;color:#fcd34d;font:9px var(--mono);letter-spacing:.08em;overflow-wrap:anywhere}
.architecture-note{margin:0;padding:13px 18px;border-top:1px solid rgba(245,158,11,.22);color:#fde68a;background:rgba(120,53,15,.08);font-size:11px}
.architecture-foot{margin:22px 0 0;text-align:center;color:var(--muted);font-size:13px}
.catalog-context{max-width:700px;margin:0 auto;color:var(--muted);font-size:13px}
@media(max-width:900px){.architecture-columns{grid-template-columns:1fr}}
@media(max-width:560px){.architecture-list{grid-template-columns:1fr}.architecture-item:nth-child(odd){border-right:0}}
