/* ==========================================================================
   RJC CONNECT — DESIGN SYSTEM & HIGH-TECH TELECOM LANDING
   Crafted with out-of-distribution precision, anti-slop principles & WCAG 2.1 AA
   Domain: https://www.rjconnects.com/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (DAYLIGHT & DARK THEMES)
   -------------------------------------------------------------------------- */
:root {
  /* Daylight Architectural Palette (Anti-Glare Blue-Grey Canvas + Crisp Surfaces) */
  --day-canvas: #E5EAF0;
  --day-surface: #F2F5F9;
  --day-elevated: #FAFCFF;
  --day-muted: #DCE4EE;
  --day-glass: rgba(242, 245, 249, 0.92);
  --day-card-glass: rgba(247, 250, 253, 0.90);
  --day-border: #C4D0DD;
  --day-border-strong: #A6B8CC;
  --day-ink: #122236;
  --day-secondary: #3B4E66;
  --day-muted-ink: #526680;

  /* Active Surface Tokens (Daylight Default) */
  --bg-primary: var(--day-canvas);
  --bg-surface: var(--day-surface);
  --bg-surface-muted: var(--day-muted);
  --bg-glass: var(--day-glass);
  --bg-elevated: var(--day-elevated);

  /* Brand & High-Contrast Daylight Accents (WCAG 2.1 AA/AAA Compliant on Light Surfaces) */
  --brand-cyan: #0095E8;
  --brand-cyan-deep: #075985;
  --brand-cyan-light: #38BDF8;
  --brand-blue: #0A84FF;
  --brand-purple: #6366F1;
  --brand-purple-deep: #5B35B5;
  --brand-purple-light: #A5B4FC;
  --brand-logo-height: 3rem;
  --brand-logo-padding: 0.25rem 0.625rem;
  --brand-logo-ratio: 480 / 273;

  --color-link: #075985;
  --ink-purple: #5B35B5;
  --ink-success: #066347;
  --ink-error: #B42332;

  /* Gradients */
  --brand-gradient: linear-gradient(135deg, #0077C2 0%, #5B35B5 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(7, 89, 133, 0.08) 0%, rgba(91, 53, 181, 0.08) 100%);
  --action-gradient: linear-gradient(135deg, #006EAF 0%, #5B35B5 100%);

  /* Text & Contrast (Contrast ratio >= 4.5:1 for body, >12:1 for headings) */
  --text-primary: var(--day-ink);
  --text-secondary: var(--day-secondary);
  --text-muted: var(--day-muted-ink);
  --text-on-accent: #FFFFFF;

  /* Borders, Specular Highlights & Dividers */
  --border-subtle: var(--day-border);
  --border-medium: var(--day-border-strong);
  --border-glow: rgba(7, 89, 133, 0.45);
  --panel-edge: rgba(117, 144, 172, 0.36);
  --panel-shine: rgba(255, 255, 255, 0.86);

  /* Layered Daylight Shadows (Tactile Architectural Depth without Muddy Grey) */
  --shadow-xs: 0 1px 2px rgba(18, 34, 54, 0.05);
  --shadow-sm: 0 2px 6px -1px rgba(18, 34, 54, 0.07), 0 1px 3px -1px rgba(18, 34, 54, 0.05);
  --shadow-md: 0 10px 24px -6px rgba(18, 34, 54, 0.10), 0 3px 8px -2px rgba(18, 34, 54, 0.05);
  --shadow-lg: 0 18px 36px -8px rgba(18, 34, 54, 0.14), 0 6px 14px -4px rgba(18, 34, 54, 0.06);
  --shadow-hover: 0 20px 38px -10px rgba(0, 110, 175, 0.22), 0 6px 14px -3px rgba(18, 34, 54, 0.07);
  --shadow-purple-hover: 0 20px 38px -10px rgba(91, 53, 181, 0.22), 0 6px 14px -3px rgba(18, 34, 54, 0.07);
  --shadow-glass: inset 0 1px 0 var(--panel-shine), 0 12px 30px -14px rgba(18, 34, 54, 0.16);

  /* Status Colors */
  --status-success: #087554;
  --status-error: #B42332;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Inter', monospace;

  /* Geometry & Scale */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-card: 18px;
  --radius-container: 24px;
  --radius-pill: 9999px;
  --touch-target: 44px;

  /* Motion & Spring Timing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-fast: 180ms;
  --motion-normal: 280ms;
  --motion-slow: 450ms;
  --theme-transition-duration: 600ms;
  --spot-x: 50%;
  --spot-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  color-scheme: light;
}

/* Dark Mode Palette (Midnight Tech & Deep Elevation) */
html.dark {
  color-scheme: dark;
  --bg-primary: #060913;
  --bg-surface: #0C1324;
  --bg-surface-muted: #131D35;
  --bg-glass: rgba(12, 19, 36, 0.88);
  --bg-elevated: #172340;

  --brand-cyan-deep: #38BDF8;
  --brand-purple: #818CF8;
  --color-link: #7DD3FC;
  --ink-purple: #C4B5FD;
  --ink-success: #34D399;
  --ink-error: #F87171;

  --brand-gradient: linear-gradient(135deg, #0095E8 0%, #6366F1 100%);
  --action-gradient: linear-gradient(135deg, #0077C2 0%, #5850EC 100%);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #7C8EA6;

  --border-subtle: rgba(148, 177, 214, 0.14);
  --border-medium: rgba(148, 177, 214, 0.24);
  --border-glow: rgba(56, 189, 248, 0.45);
  --panel-edge: rgba(148, 177, 214, 0.22);
  --panel-shine: rgba(192, 214, 255, 0.10);

  --status-success: #10B981;
  --status-error: #EF4444;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 18px 40px -4px rgba(0, 0, 0, 0.68);
  --shadow-hover: 0 22px 44px -8px rgba(0, 149, 232, 0.30), 0 6px 14px rgba(0, 0, 0, 0.45);
  --shadow-purple-hover: 0 22px 44px -8px rgba(99, 102, 241, 0.30), 0 6px 14px rgba(0, 0, 0, 0.45);
  --shadow-glass: inset 0 1px 0 var(--panel-shine), 0 14px 34px -8px rgba(0, 0, 0, 0.62);
}

/* --------------------------------------------------------------------------
   1.5 DAYLIGHT-SPECIFIC HARMONIZATION & WCAG CONTRAST ENFORCEMENT
   -------------------------------------------------------------------------- */
html:not(.dark) :is(.bg-white, .bg-white\/90, .bg-white\/95) {
  background-color: var(--bg-surface) !important;
}
html:not(.dark) :is(.bg-slate-50, .bg-slate-100, .bg-slate-100\/80, .bg-slate-200\/70) {
  background-color: var(--bg-surface-muted) !important;
}
html:not(.dark) :is(.border-slate-200, .border-slate-200\/60, .border-slate-200\/70, .border-slate-200\/80, .border-slate-300, .border-slate-300\/70) {
  border-color: var(--border-subtle) !important;
}
html:not(.dark) :is(.text-slate-900, .text-slate-800) {
  color: var(--text-primary) !important;
}
html:not(.dark) :is(.text-slate-700, .text-slate-600, .text-slate-500) {
  color: var(--text-secondary) !important;
}
html:not(.dark) :is(.text-sky-300, .text-sky-400, .text-sky-500, .text-sky-600, .text-sky-700) {
  color: var(--color-link) !important;
}
html:not(.dark) :is(.text-violet-300, .text-violet-400, .text-violet-500, .text-violet-600) {
  color: var(--ink-purple) !important;
}
html:not(.dark) :is(.text-emerald-300, .text-emerald-400, .text-emerald-500, .text-emerald-600, .text-emerald-700) {
  color: var(--ink-success) !important;
}
html:not(.dark) .text-red-500 {
  color: var(--ink-error) !important;
}
html:not(.dark) .group:hover :is(.group-hover\:text-sky-400, .group-hover\:text-sky-500) {
  color: var(--color-link) !important;
}
html:not(.dark) .group:hover .group-hover\:text-violet-400 {
  color: var(--ink-purple) !important;
}

/* Crisp Daylight Tinted Pill Badges */
html:not(.dark) :is(.bg-sky-500\/10, .bg-sky-500\/15, .bg-sky-500\/20) {
  background-color: rgba(7, 89, 133, 0.10) !important;
  border-color: rgba(7, 89, 133, 0.26) !important;
}
html:not(.dark) :is(.bg-violet-500\/10, .bg-violet-500\/15, .bg-violet-500\/20) {
  background-color: rgba(91, 53, 181, 0.10) !important;
  border-color: rgba(91, 53, 181, 0.26) !important;
}
html:not(.dark) :is(.bg-emerald-500\/10, .bg-emerald-500\/15, .bg-emerald-500\/20) {
  background-color: rgba(6, 99, 71, 0.10) !important;
  border-color: rgba(6, 99, 71, 0.26) !important;
}

/* --------------------------------------------------------------------------
   2. BASE RESET, SCROLL PROGRESS & ACCESSIBILITY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
  transition: background-color var(--theme-transition-duration) var(--ease-smooth),
              color var(--theme-transition-duration) var(--ease-smooth);
}

/* Scroll Progress Bar at Top of Viewport */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--brand-gradient);
  box-shadow: 0 0 12px rgba(0, 149, 232, 0.55);
  transition: width 90ms linear;
}

/* Theme Switching Smooth Transition */
.theme-changing,
.theme-changing body,
.theme-changing :is(header, section, article, div, a, button, input, select, p, span, h1, h2, h3, summary) {
  transition: background-color var(--theme-transition-duration) var(--ease-smooth),
              color var(--theme-transition-duration) var(--ease-smooth),
              border-color var(--theme-transition-duration) var(--ease-smooth),
              box-shadow var(--theme-transition-duration) var(--ease-smooth),
              opacity var(--theme-transition-duration) var(--ease-smooth) !important;
}

/* Refined Focus Rings (WCAG 2.1 AA) */
:focus-visible {
  outline: 3px solid var(--brand-blue) !important;
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Skip Navigation Link */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  color: var(--color-link);
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(-200%);
  transition: transform var(--motion-normal) var(--ease-spring);
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY HIERARCHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .card-title {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.hero-title {
  font-size: clamp(2.35rem, 4.8vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 800;
  max-width: 18ch;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.card-title {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.34;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 65ch;
}

.tech-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  line-height: 1.5;
}

.eyebrow {
  display: inline-block;
  color: var(--color-link);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Animated Shimmer Gradient Text Accent (High-Contrast in Daylight, Luminous in Dark) */
.gradient-text {
  background: linear-gradient(120deg, #0369A1 0%, #0084D1 35%, #5B35B5 70%, #0369A1 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
  font-weight: 800;
  animation: text-shimmer 7s ease-in-out infinite;
}

html.dark .gradient-text {
  background: linear-gradient(120deg, #0095E8 0%, #38BDF8 32%, #818CF8 68%, #0095E8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes text-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --------------------------------------------------------------------------
   4. STICKY INTELLIGENT HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-edge);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-xs);
  transition: background-color var(--motion-normal) ease,
              border-color var(--motion-normal) ease,
              box-shadow var(--motion-normal) var(--ease-spring);
}

.site-header.scrolled {
  box-shadow: inset 0 1px 0 var(--panel-shine), 0 10px 28px -8px rgba(15, 23, 42, 0.14);
}

html.dark .site-header.scrolled {
  box-shadow: inset 0 1px 0 var(--panel-shine), 0 10px 28px -8px rgba(0, 0, 0, 0.52);
}

/* Brand Logo Badge — Always crisp white plate in both themes */
.brand-logo {
  background: #FFFFFF !important;
  border: 1px solid #C8D6E5 !important;
  box-shadow: 0 2px 8px rgba(18, 34, 54, 0.08);
  transition: border-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-spring), box-shadow var(--motion-fast) ease;
}
.brand-logo:hover {
  border-color: var(--brand-cyan) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 149, 232, 0.18);
}
.brand-logo img {
  background: #FFFFFF;
}
.brand-logo--principal {
  flex: 0 0 auto;
  padding: var(--brand-logo-padding);
}
.brand-logo--principal .brand-logo__image {
  display: block;
  height: var(--brand-logo-height);
  width: auto;
  max-width: none;
  aspect-ratio: var(--brand-logo-ratio);
  object-fit: contain;
  background: transparent;
}
@media (min-width: 1280px) {
  .site-header .brand-caption {
    display: none;
  }
}

/* Nav Links */
.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 0.25rem;
  transition: color var(--motion-fast) ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-link);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--motion-normal) var(--ease-spring);
  border-radius: var(--radius-pill);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Phone Pill Header Link */
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-surface-muted);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  min-height: var(--touch-target);
  box-shadow: inset 0 1px 0 var(--panel-shine);
  text-decoration: none;
  transition: border-color var(--motion-fast) ease,
              color var(--motion-fast) ease,
              background-color var(--motion-fast) ease,
              box-shadow var(--motion-fast) ease;
  white-space: nowrap;
}

.phone-pill:hover {
  border-color: var(--color-link);
  color: var(--color-link);
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-sm);
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-muted);
  border: 1px solid var(--panel-edge);
  box-shadow: inset 0 1px 0 var(--panel-shine);
  border-radius: var(--radius-pill);
  padding: 2px;
  min-height: var(--touch-target);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  min-width: 40px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--motion-fast) ease,
              color var(--motion-fast) ease,
              box-shadow var(--motion-fast) ease;
}

