/* CIO Pipelines — site styles
   Tailwind via CDN handles the bulk; this file holds tokens, base, and a few
   bespoke components that are awkward to express in utility classes. */

:root {
  --navy: #0A1733;
  --navy-700: #122146;
  --navy-600: #1B2D5C;
  --coral: #FF6B47;
  --coral-600: #E55530;
  --offwhite: #FAFAFA;
  --slate: #2D3748;
  --slate-500: #4A5568;
  --slate-400: #718096;
  --slate-200: #E2E8F0;
  --slate-100: #EDF2F7;
  --hot: #E53E3E;
  --warm: #DD6B20;
  --engaged: #38A169;
  --quiet: #718096;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  color: var(--slate);
  background-color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  letter-spacing: -0.02em;
}

h1 {
  letter-spacing: -0.035em;
}

/* Subtle dotted-grid backdrop for the hero */
.bg-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
}

/* Soft halo behind the hero illustration */
.bg-halo {
  background: radial-gradient(ellipse at center, rgba(255, 107, 71, 0.18) 0%, rgba(10, 23, 51, 0) 70%);
}

/* Engagement state pills (used in hero mock + use-case cards) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  line-height: 1.5;
}

.pill-hot { background: rgba(229, 62, 62, 0.12); color: #C53030; }
.pill-warm { background: rgba(221, 107, 32, 0.12); color: #B7531A; }
.pill-engaged { background: rgba(56, 161, 105, 0.12); color: #2F855A; }
.pill-quiet { background: rgba(113, 128, 150, 0.14); color: #4A5568; }

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Subtle CTA gradient on the hero buttons (Linear-ish) */
.btn-primary {
  background: var(--coral);
  color: white;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.15) inset, 0 6px 18px -8px rgba(255, 107, 71, 0.6);
}
.btn-primary:hover {
  background: var(--coral-600);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Ghost button for light backgrounds */
.btn-ghost {
  color: var(--navy);
  border: 1px solid var(--slate-200);
  background: white;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--slate-100);
}

/* Glass card for the hero mock screenshot */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Card with gentle shadow and border */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.card:hover {
  border-color: #CBD5E0;
  box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

/* Small caps eyebrow label */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}
.eyebrow-light {
  color: rgba(255, 107, 71, 0.95);
}

/* Section divider */
.divider {
  border-top: 1px solid var(--slate-200);
}

/* ASCII diagram block */
.ascii {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
  color: #CBD5E0;
  background: #0A1733;
  border-radius: 12px;
  padding: 24px;
}

/* Inline code */
code.inline {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.85em;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  color: var(--navy);
}

/* Mocked widget chrome — used for the hero illustration */
.mock {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--slate);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    0 18px 36px -18px rgba(0, 0, 0, 0.3);
}

/* Custom focus ring (accessibility) */
*:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sticky-nav backdrop blur once scrolled */
.nav-blur {
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

/* Tier card ribbon */
.ribbon {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--coral);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Prose tweaks for content-heavy pages */
.prose-cio h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.prose-cio h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.prose-cio p { margin-top: 0.75rem; line-height: 1.7; }
.prose-cio ul { margin-top: 0.75rem; padding-left: 1.25rem; }
.prose-cio li { margin-top: 0.25rem; line-height: 1.65; }
.prose-cio table { margin-top: 1rem; border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose-cio th, .prose-cio td { border: 1px solid var(--slate-200); padding: 8px 12px; text-align: left; }
.prose-cio th { background: var(--slate-100); font-weight: 600; color: var(--navy); }

/* Mobile menu animation */
@media (max-width: 767px) {
  .mobile-menu {
    transition: max-height 220ms ease, opacity 180ms ease;
    overflow: hidden;
  }
  .mobile-menu[hidden] {
    display: block;
    max-height: 0;
    opacity: 0;
  }
  .mobile-menu:not([hidden]) {
    max-height: 480px;
    opacity: 1;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn-primary, .btn-secondary, .btn-ghost { transition: none; }
}
