/* ==========================================================================
   Mercurian Solutions - Static Site CSS
   Rewritten from Webflow to clean, maintainable CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #6366f1;
  --color-primary-2: #8b5cf6;
  --color-primary-3: #ec4899;
  --color-primary-4: #14b8a6;
  --color-white: #ffffff;
  --color-black: #12141d;
  --color-gray-1: #f8fafc;
  --color-gray-2: #e2e8f0;
  --color-gray-3: #64748b;
  --color-gray-4: #88898d;
  --color-gray-5: #1e293b;
  --color-gold: #cbca9a;
  --color-panel-dark: #1a1f2e;
  
  /* Gradients */
  --gradient-4: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --gradient-7: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --container-max-width: 1280px;
  --container-padding: 24px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.display-heading-2 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-heading-3 {
  font-size: 3rem;
  font-weight: 700;
}

.display-heading-4 {
  font-size: 2rem;
  font-weight: 600;
}

.display-heading-9 {
  font-size: 2.5rem;
  font-weight: 600;
}

.display-heading-10 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-white);
}

.large-heading {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.large-heading-2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
}

.card-heading {
  font-size: 1.75rem;
  font-weight: 600;
}

.card-heading-2 {
  font-size: 1.75rem;
  font-weight: 500;
}

.text-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-gray-3);
}

.text-lead-2 {
  font-size: 1.25rem;
  line-height: 1.6;
}

.text-small {
  font-size: 0.875rem;
}

.text-small-2 {
  font-size: 0.875rem;
  color: var(--color-gray-4);
}

/* Text Colors */
.text-gray-4 {
  color: #88898d;
}

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

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

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

.text-primary-1 {
  color: #f97316;
}

.text-primary-2 {
  color: var(--color-primary-2);
}

.text-primary-3 {
  color: var(--color-primary-3);
}

.text-primary-4 {
  color: var(--color-primary-4);
}

/* Display Utilities */
.display-inline {
  display: inline;
}

.display-inline-block {
  display: inline-block;
}

