/* ============================================================================
   swaram.live — light editorial / neo-brutalist theme (matches agentcall.dev)
   Inter + Instrument Serif (italic) + JetBrains Mono · warm cream · lime/orange.
   ========================================================================== */

:root {
  --bg: #f3f0e8;
  --bg-2: #ebe7db;
  --bg-card: #ffffff;
  --bg-dark: #0e0f0d;
  --ink: #0c0d0a;
  --ink-2: #3b3a31;
  --muted: #5a584f;
  --line: #d8d3c4;
  --line-2: #c4bfb0;
  --line-dark: #2a2c24;
  --lime: #c8ff3a;
  --lime-soft: #e6fa8a;
  --ink-on-lime: #0a0b07;
  --orange: #ff5b25;
  --berry: #4d2bff;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-lg: 0 30px 80px -30px rgba(15,17,12,.18), 0 8px 20px -10px rgba(15,17,12,.08);
  --shadow-md: 0 14px 40px -16px rgba(15,17,12,.16), 0 4px 10px -4px rgba(15,17,12,.06);
  --stamp: 4px 4px 0 var(--ink);
  --stamp-lg: 6px 6px 0 var(--ink);

  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.55; overflow-x: hidden; letter-spacing: -.005em;
  background-image:
    radial-gradient(circle at 14% 8%, rgba(200,255,58,.22), transparent 40%),
    radial-gradient(circle at 86% 18%, rgba(255,91,37,.10), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(77,43,255,.06), transparent 50%);
  background-attachment: fixed;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main { position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--lime); color: var(--ink-on-lime); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
@media (min-width: 900px) { .container { padding: 0 40px; } }

/* ---------------------------------------------------------- typography --- */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; color: var(--ink); letter-spacing: -.035em; margin: 0; line-height: 1.02; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; font-style: italic; }
.mono { font-family: var(--mono); }
.ml-word { font-family: 'Noto Serif Malayalam', var(--serif); font-weight: 600; font-style: normal; letter-spacing: -.01em; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .16em; color: var(--ink); padding: 8px 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.6); border-radius: 999px; backdrop-filter: blur(8px); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200,255,58,.25); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.3);opacity:.6} }

.section-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--ink); }

/* ---------------------------------------------------------------- nav ---- */
.scroll-bar { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--lime), var(--orange)); z-index: 200; width: 0%; }
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: all .3s ease; }
.nav-wrap.scrolled { backdrop-filter: blur(18px) saturate(160%); background: rgba(243,240,232,.78); border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -.04em; transition: transform .3s ease; }
.nav-logo:hover { transform: translateX(2px); }
.nav-logo svg { height: 26px; width: 26px; }
.nav-logo .dotlive { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.nav-links { display: none; align-items: center; gap: 4px; padding: 6px; background: rgba(255,255,255,.5);
  border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(10px); }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: all .2s ease; }
.nav-links a:hover { background: var(--ink); color: var(--bg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-ghost { display: none; font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 10px 6px; }
@media (min-width: 980px) { .nav-links { display: inline-flex; } .nav-ghost { display: inline-flex; } }

/* mobile menu */
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (min-width: 980px) { .nav-toggle { display: none; } }
.mobile-menu { display: none; position: fixed; inset: 70px 16px auto 16px; z-index: 99; background: var(--bg-card);
  border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--stamp); padding: 12px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 14px; font-weight: 500; color: var(--ink); border-radius: var(--radius-sm); }
.mobile-menu a:hover { background: var(--bg-2); }

/* -------------------------------------------------------------- buttons -- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; font-size: 14px; font-weight: 600;
  border-radius: 999px; border: 1.5px solid transparent; transition: all .25s cubic-bezier(.4,0,.2,1); letter-spacing: -.01em; white-space: nowrap; }
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(15,17,12,.4); }
.btn-lime { background: var(--lime); color: var(--ink-on-lime); border-color: var(--ink-on-lime); }
.btn-lime:hover { transform: translateY(-1px); box-shadow: var(--stamp); background: #d6ff5e; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ----------------------------------------------------------------- hero -- */
.hero { --hero-pb: 80px; padding: 190px 0 var(--hero-pb); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 7fr 3fr; align-items: center; gap: 44px; }
.hero-inner { display: grid; gap: 26px; min-width: 0; position: relative; z-index: 2; }
/* Bottom-anchor the tree to the hero's edge (= the marquee's top line). The
   negative margin equals the hero's bottom padding, so the grass touches the
   marquee while the text keeps its breathing room; overflow:hidden clips the
   shadow at the line. Tied to --hero-pb so it stays exact at every breakpoint. */
.hero-art { display: flex; justify-content: center; align-items: flex-end; align-self: end; margin-bottom: calc(-1 * var(--hero-pb)); min-width: 0; position: relative; z-index: 2; }
.hero-art img { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 26px 44px rgba(15,17,12,.20)); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { order: 2; }
  .hero-art img { max-width: 240px; }
}
.hero-headline { font-size: clamp(40px, 6vw, 88px); font-weight: 700; letter-spacing: -.04em; line-height: .98; }
.hero-headline .serif { font-weight: 400; letter-spacing: -.025em; }
.hero-headline .accent { position: relative; display: inline-block; }
.hero-headline .accent::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: 6%; height: 36%;
  background: var(--lime); z-index: -1; border-radius: 4px; transform: skewY(-1deg); }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 56ch; line-height: 1.45; letter-spacing: -.012em; margin: 0; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.hero-meta-item { display: flex; gap: 8px; align-items: center; }
