/* ============================================================================
   AICOM Flow — global stylesheet
   Layered on top of Tailwind CDN. Owns:
     1. Base + typography
     2. Reusable components (buttons, cards, panels, nav)
     3. Background atmospherics (grid, mesh, noise, aurora)
     4. Dashboard mockup styling
     5. Animations + scroll reveals
   ============================================================================ */

/* -------------------------------------------------------------- 1. Base */
:root {
  --obsidian: #08080a;
  --coal:     #0e0e11;
  --graphite: #16161b;
  --steel:    #1f1f26;
  --fog:      #2a2a32;
  --mist:     #6f6f7a;
  --haze:     #a4a4af;
  --paper:    #e8e8ea;
  --ivory:    #f5f4ef;
  --lime:     #c8f95a;
  --lime-deep:#9fd62f;
  --ember:    #ff7a45;
  --mint:     #3fd9a4;
  --hairline: rgba(255,255,255,0.06);
  --hairline-strong: rgba(255,255,255,0.10);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  background: var(--obsidian);
  color: var(--paper);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}

::selection { background: var(--lime); color: var(--obsidian); }

/* Custom scrollbar — keeps the dark aesthetic */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: #1d1d22; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a32; }

/* -------------------------------------------------------------- 2. Components */

/* Sticky navbar shell — glass panel that intensifies on scroll */
.nav-shell {
  background: rgba(14,14,17,0.55);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
#site-nav.scrolled .nav-shell {
  background: rgba(8,8,10,0.85);
  border-color: var(--hairline-strong);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
.nav-link {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--haze);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--paper); background: rgba(255,255,255,0.03); }
.nav-link.is-active { color: var(--paper); background: rgba(255,255,255,0.04); }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  color: var(--lime);
  background: linear-gradient(180deg, rgba(200,249,90,0.12), rgba(200,249,90,0.02));
  border: 1px solid rgba(200,249,90,0.22);
  box-shadow: inset 0 0 16px rgba(200,249,90,0.08), 0 0 24px rgba(200,249,90,0.10);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lime);
  color: var(--obsidian);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(200,249,90,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 0 0 1px rgba(200,249,90,0.15),
    0 10px 30px -10px rgba(200,249,90,0.45);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover { background: var(--lime-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--paper);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  transition: background .2s ease, border-color .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }

/* Tag chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--haze);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(200,249,90,0.7);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 10px;
  font-family: 'Geist Mono', monospace;
  border-radius: 999px;
  background: rgba(200,249,90,0.10);
  color: var(--lime);
  border: 1px solid rgba(200,249,90,0.2);
}

/* Panels (cards) */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005)),
    var(--coal);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}
.panel:hover { border-color: var(--hairline-strong); }

.panel-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)) ;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

/* "Glass" surface used for hero card / floating overlays */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Section heading helper */
.section-h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.section-h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 500;
}
.section-h1 em,
.section-h2 em {
  font-family: 'Instrument Serif', ui-serif, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ivory);
  padding-right: 0.05em;
}

/* Footer */
.footer-h {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 14px;
}
.footer-list { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-list a { color: var(--haze); transition: color .2s; }
.footer-list a:hover { color: var(--paper); }
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  transition: color .2s, background .2s;
}
.footer-icon:hover { color: var(--paper); background: rgba(255,255,255,0.06); }
.footer-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* -------------------------------------------------------------- 3. Backgrounds */

/* Hero atmosphere: stacked gradient mesh, hairline grid, soft noise. */
.bg-aurora {
  position: absolute;
  inset: -20% -10% -20% -10%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-aurora::before,
.bg-aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-aurora::before {
  width: 60vw; height: 60vw;
  left: -10%; top: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(200,249,90,0.40), transparent 60%);
}
.bg-aurora::after {
  width: 55vw; height: 55vw;
  right: -10%; top: 10%;
  background: radial-gradient(circle at 70% 30%, rgba(63,217,164,0.22), transparent 60%);
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}
.bg-aurora .ember {
  position: absolute;
  bottom: -10%; left: 30%;
  width: 50vw; height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,122,69,0.16), transparent 60%);
  filter: blur(90px);
  opacity: 0.6;
  animation: drift 30s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4%, -3%, 0) scale(1.06); }
  100% { transform: translate3d(-3%, 4%, 0) scale(0.96); }
}

/* Hairline blueprint grid */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
.bg-grid-fade {
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 80%);
}

