/* ==========================================================================
   ÇIRAK (CHIRAK) - Apple Minimalist & 3D Spatial Parallax Design System
   Website: https://chirak.app
   ========================================================================== */

:root {
  /* Brand Palette */
  --color-primary: #3B52F5;
  --color-accent: #6373FA;
  --color-primary-hover: #2D44E8;
  --color-primary-light: rgba(59, 82, 245, 0.08);
  --color-primary-glow: rgba(59, 82, 245, 0.25);
  
  /* System Accents */
  --color-success: #34C759;
  --color-warning: #FF9500;
  --color-purple: #5856D6;
  --color-danger: #FF3B30;

  /* Neutrals (Light Mode Default) */
  --bg-main: #FBFBFD;
  --bg-surface: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-strong: rgba(255, 255, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-pill: rgba(0, 0, 0, 0.04);
  --bg-pill-hover: rgba(0, 0, 0, 0.08);

  /* Borders & Shadows */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-glass: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.08);
  --shadow-hand: 0 30px 60px rgba(59, 82, 245, 0.12), 0 10px 24px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-primary: #1D1D1F;
  --text-secondary: #515154;
  --text-muted: #86868B;
  --text-on-primary: #FFFFFF;

  /* Layout */
  --header-height: 64px;
  --max-width: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(59, 82, 245, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(99, 115, 250, 0.04) 0%, transparent 40%),
              var(--bg-main);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

body.menu-open {
  overflow: hidden;
}

/* Modern Text Wrapping & Section Headers */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
p, li {
  text-wrap: pretty;
}

.section-header-minimal {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}

.section-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.section-heading-h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: chirakSpin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
