/* ==========================================================================
   PUBHIGH — CORE DESIGN SYSTEM & ENTERPRISE TOKENS
   Aesthetic: Warm Vibrant Orange (#FC874E / #E96B35) + Deep Slate (#090D16) + Frosted Glass
   Aesthetic reference: Apple + Linear + Stripe + Enterprise AdTech
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,400;1,600;1,700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Brand Colors — Refined High-Contrast Orange Scale */
  --color-primary: #FC874E;             /* Signature Primary Orange */
  --color-primary-deep: #E96B35;        /* Deep Confident Orange (high contrast) */
  --color-primary-dark: #C94F20;        /* Dark Robust Orange */
  --color-primary-accent: #FF9A68;      /* Radiant Orange Highlight */
  --color-primary-light: #FFB594;       /* Soft Glow Highlight */
  --color-primary-soft: #FFF0E9;        /* Soft Tint Background */
  --color-primary-subtle: rgba(252, 135, 78, 0.08);
  --color-primary-border: rgba(233, 107, 53, 0.35);
  --color-primary-border-subtle: rgba(252, 135, 78, 0.18);
  --color-primary-glow: rgba(233, 107, 53, 0.28);
  --color-primary-aura: rgba(252, 135, 78, 0.14);

  /* Status Colors */
  --color-success: #059669;
  --color-success-light: #10B981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-warning: #D97706;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-danger: #DC2626;
  --color-danger-bg: rgba(239, 68, 68, 0.12);
  --color-info: #2563EB;
  --color-info-bg: rgba(37, 99, 235, 0.12);
  --color-purple: #7C3AED;
  --color-purple-bg: rgba(124, 58, 237, 0.12);

  /* Primary Gradients */
  --grad-primary: linear-gradient(135deg, #FC874E 0%, #E96B35 100%);
  --grad-primary-hover: linear-gradient(135deg, #E96B35 0%, #C94F20 100%);
  --grad-primary-subtle: linear-gradient(135deg, rgba(252, 135, 78, 0.14) 0%, rgba(233, 107, 53, 0.05) 100%);
  --grad-primary-glow: linear-gradient(135deg, #FF9A68 0%, #FC874E 50%, #E96B35 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 249, 0.92) 100%);
  --grad-dark: linear-gradient(180deg, #0F172A 0%, #090D16 100%);
  --grad-dark-card: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  --grad-text: linear-gradient(135deg, #090D16 20%, #334155 100%);
  --grad-accent-text: linear-gradient(135deg, #FC874E 0%, #E96B35 100%);

  /* Neutrals & Surfaces */
  --bg-body: #FAFAF9;
  --bg-surface: #FFFFFF;
  --bg-surface-secondary: #F8FAFC;
  --bg-surface-tertiary: #F1F5F9;
  --bg-dark: #090D16;
  --bg-dark-surface: #0F172A;
  --bg-dark-card: #1E293B;
  --bg-dark-elevated: #24324A;

  /* Typography Colors — High Contrast WCAG AAA */
  --text-main: #090D16;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-light: #FFFFFF;
  --text-light-secondary: #CBD5E1;
  --text-light-muted: #94A3B8;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', monospace;

  /* Borders & Dividers */
  --border-light: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-glass: rgba(255, 255, 255, 0.92);
  --border-glass-dark: rgba(255, 255, 255, 0.14);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 8px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.07), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.09), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 30px 60px -15px rgba(15, 23, 42, 0.14), 0 12px 24px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 40px var(--color-primary-glow);
  --shadow-glow-sm: 0 0 22px rgba(233, 107, 53, 0.22);
  --shadow-aura: 0 16px 38px -10px rgba(233, 107, 53, 0.18);

  /* Glassmorphism System */
  --glass-bg: rgba(255, 255, 255, 0.84);
  --glass-bg-hover: rgba(255, 255, 255, 0.96);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --glass-bg-dark: rgba(15, 23, 42, 0.78);
  --glass-border-dark: 1px solid rgba(255, 255, 255, 0.12);
  --glass-shadow-dark: 0 20px 45px -10px rgba(0, 0, 0, 0.4);

  /* Layout */
  --max-w-screen: 1320px;
  --header-height: 80px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & MULTI-LAYER BACKGROUND SYSTEM
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  /* Technical Blueprint Dot-Grid Pattern */
  background-image: radial-gradient(rgba(15, 23, 42, 0.075) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Multi-Layer Ambient Warm Radiant Glows */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 750px;
  background: radial-gradient(circle, rgba(252, 135, 78, 0.10) 0%, rgba(233, 107, 53, 0.04) 45%, rgba(250, 250, 249, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 5%;
  right: -10%;
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 107, 53, 0.06) 0%, rgba(252, 135, 78, 0.02) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Interactive High-Performance Ambient Background Canvas */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Interactive Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 135, 78, 0.12) 0%, rgba(255, 176, 140, 0.04) 45%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.08s ease-out;
  opacity: 0;
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h4 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1.4;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-dark {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Eyebrows / Technical Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-border);
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(233, 107, 53, 0.08);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary-deep);
  box-shadow: 0 0 8px var(--color-primary);
}

.eyebrow-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #FFB594;
}
.eyebrow-dark::before {
  background-color: #FC874E;
  box-shadow: 0 0 8px #FC874E;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-w-screen);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1440px;
}

.section {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem) auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   GLASSMORPHISM & SURFACE SYSTEM
   ========================================================================== */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-xl), var(--shadow-aura);
  background: var(--glass-bg-hover);
}

.glass-card-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-dark);
  color: #FFFFFF;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.glass-card-dark:hover {
  border-color: rgba(252, 135, 78, 0.45);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 32px rgba(233, 107, 53, 0.25);
  transform: translateY(-3px);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   BUTTON SYSTEM (High Contrast & Tactile Feedback)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
  outline: none;
  position: relative;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px -4px rgba(233, 107, 53, 0.45), 0 2px 6px rgba(233, 107, 53, 0.25);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  opacity: 1;
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(233, 107, 53, 0.55), 0 0 24px rgba(252, 135, 78, 0.35);
  color: #FFFFFF !important;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(233, 107, 53, 0.35);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1.5px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.btn-secondary:hover {
  background: rgba(252, 135, 78, 0.04);
  border-color: #FC874E;
  color: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(252, 135, 78, 0.14);
}

.btn .icon-arrow {
  transition: transform var(--transition-base);
  display: inline-block;
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  padding: 10px 18px;
  font-weight: 700;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-primary-deep);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.0625rem;
  font-weight: 800;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 700;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   FLOATING TOAST / BADGE NOTIFICATIONS
   ========================================================================== */

.floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(252, 135, 78, 0.25);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 0 15px rgba(252, 135, 78, 0.15);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  animation: floatSubtle 6s ease-in-out infinite;
}

.floating-badge .badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(252, 135, 78, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(252, 135, 78, 0.45);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Accessibility (Item 58) */
:focus-visible {
  outline: 2.5px solid #FC874E !important;
  outline-offset: 3px !important;
}

@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-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-anim-header,
  .hero-anim-sub,
  .hero-anim-actions,
  .hero-anim-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .cursor-glow {
    display: none !important;
  }
}