.lang-btn.active {
  background: var(--bg-elevated);
  color: var(--color-link);
  box-shadow: inset 0 0 0 1.5px var(--color-link), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: var(--radius-pill);
  background: var(--bg-surface-muted);
  border: 1px solid var(--panel-edge);
  box-shadow: inset 0 1px 0 var(--panel-shine);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--motion-fast) ease,
              color var(--motion-fast) ease,
              background-color var(--motion-fast) ease;
}

.theme-toggle-btn:hover {
  border-color: var(--color-link);
  color: var(--color-link);
  background: var(--bg-elevated);
}

/* Top Resource Bar */
.resource-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  padding: 0.45rem 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.resource-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--motion-fast) ease;
}

.resource-bar a:hover {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & TACTILE INTERACTION DESIGN
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--action-gradient);
  color: #FFFFFF !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
              0 8px 20px -6px rgba(0, 110, 175, 0.45);
  transition: transform var(--motion-fast) var(--ease-spring),
              box-shadow var(--motion-fast) var(--ease-spring),
              filter var(--motion-fast) ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34),
              0 12px 26px -6px rgba(91, 53, 181, 0.48);
  filter: brightness(1.05);
}

.btn-primary svg {
  transition: transform var(--motion-normal) var(--ease-spring);
}

.btn-primary:is(:hover, :focus-visible) svg {
  transform: translateX(4px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  border: 1px solid var(--panel-edge);
  cursor: pointer;
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-xs);
  transition: transform var(--motion-fast) var(--ease-spring),
              border-color var(--motion-fast) ease,
              color var(--motion-fast) ease,
              background-color var(--motion-fast) ease;
  text-decoration: none;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--color-link);
  color: var(--color-link);
  background: var(--bg-surface-muted);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION, TELECOM TOPOLOGY & DAYLIGHT BLUEPRINT CLARITY
   -------------------------------------------------------------------------- */
