/* ============================================================
   Indora Labs — Concept #3 "PILLAR"
   Editorial legal-tech · premium, restrained, near-black + violet
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #0A0A0F;
  --bg-2:      #0D0B14;
  --panel:     #141021;
  --panel-2:   #1A1430;
  --line:      rgba(124, 58, 237, 0.16);
  --line-soft: rgba(167, 159, 196, 0.10);

  /* violet system */
  --violet:    #7C3AED;
  --violet-2:  #6D3BFF;
  --violet-deep:#5623D8;
  --violet-lt: #A855F7;
  --magenta:   #E615AF;

  /* text */
  --text:      #F4F2FB;
  --muted:     #A79FC4;
  --muted-2:   #7E769B;

  --grad: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.18), rgba(230,21,175,.10));

  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
  --ff-serif: "Fraunces", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-lt);
  margin-bottom: 18px;
}
.eyebrow.center { display: block; }

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px -12px rgba(124,58,237,.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(230,21,175,.65); }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--violet-lt); background: rgba(124,58,237,.10); transform: translateY(-2px); }

/* ====================== HEADER ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 70px;
}
.brand-logo { height: 30px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(124,58,237,.5)); }
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  margin-right: auto;
}
.nav a {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nav a:hover { color: var(--text); }
.header-cta { display: flex; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 22px 22px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.mobile-nav a { padding: 12px 4px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.mobile-nav a:last-of-type { border: none; }
.mobile-cta { margin-top: 12px; }

/* ====================== HERO ====================== */
.hero {
  position: relative;
  padding: 86px 0 40px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 78% 12%, rgba(124,58,237,.20), transparent 60%),
    radial-gradient(700px 420px at 12% 90%, rgba(230,21,175,.08), transparent 60%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 25%, #000 35%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 60% 25%, #000 35%, transparent 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 46px;
  align-items: center;
}
.hero-title {
  font-size: clamp(40px, 6.2vw, 70px);
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 14px;
}
.hero-claim {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 21px;
  color: var(--text);
  margin-bottom: 30px;
  padding-left: 16px;
  border-left: 2px solid var(--violet-lt);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-actions.center { justify-content: center; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.seal {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(124,58,237,.08);
  color: var(--text);
}
.seal-mute { color: var(--muted); background: transparent; }

/* pillar visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pillar-stage {
  position: relative;
  width: 280px;
  height: 420px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 30%, rgba(124,58,237,.22), transparent 65%),
    var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 30px 80px -40px rgba(124,58,237,.7);
  overflow: hidden;
}
.pillar { width: 64%; height: auto; filter: drop-shadow(0 8px 30px rgba(124,58,237,.45)); }
.scan-line {
  position: absolute;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--violet-lt), transparent);
  box-shadow: 0 0 18px 2px rgba(230,21,175,.5);
  animation: scan 4.5s var(--ease) infinite;
  z-index: 2;
}
@keyframes scan {
  0%,100% { top: 14%; opacity: .35; }
  50% { top: 86%; opacity: 1; }
}
.vault-tag {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-display);
  font-size: 13px;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.vault-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-lt); box-shadow: 0 0 12px var(--violet-lt); }

/* trust strip */
.trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 54px;
  padding: 18px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
  font-family: var(--ff-display);
  font-size: 14px;
  color: var(--muted);
}
.trust-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--violet); flex: none; }

/* ====================== SECTIONS ====================== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head.center, .center { text-align: center; }
.center { margin-left: auto; margin-right: auto; }
.section-lead { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* problem cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--violet); }
.card-num {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--violet-lt);
  display: block;
  margin-bottom: 16px;
}
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* how it works */
.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.flow { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.flow li {
  display: flex;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.flow li:last-child { border-bottom: none; }
.flow-step {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-family: var(--ff-display);
  font-weight: 700;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--violet-lt);
}
.flow h3 { font-size: 19px; margin-bottom: 4px; }
.flow p { color: var(--muted); font-size: 15px; }

/* code card */
.code-card {
  background: #0c0a14;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -50px rgba(124,58,237,.8);
}
.code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}
.code-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.code-head .r { background: #ff5f56; }
.code-head .y { background: #ffbd2e; }
.code-head .g { background: #27c93f; }
.code-title { margin-left: 10px; font-family: var(--ff-display); font-size: 13px; color: var(--muted); }
.code-card pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #d9d4ee;
}
.c-key  { color: var(--magenta); font-weight: 700; }
.c-str  { color: #9fe6c9; }
.c-prop { color: var(--violet-lt); }
.c-num  { color: #ffcf7a; }
.c-bool { color: #ff8ad1; }
.c-com  { color: var(--muted-2); }

/* features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.feature:hover { transform: translateY(-5px); border-color: var(--violet); background: var(--panel-2); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--violet-lt);
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14.5px; }
.feature strong { color: var(--text); }

/* arbiter */
.arbiter {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(230,21,175,.10), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.arbiter h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.arbiter p { color: var(--muted); margin-bottom: 20px; }
.tick-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tick-list li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; }
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9 16.2-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9 16.2-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.arbiter-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.flow-node {
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-family: var(--ff-display);
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
}
.flow-node.guard { border-color: var(--violet); color: var(--text); background: var(--grad-soft); }
.flow-node.model { color: var(--text); }
.flow-arrow { text-align: center; color: var(--violet-lt); font-size: 18px; }

/* audience */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 40px;
}
.audience-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad);
}
.audience-card h3 { font-size: 22px; margin-bottom: 12px; }
.audience-card p { color: var(--muted); }
.cat-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cat {
  font-family: var(--ff-display);
  font-size: 14px; font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
}

/* investors */
.investors { text-align: center; }
.investors h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 4px; }
.techstars {
  margin-top: 40px;
  display: inline-flex;
  padding: 30px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(124,58,237,.14), transparent 70%),
    var(--panel);
}
.techstars img { height: 38px; width: auto; }

/* final CTA */
.cta-final {
  position: relative;
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(230,21,175,.16), transparent 60%),
    radial-gradient(700px 360px at 50% -20%, rgba(124,58,237,.20), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.cta-inner { text-align: center; max-width: 760px; position: relative; }
.cta-inner h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 16px; }
.cta-inner p { color: var(--muted); font-size: 18px; margin-bottom: 30px; }
.cta-pillar { display: flex; gap: 6px; justify-content: center; margin-bottom: 30px; }
.cta-pillar span {
  width: 8px; height: 56px; border-radius: 4px;
  background: var(--grad);
  opacity: .85;
}
.cta-pillar span:nth-child(2) { height: 80px; opacity: 1; }

/* ====================== FOOTER ====================== */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  padding: 56px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-logo { height: 30px; margin-bottom: 16px; filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(124,58,237,.4)); }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-lt); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: 15px; padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
  font-size: 13.5px; color: var(--muted-2);
  font-family: var(--ff-display);
}

/* ====================== REVEAL ANIMATION ====================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ====================== RESPONSIVE ====================== */
@media (max-width: 980px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .mobile-nav { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .problem-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .how-layout { grid-template-columns: 1fr; }
  .arbiter { grid-template-columns: 1fr; padding: 30px; }
  .audience-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .pillar-stage { width: 230px; height: 340px; }
  .hero-actions .btn { flex: 1; }
  .btn-lg { padding: 14px 20px; }
}
