/* ==========================================================================
   12Testers - Main Stylesheet & Global Layout
   Theme: #E3F2FD, #90CAF9, #2196F3
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Lighting with #E3F2FD, #90CAF9, #2196F3 */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.55;
  transition: transform 1.2s ease-out;
  will-change: transform;
}

.orb-1 {
  top: -15%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.38) 0%, rgba(144, 202, 249, 0.25) 65%, transparent 80%);
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-2 {
  top: 35%;
  left: -12%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(144, 202, 249, 0.5) 0%, rgba(227, 242, 253, 0.4) 60%, transparent 80%);
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  bottom: -15%;
  right: 15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.28) 0%, rgba(227, 242, 253, 0.35) 65%, transparent 80%);
  animation: floatOrb 25s ease-in-out infinite alternate;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(33, 150, 243, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(227, 242, 253, 0.2) 0%, rgba(227, 242, 253, 0.95) 100%);
  background-size: 32px 32px, 100% 100%;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 60%, transparent 100%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.06); }
  100% { transform: translate(-25px, 30px) scale(0.96); }
}

/* App Wrapper */
.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

.container-wide {
  max-width: 1380px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.4rem;
}

p {
  color: var(--text-muted);
}

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

a:hover {
  color: var(--color-sage-darker);
}

/* Gradient Texts tailored for #E3F2FD, #90CAF9 and #2196F3 */
.text-gradient-cream {
  background: linear-gradient(135deg, #091B29 0%, #1976D2 50%, #2196F3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue, .text-gradient-gold {
  background: linear-gradient(135deg, #1565C0 0%, #2196F3 50%, #64B5F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #0D47A1 0%, #2196F3 60%, #1976D2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Utility Flex & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Micro-animations */
@keyframes pulseSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.05); }
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}