.hero-meta-item b { color: var(--ink); font-weight: 700; font-family: var(--sans); }

/* ------------------------------------------------------ terminal / code -- */
.terminal { background: var(--bg-dark); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line-dark); margin-top: 44px; max-width: 760px; }
.term-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #0a0b08; border-bottom: 1px solid var(--line-dark); }
.term-head .dots { display: flex; gap: 5px; }
.term-head .dots span { width: 9px; height: 9px; border-radius: 50%; }
.term-head .dots span:nth-child(1){background:#ff5f57} .term-head .dots span:nth-child(2){background:#febc2e} .term-head .dots span:nth-child(3){background:#28c840}
.term-head .title { font-family: var(--mono); font-size: 11px; color: #6c6a60; margin-left: 6px; }
.term-body { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: #c8ccc1; padding: 18px 18px; overflow-x: auto; }
.term-body pre { margin: 0; white-space: pre; }
.term-body .prompt { color: var(--lime); } .term-body .str { color: #f4d27c; } .term-body .ok { color: var(--lime); }
.term-body .out { color: #d4d2c8; } .term-body .speaker { color: #8cb5ff; } .term-body .kw { color: #ff9b75; }
.term-body .cmt { color: #6c6a60; font-style: italic; } .term-body .var { color: #c0c4b8; } .term-body .fn { color: #b3e36a; }

/* --------------------------------------------------------------- marquee - */
.marquee-wrap { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.4); overflow: hidden; position: relative; }
.marquee-wrap::before, .marquee-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-2); white-space: nowrap; font-weight: 600; }
.marquee-item .star { color: var(--orange); font-weight: 700; font-size: 17px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- section -- */
.section { padding: 110px 0; position: relative; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-label::before { display: none; }
.section-title { font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 16px; }
.section-title .serif { font-weight: 400; }
.section-sub { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 62ch; margin: 0; line-height: 1.55; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------- modes/why - */
.modes { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 800px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px;
  transition: all .3s ease; position: relative; overflow: hidden; }
.mode:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mode-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--lime); display: flex; align-items: center; justify-content: center;
  color: var(--ink-on-lime); margin-bottom: 22px; font-size: 24px; }
.mode:nth-child(2) .mode-icon { background: var(--ink); color: var(--lime); }
.mode:nth-child(3) .mode-icon { background: var(--orange); color: #fff; }
.mode h3 { font-size: 24px; font-weight: 700; margin-bottom: 11px; letter-spacing: -.025em; }
.mode p { color: var(--muted); margin: 0; line-height: 1.6; }
.mode .metric { font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 6px; display: block; }
.mode .metric small { font-size: 15px; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- steps -- */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 36px 32px; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 960px) { .step { border-bottom: none; border-right: 1px solid var(--line); } .step:last-child { border-right: none; } }
.step:last-child { border-bottom: none; }
.step-no { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 26px; letter-spacing: .1em; }
.step-no b { font-family: var(--sans); font-weight: 700; font-size: 22px; color: var(--ink); }
.step h3 { font-size: 24px; font-weight: 700; margin-bottom: 11px; letter-spacing: -.025em; }
.step p { color: var(--muted); margin: 0 0 20px 0; line-height: 1.6; }
.step-code { background: var(--bg-dark); border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; color: #d4d2c8; line-height: 1.7; overflow-x: auto; }
.step-code .var{color:#c0c4b8} .step-code .fn{color:#b3e36a} .step-code .str{color:#f4d27c} .step-code .kw{color:#ff9b75} .step-code .cmt{color:#6c6a60;font-style:italic}

/* ------------------------------------------------------------- features -- */
.features { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 800px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; transition: all .3s ease; }
.feature:hover { border-color: var(--ink); box-shadow: var(--stamp); transform: translateY(-3px); }
.feature .tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  padding: 5px 11px; border-radius: 6px; margin-bottom: 18px; border: 1px solid var(--ink); }
.tag-lime { background: var(--lime); color: var(--ink-on-lime); }
.tag-orange { background: var(--orange); color: #fff; }
.tag-berry { background: var(--berry); color: #fff; }
.tag-ink { background: var(--ink); color: var(--lime); }
.feature h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.025em; }
.feature > p { color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.feature li { font-size: 14px; color: var(--ink-2); padding-left: 22px; position: relative; line-height: 1.5; }
.feature li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1px solid var(--ink); }
.feature li code { font-family: var(--mono); font-size: .85em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; color: var(--ink); }

/* -------------------------------------------------------------- pricing -- */
.prices { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .prices { grid-template-columns: 1fr 1fr; } }
.price-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 32px; display: flex; flex-direction: column; }
.price-card.feat { background: var(--ink); color: var(--bg); border-color: var(--ink); position: relative; }
.price-card.feat::after { content: ''; position: absolute; inset: -2px; border-radius: var(--radius-lg); border: 2px solid var(--lime); pointer-events: none; }
.price-card .tag { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; background: var(--lime); color: var(--ink-on-lime); border-radius: 5px; margin-bottom: 18px; }
.price-card.feat .tag.soon { background: rgba(243,240,232,.15); color: var(--bg); }
.price-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
.price-card.feat h3 { color: var(--bg); }
.price-card .model { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.price-card.feat .model { color: rgba(243,240,232,.55); }
.price-amount { font-size: 44px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 4px; }
.price-amount small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-card.feat .price-amount small { color: rgba(243,240,232,.6); }
.price-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.price-card.feat .price-list li { color: rgba(243,240,232,.9); }
.price-list .ck { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--ink-on-lime);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.price-card .btn { margin-top: auto; align-self: flex-start; }

/* ------------------------------------------------------------------ faq -- */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s ease; }
.faq-item.open { border-color: var(--ink); }
.faq-q { width: 100%; border: none; background: transparent; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); text-align: left; letter-spacing: -.015em; }
.faq-q .sign { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: all .25s ease; flex-shrink: 0; font-size: 16px; }
.faq-item.open .faq-q .sign { background: var(--ink); color: var(--bg); transform: rotate(45deg); border-color: var(--ink); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 26px 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ------------------------------------------------------------------ cta -- */
.cta { padding: 100px 0; }
.cta-card { background: var(--ink); border-radius: var(--radius-lg); padding: 80px 40px; text-align: center; color: var(--bg); position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(200,255,58,.18), transparent 40%), radial-gradient(circle at 80% 90%, rgba(255,91,37,.14), transparent 50%); }
.cta-card h2 { position: relative; font-size: clamp(38px, 6vw, 80px); font-weight: 700; letter-spacing: -.04em; color: var(--bg); line-height: 1; margin-bottom: 18px; }
.cta-card .serif { font-style: italic; font-weight: 400; }
.cta-card .lime-mark { color: var(--lime); }
.cta-card p { position: relative; color: rgba(243,240,232,.7); font-size: 18px; margin-bottom: 32px; }
.cta-card .hero-ctas { position: relative; justify-content: center; }

/* --------------------------------------------------------------- footer -- */
footer { padding: 76px 0 40px; border-top: 1px solid var(--line); background: rgba(255,255,255,.3); position: relative; z-index: 2; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; margin-bottom: 48px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 38ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--ink-2); transition: color .2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* --------------------------------------------------------------- reveal -- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ============================================================ DOCS layout = */
.docs-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 130px 28px 90px; position: relative; z-index: 2; }
@media (min-width: 900px) { .docs-wrap { grid-template-columns: 230px 1fr; gap: 56px; padding-left: 40px; padding-right: 40px; } }
.docs-side { align-self: start; }
@media (min-width: 900px) { .docs-side { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; } }
.docs-side h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; font-weight: 500; }
.docs-side a { display: block; color: var(--ink-2); font-size: 14px; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); transition: all .15s; }
.docs-side a:hover { color: var(--ink); border-left-color: var(--ink); }
.docs-side a.active { color: var(--ink); border-left-color: var(--lime); font-weight: 600; }
.docs-main { min-width: 0; }
.docs-main h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.035em; scroll-margin-top: 110px; margin: 52px 0 14px; padding-top: 40px; border-top: 1px solid var(--line); }
.docs-main h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.docs-main h3 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; letter-spacing: -.02em; }
.docs-main p { color: var(--muted); margin-bottom: 14px; }
.docs-main .lead { font-size: 20px; color: var(--ink); line-height: 1.5; }
.docs-main ul, .docs-main ol { color: var(--muted); padding-left: 20px; margin-bottom: 16px; }
.docs-main li { margin: 6px 0; }
.docs-main strong { color: var(--ink); }
.docs-main em { color: var(--ink); font-style: italic; }
code.inline { font-family: var(--mono); font-size: .85em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: .1em .42em; color: var(--ink); }
.steps-ol { counter-reset: step; list-style: none; padding: 0; }
.steps-ol li { counter-increment: step; position: relative; padding: 2px 0 18px 46px; margin: 0; color: var(--muted); }
.steps-ol li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-weight: 600; display: grid; place-items: center; font-size: 14px; }

