/* ============================================================
   Design tokens (from former tailwind.config.mjs)
   ============================================================ */
:root {
  /* Colors */
  --color-primary: #0B1F3A;
  --color-secondary: #0077FF;
  --color-on-tertiary-container: #00C897;
  --color-surface: #FCFAF8;
  --color-surface-container-low: #F6F3F2;
  --color-surface-container: #F0EDEC;
  --color-on-surface: #1C1B1B;
  --color-on-surface-variant: #44474D;
  --color-outline-variant: #C4C6CE;
  --color-on-primary-container: #7587A7;
  --color-inverse-primary: #B5C7EA;
  --color-error: #BA1A1A;
  --color-primary-container: #0b1f3a;
  --color-surface-container-highest: #e5e2e1;
  --color-secondary-fixed: #d8e2ff;
  --color-inverse-surface: #313030;
  --color-surface-bright: #fcf9f8;
  --color-background: #FCFAF8;
  --color-on-background: #1c1b1b;
  --color-outline: #75777e;
  --color-surface-dim: #dcd9d9;

  /* Font sizes (size / line-height / weight as separate vars) */
  --fs-display-lg: 48px;
  --fs-display-lg-mobile: 32px;
  --fs-headline-md: 32px;
  --fs-headline-sm: 24px;
  --fs-body-lg: 18px;
  --fs-body-md: 16px;
  --fs-body-sm: 14px;
  --fs-label-md: 14px;
  --fs-button-text: 16px;

  /* Font families */
  --font-headline: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-gutter: 24px;
  --space-stack-sm: 8px;
  --space-stack-md: 16px;
  --space-stack-lg: 32px;
  --space-section-padding: 120px;
  --container-max-width: 1440px;

  /* Border radius */
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ============================================================
   Minimal reset (replaces Tailwind Preflight for what this site uses)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; border: 0 solid currentColor; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6, p, blockquote, dl, dd, hr, figure, pre { margin: 0; font-size: inherit; font-weight: inherit; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
img, svg, video, canvas { display: block; vertical-align: middle; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; background: none; }
button, [role="button"] { cursor: pointer; }
button, [type="button"], [type="submit"] { -webkit-appearance: button; background-color: transparent; background-image: none; }
fieldset { margin: 0; padding: 0; border: 0; }

html.scroll-smooth { scroll-behavior: smooth; }

body {
  background: var(--color-surface);
  color: var(--color-on-surface);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ============================================================
   Global classes (lifted from BaseLayout.astro <style is:global>)
   ============================================================ */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

.shadow-soft {
  box-shadow: 0px 10px 30px rgba(11, 31, 58, 0.05);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #0b1f3a;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, rgba(255,255,255,0.36), rgba(255,255,255,0.16));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 8px 24px rgba(11,31,58,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.glass-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.08) 35%, transparent 70%);
  background-size: 220% 220%;
  transform: translateX(-120%);
  transition: transform 0.8s ease;
  z-index: -1;
}
.glass-btn:hover::before,
.glass-btn:focus-visible::before {
  transform: translateX(120%);
}
.glass-btn:hover,
.glass-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 14px 30px rgba(11,31,58,0.14);
}
.glass-btn-primary {
  color: #0b1f3a;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.14));
  border-color: rgba(255,255,255,0.5);
}
.glass-btn-secondary {
  color: #0b1f3a;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

/* Hero CTA shimmer ring */
.hero-cta { position: relative; }
.hero-cta::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.2) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(45deg, rgba(0,119,255,0.14) 0 1px, transparent 1px 18px);
  background-size: 200% 200%;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.45s ease, background-position 0.8s ease;
  z-index: -1;
}
.hero-cta:hover::after,
.hero-cta:focus-visible::after {
  opacity: 1;
  transform: translateY(0) scale(1);
  background-position: 100% 100%;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Hero network canvas */
.hero-banner { position: relative; }
#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.38;
}

/* Responsive section padding (overrides Tailwind's old 120px default) */
.py-section-padding {
  padding-top: clamp(3.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 7.5rem);
}

/* Responsive nav height clearance */
@media (max-width: 639px) {
  .pt-section-nav { padding-top: 4rem; }
}

/* Hardware-accelerated animation baseline */
[data-slide],
.founder-left, .founder-right,
.value-card {
  will-change: opacity, transform;
}
[data-slide].svc-visible,
.founder-left.abt-vis, .founder-right.abt-vis,
.value-card.abt-vis {
  will-change: auto;
}

/* Prefers-reduced-motion: disable all animations */
@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;
  }
  .reveal, .reveal.active {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-slide], [data-slide].svc-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .founder-left, .founder-right,
  .founder-left.abt-vis, .founder-right.abt-vis {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .value-card, .value-card.abt-vis {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #network-canvas { display: none; }
}

/* ============================================================
   Small generic helpers used across every page
   ============================================================ */
/* Line break shown only at sm+ (replaces Tailwind's `hidden sm:block` on <br>) */
.br-sm { display: none; }
@media (min-width: 640px) {
  .br-sm { display: block; }
}

.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-gutter);
  padding-right: var(--space-gutter);
}

