/**
 * Oriel Nexus Design System Tokens & Utility Styles
 * Dark Theme: Deep Purple & Dark Charcoal with Lemon Green interactive highlights
 */

:root {
  /* Core Brand Tokens */
  --color-primary-purple: #1A0B2E;
  --color-secondary-charcoal: #0D1117;
  --color-accent-lemon: #CCFF00;
  --color-neutral-dark: #161B22;
  --color-text-muted: #8B949E;
  --color-neutral-light: #F0F6FC;
  --color-white: #FFFFFF;

  /* Typography & Layout Tokens */
  --font-family-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max-width: 1240px;
  --border-radius-base: 6px;
  --border-radius-lg: 12px;
  --border-radius-pill: 9999px;
  --transition-standard: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  /* Elevation & Glassmorphism */
  --glass-bg: rgba(22, 27, 34, 0.75);
  --glass-bg-hover: rgba(26, 11, 46, 0.85);
  --glass-border: rgba(240, 246, 252, 0.1);
  --glass-border-accent: rgba(204, 255, 0, 0.3);
  --header-height: 80px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow-lemon: 0 0 25px rgba(204, 255, 0, 0.2);
  --shadow-glow-purple: 0 0 35px rgba(26, 11, 46, 0.6);
}

/* Base Body Application */
body {
  background: radial-gradient(circle at 50% 0%, #1A0B2E 0%, #0D1117 70%);
  background-attachment: fixed;
  color: var(--color-neutral-light);
  font-family: var(--font-family-base);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 992px) {
  .section-padding {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

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

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

p {
  color: var(--color-neutral-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-muted {
  color: var(--color-text-muted);
}

.lead-text {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #C9D1D9;
  line-height: 1.75;
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-family-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-lemon);
  margin-bottom: 1rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--border-radius-pill);
  background: rgba(204, 255, 0, 0.1);
  color: var(--color-accent-lemon);
  border: 1px solid var(--glass-border-accent);
}

.badge-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent-lemon);
  box-shadow: 0 0 8px var(--color-accent-lemon);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Button & Interactive Components (WCAG AA Compliant) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-family-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--border-radius-base);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-standard);
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Primary Button: Lemon Green with Charcoal Text (High Contrast 13:1 Ratio) */
.btn-primary {
  background-color: var(--color-accent-lemon);
  color: var(--color-secondary-charcoal);
  border-color: var(--color-accent-lemon);
  box-shadow: 0 4px 15px rgba(204, 255, 0, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: #E0FF4D;
  color: var(--color-secondary-charcoal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.4);
}

/* Secondary Button: Dark Glass with subtle border */
.btn-secondary {
  background-color: rgba(22, 27, 34, 0.85);
  color: var(--color-neutral-light);
  border-color: var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: rgba(26, 11, 46, 0.95);
  color: var(--color-white);
  border-color: var(--color-accent-lemon);
  transform: translateY(-2px);
}

/* Cards & Glass Containers */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-standard);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(204, 255, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle), var(--shadow-glow-purple);
}

.card-interactive {
  cursor: pointer;
}

.card-featured {
  border-color: var(--glass-border-accent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow-purple);
}

.card-body {
  flex-grow: 1;
}

.card-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Header & Navigation Styles */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  min-height: var(--header-height);
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  contain: layout;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-family-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-white);
  line-height: 1.1;
}

.brand-subline {
  font-family: var(--font-family-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--color-accent-lemon);
  text-transform: uppercase;
  font-weight: 600;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: #C9D1D9;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.nav-link:hover::after, .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent-lemon);
  border-radius: 2px;
}

/* Mobile Toggle Hamburger with Animated Transformation */
.mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-base);
  cursor: pointer;
  padding: 10px;
  transition: all var(--transition-standard);
}

.mobile-toggle:hover {
  border-color: var(--color-accent-lemon);
  background: rgba(26, 11, 46, 0.9);
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

/* Transform to 'X' when active */
.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer & Backdrop */
.drawer-backdrop {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-standard), visibility var(--transition-standard);
}

.drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 999;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer .nav-link {
  font-size: 1.05rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(240, 246, 252, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer .nav-link.active {
  color: var(--color-accent-lemon);
  font-weight: 700;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-accent-lemon);
  background: rgba(204, 255, 0, 0.05);
  border-radius: 0 var(--border-radius-base) var(--border-radius-base) 0;
}

/* Physics Canvas Zone Styles */
.physics-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(26, 11, 46, 0.5) 0%, rgba(13, 17, 23, 0.8) 100%);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.physics-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.physics-overlay-caption {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Fallback tag row for mobile or reduced motion */
.physics-fallback-tags {
  display: none;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .physics-canvas-wrapper {
    height: 180px;
  }
  .physics-fallback-tags {
    display: flex;
  }
}

.physics-node-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  background: rgba(22, 27, 34, 0.9);
  color: var(--color-neutral-light);
  border: 1px solid var(--glass-border);
}

.physics-node-tag.active {
  border-color: var(--color-accent-lemon);
  color: var(--color-accent-lemon);
}

/* Grids & Layout Containers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-family-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #C9D1D9;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.15rem;
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-base);
  color: var(--color-white);
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  transition: all var(--transition-standard);
  outline: none;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #6E7681;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-accent-lemon);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.2);
  background: rgba(22, 27, 34, 0.95);
}

.form-input.is-invalid, .form-select.is-invalid, .form-textarea.is-invalid {
  border-color: #F85149;
  box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.2);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23CCFF00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.75rem;
  cursor: pointer;
}

.form-select option {
  background-color: #0D1117;
  color: var(--color-white);
  padding: 0.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* Accessible Form Feedback Alerts */
.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-base);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feedback-success {
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.4);
  color: #3FB950;
}

.feedback-error {
  background: rgba(248, 81, 73, 0.15);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #F85149;
}


/* Footer Architecture */
.site-footer {
  background: #090D12;
  border-top: 1px solid var(--glass-border);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  margin-top: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 246, 252, 0.06);
  padding-top: 2rem;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-base);
  transition: color 0.35s ease, text-decoration-color 0.35s ease, opacity 0.35s ease;
}

.footer-credit:hover {
  color: var(--color-accent-lemon);
  text-decoration: underline;
  text-decoration-color: rgba(204, 255, 0, 0.4);
  text-underline-offset: 3px;
}

.footer-credit:focus {
  color: var(--color-accent-lemon);
  outline: none;
  text-decoration: underline;
  text-decoration-color: rgba(204, 255, 0, 0.4);
  text-underline-offset: 3px;
}

.footer-credit:focus-visible {
  outline: 2px solid var(--color-accent-lemon);
  outline-offset: 3px;
  border-radius: var(--border-radius-base);
  color: var(--color-accent-lemon);
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) and (max-width: 1079px) {
  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
  .footer-copyright {
    order: 1;
  }
  .footer-legal-links {
    order: 2;
    justify-content: flex-end;
  }
  .footer-credit {
    order: 3;
    width: 100%;
    margin-top: 0.25rem;
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 1080px) {
  .footer-bottom {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
  }
  .footer-copyright {
    flex: 1 1 0;
    text-align: left;
  }
  .footer-credit {
    flex: 0 1 auto;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }
  .footer-legal-links {
    flex: 1 1 0;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Full-Width Hero Section Architecture
   ========================================================================== */
.hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Cinematic Multi-Stop Dark Overlay for Contrast & Aesthetics */
.hero-fullwidth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 17, 23, 0.94) 0%,
    rgba(26, 11, 46, 0.88) 45%,
    rgba(13, 17, 23, 0.93) 100%
  );
  z-index: 1;
}

/* Subtle Ambient Radial Glow on Top of Background */
.hero-fullwidth::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 30%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
}

.hero-fullwidth .container {
  position: relative;
  z-index: 3;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-headline {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero-headline .text-accent-lemon {
  color: var(--color-accent-lemon);
  display: inline;
  position: relative;
}

.hero-paragraph {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  color: #C9D1D9;
  max-width: 650px;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2.75rem;
}

.hero-metrics-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--glass-border);
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
}

.hero-metric-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.hero-metric-number span {
  color: var(--color-accent-lemon);
}