/* Subtle grain on top of dark backgrounds */
.bg-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* Soft vertical gradient cap at the top of dark pages */
.bg-cap {
  position: absolute;
  inset: 0 0 auto 0;
  height: 540px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(200,249,90,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 80%);
}

/* -------------------------------------------------------------- 4. Dashboard mockup */

.dashboard {
  position: relative;
  background: linear-gradient(180deg, #0c0c10, #08080a);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 60px 120px -40px rgba(0,0,0,0.7),
    0 0 0 1px rgba(200,249,90,0.04);
}
.dashboard-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255,255,255,0.015);
}
.dashboard-bar .traffic { display: flex; gap: 6px; }
.dashboard-bar .traffic span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a32; }
.dashboard-bar .url {
  flex: 1;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--mist);
  text-align: center;
}
.dashboard-bar .url b { color: var(--haze); font-weight: 400; }

.dashboard-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 480px;
}
.dashboard-side {
  border-right: 1px solid var(--hairline);
  padding: 16px 12px;
  background: rgba(255,255,255,0.012);
}
.dashboard-side .org {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
}
.dashboard-side .org .av {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  color: var(--obsidian);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
}
.dashboard-side .nav-section {
  margin-top: 18px;
}
.dashboard-side .nav-section h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mist);
  padding: 0 8px 8px;
}
.dashboard-side .nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6.5px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--haze);
}
.dashboard-side .nav-item.active {
  background: rgba(200,249,90,0.07);
  color: var(--paper);
  border: 1px solid rgba(200,249,90,0.18);
}
.dashboard-side .nav-item.active .ico { color: var(--lime); }
.dashboard-side .nav-item .ico { color: var(--mist); }
.dashboard-side .nav-item .count {
  margin-left: auto;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--mist);
  padding: 1px 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 5px;
}

.dashboard-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
}
.dashboard-topbar .search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--mist);
}
.dashboard-topbar .search .kbd {
  margin-left: auto;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--haze);
}
.dashboard-topbar .av-stack { display: flex; }
.dashboard-topbar .av-stack span {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--coal);
  margin-left: -6px;
  background: linear-gradient(135deg, #2a2a32, #1a1a1f);
  font-size: 9px; color: var(--haze);
  display: flex; align-items: center; justify-content: center;
}

/* KPI tiles */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  border: 1px solid var(--hairline);
  border-radius: 11px;
  padding: 10px 11px;
}
.kpi .label {
  font-size: 10.5px;
  color: var(--mist);
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kpi .value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.kpi .delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-family: 'Geist Mono', monospace;
  color: var(--mint);
}
.kpi .delta.down { color: var(--ember); }
.kpi .spark { margin-top: 6px; height: 26px; }

/* Charts */
.chart-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px;
}
.chart-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.chart-card header h5 {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--paper);
}
.chart-card header .leg {
  font-size: 10.5px;
  font-family: 'Geist Mono', monospace;
  color: var(--mist);
}

/* Activity feed */
.feed-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 12px;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin-top: 6px;
  box-shadow: 0 0 8px rgba(200,249,90,0.6);
}
.feed-row .meta { color: var(--mist); font-family: 'Geist Mono', monospace; font-size: 10.5px; }
.feed-row b { color: var(--paper); font-weight: 500; }

/* Workflow cards */
.flow-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flow-card .ico-box {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  color: var(--lime);
}
.flow-card .status {
  margin-left: auto;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(63,217,164,0.10);
  color: var(--mint);
  border: 1px solid rgba(63,217,164,0.25);
}
.flow-card .status.queued { background: rgba(255,255,255,0.03); color: var(--haze); border-color: var(--hairline); }

/* Document list */
.doc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
}
.doc-row:last-child { border-bottom: 0; }
.doc-row .ico {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--haze);
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
}
.doc-row .size { margin-left: auto; font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--mist); }

/* AI search pill — appears on the hero side */
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: rgba(8,8,10,0.7);
  border: 1px solid rgba(200,249,90,0.25);
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--paper);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 4px rgba(8,8,10,0.6), 0 0 24px rgba(200,249,90,0.16);
}
.ai-pill .ic {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--mint));
}

/* -------------------------------------------------------------- 5. Motion */

