@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap');
@import './tokens.css';

/* 
  ILLUSION PREMIER SPA - BASE STYLES
  Custom Reset & Global Hierarchy
*/

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography Defaults --- */
h1, h2, h3, h4 {
  font-weight: var(--fw-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  font-size: var(--fs-body);
  max-width: 65ch; /* Optimal readability */
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul { list-style: none; }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Global Components Layout --- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-unit);
}

.section {
  padding: var(--section-gap) 0;
}

/* --- Premium Utilities --- */

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.breathing-space {
  gap: var(--space-unit);
  display: flex;
  flex-direction: column;
}

/* Horizontal spacing utility */
.wide-only {
  display: none;
}
@media (min-width: 1024px) {
  .wide-only { display: block; }
}

/* --- Premium Fade In Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeInUp var(--transition-slow) forwards;
}