.hero-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Right Column Visual Showcase Card */
.hero-showcase-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow-purple);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--border-radius-base);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background-color: var(--color-neutral-dark);
  contain: layout paint;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (max-width: 768px) {
  .hero-image-frame img {
    height: 240px;
  }
}

.hero-image-frame:hover img {
  transform: scale(1.03);
}

.hero-image-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-pill);
  border: 1px solid var(--glass-border-accent);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-lemon);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 576px) {
  .hero-cta-group .btn {
    width: 100%;
  }
}

/* Responsive Metrics Adjustments */
@media (max-width: 767px) {
  .hero-metrics-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .hero-metric-item {
    border-left: none !important;
    padding-left: 0 !important;
  }
  .hero-metric-number {
    font-size: 1.25rem;
  }
  .hero-metric-label {
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .hero-metrics-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-metric-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .hero-metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Subpage Hero Architecture (.page-hero)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 3.25rem);
  padding-bottom: 3.75rem;
  border-bottom: 1px solid var(--glass-border);
  background: radial-gradient(circle at 50% 0%, rgba(26, 11, 46, 0.7) 0%, rgba(13, 17, 23, 0.95) 85%);
  overflow: hidden;
}

.page-hero-inner {
  max-width: 880px;
}

.page-hero-title {
  font-family: var(--font-family-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.page-hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #C9D1D9;
  line-height: 1.7;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb-nav a {
  color: var(--color-text-muted);
  transition: color var(--transition-standard);
}

.breadcrumb-nav a:hover {
  color: var(--color-accent-lemon);
}

.breadcrumb-separator {
  color: rgba(204, 255, 0, 0.4);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--color-white);
  font-weight: 600;
}

/* Responsive Flow Pipeline & Stepped Architectures */
.flow-step-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #C9D1D9;
}

.flow-step-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-base);
  font-weight: 600;
  color: var(--color-white);
}

.flow-step-arrow {
  color: var(--color-accent-lemon);
  font-weight: 800;
  padding: 0 0.15rem;
}

/* Executive Leadership Card */
.exec-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .exec-card-grid {
    grid-template-columns: 320px 1fr;
  }
}

/* Legal Content Formats */
.legal-content h2 {
  font-size: 1.45rem;
  color: var(--color-accent-lemon);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
  color: #C9D1D9;
  line-height: 1.75;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 404 Error State */
.error-404-hero {
  min-height: calc(85vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-404-glitch {
  font-family: var(--font-family-display);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-accent-lemon);
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
  text-shadow: 0 0 35px rgba(204, 255, 0, 0.3);
}

/* Social Channel Icons & Floating WhatsApp Click-to-Chat */
.social-links-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-base);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  flex-shrink: 0;
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  color: var(--color-white);
}

.social-icon-btn.is-linkedin:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(10, 102, 194, 0.5);
  color: #0A66C2;
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.25);
}

.social-icon-btn.is-tiktok:hover {
  background: rgba(238, 29, 82, 0.15);
  border-color: rgba(238, 29, 82, 0.5);
  color: #EE1D52;
  box-shadow: 0 4px 15px rgba(238, 29, 82, 0.25);
}

.social-icon-btn.is-whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.5);
  color: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

/* Floating WhatsApp Click-to-Chat Widget */
.whatsapp-float-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  display: flex;
  align-items: center;
}

.whatsapp-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.6);
  font-family: var(--font-family-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.whatsapp-float-btn:hover {
  background: #20BA5A;
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55), 0 6px 16px rgba(0, 0, 0, 0.7);
}

.whatsapp-float-btn:active {
  transform: translateY(0) scale(0.98);
}

.whatsapp-pulse-dot {
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFFFFF;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

@media (max-width: 640px) {
  .whatsapp-float-widget {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .whatsapp-float-label,
  .whatsapp-pulse-dot {
    display: none;
  }
}

/* Reduced Motion Override (WCAG 2.3.3) */
@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;
  }
  .pulse-dot,
  .whatsapp-pulse-dot {
    animation: none !important;
  }
}

/* Screen-reader and semantic SEO utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