.hero-ambient {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(0, 149, 232, 0.10) 0%, transparent 48%),
    radial-gradient(ellipse at 88% 22%, rgba(99, 102, 241, 0.10) 0%, transparent 48%);
}

html.dark .hero-ambient {
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(0, 149, 232, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse at 88% 22%, rgba(99, 102, 241, 0.18) 0%, transparent 52%);
}

.hero-grid-pattern {
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(0, 149, 232, 0.10) 0%, transparent 48%),
    radial-gradient(ellipse at 88% 22%, rgba(99, 102, 241, 0.10) 0%, transparent 48%),
    radial-gradient(rgba(71, 85, 105, 0.18) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}

html.dark .hero-grid-pattern {
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(0, 149, 232, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse at 88% 22%, rgba(99, 102, 241, 0.18) 0%, transparent 52%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}

.telecom-bg-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.84;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 45%, black 76%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 45%, black 76%);
  transition: opacity var(--theme-transition-duration) ease;
}

.telecom-bg-canvas > svg {
  opacity: 1 !important;
}

html.dark .telecom-bg-canvas {
  opacity: 0.52;
}

/* Daylight Blueprint Enhancement for SVG Topology Nodes & Signal Paths */
html:not(.dark) .telecom-bg-canvas :is(.signal-beam-path, .signal-beam-fast) {
  stroke-width: 2.6;
}
html:not(.dark) .telecom-bg-canvas .cell-ring {
  stroke-width: 2.1;
}
html:not(.dark) .telecom-bg-canvas :is(.floating-node, .floating-node-delayed) circle:first-child {
  fill: var(--bg-elevated) !important;
  stroke-width: 1.5;
  stroke-opacity: 0.65;
}
html:not(.dark) .telecom-bg-canvas .floating-node-delayed text {
  fill: var(--ink-purple) !important;
}
html:not(.dark) #proceso svg line:first-child {
  stroke: var(--border-medium) !important;
}