.no-bottom-space {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-6,
.container-10,
.container-12,
.container-13,
.container-14,
.container-15 {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.grid-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Grid Layouts */
.grid-halves {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-thirds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-thirds-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-two-thirds {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.grid-two-thirds.reverse {
  grid-template-columns: 1fr 2fr;
}

/* How it works specific grid: smaller panel on left, larger image on right */
.grid-two-thirds.how-it-works {
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.grid-two-thirds.how-it-works .panel {
  height: auto;
}

.grid-two-thirds.how-it-works .rounded-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Hero Grid */
.hero-2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-2-grid.reverse {
  direction: rtl;
}

.hero-2-grid.reverse > * {
  direction: ltr;
}

/* Alignment */
.center-content {
  text-align: center;
}

.align-content-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.justify-content-center {
  display: flex;
  justify-content: center;
}

.text-center {
  text-align: center;
}

/* Content Width Constraints */
.content-width-small {
  max-width: 400px;
  margin: 0 auto;
}

.content-width-medium {
  max-width: 600px;
  margin: 0 auto;
}

.content-width-large {
  max-width: 800px;
}

.content-width-extra-large {
  max-width: 1000px;
}

.content-width-extra-small {
  max-width: 300px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section,
.section---problems,
.section---hero,
.section---problem,
.section---approach,
.section---product,
.section---c2a {
  padding: 5rem 0;
}

.section-6,
.section-7 {
  padding: 4rem 0;
}

.hero-section {
  padding: 6rem 0;
}

.fullscreen-section {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  padding: 2rem 0 !important;
}

.fullscreen-section-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-2);
}

.navbar-wrapper.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Dark navbar for dark-themed pages */
.navbar-wrapper.dark {
  background: transparent;
  border-bottom: none;
}

.navbar-wrapper.dark .nav-link-2 {
  color: rgba(255, 255, 255, 0.8);
}

.navbar-wrapper.dark .nav-link-2:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.navbar-wrapper.dark .dropdown-list-wrapper {
  background: var(--color-gray-5);
  border-color: rgba(255, 255, 255, 0.1);
}

.navbar-wrapper.dark .dropdown-item-2 {
  color: rgba(255, 255, 255, 0.8);
}

.navbar-wrapper.dark .dropdown-item-2:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* Selected/active state for dark navbar */
.navbar-wrapper.dark .nav-link-2.active,
.navbar-wrapper.dark .dropdown-item-2.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.navbar-wrapper.dark .dropdown-item-heading {
  color: var(--color-white);
}

.navbar-wrapper.dark .dropdown-link-icon {
  filter: brightness(0) invert(1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.navbar-row > div:first-child {
  display: flex;
  align-items: center;
}

.navbar-1-brand {
  display: flex;
  align-items: center;
}

.navbar-1-brand img {
  height: 40px;
  width: auto;
}

.nav-menu-3 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1.5rem;
}

.nav-link-2 {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-5);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-link-2:hover {
  background: var(--color-gray-1);
  color: var(--color-black);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-link-icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-link-icon {
  transform: rotate(180deg);
}

.dropdown-list-3 {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown:hover .dropdown-list-3 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-list-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-2);
  overflow: hidden;
  padding: 0.5rem;
}

.dropdown-bg {
  display: none;
}

.dropdown-grid-halves {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-item-2 {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.dropdown-item-2:hover {
  background: var(--color-gray-1);
}

.dropdown-item-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.navbar-controls {
  display: none;
}

.menu-button {
  display: none;
  padding: 0.5rem;
  cursor: pointer;
}

/* Row utilities for nav */
.row {
  display: flex;
}

.row-align-center {
  align-items: center;
}

/* --------------------------------------------------------------------------
   Panels / Cards
   -------------------------------------------------------------------------- */
.panel {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-2);
  overflow: hidden;
}

.panel-body {
  padding: 2rem;
}

.panel-body-small {
  padding: 1rem 1.25rem;
}

.panel-top-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.panel-height-large .panel {
  height: 100%;
}

.panel-subheading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Panel on Image */
.quote-on-image {
  position: relative;
}

.quote-on-image img {
  width: 100%;
  border-radius: var(--radius-xl);
}

.panel-on-image {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 500px;
}

/* Background Variants */
.bg-white {
  background: var(--color-white);
}

.bg-gray-3 {
  background: var(--color-gray-1);
}

.bg-gradient-4 {
  background: var(--gradient-4);
  color: var(--color-white);
}

.bg-gradient-7 {
  background: var(--gradient-7);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.button,
.button-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--color-primary);
  color: var(--color-white);
}

.button:hover,
.button-2:hover {
  background: var(--color-primary-2);
  transform: translateY(-1px);
}

.button-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.button-large-outline,
.button-large-outline-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-large-outline:hover,
.button-large-outline-2:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.button-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gray-1);
  transition: all 0.2s ease;
}

.button-circle:hover {
  background: var(--color-gray-2);
}

.button-circle-icon {
  width: 20px;
  height: 20px;
}

/* Portal button variants */
.client-portal {
  background: #0d9488;
}

.client-portal:hover {
  background: #0f766e;
}

.developer-portal-button {
  background: var(--color-primary-2);
}

.developer-portal-button:hover {
  background: #7c3aed;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
.text-link {
  color: var(--color-gray-3);
  transition: color 0.2s ease;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: 0.75rem;
}

.link-arrow img {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form,
.form-4 {
  width: 100%;
}

.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input,
.form-input-2 {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-gray-2);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-input-2:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input-large {
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
}

.form-input-link {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-size: 0.875rem;
}

.form-success,
.form-success-2 {
  padding: 1rem;
  background: #dcfce7;
  color: #166534;
  border-radius: var(--radius-md);
  display: none;
}

.form-error,
.form-error-2 {
  padding: 1rem;
  background: #fef2f2;
  color: #991b1b;
  border-radius: var(--radius-md);
  display: none;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.tabs-horizontal {
  width: 100%;
}

.tabs-horizontal-menu {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-panel {
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.tab-panel:hover,
.tab-panel.active {
  opacity: 1;
}

.tab-panel.active {
  box-shadow: var(--shadow-lg);
}

.tab-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
}

.tabs-content {
  position: relative;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Vertical Tabs */
.tabs-vertical {
  display: grid;
  grid-template-columns: 180px 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.tabs-vertical-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tabs-vertical .tab-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tabs-vertical .tab-panel.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.tabs-vertical-tab {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--color-gray-3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.tabs-vertical-tab:hover {
  background: var(--color-gray-1);
  color: var(--color-black);
}

.tabs-vertical-tab.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.tabs-image-wrapper {
  display: flex;
  justify-content: center;
}

.tabs-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.tabs-description {
  display: flex;
  flex-direction: column;
}

.tab-desc-pane {
  display: none;
}

.tab-desc-pane.active {
  display: block;
}

.tabs-description .panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Tabs with Overlay Panel */
.tabs-overlay {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 4rem;
}

.page-home .tab-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  color: var(--color-gray-4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-home .tab-panel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  border-left-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

.page-home .tab-panel.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  border-left-color: var(--color-gold);
  color: var(--color-white);
}

.page-home .tab-icon {
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.page-home .tab-panel.active .tab-icon {
  opacity: 1;
}

.tabs-image-with-overlay {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tabs-overlay-panel {
  position: absolute;
  right: -100px;
  max-width: 240px;
  background: var(--color-panel-dark) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tabs-overlay-panel .panel-body {
  padding: 1rem;
}

.tabs-overlay-panel .text-lead-2 {
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .tabs-vertical {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tabs-vertical-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tabs-description {
    order: 3;
  }
  
  .tabs-overlay {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tabs-overlay-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tabs-overlay-panel {
    position: static;
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .page-home .tabs-overlay-descriptions {
    position: static;
    margin-top: 1rem;
  }
  
  .page-home .tabs-overlay {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
.bordered-list-item,
.bordered-list-item-small {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-gray-2);
}

.bordered-list-item-small:last-child {
  border-bottom: none;
}

.circle-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.circle-large {
  width: 40px;
  height: 40px;
}

.icon-small {
  width: 16px;
  height: 16px;
}

.vertical-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vertical-text-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Timeline */
.timeline-pin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 1rem;
}

.timeline-pin-head {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

.timeline-pin-line {
  width: 2px;
  height: 40px;
  background: var(--color-gray-2);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-gray-5);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer .panel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-1-panel-body {
  padding: 3rem;
}

.footer-1-top-row {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-1-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-menu-grids {
  display: flex;
  gap: 4rem;
}

.footer .text-link {
  color: rgba(255, 255, 255, 0.7);
}

.footer .text-link:hover {
  color: var(--color-white);
}

.social-list {
  display: flex;
  gap: 1rem;
}

.social-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.social-link-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.social-link-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
   Back to Top
   -------------------------------------------------------------------------- */
.back-to-top-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top-container.visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Images
   -------------------------------------------------------------------------- */
.rounded {
  border-radius: var(--radius-xl);
}

.rounded-image {
  border-radius: var(--radius-xl);
}

.almost-transparent {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Spacing Utilities
   -------------------------------------------------------------------------- */
.space-bottom {
  margin-bottom: 1rem;
}

.space-bottom-large {
  margin-bottom: 2rem;
}

.space-left {
  margin-left: 1rem;
}

.space-left-small {
  margin-left: 0.5rem;
}

.space-left-extra-small {
  margin-left: 0.25rem;
}

.row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Exchange Page Specific
   -------------------------------------------------------------------------- */
.section---hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--color-white);
  padding: 6rem 0;
}

.ggb-heading {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.heading-2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-gray-4);
  margin-bottom: 2rem;
}

._84 {
  font-size: 1rem;
  color: var(--color-gray-4);
  margin-bottom: 1rem;
}

._84 .text-span {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.section---problem {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.paragraph-2 {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
}

.heading-5 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

/* Navbar variant for exchange */
.navbar-2 {
  background: transparent;
  padding: 1rem 0;
}

.navbar-2 .container-6 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-2 img {
  height: 50px;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.section---c2a {
  padding: 5rem 0;
}

.section---c2a .panel.section {
  padding: 4rem;
}

.cta-row-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Utility Page (Login)
   -------------------------------------------------------------------------- */
.utility-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Homepage Dark Theme
   -------------------------------------------------------------------------- */
.page-home {
  background-color: var(--color-black);
  color: var(--color-white);
  min-height: 100vh;
}

.page-home .section---problems {
  background: transparent;
}

.page-home .display-heading-2 {
  color: var(--color-white);
}

.page-home .display-heading-2.text-gray-4 {
  color: var(--color-gray-4);
}

.page-home .large-heading {
  color: var(--color-white);
}

.page-home .large-heading.text-gray-4 {
  color: var(--color-gray-4);
}

.page-home .footer {
  background: transparent;
  padding-top: 2rem;
}

.page-home .footer .panel {
  background: #151a24;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.page-home .footer .text-lead {
  color: rgba(255, 255, 255, 0.6);
}

.page-home .footer .display-heading-4 {
  color: #d4c9a8;
}

/* Hero section padding for homepage */
.page-home .section---problems:first-of-type {
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.page-home .section---problems:nth-of-type(2) {
  padding-top: 4rem;
  padding-bottom: 8rem;
}

/* Footer bottom padding for homepage */
.page-home .footer {
  padding-bottom: 3rem;
}

/* Dark page panels */
.page-home .panel {
  background: var(--color-panel-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.page-home .panel.section {
  background: var(--color-panel-dark);
}

/* ACRO letter styling - no space before the following text */
.acro-letter {
  margin-right: 0;
}

/* ==========================================================
   ORCA PAGE TYPOGRAPHY - Change text sizes here
   ========================================================== */

.page-home {
  /* Main heading sizes */
  --orca-heading-large: 3.5rem;      /* "Meet ORCA" title */
  --orca-heading-medium: 3rem;       /* "How is ORCA different" */
  
  /* Body text sizes - EDIT THESE TO CHANGE TEXT SIZES */
  --orca-text-reference: 1.5rem;     /* "ORCA boosts..." - reference size */
  --orca-text-grade-1: 1.375rem;     /* "We view..." and "At Mercurian..." - one grade smaller */
  --orca-text-grade-2: 1.5rem;       /* "No marketing..." and "ORCA is cybernetic..." */
}

/* "No marketing and sales muscle..." */
/* Removed - using inline styles instead */

/* "ORCA boosts your brokerage's growth" */
.page-home .section---problems .display-heading-4 {
  font-size: var(--orca-text-reference);
  font-weight: 600;
  line-height: 1.4;
}

/* "We view a financial broker's..." */
.page-home .panel.section .div-block-3 h1 {
  font-size: var(--orca-text-grade-1);
  font-weight: 400;
  line-height: 1.5;
}

/* "Meet ORCA" title */
.page-home .hero-section .display-heading-3 {
  font-size: var(--orca-heading-large);
  font-weight: 700;
}

/* "ORCA is a cybernetic trading application..." */
.page-home .hero-section h3:not(.display-heading-3) {
  font-size: var(--orca-text-grade-2);
  font-weight: 400;
  line-height: 1.5;
}

/* "How is ORCA different" heading */
.page-home .display-heading-9 {
  font-size: var(--orca-heading-medium);
  font-weight: 700;
}

/* "At Mercurian we believe..." */
.page-home .large-heading-2 {
  font-size: var(--orca-text-grade-1);
  font-weight: 400;
  line-height: 1.5;
}

/* Card heading in panels */
.page-home .panel .card-heading {
  font-size: 2rem;
  font-weight: 700;
}

/* Panel subheading */
.page-home .panel-subheading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* List item text */
.page-home .space-left-small {
  font-size: 1.125rem;
}

/* Text lead 2 in ACRO section */
.page-home .text-lead-2 {
  font-size: 1.25rem;
  line-height: 1.5;
}

/* ACRO letter styling */
.page-home .acro-letter {
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  color: var(--color-white);
}

.page-home .vertical-text-grid {
  gap: 1.5rem;
}

.page-home .vertical-text-grid > div {
  display: flex;
  align-items: center;
  gap: 0;
}

.page-home .cta-row-1 {
  gap: 5rem;
  align-items: center;
}

.page-home .text-lead-2 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Meet ORCA section heading colors */
.page-home .hero-section .div-block-3 h1 {
  color: var(--color-white);
}

/* How is ORCA different redesign */
.page-home .tabs-overlay {
  grid-template-columns: 273px 1fr;
  grid-template-rows: auto;
  gap: 2rem;
  align-items: start;
}

.page-home .tabs-overlay-menu {
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.page-home .tabs-overlay-content {
  position: relative;
  overflow: visible;
}

.page-home .tabs-overlay-content .tab-pane {
  width: 100%;
}

.page-home .tabs-overlay-content .tab-pane img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-home .tabs-overlay-descriptions {
  position: absolute;
  bottom: 200px;
  right: 120px;
  z-index: 10;
  width: 320px;
}

.page-home .tabs-overlay-panel {
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
  border-radius: 12px;
  overflow: hidden;
}

.page-home .tabs-overlay-panel .panel-body {
  padding: 1.5rem;
}

.page-home .tabs-overlay-panel .text-lead-2 {
  font-size: 1.1rem;
  color: #1a1a1a !important;
  line-height: 1.6;
  font-weight: 400;
}

/* How it works circles */
.page-home .circle-small {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.page-home .circle-small h5 {
  font-size: 1rem;
}

/* Container widths for centering */
.page-home .container-12.grid-container {
  max-width: 900px;
}

.page-home .section---problems .container-10 {
  max-width: 1280px;
}

.page-home .section---problems .hero-2-grid {
  gap: 1.5rem;
}

.page-home h1,
.page-home h3,
.page-home h5 {
  color: var(--color-white);
}

.page-home h1.text-gray-4,
.page-home h3.text-gray-4,
.page-home .text-gray-4 {
  color: var(--color-gray-4);
}

.page-home .display-heading-4.text-gray-4 {
  color: var(--color-gray-4);
}

.page-home .text-primary-2 {
  color: var(--color-primary);
}

.page-home .text-gold {
  color: var(--color-gold);
}

.page-home .text-primary-3 {
  color: var(--color-primary-2);
}

.page-home .large-heading-2 {
  color: var(--color-white);
}

.page-home .large-heading-2.text-gray-4 {
  color: var(--color-gray-4);
}

.page-home .card-heading {
  color: var(--color-white);
}

.page-home .circle-small,
.page-home .circle-large {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-home .circle-small h5,
.page-home .circle-large h5 {
  color: var(--color-white);
}

.page-home .bordered-list-item,
.page-home .bordered-list-item-small {
  border-color: rgba(255, 255, 255, 0.1);
}

.page-home .space-left-small {
  color: rgba(255, 255, 255, 0.8);
}

/* CTA Section gradient for dark pages */
.page-home .bg-gradient-4 {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.page-home .form-input-2 {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.page-home .form-input-2::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.page-home .button-large-outline-2 {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.page-home .button-large-outline-2:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-halves,
  .grid-thirds,
  .grid-two-thirds,
  .grid-two-thirds.reverse,
  .hero-2-grid,
  .columns-2,
  .cta-row-1 {
    grid-template-columns: 1fr;
  }
  
  .tabs-vertical {
    grid-template-columns: 1fr;
  }
  
  .tabs-vertical-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .footer-1-top-row {
    flex-direction: column;
  }
  
  .footer-menu-grids {
    gap: 2rem;
  }
  
  h1, .display-heading-2 {
    font-size: 3.5rem;
  }
  
  .display-heading-10 {
    font-size: 2.5rem;
  }
  
  .large-heading {
    font-size: 1.875rem;
  }
}

@media (max-width: 768px) {
  .nav-menu-3 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-wrapper.dark .nav-menu-3 {
    background: var(--color-gray-5);
  }
  
  .nav-menu-3.active {
    display: flex;
  }
  
  .navbar-controls {
    display: block;
  }
  
  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
  }
  
  .navbar-wrapper.dark .menu-button img {
    filter: brightness(0) invert(1);
  }
  
  .dropdown-list-3 {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-top: 0;
  }
  
  .dropdown-list-wrapper {
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  
  .grid-thirds {
    grid-template-columns: 1fr;
  }
  
  .tabs-horizontal-menu {
    flex-direction: column;
  }
  
  .panel-on-image {
    position: static;
    margin-top: 1rem;
  }
  
  section,
  .section---problems,
  .section---hero,
  .section---approach,
  .section---product,
  .section---c2a {
    padding: 3rem 0;
  }
  
  .footer-1-bottom-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }
  
  h1, .display-heading-2 {
    font-size: 2.5rem;
  }
  
  .large-heading {
    font-size: 1.5rem;
  }
  
  .ggb-heading {
    font-size: 2rem;
  }
  
  ._84 .text-span {
    font-size: 2rem;
  }
  
  .panel-body {
    padding: 1.5rem;
  }
  
  .footer-1-panel-body {
    padding: 1.5rem;
  }
  
  .section---c2a .panel.section {
    padding: 2rem;
  }
  
  .page-home .section---problems:first-of-type {
    padding-top: 4rem;
  }
}
