/**
 * GO247 DESIGN SYSTEM — v2.0
 * Premium Private Fitness & EMS Studio
 * Deep Obsidian · Electric Blue LED · Apple Glass
 */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Backgrounds — clean luxury light palette */
  --bg-void: #f8fafc;
  --bg-base: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-raised: #ffffff;

  /* Glass materials — frosted elevated light surfaces */
  --glass-dark: rgba(255, 255, 255, 0.94);
  --glass-mid: rgba(255, 255, 255, 0.98);
  --glass-light: #ffffff;
  --glass-blur: blur(24px) saturate(180%);
  --glass-blur-sm: blur(14px) saturate(160%);

  /* Borders — crisp, clean definition */
  --border-dim: #e2e8f0;
  --border-soft: #cbd5e1;
  --border-blue: rgba(59, 130, 246, 0.45);
  --border-glow: rgba(59, 130, 246, 0.7);

  /* Electric Blue — brand blue palette */
  --blue-950: #0b1e4f;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --blue-glow: rgba(37, 99, 235, 0.16);

  /* Typography tones — high contrast, clean readable typography */
  --text-white: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-blue: #2563eb;

  /* Crimson accent (Biohacking / Red light) */
  --crimson-500: #e11d48;
  --crimson-400: #fb7185;
  --crimson-100: #ffe4e6;
  --crimson-50: #fff1f2;

  /* Fonts */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, monospace;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;

  /* Layout */
  --max-w: 1200px;
  --header-h: 72px;
  --section-gap: 5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: clip;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

a {
  color: inherit;
}

sup {
  font-size: 0.62em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  top: -0.45em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ─── AMBIENT LED LAYER ──────────────────────────────────── */
.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(96, 165, 250, 0.03) 55%, transparent 100%);
  top: -220px;
  left: 8%;
  animation-delay: 0s;
}

.ambient-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.02) 60%, transparent 100%);
  bottom: 5%;
  right: -100px;
  animation-delay: -9s;
}

.ambient-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.06) 0%, transparent 70%);
  top: 45%;
  left: -80px;
  animation-delay: -4s;
}

@keyframes orb-drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(45px, 35px) scale(1.1);
  }
}

.ambient-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section {
  padding-block: var(--section-gap);
  position: relative;
  z-index: 2;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-white);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.display-xl {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.display-lg {
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #0f172a;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: #0f172a;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--blue-600);
  flex-shrink: 0;
  border-radius: 1px;
}

.eyebrow-crimson {
  color: var(--crimson-500);
}

.eyebrow-crimson::before {
  background: var(--crimson-500);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
  max-width: 660px;
  margin-top: 1rem;
}

/* ─── GLASS SURFACES ─────────────────────────────────────── */
.glass {
  background: #ffffff;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.6) 0%, transparent 45%);
  pointer-events: none;
}

.glass-hover {
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.glass-hover:hover {
  border-color: var(--border-blue);
  box-shadow: 0 20px 45px -8px rgba(37, 99, 235, 0.14), 0 4px 12px rgba(15, 23, 42, 0.03);
}

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--blue-600);
}

.badge-green,
.badge-emerald {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #15803d;
}

.badge-amber,
.badge-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.badge-white {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: blink-led 2.4s ease-in-out infinite;
}

@keyframes blink-led {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--r-full);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: all var(--dur-base) var(--ease-out);
}

.btn-primary {
  background: var(--blue-600);
  color: #ffffff !important;
  border: 1px solid var(--blue-700);
  box-shadow: inset 0 1px 0.5px 0 rgba(255, 255, 255, 0.4),
    0 4px 14px -1px rgba(37, 99, 235, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-800);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-ghost {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.btn-ghost:hover {
  background: #eff6ff;
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.btn-crimson {
  background: #e11d48;
  color: #ffffff !important;
  border: 1px solid #be123c;
  box-shadow: inset 0 1px 0.5px 0 rgba(255, 255, 255, 0.4),
    0 4px 14px -1px rgba(225, 29, 72, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.05);
  transform: none !important;
  transition: all 0.2s ease;
}

.btn-crimson:hover {
  background: #be123c;
  border-color: #9f1239;
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #ffffff !important;
  transform: none !important;
}

.btn-crimson:active {
  background: #9f1239;
  border-color: #881337;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  transform: none !important;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* ─── SECTION HEADER UTILITY ─────────────────────────────── */
.section-header {
  margin-bottom: 4rem;
}

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header.centered .section-desc {
  margin-inline: auto;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.anim-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.anim-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--blue-500), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}