/* ============================================================
   LUMISOUL — Brand Design System
   Import in every page: <link rel="stylesheet" href="../css/lumisoul.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Colors */
  --bg:          #0D0D12;
  --surface:     #13131A;
  --card:        #1A1A24;
  --card-hover:  #1F1F2E;
  --gold:        #C8A96E;
  --gold-muted:  rgba(200, 169, 110, 0.18);
  --gold-border: rgba(200, 169, 110, 0.15);
  --violet:      #7B6EA8;
  --violet-muted:rgba(123, 110, 168, 0.15);
  --text:        #F0EDE8;
  --text-muted:  #9B9490;
  --text-faint:  #5C5856;
  --border:      rgba(200, 169, 110, 0.12);
  --border-soft: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-gold:   0 0 40px rgba(200, 169, 110, 0.12);
  --shadow-violet: 0 0 40px rgba(123, 110, 168, 0.12);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--gold); }
.text-violet { color: var(--violet); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: 720px; }
.container--wide   { max-width: 1200px; }

section { padding: var(--space-3xl) 0; }

/* ── Gold Divider ───────────────────────────────────────────── */
.gold-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-lg) auto;
}
.gold-line--left { margin-left: 0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #C8A96E 0%, #E8C98E 50%, #C8A96E 100%);
  background-size: 200% 200%;
  color: #0D0D12;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(200, 169, 110, 0.25), 0 4px 16px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 0 50px rgba(200, 169, 110, 0.4), 0 6px 24px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--gold-border);
  color: var(--gold);
  background: var(--gold-muted);
}
.btn-outline:hover {
  background: rgba(200, 169, 110, 0.25);
  border-color: rgba(200, 169, 110, 0.4);
}

.btn-ghost {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.card:hover { border-color: rgba(200, 169, 110, 0.25); }

/* ── Badge / Pill ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--gold-border);
  background: var(--gold-muted);
  color: var(--gold);
}

.badge-violet {
  border-color: rgba(123, 110, 168, 0.2);
  background: var(--violet-muted);
  color: #A99DD4;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  padding: 0.875rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus { border-color: rgba(200, 169, 110, 0.4); }

/* ── Star Rating ─────────────────────────────────────────────── */
.stars { color: var(--gold); letter-spacing: 0.05em; font-size: 0.9rem; }

/* ── Sticky Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(13, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span { color: var(--gold); }

/* ── Section helpers ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header .label { margin-bottom: var(--space-md); display: block; }

/* ── Trust row ──────────────────────────────────────────────── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.trust-row span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Chat UI ────────────────────────────────────────────────── */
.chat-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--card);
}
.chat-messages {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
}
.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.chat-bubble--ai {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-bubble--user {
  background: linear-gradient(135deg, rgba(200,169,110,0.2), rgba(200,169,110,0.1));
  border: 1px solid rgba(200,169,110,0.2);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  text-align: right;
}
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-soft);
  background: var(--card);
}
.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.chat-input:focus { border-color: rgba(200,169,110,0.35); }

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-bar {
  height: 3px;
  background: var(--border-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ── Glow ───────────────────────────────────────────────────── */
.glow-gold {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(200,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.glow-violet {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(123,110,168,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Sacred geometry hint (CSS only) ─────────────────────────── */
.sacred-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  pointer-events: none;
}

/* ── Responsive Grid helpers ────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }

/* ── Utility ────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  color: var(--text-faint);
  font-size: 0.8rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: var(--space-2xl) 0; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}