/* Concentric Radio Base Coverage Rings */
.cell-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: cell-broadcast 5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.cell-ring-delay-1 { animation-delay: 1.6s; }
.cell-ring-delay-2 { animation-delay: 3.2s; }

@keyframes cell-broadcast {
  0% { transform: scale(0.35); opacity: 0.85; }
  80% { opacity: 0.15; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* Animated Fiber & 5G Data Beams + Traveling Packets */
.signal-beam-path {
  stroke-dasharray: 8 16;
  animation: packet-flow 3.5s linear infinite;
}
.signal-beam-fast {
  stroke-dasharray: 10 14;
  animation: packet-flow 2s linear infinite;
}

@keyframes packet-flow {
  to { stroke-dashoffset: -96; }
}

.network-packet {
  stroke-dasharray: 8 292;
  stroke-linecap: round;
  animation: network-transit 7.5s linear infinite;
}
.network-packet-secondary {
  animation-delay: -3.75s;
}

@keyframes network-transit {
  from { stroke-dashoffset: 300; }
  to { stroke-dashoffset: 0; }
}

/* Sequential Wi-Fi Pulses */
.wifi-arc-1 { animation: wifi-pulse 2.4s ease-in-out infinite; }
.wifi-arc-2 { animation: wifi-pulse 2.4s ease-in-out 0.35s infinite; }
.wifi-arc-3 { animation: wifi-pulse 2.4s ease-in-out 0.7s infinite; }

@keyframes wifi-pulse {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 1; filter: drop-shadow(0 0 5px rgba(0, 149, 232, 0.55)); }
}

/* 5G Signal Strength Equalizer */
.signal-bar {
  display: inline-block;
  width: 3.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0084D1 0%, #5B35B5 100%);
  animation: bar-bounce 2.2s ease-in-out infinite;
}
html.dark .signal-bar {
  background: linear-gradient(180deg, #38BDF8 0%, #6366F1 100%);
}
.signal-bar:nth-child(2) { height: 6px; animation-delay: 0.1s; }
.signal-bar:nth-child(3) { height: 10px; animation-delay: 0.25s; }
.signal-bar:nth-child(4) { height: 14px; animation-delay: 0.4s; }
.signal-bar:nth-child(5) { height: 18px; animation-delay: 0.55s; }

@keyframes bar-bounce {
  0%, 100% { opacity: 0.5; transform: scaleY(0.85); transform-origin: bottom; }
  50% { opacity: 1; transform: scaleY(1.12); transform-origin: bottom; }
}

/* Floating Ambient Wi-Fi Nodes */
.floating-node { animation: node-float 6s ease-in-out infinite; }
.floating-node-delayed { animation: node-float 7s ease-in-out 2s infinite; }

@keyframes node-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* Status Pulse Dot */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--status-success);
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: var(--status-success);
  opacity: 0.45;
  animation: pulse-ring 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* Hero Staggered Arrival & Scroll Reveal Choreography */
@media (prefers-reduced-motion: no-preference) {
  .hero-arriving {
    animation: connection-arrive 820ms var(--ease-spring) both;
    animation-delay: var(--arrival-delay, 0ms);
  }
  @keyframes connection-arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms var(--ease-spring), transform 620ms var(--ease-spring);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

.motion-paused *, .motion-paused *::before, .motion-paused *::after {
  animation-play-state: paused !important;
}

/* --------------------------------------------------------------------------
   7. BENTO GRID SYSTEM WITH CURSOR SPOTLIGHT & TILT
   -------------------------------------------------------------------------- */
.bento-card {
  position: relative;
  isolation: isolate;
  background: var(--day-card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform var(--motion-normal) var(--ease-spring),
              box-shadow var(--motion-normal) var(--ease-spring),
              border-color var(--motion-normal) ease,
              background-color var(--motion-normal) ease;
}

html.dark .bento-card {
  background: rgba(15, 22, 41, 0.88);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(0, 149, 232, 0.14), transparent 68%);
  transition: opacity var(--motion-normal) ease;
  z-index: -1;
}

.bento-card:hover,
.bento-card:focus-visible {
  transform: translateY(-4px) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-hover);
  border-color: var(--color-link);
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-action-arrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-link);
  opacity: 0.65;
  transform: translateX(0);
  transition: opacity var(--motion-fast) ease, transform var(--motion-normal) var(--ease-spring);
}

