/* ================================================================
   Inference Agents — Shared Dark Theme
   Used by all pages. Page-specific rules stay in inline <style>.
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #10b981;
  --accent-light: #34d399;
  --bg: #05050f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(99,102,241,0.07);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(99,102,241,0.35);
  --glow-sm: 0 0 30px rgba(99,102,241,0.2);
  --glow-md: 0 0 60px rgba(99,102,241,0.25);
  --glow-lg: 0 0 100px rgba(99,102,241,0.15);
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 3px; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes grid-move {
  from { background-position: 0 0; }
  to { background-position: 0 60px; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Header / Nav ───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5,5,15,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}
.logo img { height: 34px; width: auto; }
.logo-text { color: var(--text); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(99,102,241,0.4);
  color: var(--primary-light);
}
.btn-outline:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--primary-light);
  color: white;
  box-shadow: 0 0 20px rgba(99,102,241,0.15);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #059669);
}
.btn-accent:hover { box-shadow: 0 8px 30px rgba(16,185,129,0.35); }

/* ── Page Hero (all pages except homepage) ──────────────── */
.page-hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-move 10s linear infinite;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 30%, transparent 30%, var(--bg) 80%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.22);
  color: var(--primary-light);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}
.badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-ring 1.8s ease-out infinite;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 14px;
}
.page-hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: rgba(255,255,255,0.015); }
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.section-header p { color: var(--text-muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* ── Generic Glass Card ─────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-sm);
  transform: translateY(-4px);
}

/* ── CTA ────────────────────────────────────────────────── */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
}
.cta h2 span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta p { color: var(--text-muted); font-size: 18px; margin-bottom: 36px; }
.cta .btn { padding: 18px 46px; font-size: 17px; box-shadow: var(--glow-md); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); margin-top: 16px; font-size: 15px; line-height: 1.75; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section { padding: 70px 0; }
  .section-header h2 { font-size: 30px; letter-spacing: -0.5px; }
  .cta { padding: 80px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
