:root {
  --background: #ffffff;
  --foreground: #09090b;
  --region-bg: rgba(183, 11, 254, 0.08);
  --region-hover-bg: rgba(183, 11, 254, 0.15);
  --region-selected-bg: rgba(183, 11, 254, 0.25);
  --region-handle: #B70BFE;
}

.dark {
  --background: #09090b;
  --foreground: #fafafa;
  --region-bg: rgba(200, 36, 254, 0.12);
  --region-hover-bg: rgba(200, 36, 254, 0.25);
  --region-selected-bg: rgba(200, 36, 254, 0.35);
  --region-handle: #C824FE;
}

/* Fluid Typography */
html {
  font-size: clamp(16px, 1vw + 10px, 20px);
}

h1 {
  font-size: clamp(40px, 6vw + 18px, 96px);
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(32px, 4vw + 17px, 72px);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(24px, 1.5vw + 18px, 36px);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: clamp(20px, 0.8vw + 17px, 28px);
  line-height: 1.4;
}

p {
  font-size: clamp(15px, 0.35vw + 14px, 18px);
  line-height: 1.6;
}

/* Base Styles */
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  user-select: none;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Utility Classes */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}

.grain {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 99;
}

.gradient-main {
  background: linear-gradient(to right, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Lenis Smooth Scrolling */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