.bento-card:is(:hover, :focus-visible) .bento-action-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.advisor-card {
  background: var(--bg-surface);
  border: 1px solid var(--panel-edge);
}

.advisor-title {
  color: var(--text-primary);
  font-weight: 700;
}

.advisor-description {
  color: var(--text-secondary);
}

.advisor-accent {
  color: var(--color-link);
}

/* Trust & Transparency Strip Below Hero */
.trust-architecture-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-container);
  background: var(--bg-surface);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow-glass);
}

.trust-arch-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.35rem 0.5rem;
}

.trust-arch-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--panel-edge);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html.dark .trust-arch-icon {
  background: var(--bg-surface-muted);
}

/* --------------------------------------------------------------------------
   7.5 QUICK CONNECTION SEGMENT GUIDE
   -------------------------------------------------------------------------- */
.connection-guide {
  max-width: 1216px;
  margin: 2.5rem auto 0;
  padding: 1.75rem 2rem;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-container);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-glass);
}

.guide-copy h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-block: 0.35rem;
}
.guide-copy p {
  color: var(--text-secondary);
  margin: 0;
}

.guide-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  flex-shrink: 0;
}

.guide-actions button {
  padding: 0.65rem 1.15rem;
  min-height: var(--touch-target);
  border: 1px solid var(--panel-edge);
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-xs);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color var(--motion-fast) ease,
              background-color var(--motion-fast) ease,
              color var(--motion-fast) ease,
              transform var(--motion-fast) var(--ease-spring);
}

