/* ============================================================
   BASE.CSS — BachatAI
   Variables · Reset · Typography · Global Utilities
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* ── Core backgrounds */
  --color-bg:        #FFFFFF;   /* pure white canvas */
  --color-surface:   #F4F7FF;   /* very light blue-white — card/section bg */
  --color-navy:      #0B1F4B;   /* deep navy — dark sections, primary text */
  --color-white:     #FFFFFF;

  /* ── Text */
  --color-ink:       #0B1F4B;   /* body text = navy */
  --color-muted:     #6B7FA3;   /* secondary text — blue-grey */
  --color-subtle:    #A8B8D8;   /* placeholder / disabled */

  /* ── Brand accents */
  --color-green:     #00C853;   /* electric green — hero accent */
  --color-green-dim: rgba(0, 200, 83, 0.10);  /* green glow bg */
  --color-green-mid: rgba(0, 200, 83, 0.25);  /* green medium glow */
  --color-blue:      #1A6BFF;   /* electric blue — links / highlights */
  --color-blue-dim:  rgba(26, 107, 255, 0.10);
  --color-coral:     #FF4444;   /* danger / contrast moments */
  --color-gold:      #FFB800;   /* warm gold — pricing / premium */

  /* ── Borders */
  --color-border:    #E8EDF8;   /* light border on white sections */
  --color-border-dark: rgba(255,255,255,0.10); /* border on navy sections */

  /* Typography */
  --font-display:    'Bricolage Grotesque', sans-serif;
  --font-body:       'DM Sans', sans-serif;

  /* Font sizes — fluid scale */
  --text-xs:   clamp(11px, 1.2vw, 13px);
  --text-sm:   clamp(13px, 1.5vw, 15px);
  --text-base: clamp(15px, 1.8vw, 18px);
  --text-lg:   clamp(18px, 2.2vw, 22px);
  --text-xl:   clamp(22px, 3vw, 32px);
  --text-2xl:  clamp(32px, 5vw, 56px);
  --text-3xl:  clamp(48px, 7vw, 88px);
  --text-4xl:  clamp(64px, 10vw, 130px);

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   32px;
  --space-xl:   64px;
  --space-2xl:  120px;

  /* Layout */
  --max-width:       1200px;
  --nav-height:      72px;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   40px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
  --duration-fast:   180ms;
  --duration-base:   320ms;
  --duration-slow:   600ms;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.15);
  --shadow-xl:  0 40px 100px rgba(0,0,0,0.20);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Lenis will handle scroll behavior */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-ink);
  overflow-x: hidden;
  cursor: none; /* custom cursor */
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: none;
}

ul, ol {
  list-style: none;
}

/* ── CUSTOM CURSOR ────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--color-navy);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--duration-fast) var(--ease-out),
              height var(--duration-fast) var(--ease-out),
              background var(--duration-fast);
  mix-blend-mode: exclusion;
}

#cursor-dot.hovering {
  width: 48px;
  height: 48px;
}

#cursor-dot.on-dark {
  background: var(--color-green);
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-ink);   /* = navy on white sections */
}

p {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ── LAYOUT UTILITIES ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: clamp(20px, 5vw, 60px);
}

.section-pad {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* ── ANIMATION BASE STATES ────────────────────────────────── */
/* GSAP will animate these — they start hidden */

.anim-fade-up {
  opacity: 0;
  transform: translateY(60px);
}

.anim-fade-in {
  opacity: 0;
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-60px);
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(60px);
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.9);
}

/* ── GLOBAL REUSABLE ELEMENTS ─────────────────────────────── */

/* Label pill above section headings */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  padding: 14px 32px;
  cursor: none;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Navy bg, white text — primary action on white sections */
.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(11,31,75,0.25);
}

/* Outline version on white sections */
.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* White btn — for use on navy dark sections */
.btn-white {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-white:hover {
  box-shadow: 0 12px 32px rgba(255,255,255,0.2);
}

/* Green accent btn — hero CTA */
.btn-green {
  background: var(--color-green);
  color: var(--color-navy);
  font-weight: 700;
}

.btn-green:hover {
  box-shadow: 0 12px 32px rgba(0,200,83,0.35);
}

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

/* ── SELECTION ────────────────────────────────────────────── */
::selection {
  background: var(--color-green);
  color: var(--color-navy);
}

/* ── RESPONSIVE BREAKPOINTS ───────────────────────────────── */
/* Mobile-first. Breakpoints:
   sm:  480px
   md:  768px
   lg:  1024px
   xl:  1280px
*/  