/* ============================================
   SCALAR ACADEMY — Global Styles
   Design: Retrofuturism + Swiss Style + Minimalism
   ============================================ */

/* --- Design Tokens (from design.json) --- */
:root {
  /* Primary */
  --color-midnight-indigo: #191a40;
  --color-cyber-yellow: #ffd300;
  --color-teal-blue: #0a9e9d;
  --color-bold-pink: #dd2f82;
  --color-light-gray: #eaeaea;

  /* Supporting */
  --color-soft-apricot: #ffd9b3;
  --color-light-mint: #cfffe5;
  --color-lavender-mist: #d9cfff;
  --color-stone-taupe: #d8d5d1;
  --color-dark-emerald: #085b5a;
  --color-urban-gray: #6b6967;

  /* Secondary */
  --color-lime-green: #c5d92d;
  --color-warm-coral: #ff7a71;
  --color-skywave-blue: #00e5c1;
  --color-emerald-flash: #47b96d;
  --color-lemon-yellow: #f9f06c;

  /* Special */
  --color-cosmic-purple: #7352a2;
  --color-bright-orange: #e99625;

  /* Typography */
  --font-display: "Outfit", sans-serif;
  --font-sub: "Figtree", sans-serif;
  --font-body: "Inter", sans-serif;
  --fw-bold: 700;
  --fw-semibold: 600;
  --fw-medium: 500;
  --fw-regular: 400;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  --spacing-xxl: 96px;
  --spacing-section: 120px;

  /* Layout */
  --max-width: 1400px;
  --gutter: clamp(16px, 4vw, 32px);
  --margin: clamp(24px, 6vw, 80px);

  /* Borders & Radius */
  --radius-card: 14px;
  --radius-pill: 999px;
  --radius-btn: 8px;

  /* Shadows */
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 200ms var(--ease);
  --transition-default: 400ms var(--ease);
  --transition-slow: 700ms var(--ease);

  /* Navbar height */
  --navbar-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-midnight-indigo);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.05;
}

h2 {
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-family: var(--font-sub);
  font-weight: var(--fw-medium);
  font-size: 15px;
  line-height: 1;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-teal-blue);
  color: #fff;
  font-weight: var(--fw-semibold);
}

.btn--primary:hover {
  background: #089190;
  box-shadow: 0 6px 24px rgba(10, 158, 157, 0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

/* --- Scroll Reveal Utility --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Placeholder Sections (temporary) --- */
.section-placeholder {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-section) 0;
}

.section-placeholder--alt {
  background: var(--color-light-gray);
}

.section-placeholder__label {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal-blue);
  margin-bottom: var(--spacing-sm);
}

.section-placeholder__title {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: var(--spacing-md);
}

.section-placeholder__text {
  font-size: 18px;
  color: var(--color-urban-gray);
}