html.dark .guide-actions button {
  background: var(--bg-surface-muted);
}

.guide-actions button:hover {
  border-color: var(--color-link);
  color: var(--color-link);
  background: var(--bg-surface-muted);
  transform: translateY(-2px);
}

.guide-actions .guide-compare {
  grid-column: 1 / -1;
  padding: 0.35rem;
  border-color: transparent;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.875rem;
  color: var(--color-link);
}

/* --------------------------------------------------------------------------
   8. ECOSISTEMA B2B / B2C (COMPARADOR DUAL)
   -------------------------------------------------------------------------- */
.filter-tab {
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
  min-height: var(--touch-target);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--motion-fast) ease,
              color var(--motion-fast) ease,
              box-shadow var(--motion-fast) ease;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--bg-elevated);
  color: var(--color-link);
  border-color: var(--panel-edge);
  box-shadow: inset 0 0 0 1.5px var(--color-link), var(--shadow-xs);
}

html.dark .filter-tab.active {
  background: var(--bg-surface);
}

.solution-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border-radius: var(--radius-container);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow-glass);
  transition: transform var(--motion-normal) var(--ease-spring),
              border-color var(--motion-normal) ease,
              box-shadow var(--motion-normal) var(--ease-spring);
}

.ecosystem-card-b2b::before,
.ecosystem-card-b2c::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0369A1, #0095E8);
}

.ecosystem-card-b2c::before {
  background: linear-gradient(90deg, #5B35B5, #0095E8);
}

.ecosystem-card-b2b:hover {
  transform: translateY(-4px);
  border-color: var(--color-link);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-hover);
}

.ecosystem-card-b2c:hover {
  transform: translateY(-4px);
  border-color: var(--ink-purple);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-purple-hover);
}

.solution-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.solution-category {
  color: var(--color-link);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#card-b2c .solution-category {
  color: var(--ink-purple);
}

.solution-mark {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform var(--motion-normal) var(--ease-spring), color var(--motion-fast) ease;
}

.solution-panel:hover .solution-mark {
  transform: translateY(-3px) scale(1.06);
  color: var(--color-link);
}

/* Interactive Service Rows inside Ecosystem Cards */
.service-row {
  display: flex;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color var(--motion-fast) ease,
              border-color var(--motion-fast) ease,
              transform var(--motion-fast) var(--ease-spring),
              box-shadow var(--motion-fast) ease;
}

.service-row:hover,
.service-row:focus-visible {
  background-color: var(--bg-elevated);
  border-color: var(--panel-edge);
  box-shadow: var(--shadow-xs);
  transform: translateX(4px);
}

html.dark .service-row:hover,
html.dark .service-row:focus-visible {
  background-color: var(--bg-surface-muted);
}

.service-row-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-link);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--motion-fast) ease, transform var(--motion-normal) var(--ease-spring);
  white-space: nowrap;
}

.service-row-cta-b2c {
  color: var(--ink-purple);
}

.service-row:is(:hover, :focus-visible) .service-row-cta {
  opacity: 1;
  transform: translateX(0);
}

.solution-advisory {
  padding-top: 1.5rem;
}
.solution-note {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   9. CORPORATE PILLARS (BENTO 2X2 WITH PROGRESSIVE ACCORDION)
   -------------------------------------------------------------------------- */
.pillar-card {
  position: relative;
  isolation: isolate;
  background: var(--bg-surface);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-container);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--motion-normal) var(--ease-spring),
              box-shadow var(--motion-normal) var(--ease-spring),
              border-color var(--motion-normal) ease;
}

.pillar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(0, 149, 232, 0.12), transparent 70%);
  transition: opacity var(--motion-normal) ease;
  z-index: -1;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-hover);
  border-color: var(--color-link);
}

.pillar-card:hover::after {
  opacity: 1;
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pillar-details summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding-block: 0.35rem;
}
.pillar-details summary::-webkit-details-marker {
  display: none;
}
.pillar-details[open] .chevron-icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   10. PROCESS SECTION (3 SIMPLE STEPS)
   -------------------------------------------------------------------------- */
