/* === PREMIUM BASE === */
:root {
  /* Azure Spectrum Colors
     Two blues carry the page: navy = structure, royal = action.
     Azure and sky are support only (borders, icons, on-navy text) and
     must never be used for body text on a light background. */
  --skybee-navy: #0F2B5B;
  --skybee-royal: #1E5DB4;
  --skybee-azure: #3B8DD9;
  --skybee-sky: #7BB8F0;
  --skybee-ice: #E8F2FC;

  /* Neutrals - one family only (no Fluent / Bootstrap grays alongside) */
  --skybee-white: #FFFFFF;
  --skybee-warm-white: #FAFBFC;
  --skybee-slate: #475569;
  --skybee-graphite: #1E293B;
  --skybee-border: #E2E8F0;
  --skybee-surface: #F1F5F9;

  /* Amber that survives on white: text 5.9:1, stars 3.6:1 */
  --skybee-amber-text: #B45309;
  --skybee-amber-mark: #D97706;

  /* Shape: boxes and buttons 4px, status pills fully round. No other radius. */
  --r-box: 4px;
  --r-pill: 999px;

  /* Elevation - tinted to the brand navy, never pure black */
  --shadow-1: 0 1px 2px rgba(15, 43, 91, .04), 0 4px 12px -4px rgba(15, 43, 91, .06);
  --shadow-2: 0 1px 2px rgba(15, 43, 91, .05), 0 12px 32px -12px rgba(15, 43, 91, .14);
  --shadow-3: 0 2px 4px rgba(15, 43, 91, .05), 0 16px 32px -12px rgba(15, 43, 91, .12),
              0 48px 96px -32px rgba(15, 43, 91, .20);

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spatial: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 180ms;
  --dur-base: 280ms;

  /* Spacing Scale (Editorial) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 120px;
  --space-2xl: 180px;

  /* Small type scale - replaces the inline font-size soup */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;

  --nav-h: 72px;

  /* Remap Bootstrap's blue onto the brand.
     Note: .btn-primary hard-codes #0d6efd in its own --bs-btn-* vars,
     so it is overridden separately below. */
  --bs-primary: #1E5DB4;
  --bs-primary-rgb: 30, 93, 180;
  --bs-link-color: #1E5DB4;
  --bs-link-color-rgb: 30, 93, 180;
  --bs-link-hover-color: #0F2B5B;
  --bs-link-hover-color-rgb: 15, 43, 91;
  --bs-border-color: #E2E8F0;
  --bs-border-radius: 4px;
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: 4px;
}

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

html {
  scroll-behavior: auto; /* Handled by Lenis */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--skybee-graphite);
  background: var(--skybee-warm-white);
}

body {
  background-color: var(--skybee-warm-white);
  overflow-x: hidden;
  touch-action: manipulation; /* removes the 300ms tap delay */
}

/* Anchor targets clear the fixed navbar (non-Lenis fallback path) */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* Smooth scroll Lenis baseline */
html.lenis {
  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;
}

/* === TYPOGRAPHY === */
.skybee-display-1 {
  /* Capped at 64px: the hero headline lives in a half-width column, and
     above this the copy cannot resolve to two lines in either language. */
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--skybee-navy);
}

.skybee-display-2 {
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--skybee-navy);
}

/* Headlines wrap on measure, not on hand-placed <br> - EN and TR
   have different lengths and a fixed break lands wrong in one of them. */
.hero-h1 {
  display: block;
  max-width: 30ch; /* holds the headline to 2 lines in both TR and EN */
}
.section-h2 {
  max-width: 20ch;
}

.label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* royal, not azure: azure is 3.24:1 on the hero gradient and fails AA */
  color: var(--skybee-royal);
}

.body-large {
  font-size: 20px;
  line-height: 1.6;
  color: var(--skybee-slate);
  max-width: 62ch;
}

/* === FIGURES ===
   The subject of this page is money. Numbers get their own face so
   columns align and counter animations do not reflow mid-tween. */
.num,
.premium-counter,
.blade-number {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

.premium-counter {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1;
  color: var(--skybee-navy);
}

/* === FOCUS ===
   The project had zero :focus-visible rules and two outline:none overrides. */
:focus-visible {
  outline: 3px solid var(--skybee-royal);
  outline-offset: 2px;
  border-radius: 2px;
}
.cta-band :focus-visible,
footer :focus-visible {
  outline-color: var(--skybee-white);
}

/* === BOOTSTRAP OVERRIDES === */
.btn-primary {
  --bs-btn-bg: var(--skybee-royal);
  --bs-btn-border-color: var(--skybee-royal);
  --bs-btn-hover-bg: var(--skybee-navy);
  --bs-btn-hover-border-color: var(--skybee-navy);
  --bs-btn-active-bg: var(--skybee-navy);
  --bs-btn-active-border-color: var(--skybee-navy);
  --bs-btn-disabled-bg: var(--skybee-royal);
  --bs-btn-disabled-border-color: var(--skybee-royal);
  --bs-btn-focus-shadow-rgb: 30, 93, 180;
}

/* 44x44 minimum touch target across every interactive control */
.btn {
  min-height: 44px;
  border-radius: var(--r-box);
  transition: transform var(--dur-fast) var(--ease-out-quart),
              background-color var(--dur-fast) linear,
              box-shadow var(--dur-base) var(--ease-out-quart);
}
.btn:active {
  transform: translate3d(0, 0, 0) scale(.98);
  transition-duration: 90ms;
}
/* Compact buttons inside the product mockups keep the portal's own scale */
.hero-portal-mockup .btn,
.demo-portal-blade .btn,
.mini-mockup .btn {
  min-height: 0;
}

/* === SCROLL REVEAL BASE ===
   Only hidden once JS has confirmed it can reveal them again. If the GSAP
   CDN is blocked, js/animations.js drops the .js flag and everything shows. */
html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  /* No CSS transition here on purpose: GSAP writes inline values every
     frame and a transition would interpolate on top of the tween. */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
  .cc-line {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* Utility layout */
.section-padding {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
