/* ==========================================================================
   KeyIntel — Premium Corporate Intelligence Stylesheet
   Typography: Sora (display) + Inter (body)
   Palette: #080810 base · #01013f navy · #250923 plum · #3B82F6 accent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:          #080810;
  --bg-card:     #0d0d1a;
  --navy:        #01013f;
  --plum:        #250923;
  --accent:      #3B82F6;
  --accent-dim:  rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.35);
  --white:       #ffffff;
  --text:        rgba(255,255,255,0.92);
  --text-muted:  rgba(255,255,255,0.55);
  --text-dim:    rgba(255,255,255,0.35);
  --border:      rgba(255,255,255,0.07);
  --border-card: rgba(255,255,255,0.09);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-pill: 999px;
  --max-w:       1120px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.9rem; font-weight: 600; }
p  { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow { max-width: 760px; }
.section { padding: 7rem 0; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 4rem);
  max-width: 960px;
  pointer-events: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: rgba(8, 8, 16, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  pointer-events: auto;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-inner.scrolled {
  background: rgba(8, 8, 16, 0.92);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.12);
}
.logo img { height: 26px; }
nav ul { display: flex; gap: 2rem; align-items: center; }
nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}
nav a:hover, nav a.active { color: var(--white); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.22s var(--ease-out);
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #5b9dff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(59,130,246,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* ── Eyebrow label ───────────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INDEX — HERO (Canvas + gradient)
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #01013f 0%, #130827 40%, #250923 70%, #080810 100%);
}
/* Gradient mesh overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(59,130,246,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(37,9,35,0.6) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}
.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10rem 0 6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: #93c5fd;
  margin-bottom: 1.75rem;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent-text {
  background: linear-gradient(90deg, #93c5fd, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero right: stats panel */
.hero-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2.25rem;
  backdrop-filter: blur(10px);
}
.hero-panel-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.hero-stat-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}
.hero-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.hero-stat-icon svg { width: 18px; height: 18px; }
.hero-stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* ── Minimal hero (interior pages) ─────────────────────────────────────── */
.hero-minimal {
  padding: 11rem 0 5rem;
  text-align: center;
  background: linear-gradient(160deg, #01013f 0%, #130827 50%, #080810 100%);
  position: relative;
  overflow: hidden;
}
.hero-minimal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-minimal .container { position: relative; z-index: 1; }
.hero-minimal h1 { margin-bottom: 1rem; }
.hero-minimal p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Section title block ─────────────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 { margin-bottom: 1rem; }
.section-title p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.08);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.6rem; color: var(--white); }
.card p { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 0; }

/* ── CTA box ─────────────────────────────────────────────────────────────── */
.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 3rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #01013f 0%, #250923 100%);
  border: 1px solid rgba(255,255,255,0.1);
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59,130,246,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { margin-bottom: 1rem; }
.cta-box p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.25rem auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROBLEM SECTION — index
   ═══════════════════════════════════════════════════════════════════════════ */
.problem-section {
  background: linear-gradient(180deg, #080810 0%, #0a0a18 100%);
}
.problem-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.problem-inner h2 { margin-bottom: 1.5rem; }
.problem-inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 940px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
  position: relative;
}
.pricing-card:hover {
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: rgba(59,130,246,0.35);
  background: linear-gradient(160deg, rgba(1,1,63,0.6) 0%, rgba(37,9,35,0.4) 100%);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.15), 0 20px 50px rgba(0,0,0,0.4);
}
.badge-featured {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}
.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.pricing-price {
  font-family: 'Sora', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.pricing-price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
}
.pricing-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-top: 0.25rem;
}
.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.pricing-scope {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.pricing-scope h4 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.pricing-scope p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.dashboard-sidebar h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.sidebar-card h4 { font-size: 0.9rem; margin-bottom: 0.35rem; }
.sidebar-card p { font-size: 0.825rem; color: var(--text-muted); }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.metric-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
}
.metric-tile .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.metric-tile .value {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.dashboard-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.dashboard-frame h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.dashboard-frame > p { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 2rem; }
.canvas-mock {
  background: rgba(1,1,63,0.35);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-dim);
}
.canvas-mock svg { width: 48px; height: 48px; opacity: 0.4; }
.canvas-mock p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 0;
  background: rgba(0,0,0,0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
}
.footer-brand h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 300px;
}
.footer-nav h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-grid        { grid-template-columns: 1fr; gap: 3rem; }
  .hero-panel       { display: none; }
  .cards-grid       { grid-template-columns: 1fr; }
  .grid-2           { grid-template-columns: 1fr; }
  .pricing-grid     { grid-template-columns: 1fr; max-width: 520px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .metrics-strip    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr; gap: 2rem; }
  .header           { top: 0; width: 100%; }
  .nav-inner        { border-radius: 0; max-width: 100%; }
  .hero-content-wrap { padding-top: 8rem; }
  .hero-minimal     { padding: 9rem 0 4rem; }
  .cta-box          { padding: 3.5rem 2rem; }
}
@media (max-width: 600px) {
  .metrics-strip { grid-template-columns: 1fr 1fr; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .metrics-strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
