/* Penumbrai — marketing site
   Design language: cinematic eclipse. Deep obsidian ground, a warm corona
   accent, editorial serif display over a grotesque UI face. Hairlines, grain,
   generous negative space. Deliberately not the default SaaS gradient look. */

:root {
  --obsidian: #0A0B10;
  --obsidian-2: #0E1017;
  --panel: #14161F;
  --panel-2: #191C27;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  --text: #ECEAE3;      /* warm white */
  --muted: #9A9DAA;
  --faint: #676B78;

  --corona: #F2A73B;    /* solar amber */
  --corona-2: #E4772B;
  --corona-soft: rgba(242, 167, 59, 0.14);

  --good: #6FB98F;
  --watch: #E3B24C;
  --risk: #D06044;
  --up: #6C9CE0;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--corona); color: #1a1205; }

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--corona); margin-bottom: 22px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.6vw, 52px); }
.accent { color: var(--corona); font-style: italic; }

/* ---------- layout ---------- */
.section {
  max-width: var(--wrap); margin: 0 auto; padding: 120px 28px;
  border-top: 1px solid var(--hairline);
}
.section__head { max-width: 760px; margin-bottom: 64px; }
.section__sub { color: var(--muted); font-size: 19px; margin-top: 20px; max-width: 620px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 40px;
  max-width: var(--wrap); margin: 0 auto; padding: 20px 28px;
  transition: padding .3s ease;
}
.nav.scrolled {
  padding: 12px 28px;
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  max-width: 100%;
}
.nav.scrolled > * { max-width: var(--wrap); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__word { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 20px; }
.link-quiet { color: var(--muted); font-size: 15px; font-weight: 500; }
.link-quiet:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--corona); color: #1a1205; }
.btn--solid:hover { background: #ffbf57; }
.btn--ghost { border-color: var(--hairline-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--corona); color: var(--corona); }
.btn--lg { padding: 15px 28px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 96px 28px 120px; }
.hero__inner { position: relative; z-index: 2; max-width: 820px; }
.hero__title { font-size: clamp(48px, 8.5vw, 104px); font-weight: 400; letter-spacing: -0.03em; }
.hero__lede { color: var(--muted); font-size: 20px; max-width: 560px; margin: 32px 0 40px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 48px; margin-top: 72px;
  padding-top: 40px; border-top: 1px solid var(--hairline);
}
.hero__stats dt { font-size: 13px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.hero__stats dd { font-family: var(--serif); font-size: 44px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hero__stats dd span { font-size: 18px; color: var(--muted); margin-left: 4px; font-family: var(--sans); }

/* eclipse art */
.eclipse {
  position: absolute; top: -60px; right: -80px; width: 520px; height: 520px; z-index: 1;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateY(0) } to { transform: translateY(24px) } }
.eclipse__corona {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 44%, var(--corona) 50%, transparent 64%);
  filter: blur(6px); opacity: 0.55;
}
.eclipse__disc {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle at 62% 38%, #1a1c26 0%, #0A0B10 60%);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.9), 0 0 90px rgba(242,167,59,0.25);
}
.eclipse--sm { position: absolute; width: 340px; height: 340px; top: -80px; right: 50%; transform: translateX(50%); opacity: .5; }

/* ---------- definition ---------- */
.definition {
  max-width: var(--wrap); margin: 0 auto; padding: 40px 28px 100px;
  display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start;
}
.definition__term { font-family: var(--mono); color: var(--corona); font-size: 15px; }
.definition__term span { color: var(--faint); display: block; margin-top: 6px; }
.definition__body { font-family: var(--serif); font-size: 26px; font-style: italic; line-height: 1.45; color: var(--text); max-width: 640px; }

/* ---------- trust ---------- */
.trust { max-width: var(--wrap); margin: 0 auto; padding: 40px 28px 80px; text-align: center; }
.trust p { color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 28px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; opacity: 0.55; }
.trust__row span { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 32px; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.card__num { font-family: var(--mono); color: var(--corona); font-size: 13px; letter-spacing: 0.1em; }
.card h3 { font-size: 22px; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- feature blocks ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  padding: 72px 0; border-top: 1px solid var(--hairline);
}
.feature:first-of-type { border-top: none; }
.feature--rev .feature__copy { order: 2; }
.feature__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--corona); margin-bottom: 16px; }
.feature__copy h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.feature__copy p { color: var(--muted); font-size: 18px; margin-bottom: 24px; }

