/* ==========================================================================
   AVYRRO — Main Theme & Design System Tokens
   A Product by ByteStream
   ========================================================================== */

:root {
  /* Brand Primary Palette (Derived from Avyrro logo) */
  --brand-50: #EEF2FF;
  --brand-100: #E0E7FF;
  --brand-200: #C7D2FE;
  --brand-300: #A5B4FC;
  --brand-400: #818CF8;
  --brand-500: #6366F1;
  --brand-600: #5452F6; /* Primary Accent */
  --brand-700: #4338CA;
  --brand-800: #3730A3;
  --brand-900: #312E81;
  --brand-gradient: linear-gradient(135deg, #6366F1 0%, #5452F6 45%, #4338CA 100%);
  --brand-glow: 0 0 35px rgba(84, 82, 246, 0.28);

  /* WhatsApp Contextual Accent (Used selectively) */
  --wa-green: #25D366;
  --wa-green-dark: #128C7E;
  --wa-green-light: #E7F9EE;
  --wa-bubble-in: #FFFFFF;
  --wa-bubble-out: #DCF8C6;

  /* Neutrals & Dark Surfaces */
  --slate-950: #070B14;
  --slate-900: #0B0F19;
  --slate-850: #111726;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  /* Functional Roles */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-dark: #0B0F19;
  --bg-dark-surface: #111827;
  --bg-dark-card: #151D30;
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-dark: #1E293B;
  --border-dark-hover: #334155;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #94A3B8;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.09), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 48px -8px rgba(15, 23, 42, 0.12), 0 12px 24px -6px rgba(15, 23, 42, 0.07);
  --shadow-card-hover: 0 20px 35px -5px rgba(84, 82, 246, 0.12), 0 10px 15px -3px rgba(15, 23, 42, 0.06);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout Max Width */
  --container-max: 1240px;
  --container-wide: 1360px;
  --header-height: 72px;
  --announcement-height: 40px;
}

/* ==========================================================================
   Base Structure & Layout Containers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-inverse);
}

.section-dark p {
  color: var(--text-inverse-muted);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: rgba(84, 82, 246, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  border: 1px solid rgba(84, 82, 246, 0.16);
}

.eyebrow.eyebrow-dark {
  background: rgba(99, 102, 241, 0.14);
  color: #A5B4FC;
  border-color: rgba(99, 102, 241, 0.28);
}

.eyebrow.eyebrow-green {
  background: rgba(37, 211, 102, 0.1);
  color: #10B981;
  border-color: rgba(37, 211, 102, 0.25);
}

.section-title {
  font-size: clamp(2rem, 3.2vw + 0.5rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.18;
}

.section-subtitle {
  font-size: clamp(1.0625rem, 1vw + 0.5rem, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  line-height: 1.2;
  position: relative;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(84, 82, 246, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background-color: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(84, 82, 246, 0.45);
}

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

.btn-secondary {
  background-color: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-dark {
  background-color: var(--slate-900);
  color: var(--white);
  border: 1px solid var(--slate-700);
}

.btn-dark:hover {
  background-color: var(--slate-800);
  border-color: var(--brand-500);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

.btn-icon-arrow {
  transition: transform var(--transition-normal);
}

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

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.badge-brand {
  background-color: rgba(84, 82, 246, 0.1);
  color: var(--brand-600);
  border: 1px solid rgba(84, 82, 246, 0.2);
}

.badge-green {
  background-color: rgba(37, 211, 102, 0.12);
  color: #059669;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.badge-dark {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--slate-200);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* ==========================================================================
   Background Gradients & Ambient Glows
   ========================================================================== */

.ambient-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(84, 82, 246, 0.12) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-dark {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(84, 82, 246, 0.16) 0%, rgba(37, 211, 102, 0.05) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.grid-bg-overlay {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.grid-bg-dark {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