/* code blocks (docs) */
.code { position: relative; background: var(--bg-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); font-family: var(--mono);
  font-size: 13px; line-height: 1.75; overflow: hidden; margin: 18px 0; box-shadow: var(--shadow-md); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line-dark);
  font-size: 12px; color: #6c6a60; font-family: var(--mono); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; }
.code code { white-space: pre; color: #c8ccc1; }
.copy-btn { background: rgba(255,255,255,.06); color: #c8ccc1; border: 1px solid var(--line-dark); border-radius: 6px; font-family: var(--mono); font-size: 11px; padding: 4px 12px; cursor: pointer; transition: all .15s; }
.copy-btn:hover { background: var(--lime); color: var(--ink-on-lime); border-color: var(--lime); }
.tok-c { color: #6c6a60; font-style: italic; } .tok-s { color: #f4d27c; } .tok-k { color: #ff9b75; } .tok-m { color: #8cb5ff; }

table.ref { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0 22px; }
table.ref th, table.ref td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
table.ref th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--ink); }
table.ref td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.note { border-left: 3px solid var(--lime); background: rgba(200,255,58,.12); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; color: var(--ink-2); }
.note strong { color: var(--ink); }

/* ===================================================== DOCS (markdown) ==== */
/* Rendered from swaram-site/docs/*.md by scripts/docs_build.py. */
.docs-main h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 10px; }
.docs-main h1 + p { font-size: 19px; color: var(--ink-2); line-height: 1.5; }
.docs-main h2 { scroll-margin-top: 100px; }
/* inline code (block code is handled by .code/.codetabs below) */
.docs-main :not(pre) > code { font-family: var(--mono); font-size: .85em; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 5px; padding: .1em .42em; color: var(--ink); }
.docs-main pre code { background: none; border: none; padding: 0; color: #c8ccc1; white-space: pre; }
.docs-main a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.docs-main a:hover { border-bottom-color: var(--ink); }
.md-link { float: right; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; transition: all .2s; }
.md-link:hover { color: var(--ink); border-color: var(--ink); }
.docs-foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.docs-foot a { color: var(--ink); font-weight: 600; border: none; }

/* markdown tables + blockquotes (the .ref / .note look, applied to plain md) */
.docs-main table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0 22px; }
.docs-main th, .docs-main td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.docs-main th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--ink); }
.docs-main td:first-child { color: var(--ink); }
.docs-main td code, .docs-main th code { white-space: nowrap; }
.docs-main blockquote { border-left: 3px solid var(--lime); background: rgba(200,255,58,.12);
  padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; color: var(--ink-2); }
.docs-main blockquote p { margin: 0; color: var(--ink-2); }
.docs-main blockquote strong { color: var(--ink); }

/* multi-language code tabs (consecutive code blocks fold into this) */
.codetabs { background: var(--bg-dark); border: 1px solid var(--line-dark); border-radius: var(--radius);
  overflow: hidden; margin: 18px 0; box-shadow: var(--shadow-md); }
.codetabs .code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; }
.codetabs .tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.codetabs .tab { background: transparent; color: #8b897f; border: 1px solid transparent; border-radius: 7px;
  font-family: var(--mono); font-size: 12px; padding: 5px 12px; cursor: pointer; transition: all .15s; }
.codetabs .tab:hover { color: #c8ccc1; }
.codetabs .tab.active { background: rgba(255,255,255,.08); color: var(--lime); border-color: var(--line-dark); }
.codetabs .pane { display: none; margin: 0; padding: 18px; overflow-x: auto; }
.codetabs .pane.active { display: block; }

/* ------------------------------------------------------------ responsive - */
@media (max-width: 760px) {
  .hero { --hero-pb: 70px; padding: 150px 0 var(--hero-pb); }
  .section { padding: 80px 0; }
  .terminal { transform: none; }
  .docs-wrap { padding-top: 110px; }
}
