/* =============================================================
   LUMORA — Core Design System
   Tokens · base reset · layout · nav · footer · buttons · cards
   chips · tool tiles · FAQ · breadcrumbs · ad-slots
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Base canvas */
  --bg:           #07050f;
  --bg-2:         #0d0820;
  --bg-3:         #160a30;

  /* Surfaces (glass) */
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-2:      rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --border:       rgba(255, 255, 255, 0.10);
  --border-2:     rgba(255, 255, 255, 0.16);

  /* Text */
  --text:         #f5f3ff;
  --text-dim:     #a8a3c7;
  --text-mute:    #6b6692;

  /* Brand */
  --pink:         #ff4d9d;
  --pink-2:       #ff7ab6;
  --purple:       #a855f7;
  --purple-2:     #7c3aed;
  --blue:         #38bdf8;
  --blue-2:       #6366f1;
  --red:          #ef4444;
  --gold:         #fbbf24;

  /* Gradients */
  --aurora:       linear-gradient(135deg, #ff4d9d 0%, #a855f7 45%, #38bdf8 100%);
  --aurora-soft:  linear-gradient(135deg, rgba(255,77,157,.22) 0%, rgba(168,85,247,.22) 50%, rgba(56,189,248,.22) 100%);
  --romantic:     linear-gradient(135deg, #ff4d9d 0%, #ef4444 100%);
  --cosmic:       linear-gradient(135deg, #7c3aed 0%, #38bdf8 100%);

  /* Glow shadows */
  --glow-pink:    0 0 40px rgba(255, 77, 157, 0.35), 0 0 80px rgba(255, 77, 157, 0.15);
  --glow-purple:  0 0 40px rgba(168, 85, 247, 0.35), 0 0 80px rgba(168, 85, 247, 0.15);
  --glow-blue:    0 0 40px rgba(56, 189, 248, 0.30), 0 0 80px rgba(56, 189, 248, 0.12);
  --shadow-card:  0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 10px 30px -10px rgba(124, 58, 237, 0.15);

  /* Radii */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-2xl: 48px;
  --r-full: 999px;

  /* Type */
  --font-display: 'Sora', 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Outfit', 'Inter', system-ui, sans-serif;

  /* Motion */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset + base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--pink); color: #fff; }

/* ---------- Cosmic background atmosphere ---------- */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(168, 85, 247, 0.25), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(255, 77, 157, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(56, 189, 248, 0.18), transparent 60%),
    var(--bg);
}

.cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Floating aurora orbs */
.orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  animation: orb-float 18s ease-in-out infinite;
}
.orb-pink   { width: 480px; height: 480px; background: #ff4d9d; top: -120px; left: -100px; }
.orb-purple { width: 560px; height: 560px; background: #a855f7; top: 30%;    right: -180px; animation-delay: -6s; }
.orb-blue   { width: 420px; height: 420px; background: #38bdf8; bottom: -120px; left: 30%; animation-delay: -12s; }

/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Layout helpers ---------- */
.wrap     { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section  { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  backdrop-filter: blur(12px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 10px var(--pink);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.h1 { font-size: clamp(36px, 5.5vw, 64px); }
.h2 { font-size: clamp(28px, 4vw, 44px); }
.h3 { font-size: clamp(22px, 2.6vw, 28px); }
.h4 { font-size: 20px; }

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 60ch;
}

.muted { color: var(--text-dim); }
.dim   { color: var(--text-mute); }

.gradient-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pink-text   { color: var(--pink); }
.purple-text { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: var(--r-full);
  transition: transform .25s var(--ease-spring), box-shadow .35s var(--ease-out), background .25s;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  min-height: 48px;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--aurora);
  color: #fff;
  box-shadow: var(--glow-pink), 0 12px 30px -8px rgba(168, 85, 247, 0.5);
}
.btn-primary:hover { box-shadow: var(--glow-pink), 0 20px 40px -8px rgba(168, 85, 247, 0.7); }

.btn-ghost {
  background: var(--glass-strong);
  color: var(--text);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: var(--glass-strong); border-color: rgba(255,255,255,.3); }

.btn-pink {
  background: var(--romantic);
  color: #fff;
  box-shadow: var(--glow-pink);
}
.btn-pink:hover { box-shadow: 0 0 60px rgba(255, 77, 157, 0.55); }

.btn-sm { padding: 10px 18px; font-size: 13px; min-height: 38px; }
.btn-lg { padding: 18px 32px; font-size: 17px; min-height: 56px; }

/* ---------- Glass card ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-card);
}

.card-pad { padding: 28px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: padding .25s, backdrop-filter .25s;
}
.nav.scrolled {
  padding: 8px 0;
  backdrop-filter: blur(20px);
  background: rgba(7, 5, 15, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--aurora);
  display: grid;
  place-items: center;
  box-shadow: var(--glow-pink);
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--r-full);
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--glass-strong); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text);
  transition: transform .25s;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top:  6px; }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7,5,15,0.92);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform .4s var(--ease-out);
  visibility: hidden;
}
.nav-drawer.open { transform: translateY(0); visibility: visible; }
.nav-drawer-top { display: flex; justify-content: space-between; align-items: center; }
.nav-drawer ul { list-style: none; padding: 0; margin: 32px 0 0; }
.nav-drawer ul li a {
  display: block;
  padding: 16px 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 60px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(13, 8, 32, 0.6));
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
}

/* ---------- Badges, chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-full);
  background: var(--glass-strong);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.chip.hot { background: rgba(255, 77, 157, 0.15); border-color: rgba(255, 77, 157, 0.4); color: #ffb7d3; }
.chip.new { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.4); color: #bae6fd; }

/* ---------- Tool tile ---------- */
.tool-tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.tool-tile:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-card);
}
.tool-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(168,85,247,.18), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
.tool-tile:hover::before { opacity: 1; }

.tool-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  position: relative;
  z-index: 1;
}
.tool-icon.pink   { background: rgba(255, 77, 157, 0.15); color: var(--pink); box-shadow: inset 0 0 0 1px rgba(255,77,157,.3), 0 0 30px rgba(255,77,157,.2); }
.tool-icon.purple { background: rgba(168, 85, 247, 0.15); color: var(--purple); box-shadow: inset 0 0 0 1px rgba(168,85,247,.3), 0 0 30px rgba(168,85,247,.2); }
.tool-icon.blue   { background: rgba(56, 189, 248, 0.15); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(56,189,248,.3), 0 0 30px rgba(56,189,248,.2); }
.tool-icon.gold   { background: rgba(251, 191, 36, 0.13); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(251,191,36,.3), 0 0 30px rgba(251,191,36,.15); }
.tool-icon.red    { background: rgba(239, 68, 68, 0.15);  color: var(--red);  box-shadow: inset 0 0 0 1px rgba(239,68,68,.3),  0 0 30px rgba(239,68,68,.15); }

.tool-tile h3 { font-size: 19px; font-weight: 700; }
.tool-tile p  { font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.tool-tile .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-2);
  transition: gap .3s;
}
.tool-tile:hover .arrow { gap: 12px; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-align: left;
  color: var(--text);
  transition: color .2s;
}
.faq-q:hover { color: var(--pink-2); }
.faq-q .plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .3s var(--ease-out), background .3s;
}
.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--aurora);
  border-color: transparent;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease-out);
}
.faq-a-inner {
  padding: 0 4px 24px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 70ch;
}

/* ---------- Ad slots (AdSense-safe) ---------- */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 48px auto;
  padding: 16px;
  min-height: 90px;
  background: rgba(255,255,255,0.025);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  color: var(--text-mute);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  max-width: 728px;
}

/* ---------- Section header ---------- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head .title-block { max-width: 640px; }
.section-head .title-block .lead { margin-top: 14px; }

/* ---------- Misc ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 24px 0;
}

.kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--glass-strong);
  border: 1px solid var(--border-2);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

/* Breadcrumb */
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  align-items: center;
  flex-wrap: wrap;
}
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--text-mute); }
.crumbs [aria-current] { color: var(--pink-2); }
