/* ============================================================
   ClearNextAI — Shared Design System
   Version: 2.0 — Human-first redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;1,300;1,400&family=Manrope:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg-deep:      #0d0d1a;
  --bg-card:      #1a1a2e;
  --bg-elevated:  #22223a;
  --accent:       #6C63FF;
  --success:      #00C896;
  --warning:      #FFB347;
  --danger:       #FF4D4D;
  --text-primary: #FFFFFF;
  --text-muted:   #8888aa;
  --text-faint:   #555577;
  --border:       rgba(255,255,255,0.07);
  --border-soft:  rgba(255,255,255,0.05);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────────────── */
.display {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  line-height: 1.15;
}
.display-italic {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
}
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
  display: block;
}
h1, h2, h3, h4 { line-height: 1.2; }
p { color: var(--text-muted); line-height: 1.75; }
a { color: inherit; text-decoration: none; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-deep);
  border-bottom: 0.5px solid var(--border);
  padding: 16px 0;
  transition: border-color 0.2s;
}
.site-nav.scrolled {
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 1px 24px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-logo .uk-badge {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-login:hover { color: var(--text-primary); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: white;
  padding: 13px 26px;
  border: none;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary.large { padding: 15px 32px; font-size: 15px; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 13px 26px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.4); }
.btn-secondary.large { padding: 15px 32px; font-size: 15px; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text-primary); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.card-elevated {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

/* Pillar left-border cards */
.pillar-capture {
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding-left: 25px;
}
.pillar-convert {
  border-left: 3px solid var(--warning);
  border-radius: 0 10px 10px 0;
  padding-left: 25px;
}
.pillar-grow {
  border-left: 3px solid var(--success);
  border-radius: 0 10px 10px 0;
  padding-left: 25px;
}

/* ── Tool Pills ───────────────────────────────────────────── */
.tool-pill {
  display: inline-block;
  font-size: 12px;
  font-family: 'Manrope', sans-serif;
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  margin: 3px 3px 3px 0;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.tool-pill:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

/* ── Wavy SVG Divider ─────────────────────────────────────── */
.wavy-divider {
  width: 100%;
  height: 24px;
  overflow: hidden;
  opacity: 0.12;
  margin: 0;
  display: block;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 32px;
}
.breadcrumb a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--text-muted); }
.breadcrumb span { color: var(--text-faint); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-faint);
}

/* ── Inline SVG Icons ─────────────────────────────────────── */
.icon-sm {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .btn-primary.large, .btn-secondary.large { width: 100%; text-align: center; }
}
