﻿/* =========================================
   MINDIESM — Global Reset & Base (LIGHT THEME)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import './variables.css';

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* === SMOOTH SCROLL LENIS === */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* === PAGE TRANSITION OVERLAY === */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

.section {
  position: relative;
  padding-block: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.section--tight   { padding-block: clamp(1rem, 3vw, 2rem); }
.section--compact { padding-block: clamp(0.75rem, 2vw, 1.5rem); }

/* === AMBIENT BLOBS (global use) === */
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blob-float 12s ease-in-out infinite;
}
.ambient-blob--violet {
  background: radial-gradient(circle, rgba(123,156,226,0.38) 0%, transparent 70%);
}
.ambient-blob--blue {
  background: radial-gradient(circle, rgba(149,176,236,0.3) 0%, transparent 70%);
}
.ambient-blob--rose {
  background: radial-gradient(circle, rgba(168,189,243,0.25) 0%, transparent 70%);
}
.ambient-blob--sky {
  background: radial-gradient(circle, rgba(195,211,247,0.25) 0%, transparent 70%);
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* === GLASS CARD === */
.glass-card {
  background: var(--glass-white);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), var(--shadow-inner);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.glass-card--hover {
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease;
  cursor: pointer;
}

.glass-card--hover:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-2xl), var(--shadow-inner);
}

/* === TYPOGRAPHY === */
.heading-display {
  font-family: var(--font-primary);
  font-size: var(--text-6xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}
.heading-xl {
  font-family: var(--font-primary);
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.heading-lg {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
.heading-md {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
.heading-sm {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}

.body-xl  { font-family: var(--font-primary); font-size: var(--text-xl);  line-height: var(--lh-relaxed); color: var(--text-tertiary); letter-spacing: var(--ls-normal); }
.body-lg  { font-family: var(--font-primary); font-size: var(--text-lg);  line-height: var(--lh-relaxed); color: var(--text-tertiary); letter-spacing: var(--ls-normal); }
.body-base{ font-family: var(--font-primary); font-size: var(--text-base); line-height: var(--lh-relaxed); color: var(--text-tertiary); letter-spacing: var(--ls-normal); }
.body-sm  { font-family: var(--font-primary); font-size: var(--text-sm);  line-height: var(--lh-relaxed); color: var(--text-muted); letter-spacing: var(--ls-normal); }

.label {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent-violet);
}

/* === GRADIENT TEXT === */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 55%, var(--accent-lighter) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-violet {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
}

.section-header .label { margin-bottom: var(--sp-2); display: block; }
.section-header .heading-md { margin-bottom: var(--sp-3); color: var(--text-primary); }
.section-header .body-lg { color: var(--text-tertiary); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.9rem;
  border-radius: var(--r-full);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-violet);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-violet-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-hover);
}

.btn--secondary {
  background: var(--glass-white);
  backdrop-filter: var(--blur-sm);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  background: var(--bg-white);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  color: var(--text-tertiary);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--glass-white-soft);
}

.btn--lg { padding: 1rem 2.4rem; font-size: var(--text-base); }
.btn--sm { padding: 0.5rem 1.2rem; font-size: var(--text-xs); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-lavender);
  border: 1px solid var(--border-accent);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-icon svg { width: 16px; height: 16px; fill: var(--accent-violet); }

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  border: 1px solid var(--border-accent);
  background: var(--accent-violet-mist);
  color: var(--accent-violet);
}
.badge--blue   { border-color: rgba(142,167,255,0.3); background: var(--accent-blue-mist);  color: #6080e0; }
.badge--rose   { border-color: rgba(240,168,200,0.3); background: var(--accent-rose-mist);  color: #c05080; }
.badge--sky    { border-color: rgba(137,220,235,0.3); background: var(--accent-sky-mist);   color: #0090aa; }
.badge--sage   { border-color: rgba(168,213,181,0.3); background: var(--accent-sage-mist);  color: #2a8a50; }

.badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-ring 2.5s ease infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.7); }
}

/* === DIVIDER === */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.reveal-fade.in-view { opacity: 1; }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent-pale); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === SELECTION === */
::selection { background: rgba(123,156,226,0.15); color: var(--text-primary); }

/* === GRID UTILS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }

/* === FLEX UTILS === */
.flex   { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* === SPACING UTILS === */
.mt-4  { margin-top: var(--sp-4);  } .mt-6  { margin-top: var(--sp-6);  }
.mt-8  { margin-top: var(--sp-8);  } .mt-12 { margin-top: var(--sp-12); }
.mb-4  { margin-bottom: var(--sp-4); } .mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.gap-4 { gap: var(--sp-4); } .gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); } .gap-12 { gap: var(--sp-12); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}