.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px;
  border-radius: 50%; border: 1.5px solid var(--corona);
  background: radial-gradient(circle at 50% 50%, var(--corona) 0 3px, transparent 3px);
}
.ticks--lg li { font-size: 17px; padding-left: 30px; margin-bottom: 6px; }
.ticks--lg li b { font-family: var(--serif); font-weight: 600; }

/* ---------- viz (product glimpses) ---------- */
.feature__viz { min-width: 0; }
.viz {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 20px; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
}
.viz__hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 14px; color: var(--muted); font-weight: 600; }
.pill { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--hairline-strong); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.pill--live { color: var(--good); border-color: rgba(111,185,143,0.4); }
.pill--live::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--good); margin-right:6px; vertical-align: middle; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.3 } }

.sig { display: grid; grid-template-columns: 6px 1fr auto; gap: 12px; align-items: center; padding: 13px 8px; border-bottom: 1px solid var(--hairline); }
.sig:last-child { border-bottom: none; }
.sig i { width: 6px; height: 32px; border-radius: 4px; }
.sig--risk i { background: var(--risk); } .sig--watch i { background: var(--watch); } .sig--good i { background: var(--good); }
.sig b { font-size: 14px; display: block; }
.sig small { color: var(--muted); font-size: 12.5px; }
.sig em { font-family: var(--mono); font-style: normal; font-size: 13px; font-weight: 500; }
.sig--risk em { color: var(--risk); } .sig--good em { color: var(--good); } .sig--watch em { color: var(--watch); }

.flow { display: grid; gap: 8px; }
.node { background: var(--panel); border: 1px solid var(--hairline); border-radius: 9px; padding: 12px 14px; font-size: 14px; position: relative; }
.node:not(:last-child)::after { content:"↓"; position:absolute; left:18px; bottom:-14px; color: var(--faint); font-size: 12px; z-index:1; }
.node--trigger { border-color: rgba(242,167,59,0.4); color: var(--corona); font-family: var(--mono); font-size: 13px; }
.node--accent { border-color: var(--hairline-strong); }
.node--muted { color: var(--muted); font-size: 13px; }

.fc { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0; }
.fc span { color: var(--muted); font-size: 14px; }
.fc b { font-family: var(--serif); font-size: 30px; font-variant-numeric: tabular-nums; }
.fc--net { border-top: 1px solid var(--hairline); margin-top: 16px; padding-top: 16px; }
.bar { height: 10px; border-radius: 6px; background: var(--panel); overflow: hidden; margin: 6px 0 14px; border: 1px solid var(--hairline); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), var(--corona)); }
.fc-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted); }
.d { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.d--good { background: var(--good); } .d--watch { background: var(--watch); } .d--up { background: var(--up); }

/* ---------- band ---------- */
.band { background: var(--obsidian-2); max-width: 100%; }
.band .section__head, .band .data-split { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.data-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 0 28px; }
@media (min-width: 981px){ .band { padding-left: 0; padding-right: 0; } }

.schema { display: grid; gap: 12px; }
.schema__obj { background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.schema__title { background: var(--panel-2); padding: 12px 16px; font-family: var(--mono); font-size: 14px; color: var(--corona); display:flex; justify-content: space-between; align-items:center; }
.tag { font-size: 10px; color: var(--faint); border: 1px solid var(--hairline); padding: 2px 7px; border-radius: 100px; letter-spacing: 0.06em; }
.schema__field { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--hairline); font-family: var(--mono); font-size: 13px; }
.schema__field span { color: var(--text); }
.schema__field em { color: var(--faint); font-style: normal; }
.schema__field--custom { background: var(--corona-soft); }
.schema__field--custom em { color: var(--corona); }
.schema__link { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__col { border-radius: var(--r); padding: 32px; border: 1px solid var(--hairline); }
.compare__col--them { background: transparent; }
.compare__col--us { background: linear-gradient(180deg, var(--corona-soft), transparent); border-color: rgba(242,167,59,0.3); }
.compare__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }
.compare__col--them .compare__label { color: var(--faint); }
.compare__col--us .compare__label { color: var(--corona); }
.compare ul { list-style: none; display: grid; gap: 16px; }
.compare li { padding-left: 26px; position: relative; color: var(--muted); }
.compare__col--them li::before { content:"—"; position:absolute; left:0; color: var(--faint); }
.compare__col--us li { color: var(--text); }
.compare__col--us li::before { content:"→"; position:absolute; left:0; color: var(--corona); }

/* ---------- data kinds (structured + unstructured) ---------- */
.datakinds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.dk { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r); padding: 28px; }
.dk__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--corona); }
.dk h3 { font-size: 24px; margin: 12px 0 10px; }
.dk p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.dk__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dk__chips span { font-size: 12.5px; padding: 5px 11px; border-radius: 100px; border: 1px solid var(--hairline); color: var(--text); background: var(--panel-2); }
.dk__flow { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); font-family: var(--mono); }
.dk__flow b { color: var(--corona); }