.process-section {
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--motion-normal) var(--ease-spring),
              box-shadow var(--motion-normal) var(--ease-spring),
              border-color var(--motion-normal) ease;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-hover);
  border-color: var(--color-link);
}

.process-meta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-link);
}

/* --------------------------------------------------------------------------
   11. COMMUNITY, RJC ACADEMY & FAQ
   -------------------------------------------------------------------------- */
.community-section {
  max-width: 1216px;
  margin: auto;
  padding-block: clamp(3rem, 5vw, 5rem);
}

.community-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.community-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 2rem;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-container);
  background: var(--bg-surface);
  box-shadow: var(--shadow-glass);
  transition: transform var(--motion-normal) var(--ease-spring),
              border-color var(--motion-normal) ease,
              box-shadow var(--motion-normal) var(--ease-spring);
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-link);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-hover);
}

.community-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--bg-elevated);
  border: 1px solid var(--panel-edge);
  box-shadow: inset 0 1px 0 var(--panel-shine);
  border-radius: var(--radius-md);
  color: var(--color-link);
  font-size: 1.25rem;
  font-weight: 700;
}

html.dark .community-symbol {
  background: var(--bg-surface-muted);
}

.community-card .community-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: auto;
}

.community-email {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--color-link);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.community-email:hover {
  text-decoration: underline;
}

/* FAQ Accordion List */
.faq-section {
  max-width: 1216px;
  margin-inline: auto;
  padding-block: clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
}

.faq-list {
  background: var(--bg-surface);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-container);
  padding: 0.75rem 1.75rem;
  box-shadow: var(--shadow-glass);
}

.faq-list details {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-list details:last-child {
  border-bottom: none;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--motion-fast) ease;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary:hover {
  color: var(--color-link);
}

.faq-plus {
  color: var(--color-link);
  font-size: 1.35rem;
  font-weight: 400;
  transition: transform var(--motion-normal) var(--ease-spring);
}
.faq-list details[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-list p {
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. CONTACT MODULE & SMART INQUIRY PORTAL
   -------------------------------------------------------------------------- */
#contacto .rounded-3xl {
  background: var(--bg-surface) !important;
  border: 1px solid var(--panel-edge) !important;
  box-shadow: var(--shadow-glass) !important;
}

.radar-sweep {
  transform-origin: center;
  animation: radar-spin 7s linear infinite;
}
@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.direct-channels {
  display: grid;
  gap: 0.75rem;
}
.direct-channels a {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  text-decoration: none;
  transition: border-color var(--motion-fast) ease,
              transform var(--motion-fast) var(--ease-spring),
              box-shadow var(--motion-fast) ease;
}
.direct-channels a:hover {
  border-color: var(--color-link);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-md);
}
.direct-channels strong {
  color: var(--text-primary);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.inquiry-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0;
  list-style: none;
}
.inquiry-steps li {
  flex: 1;
  border-bottom: 3px solid var(--border-subtle);
  padding-block: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: border-color var(--motion-normal) ease, color var(--motion-normal) ease;
}
.inquiry-steps li.step-active {
  border-color: var(--color-link);
  color: var(--text-primary);
}
.inquiry-steps li.step-done {
  border-color: var(--status-success);
  color: var(--status-success);
}

.form-notice {
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--color-link);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Form Controls */
.form-input,
.form-select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-edge);
  background-color: var(--bg-surface-muted);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color var(--motion-fast) ease,
              background-color var(--motion-fast) ease,
              box-shadow var(--motion-fast) ease;
}

.form-input:hover,
.form-select:hover {
  border-color: var(--color-link);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-link);
  background-color: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(7, 89, 133, 0.18);
}

html.dark .form-input:focus,
html.dark .form-select:focus {
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(0, 149, 232, 0.22);
}

.form-input.input-error {
  border-color: var(--status-error) !important;
  background-color: rgba(180, 35, 50, 0.08);
}

.profile-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--panel-edge);
  background: var(--bg-surface-muted);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color var(--motion-fast) ease,
              background-color var(--motion-fast) ease,
              color var(--motion-fast) ease,
              box-shadow var(--motion-fast) ease;
}