@keyframes ping-soft {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes scroll-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee {
  display: flex;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee:hover { animation-play-state: paused; }

/* Reveal-on-scroll: elements start dim + offset, fade in with a stagger.
   Applied by the IntersectionObserver in /js/main.js */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero headline characters (split for the wave-in animation). */
.h-word { display: inline-block; }

/* Tiny code-style number tickers */
.ticker {
  font-variant-numeric: tabular-nums;
}

/* Logo bar — desaturated, brightens on hover */
.logo-row {
  display: flex;
  align-items: center;
  gap: 56px;
  color: var(--mist);
  opacity: 0.85;
}
.logo-row > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  transition: color .2s;
  white-space: nowrap;
}
.logo-row > *:hover { color: var(--paper); }
.logo-row svg { opacity: 0.85; }

/* Diagonal "connector lines" used between infra blocks */
.connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  opacity: 0.5;
}

/* Pricing card highlight */
.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--haze);
  padding: 4px 0;
}
.price-feature svg { flex-shrink: 0; margin-top: 3px; color: var(--lime); }
.price-card { transition: transform .2s ease, border-color .2s ease; }
.price-card:hover { transform: translateY(-2px); border-color: var(--hairline-strong); }
.price-card.is-featured {
  border-color: rgba(200,249,90,0.30);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 0 0 1px rgba(200,249,90,0.10),
    0 30px 60px -30px rgba(200,249,90,0.18);
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--paper);
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(200,249,90,0.5);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 4px rgba(200,249,90,0.08);
}

/* Blog post typography — long-form reading optimized */
.prose-post {
  color: var(--haze);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: -0.005em;
}
.prose-post p {
  margin-bottom: 1.4em;
  color: var(--haze);
}
.prose-post p:first-of-type {
  font-size: 1.06em;
  color: #c8c8d2; /* slightly brighter intro */
}
.prose-post h2 {
  color: var(--paper);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin-top: 3rem;
  margin-bottom: .9rem;
  line-height: 1.2;
}
.prose-post h2::before {
  content: '§';
  color: var(--lime);
  margin-right: .55rem;
  font-family: 'Geist Mono', monospace;
  font-weight: 400;
  font-size: .82em;
  opacity: 0.8;
}
.prose-post ul {
  margin-bottom: 1.4em;
  padding-left: 0;
  list-style: none;
}
.prose-post ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .55rem;
}
.prose-post ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .8em;
  width: .5rem;
  height: 1px;
  background: var(--lime);
  opacity: 0.7;
}
.prose-post blockquote {
  margin: 2.2rem 0;
  padding: 1.3rem 0 1.3rem 1.5rem;
  border-left: 2px solid var(--lime);
  font-family: 'Instrument Serif', ui-serif, serif;
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.prose-post blockquote p { margin: 0; }
.prose-post a {
  color: var(--paper);
  border-bottom: 1px solid var(--hairline-strong);
  transition: color .2s, border-color .2s;
}
.prose-post a:hover {
  color: var(--lime);
  border-color: var(--lime);
}
.prose-post pre {
  background: var(--coal);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4em;
  font-family: 'Geist Mono', monospace;
  font-size: .88em;
  line-height: 1.6;
  color: var(--paper);
  overflow-x: auto;
}

/* Utility (Tailwind v3 has `line-clamp-*` built-in, but the CDN build
   needs the @utilities layer activated — easier to define a tiny rule). */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Legal page typography */
.legal {
  color: var(--haze);
  line-height: 1.75;
}
.legal h2 {
  color: var(--paper);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 3rem;
  margin-bottom: .75rem;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1.75rem;
  margin-bottom: .35rem;
}
.legal p { margin-bottom: 1rem; }
.legal ul { margin-bottom: 1rem; padding-left: 1.25rem; }
.legal ul li { list-style: disc; margin-bottom: .35rem; }
.legal a { color: var(--paper); border-bottom: 1px solid var(--hairline-strong); }
.legal a:hover { color: var(--lime); border-color: var(--lime); }

/* Utility: hairline divider line */
.hairline { border-top: 1px solid var(--hairline); }

/* Feature card icon — square chip with subtle lime glow */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(200,249,90,0.10), rgba(200,249,90,0.02));
  border: 1px solid rgba(200,249,90,0.18);
  box-shadow: inset 0 0 12px rgba(200,249,90,0.06);
}

/* Responsive tweaks to the dashboard mockup */
@media (max-width: 900px) {
  .dashboard-body { grid-template-columns: 1fr; }
  .dashboard-side { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