main { display: block; }

/* Generic single-purpose utilities reused across every page's section wrappers */
.bg-surface { background: var(--color-surface); }
.bg-primary { background: var(--color-primary); }
.bg-surface-container-low { background: var(--color-surface-container-low); }
.bg-surface-container { background: var(--color-surface-container); }
.bg-white { background: #fff; }
.text-white { color: #fff; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-on-primary-container { color: var(--color-on-primary-container); }
.eyebrow {
  display: block;
  color: var(--color-secondary);
  font-family: var(--font-headline);
  font-size: var(--fs-label-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-title {
  font-family: var(--font-headline);
  font-size: var(--fs-headline-md);
  color: var(--color-primary);
}
.section-title.text-white { color: #fff; }

/* Spacing utilities (4px scale, matching the old Tailwind spacing values used throughout) */
.mb-1  { margin-bottom: 4px; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; }
.mb-5  { margin-bottom: 20px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-14 { margin-bottom: 56px; }
.mb-16 { margin-bottom: 64px; }

/* Pulse animation (replaces Tailwind's animate-pulse) */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Eyebrow with a short leading line, reused on several inner pages */
.eyebrow-line-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-secondary);
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-label-md);
}
.eyebrow-line-row .line {
  width: 24px;
  height: 1px;
  background: var(--color-secondary);
  display: inline-block;
}

/* Centered section head: eyebrow + title + optional lead, reused on several inner pages */
.section-head--center {
  text-align: center;
  margin-bottom: 56px;
}
.section-head--center > * + * { margin-top: 16px; }

/* Simple dark hero strip, reused by contact / schedule / industries pages */
.page-hero {
  background: var(--color-primary);
  padding-top: 96px;
  padding-bottom: 48px;
}
@media (min-width: 640px) {
  .page-hero { padding-top: 160px; padding-bottom: 80px; }
}
.page-hero-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--space-gutter);
  padding-right: var(--space-gutter);
}
.page-hero-eyebrow {
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-label-md);
  font-family: var(--font-headline);
  margin-bottom: 12px;
}
.page-hero-title {
  font-family: var(--font-headline);
  color: #fff;
  font-size: 30px;
  margin-bottom: 12px;
}
@media (min-width: 640px) {
  .page-hero-title { font-size: 36px; margin-bottom: 16px; }
}
@media (min-width: 768px) {
  .page-hero-title { font-size: var(--fs-display-lg); }
}
.page-hero-desc {
  color: var(--color-on-primary-container);
  max-width: 42rem;
  font-size: var(--fs-body-md);
  line-height: 1.5;
}
@media (min-width: 640px) {
  .page-hero-desc { font-size: var(--fs-body-lg); }
}
