/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --surface-2: #f0f4ff;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #5b63ff;
  --primary-2: #6b72ff;
  --border: #e2e8f0;
  --shadow: 0 12px 32px rgba(26,32,44,0.12);
  --hero-image-offset: 2rem;
  --glow: 0 0 20px rgba(91,99,255,0.4);
  
  /* Font sizes */
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --line-height: 1.6;
}

/* Font size variations */
body.font-small {
  --font-size-base: 0.9rem;
  --font-size-sm: 0.8rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.1rem;
  --font-size-2xl: 1.3rem;
  --font-size-3xl: 1.8rem;
}

body.font-large {
  --font-size-base: 1.1rem;
  --font-size-sm: 0.95rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.4rem;
  --font-size-2xl: 1.7rem;
  --font-size-3xl: 2.3rem;
}

* { 
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; 
}

html, body { 
  min-height: 100%; 
  margin: 0; 
}

body {
  background: linear-gradient(135deg, #edf2ff 0%, #f8fcff 50%, #e8eeff 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  transition: font-size 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(91,99,255,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1100px, 93vw);
  margin-inline: auto;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

p {
  font-size: var(--font-size-base);
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* Smooth transitions */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, 
              box-shadow 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
}

button, a {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111827;
    --surface-2: #1f2937;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
  }
  
  body { 
    background: linear-gradient(135deg, #07101d 0%, #0e1729 50%, #0a1420 100%); 
    color: var(--text); 
  }
  
  body::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(91,99,255,0.08) 0%, transparent 70%);
  }
}
