/* ============================================================
   Saraswati Systems — investor landing
   Research-lab minimalism: near-black, off-white, one accent.
   ============================================================ */

:root {
  --bg:        #08090c;
  --bg-soft:   #0d0f14;
  --panel:     #10131a;
  --panel-2:   #141821;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.14);
  --text:      #eef0f4;
  --muted:     #9aa2b1;
  --dim:       #6b7280;
  --accent:    #ffb454;     /* warm saffron — a nod to Saraswati */
  --accent-2:  #ff8c42;
  --accent-soft: rgba(255,180,84,0.12);
  --radius:    16px;
  --maxw:      1120px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.bg-glow {
  position: fixed; z-index: -1;
  top: -30vh; left: 50%; transform: translateX(-50%);
  width: 90vw; height: 80vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,180,84,0.10), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

/* ---------- shared ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 28px; }
.accent { color: var(--accent); }
.mono-tag { font-family: var(--mono); font-size: 0.62em; color: var(--accent);
  border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 999px;
  vertical-align: middle; margin-left: 8px; letter-spacing: .5px; }

.kicker {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--accent-soft); margin-bottom: 22px;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 26px;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2, .invest h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08;
}
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: #1a1204; border: 1px solid var(--accent);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 0 0 rgba(255,180,84,0);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,180,84,0.22); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line-2);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 28px;
  transition: padding .2s ease;
}
.nav.scrolled {
  padding: 12px 28px;
  background: rgba(8,9,12,0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled + main { } /* no-op, keeps specificity clarity */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  height: 18px; width: auto; display: block;
  filter: drop-shadow(0 0 8px rgba(255,180,84,0.35));
}
.brand-mark-lg { height: 18px; }
.brand-text { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-dim { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 90px 28px 60px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; margin-bottom: 28px;
}
.lede { max-width: 640px; font-size: 1.18rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.proofstrip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line);
}
.proofstrip > div[role="listitem"] { display: flex; flex-direction: column; }
.proofstrip b { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--text); line-height: 1; }
.proofstrip span { font-size: 0.82rem; color: var(--dim); margin-top: 6px; }
.proofstrip .sep { width: 1px; height: 34px; background: var(--line-2); }

/* ---------- thesis ---------- */
.thesis-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.thesis-lead p { color: var(--muted); font-size: 1.08rem; margin-bottom: 18px; }
.thesis-lead b { color: var(--text); }
.thesis-lead blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.32rem; line-height: 1.4;
  color: var(--text); margin-top: 30px; padding-left: 22px;
  border-left: 2px solid var(--accent);
}
.thesis-points { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.thesis-points li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; color: var(--muted); font-size: 0.98rem;
}
.thesis-points b { display: block; color: var(--text); font-family: var(--serif);
  font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-4 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; min-width: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-idx { font-family: var(--mono); color: var(--dim); font-size: 0.85rem; }
.chip {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2);
}
.chip-live { color: #7ee0a8; border-color: rgba(126,224,168,0.35); background: rgba(126,224,168,0.08); }
.chip-wip  { color: var(--accent); border-color: rgba(255,180,84,0.4); background: var(--accent-soft); }
.chip-arch { color: #8bb4ff; border-color: rgba(139,180,255,0.35); background: rgba(139,180,255,0.08); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; margin-bottom: 12px; }
.card > p { color: var(--muted); font-size: 0.96rem; margin-bottom: 18px; }
.card-facts { list-style: none; margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.card-facts li {
  color: var(--muted); font-size: 0.86rem; padding-left: 18px; position: relative;
}
.card-facts li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.codeblock {
  background: #05060a; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; margin-bottom: 18px; overflow-x: auto;
}
.codeblock pre { font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; color: #c8cdda; }
.c-key { color: #ff8c42; } .c-fn { color: #ffb454; } .c-str { color: #7ee0a8; } .c-com { color: var(--dim); }

/* ---------- ecosystem layers ---------- */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.layer { padding: 34px 30px; border-right: 1px solid var(--line); background: var(--panel); position: relative; }
.layer:last-child { border-right: none; }
.layer::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .8;
}
.layer-num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); }
.layer h4 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 12px 0 10px; }
.layer p { color: var(--muted); font-size: 0.94rem; }

/* ---------- invest ---------- */
.invest { text-align: center; }
.invest-inner {
  max-width: 780px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-soft));
  border: 1px solid var(--line-2); border-radius: 24px; padding: 64px 44px;
  position: relative; overflow: hidden;
}
.invest-inner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255,180,84,0.10), transparent 70%);
}
.invest-inner > * { position: relative; z-index: 1; }
.invest-inner .kicker { margin-bottom: 20px; }
.invest-inner p { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 22px auto 0; }
.invest-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 48px 28px 64px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-tag { color: var(--dim); font-size: 0.86rem; margin-top: 2px; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-meta a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-meta a:hover { color: var(--accent); }
.footer-meta span { color: var(--dim); font-size: 0.82rem; }
.footer-addr { font-style: normal; color: var(--dim); font-size: 0.82rem; line-height: 1.5; }
.footer-note { color: rgba(107,114,128,0.7) !important; }

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .thesis-grid { grid-template-columns: 1fr; gap: 34px; }
  .cards { grid-template-columns: 1fr; }
  .layers { grid-template-columns: 1fr; }
  .layer { border-right: none; border-bottom: 1px solid var(--line); }
  .layer:last-child { border-bottom: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .proofstrip .sep { display: none; }
  .section { padding: 76px 22px; }
  .hero { padding: 60px 22px 40px; }
  .footer { flex-direction: column; }
  .footer-meta { text-align: left; }
  .invest-inner { padding: 44px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