.profile-pill:hover {
  border-color: var(--color-link);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.profile-pill.active-b2b {
  background: rgba(7, 89, 133, 0.10);
  border-color: var(--color-link);
  color: var(--color-link);
  box-shadow: inset 0 0 0 1px var(--color-link), 0 4px 12px rgba(7, 89, 133, 0.12);
}

html.dark .profile-pill.active-b2b {
  background: rgba(0, 149, 232, 0.14);
  border-color: var(--brand-cyan);
  color: #38BDF8;
}

.profile-pill.active-b2c {
  background: rgba(91, 53, 181, 0.10);
  border-color: var(--ink-purple);
  color: var(--ink-purple);
  box-shadow: inset 0 0 0 1px var(--ink-purple), 0 4px 12px rgba(91, 53, 181, 0.12);
}

html.dark .profile-pill.active-b2c {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--brand-purple);
  color: #C4B5FD;
}

.optional-code {
  padding-block: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.optional-code summary {
  cursor: pointer;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.optional-code[open] > div {
  padding-top: 0.75rem;
}

.inquiry-summary {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
  padding: 1.25rem;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-md);
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   13. LEGAL MODAL & QUICK CONTACT MODULE
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--motion-normal) var(--ease-spring),
              visibility var(--motion-normal) ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-container);
  max-width: 780px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.38);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--motion-normal) var(--ease-spring);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

/* Mobile Persistent Contact Dock */
.mobile-contact {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
  html {
    scroll-padding-bottom: 92px;
  }
  .mobile-contact:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.75rem;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 60;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--bg-glass);
    border-top: 1px solid var(--panel-edge);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 var(--panel-shine), 0 -4px 20px rgba(18, 34, 54, 0.10);
  }
}

@media (min-width: 768px) {
  #mobile-contact:not([hidden]) {
    display: flex;
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 60;
    padding: 0.45rem;
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 var(--panel-shine), var(--shadow-lg);
  }
  #mobile-contact > a[href^="tel:"] {
    display: none;
  }
  #mobile-contact .btn-primary {
    min-width: 156px;
    padding: 0.65rem 1.25rem;
    min-height: 44px;
    border-radius: var(--radius-pill);
  }
  .site-footer {
    padding-bottom: 96px;
  }
}

/* --------------------------------------------------------------------------
   14. FOOTER (DAYLIGHT & DARK THEME ADAPTIVE)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
}

:is(.process-section, .site-footer) .text-white {
  color: var(--text-primary);
}
:is(.process-section, .site-footer) :is(.text-slate-300, .text-slate-400, .text-slate-500) {
  color: var(--text-secondary);
}
:is(.process-section, .site-footer) [class*="border-slate"] {
  border-color: var(--border-subtle);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--motion-fast) ease;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: var(--color-link);
}

html:not(.dark) .site-footer a.bg-sky-500\/20 {
  color: var(--color-link) !important;
  background-color: rgba(7, 89, 133, 0.12) !important;
  border-color: rgba(7, 89, 133, 0.30) !important;
}

html:not(.dark) .site-footer a.bg-sky-500\/20:hover {
  background-color: rgba(7, 89, 133, 0.20) !important;
}

.footer-channels {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
}
.footer-channels a {
  display: flex;
  align-items: center;
  min-height: 36px;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS & COMPOSITIONS
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .connection-guide,
  .community-section,
  .faq-section {
    margin-inline: 1.5rem;
  }
}

@media (max-width: 1023px) {
  .trust-architecture-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .connection-guide {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .community-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    max-width: 20ch;
    font-size: clamp(2.125rem, 8.5vw, 3rem);
  }
  .resource-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
  }
  .summary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .summary-actions a,
  .summary-actions button {
    width: 100%;
  }
  .telecom-bg-canvas * {
    animation: none !important;
  }
  .telecom-bg-canvas .network-packet {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   16. PREFERS-REDUCED-MOTION (ACCESSIBILITY FIRST)
   -------------------------------------------------------------------------- */
@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;
  }
  .theme-changing, .theme-changing * {
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero-arriving {
    opacity: 1 !important;
    transform: none !important;
  }
  .cell-ring,
  .signal-beam-path,
  .signal-beam-fast,
  .network-packet,
  .signal-bar,
  .radar-sweep,
  .floating-node,
  .floating-node-delayed,
  .gradient-text {
    animation: none !important;
  }
}

/* Strict Daylight Hover & Contrast Safeguards */
html:not(.dark) .site-footer a:hover {
  color: var(--color-link) !important;
}
html:not(.dark) .site-footer a[data-prefill-profile="b2c"]:hover {
  color: var(--ink-purple) !important;
}
html:not(.dark) :is(.hover\:text-sky-400, .hover\:text-sky-500):hover {
  color: var(--color-link) !important;
}
html:not(.dark) .hover\:text-violet-400:hover {
  color: var(--ink-purple) !important;
}