/* ---------- integration logos ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--panel); }
.logo i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 13px; color: #fff; flex: none; }
.logo span { font-size: 13px; font-weight: 500; }
.logos__note { text-align: center; color: var(--faint); font-size: 13px; margin-top: 22px; }

/* ---------- comparison matrix ---------- */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r); }
.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
.matrix th, .matrix td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--hairline); }
.matrix thead th { font-size: 13px; color: var(--muted); font-weight: 500; vertical-align: bottom; }
.matrix thead th.us { color: var(--corona); font-family: var(--serif); font-size: 18px; font-weight: 600; }
.matrix tbody th { font-weight: 500; color: var(--text); font-size: 14px; }
.matrix td { color: var(--muted); }
.matrix col.us-col, .matrix td.us, .matrix th.us { background: var(--corona-soft); }
.matrix td.us { color: var(--text); font-weight: 500; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: none; }
.matrix .yes { color: var(--good); }
.matrix .part { color: var(--watch); }
.matrix .no { color: var(--faint); }
.matrix small { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }

.hero__micro { margin-top: 18px; color: var(--faint); font-size: 13px; font-family: var(--mono); letter-spacing: 0.02em; }
.cta__actions { position: relative; z-index: 2; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- pricing ---------- */
.pricing { align-items: stretch; }
.pricing-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 980px) { .pricing-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-4 { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r); padding: 32px; position: relative; }
.plan--feature { border-color: rgba(242,167,59,0.4); background: linear-gradient(180deg, var(--corona-soft), var(--panel)); }
.plan__flag { position: absolute; top: -12px; left: 32px; background: var(--corona); color: #1a1205; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px; letter-spacing: 0.04em; }
.plan h3 { font-size: 26px; }
.plan__for { color: var(--muted); font-size: 14px; margin: 8px 0 20px; min-height: 40px; }
.plan__price { font-family: var(--serif); font-size: 42px; margin-bottom: 24px; }
.plan__price span { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.plan .ticks { flex: 1; margin-bottom: 28px; }
.plan .ticks li { font-size: 15px; }

/* ---------- cta ---------- */
.cta { position: relative; text-align: center; max-width: var(--wrap); margin: 0 auto; padding: 140px 28px 120px; border-top: 1px solid var(--hairline); overflow: hidden; }
.cta h2 { position: relative; font-size: clamp(34px, 6vw, 68px); font-weight: 400; z-index: 2; }
.cta > p { position: relative; z-index: 2; color: var(--muted); font-size: 19px; max-width: 500px; margin: 20px auto 36px; }
.cta__form { position: relative; z-index: 2; display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.cta__form input { flex: 1; background: var(--panel); border: 1px solid var(--hairline-strong); border-radius: 100px; padding: 14px 20px; color: var(--text); font-family: var(--sans); font-size: 15px; }
.cta__form input:focus { outline: none; border-color: var(--corona); }
.cta__note { position: relative; z-index: 2; color: var(--faint); font-size: 13px; margin-top: 16px; }

/* ---------- footer ---------- */
.footer { max-width: var(--wrap); margin: 0 auto; padding: 72px 28px 48px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
.footer__brand p { color: var(--muted); margin-top: 12px; max-width: 260px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 14px; font-weight: 500; }
.footer__cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.footer__cols a:hover { color: var(--corona); }
.footer__legal { grid-column: 1 / -1; color: var(--faint); font-size: 13px; padding-top: 32px; border-top: 1px solid var(--hairline); margin-top: 16px; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .feature, .data-split, .compare, .grid-3, .footer, .footer__cols { grid-template-columns: 1fr; }
  .feature { gap: 32px; }
  .feature--rev .feature__copy { order: 0; }
  .definition { grid-template-columns: 1fr; gap: 20px; }
  .eclipse { width: 320px; height: 320px; top: 20px; right: -120px; opacity: .6; }
  .section { padding: 80px 24px; }
  .hero__stats { gap: 32px; }
}
@media (max-width: 560px) {
  .hero__stats dd { font-size: 34px; }
  .cta__form { flex-direction: column; }
  .cta__form input { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } .reveal { opacity:1; transform:none; } }
