/* ═══════════════════════════════════════════
   LIFEKit AI — Global Styles
   Brand: Purple → Magenta → Cyan (from logo)
   ═══════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg:        #08060f;
  --bg-2:      #0d0a18;
  --surface:   #131022;
  --surface-2: #1a1530;
  --border:    #26203f;
  --border-2:  #332a52;

  /* Text */
  --text:      #f8fafc;
  --muted:     #9a95b8;

  /* Brand (from logo) */
  --primary:    #a855f7;
  --primary-2:  #c026d3;
  --primary-3:  #e9d5ff;
  --accent:     #22d3ee;
  --accent-2:   #38bdf8;
  --deep:       #1e3a8a;

  /* Accents */
  --gold:       #f5c451;
  --success:    #22c55e;
  --danger:     #ef4444;

  /* Shapes */
  --radius:     16px;
  --radius-lg:  24px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #a855f7 0%, #c026d3 50%, #22d3ee 100%);
  --grad-text:  linear-gradient(120deg, #c026d3 0%, #a855f7 45%, #22d3ee 100%);

  /* Glows */
  --glow-purple:  0 0 40px rgba(168, 85, 247, 0.35);
  --glow-magenta: 0 0 40px rgba(192, 38, 211, 0.30);
  --glow-cyan:    0 0 40px rgba(34, 211, 238, 0.30);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;

  background-image:
    radial-gradient(ellipse 60% 50% at 15% 0%,  rgba(192, 38, 211, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 90%, rgba(30, 58, 138, 0.20), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── CUSTOM SCROLLBAR (so cursor shows over it) ── */

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #a855f7 transparent;
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c026d3, #a855f7 50%, #22d3ee);
  border-radius: 10px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
  transition: background .2s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a855f7, #22d3ee);
  border-color: var(--bg);
}

::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── NAVBAR ─────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  background: rgba(8, 6, 15, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow .3s, border-color .3s;
}
.nav.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--border-2);
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 24px rgba(192, 38, 211, 0.35);
  transition: transform .3s, box-shadow .3s;
  flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark:hover {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 36px rgba(192, 38, 211, 0.55);
}

.ai {
  background: linear-gradient(120deg, #c026d3, #a855f7 50%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav-links a:not(.btn-primary):hover { color: var(--text); }
.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #c026d3, #22d3ee);
  transition: width .25s ease;
}
.nav-links a:not(.btn-primary):hover::after { width: 100%; }

/* ── BUTTONS ────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #c026d3 60%, #22d3ee 130%);
  color: #fff;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(192, 38, 211, 0.35);
  transition: transform .15s, box-shadow .25s;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192, 38, 211, 0.55);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--surface-2);
}

/* ── BADGE ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--primary-3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 8px var(--primary-2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── FOOTER ─────────────────────────────── */
.footer {
  padding: 60px 40px 30px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
  background: linear-gradient(180deg, transparent, rgba(192, 38, 211, 0.04));
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer ul a:hover { color: var(--primary-3); }

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 700px) {
  .nav { padding: 14px 20px; }
  .nav-links a:not(.btn-primary) { display: none; }
  .footer { padding: 40px 20px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Fix scroll offset for sticky navbar */
#pricing, section[id], div[id] { scroll-margin-top: 100px; }
