/* Kerno Marketing Site */
:root {
  --ink-950: #0a0e1a;
  --ink-900: #111827;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --paper:   #ffffff;
  --cream:   oklch(98.5% 0.006 90);
  --grid:    oklch(94% 0.005 250);

  --yellow:        #facc15;
  --yellow-soft:   #fef9c3;
  --yellow-deep:   #ca8a04;

  --profit:   oklch(64% 0.15 155);
  --profit-bg: oklch(95% 0.05 155);
  --loss:     oklch(60% 0.20 25);
  --loss-bg:  oklch(95% 0.04 25);
  --ai:       oklch(58% 0.16 255);
  --ai-bg:    oklch(96% 0.03 255);

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.03);
  --shadow-md: 0 4px 12px -2px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15,23,42,0.12), 0 8px 16px -8px rgba(15,23,42,0.08);
  --shadow-xl: 0 40px 80px -20px rgba(15,23,42,0.18), 0 16px 32px -16px rgba(15,23,42,0.10);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Onest', 'Inter Tight', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--yellow); color: var(--ink-950); }

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); display:inline-block; }
.eyebrow.on-dark { color: var(--ink-300); }

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 56ch;
}
.lead.on-dark { color: var(--ink-300); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 80ms ease, background 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--yellow);
  color: var(--ink-950);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), inset 0 -2px 0 rgba(0,0,0,0.06);
}
.btn-primary:hover { background: #fde047; }
.btn-dark {
  background: var(--ink-950);
  color: white;
}
.btn-dark:hover { background: var(--ink-800); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--ink-700); }
.btn-ghost-dark {
  background: transparent;
  color: white;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.05); }

/* Cards / surfaces */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card.elev { box-shadow: var(--shadow-lg); }

/* Grid lines for excel-y descriptors */
.grid-bg {
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Section */
section { padding: 96px 0; }
section.compact { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 12px; }

/* Pulse for AI dots */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(250,204,21,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(250,204,21,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); }
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  animation: pulse-ring 2s infinite;
  display: inline-block;
}
.pulse-dot.ai { background: oklch(60% 0.16 255); animation-name: pulse-ring-ai; }
@keyframes pulse-ring-ai {
  0% { box-shadow: 0 0 0 0 oklch(60% 0.16 255 / 0.5); }
  70% { box-shadow: 0 0 0 10px oklch(60% 0.16 255 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(60% 0.16 255 / 0); }
}

/* Number tickers */
@keyframes count-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.shimmer { animation: count-shimmer 1.4s ease-in-out infinite; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track { display: flex; gap: 64px; animation: marquee 40s linear infinite; width: max-content; }

/* Subtle data-flow line */
@keyframes dash {
  to { stroke-dashoffset: -200; }
}
.flow-line { stroke-dasharray: 6 8; animation: dash 6s linear infinite; }

/* Skeleton placeholder */
.placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      var(--ink-100),
      var(--ink-100) 8px,
      var(--ink-50) 8px,
      var(--ink-50) 16px
    );
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.nav a.link { color: var(--ink-700); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a.link:hover { color: var(--ink-950); }

/* Tag chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  color: var(--ink-700);
}
.chip.profit { color: oklch(40% 0.15 155); background: var(--profit-bg); border-color: oklch(85% 0.07 155); }
.chip.loss { color: oklch(40% 0.20 25); background: var(--loss-bg); border-color: oklch(85% 0.10 25); }
.chip.ai { color: oklch(35% 0.14 255); background: var(--ai-bg); border-color: oklch(85% 0.06 255); }
.chip.dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--ink-200); }

/* Faint scan line for "video" placeholders */
.scan {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.0), rgba(15,23,42,0.03) 50%, rgba(15,23,42,0.0)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(15,23,42,0.025) 3px 4px);
}

/* Spreadsheet rule */
.rule { height: 1px; background: var(--ink-200); }

/* Footer */
footer { padding: 80px 0 48px; background: var(--ink-50); border-top: 1px solid var(--ink-200); }

/* small */
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--ink-300);
  background: var(--paper);
  color: var(--ink-700);
}
