/* ==========================================================================
   CRM-Solutions Design System & CSS Rules
   ========================================================================== */

/* Variables & Tokens */
:root {
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --bg-base: #080c14;
  --bg-deep: #05070c;
  --bg-card: rgba(13, 20, 35, 0.65);
  --bg-card-hover: rgba(17, 27, 47, 0.8);
  --bg-nav: rgba(8, 12, 20, 0.75);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0b0f19;

  /* Accents */
  --accent-red: #e62335;
  --accent-red-hover: #ff3b4e;
  --accent-red-glow: rgba(230, 35, 53, 0.15);
  
  --accent-blue: #3b82f6;
  --accent-blue-hover: #60a5fa;
  
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  --accent-orange: #f97316;
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* Transparencies & Overlays */
  --overlay-light: rgba(255, 255, 255, 0.02);
  --overlay-med: rgba(255, 255, 255, 0.05);
  --overlay-dark: rgba(0, 0, 0, 0.15);
  --input-bg: rgba(255, 255, 255, 0.02);
  --input-focus-bg: rgba(255, 255, 255, 0.04);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Light Theme Variables */
.light-theme {
  --bg-base: #f7f9fc;
  --bg-deep: #eff2f6;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-nav: rgba(247, 249, 252, 0.85);
  --border-light: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);

  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-inverse: #ffffff;

  --accent-red: #d21f3c;
  --accent-red-hover: #b91c1c;
  --accent-red-glow: rgba(210, 31, 60, 0.1);

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;

  --overlay-light: rgba(0, 0, 0, 0.02);
  --overlay-med: rgba(0, 0, 0, 0.04);
  --overlay-dark: rgba(0, 0, 0, 0.04);
  --input-bg: rgba(0, 0, 0, 0.015);
  --input-focus-bg: rgba(0, 0, 0, 0.03);

  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
}

.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme h4,
.light-theme h5,
.light-theme h6 {
  color: #0b0f19;
}

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

.light-theme .blob {
  opacity: 0.08;
}

.logo-text-crm {
  fill: #ffffff;
  transition: fill var(--transition-normal);
}

.light-theme .logo-text-crm {
  fill: #0b0f19;
}

.logo-text-tagline {
  fill: #9ca3af;
  transition: fill var(--transition-normal);
}

.light-theme .logo-text-tagline {
  fill: #4b5563;
}

.light-theme .gradient-text {
  background: linear-gradient(135deg, #0b0f19 30%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light-theme .timesheet-entries .tr span:nth-child(2) {
  color: #0b0f19;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  background: var(--overlay-light);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--overlay-med);
  border-color: var(--border-hover);
  color: var(--text-main);
  transform: scale(1.05);
}

/* Global floating theme control */
#theme-toggle.theme-toggle-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-main);
  box-shadow: var(--shadow-lg), 0 0 24px var(--accent-red-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#theme-toggle.theme-toggle-btn:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent-red);
}

.mobile-theme-toggle-wrapper {
  display: none !important;
}

@media (max-width: 640px) {
  #theme-toggle.theme-toggle-btn {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-theme-toggle-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-theme-toggle-wrapper span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-base);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  transition: color var(--transition-normal);
}

p {
  color: var(--text-muted);
  transition: color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Structural Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-sidebar { grid-template-columns: 200px 1fr; }
.grid-items { grid-template-columns: 2fr 1fr 1fr; }
.grid-portal-row { grid-template-columns: 2fr 1fr 1fr; }
.grid-ts-row { grid-template-columns: 1fr 1fr 2fr; }
.grid-contact { grid-template-columns: 1fr 1.2fr; }

/* Section layouts */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-top: 10px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-lead {
  font-size: 1.15rem;
  max-width: 700px;
  color: var(--text-muted);
}

.subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  font-weight: 600;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-red { color: var(--accent-red); }
.text-blue { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.text-orange { color: var(--accent-orange); }
.text-teal { color: var(--accent-teal); }
.text-indigo { color: #6366f1; }
.text-pink { color: #ec4899; }
.text-muted { color: var(--text-muted); }

/* Glowing Ambient Blobs */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.blob-1 {
  background: var(--accent-red);
  top: 10%;
  left: -10%;
  animation: float 25s infinite ease-in-out alternate;
}

.blob-2 {
  background: var(--accent-blue);
  top: 40%;
  right: -10%;
  animation: float 30s infinite ease-in-out;
}

.blob-3 {
  background: var(--accent-purple);
  bottom: 10%;
  left: 20%;
  animation: float 20s infinite ease-in-out alternate;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -80px) scale(1.1); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 8px;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  box-shadow: 0 0 20px rgba(230, 35, 53, 0.4);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.light-theme .btn-secondary {
  background: rgba(0, 0, 0, 0.02);
}
.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.btn-full {
  width: 100%;
  padding: 12px 24px;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--transition-normal), border var(--transition-normal);
}

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

.logo-link {
  display: flex;
  align-items: center;
  height: 55px;
}

.logo-wrapper {
  height: 100%;
  width: 250px;
}

.logo-svg {
  height: 100%;
  width: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px;
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 300px;
  height: calc(100vh - 80px);
  background: var(--bg-base);
  border-left: 1px solid var(--border-light);
  z-index: 99;
  transition: right var(--transition-normal), background var(--transition-normal);
  padding: 40px 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 24px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
}

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

.badge-wrapper {
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 35, 53, 0.1);
  border: 1px solid rgba(230, 35, 53, 0.2);
  color: var(--accent-red-hover);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-icon {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background var(--transition-normal);
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border-light);
}

/* Dashboard Mockup Component */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dashboard-mockup {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: background var(--transition-normal), border var(--transition-normal), box-shadow var(--transition-normal);
}

.mockup-header {
  height: 36px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.light-theme .mockup-header {
  background: rgba(0, 0, 0, 0.04);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dots .dot.red { background: #ef4444; }
.mockup-dots .dot.yellow { background: #f59e0b; }
.mockup-dots .dot.green { background: #10b981; }

.mockup-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-title-icon {
  width: 12px;
  height: 12px;
}

.mockup-body {
  height: 360px;
}

.mockup-sidebar {
  background: var(--overlay-dark);
  border-right: 1px solid var(--border-light);
  padding: 16px 12px;
  transition: background var(--transition-normal);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.sb-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-links li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.sidebar-links li svg {
  width: 12px;
  height: 12px;
}

.sidebar-links li.active, .sidebar-links li:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.light-theme .sidebar-links li.active, .light-theme .sidebar-links li:hover {
  background: rgba(0, 0, 0, 0.03);
}

.sidebar-links li.active svg {
  color: var(--accent-red);
}

.mockup-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mockup-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.mockup-search {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--overlay-light);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  transition: background var(--transition-normal);
}

.mockup-search svg { width: 10px; height: 10px; }

.mockup-user {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-dashboard-view h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ch-badge {
  font-size: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 600;
}

.mockup-cards {
  gap: 12px;
  margin-bottom: 16px;
}

.m-card {
  padding: 10px;
  border-radius: 6px;
  background: var(--overlay-light);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: background var(--transition-normal);
}

.m-card-title {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.m-card-val {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 4px 0;
}

.m-card-sub {
  font-size: 0.55rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-card-sub svg { width: 8px; height: 8px; }

.card-blue { border-left: 2px solid var(--accent-blue); }
.card-purple { border-left: 2px solid var(--accent-purple); }
.card-red { border-left: 2px solid var(--accent-red); }

.m-panel {
  background: var(--overlay-light);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 10px;
  transition: background var(--transition-normal);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.panel-header h5 {
  font-size: 0.75rem;
  font-weight: 600;
}

.panel-header svg { width: 10px; height: 10px; color: var(--text-muted); }

.panel-chart-placeholder {
  height: 60px;
  width: 100%;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
}

.act-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.act-dot.green { background: var(--success); }
.act-dot.blue { background: var(--accent-blue); }
.act-dot.yellow { background: var(--warning); }

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

/* Cards & Grid Section Base */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Services section specific styles */
.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--overlay-med);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  transition: background var(--transition-normal);
}

.card-icon {
  width: 24px;
  height: 24px;
}

.card-icon.blue { color: var(--accent-blue); }
.card-icon.red { color: var(--accent-red); }
.card-icon.purple { color: var(--accent-purple); }

.card-title {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.card-text {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-list li svg {
  width: 14px;
  height: 14px;
}

.highlighted-card {
  border-color: rgba(230, 35, 53, 0.3);
  box-shadow: 0 10px 30px -5px rgba(230, 35, 53, 0.05);
}

.highlighted-card:hover {
  border-color: rgba(230, 35, 53, 0.5);
  box-shadow: 0 15px 40px -8px rgba(230, 35, 53, 0.15);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* Feature boxes list */
.features-main {
  margin-bottom: 80px;
}

.feature-item-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.feature-item-box:hover {
  background: var(--overlay-light);
}

.fib-icon-side {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--overlay-med);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.fib-icon-side svg {
  width: 20px;
  height: 20px;
}

.fib-content h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.fib-content p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Explorer Component Styling */
.explorer-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  transition: background var(--transition-normal), border var(--transition-normal);
}

.explorer-wrapper h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.explorer-wrapper .subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.explorer-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  flex-wrap: wrap;
  transition: border var(--transition-normal);
}

.explorer-tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.explorer-tab-btn svg {
  width: 16px;
  height: 16px;
}

.explorer-tab-btn:hover {
  color: var(--text-main);
  background: var(--overlay-light);
}

.explorer-tab-btn.active {
  color: var(--text-main);
  background: var(--overlay-med);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
}

.light-theme .explorer-tab-btn.active {
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

.explorer-content-box {
  min-height: 380px;
  position: relative;
}

.explorer-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}

.pane-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  background: var(--overlay-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: background var(--transition-normal);
}

.pane-text h4 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.pane-text p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.pane-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pane-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pane-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pane-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Swiss Invoice Mockup inside Explorer */
.swiss-invoice-mockup {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 4px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
}

.invoice-meta {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 16px;
  color: #4b5563;
}

.invoice-items-table {
  margin-bottom: 24px;
}

.invoice-items-table .th {
  font-weight: 700;
  color: #374151;
  border-bottom: 2px solid #d1d5db;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.invoice-items-table .tr {
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}

.invoice-items-table .tr.total-row {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  border-bottom: none;
  padding-top: 4px;
  padding-bottom: 4px;
  font-weight: 500;
}

.invoice-items-table .tr.total-row span:first-child { color: #6b7280; }

.invoice-items-table .tr.grand-total-row {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  border-bottom: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: #000;
  padding-top: 6px;
  border-top: 1px solid #d1d5db;
}

/* Swiss QR-Bill Style Mockup */
.qr-bill-mockup {
  border-top: 1px dashed #9ca3af;
  padding-top: 16px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  font-family: Arial, Helvetica, sans-serif;
}

.qr-bill-section-left {
  border-right: 1px solid #9ca3af;
  padding-right: 12px;
  font-size: 0.55rem;
  line-height: 1.3;
}

.qr-label {
  font-weight: bold;
  font-size: 0.6rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.qr-details {
  color: #333;
}

.qr-bill-section-right {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  font-size: 0.55rem;
}

.qr-label-main {
  grid-column: span 2;
  font-weight: bold;
  font-size: 0.6rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.qr-code-box {
  border: 1px solid #000;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-svg {
  width: 100%;
  height: 100%;
}

.qr-pay-info {
  line-height: 1.3;
  color: #333;
}

/* Client Portal Mockup in explorer */
.client-portal-mockup {
  width: 100%;
  max-width: 440px;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 0.75rem;
  transition: background var(--transition-normal), border var(--transition-normal);
}

.portal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.light-theme .portal-header {
  background: rgba(0, 0, 0, 0.02);
}

.portal-logout-icon {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.portal-content {
  padding: 16px;
}

.portal-summary {
  gap: 12px;
  margin-bottom: 16px;
}

.portal-box {
  background: var(--overlay-light);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-normal);
}

.portal-box span {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.portal-box strong {
  font-size: 0.95rem;
  font-family: var(--font-title);
}

.portal-table {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.portal-table .th {
  background: var(--overlay-light);
  padding: 8px 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-normal);
}

.portal-table .tr {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.portal-table .tr:last-child {
  border-bottom: none;
}

.portal-badge {
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.portal-btn-sm {
  background: var(--overlay-med);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.6rem;
  transition: background var(--transition-normal);
}

.portal-btn-sm.btn-action {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.portal-btn-sm svg { width: 8px; height: 8px; }

/* Timesheet Mockup in explorer */
.timesheet-mockup {
  width: 100%;
  max-width: 440px;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  transition: background var(--transition-normal), border var(--transition-normal);
}

.timesheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.timesheet-stat {
  margin-bottom: 16px;
  align-items: center;
}

.timesheet-stat span {
  font-size: 0.6rem;
  color: var(--text-muted);
  display: block;
}

.timesheet-stat strong {
  font-size: 0.95rem;
  font-family: var(--font-title);
}

.ts-progress-bar-wrapper {
  background: var(--overlay-med);
  height: 6px;
  border-radius: 100px;
  width: 100%;
  overflow: hidden;
  transition: background var(--transition-normal);
}

.ts-progress-bar {
  background: var(--accent-purple);
  height: 100%;
  border-radius: 100px;
}

.timesheet-entries {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.timesheet-entries .tr {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.timesheet-entries .tr:last-child {
  border-bottom: none;
}

.timesheet-entries .tr span:nth-child(2) {
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-normal);
}

.timesheet-entries .tr span:nth-child(3) {
  color: var(--text-muted);
}

.highlighted-ts {
  background: rgba(139, 92, 246, 0.05);
}

.pulse-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-purple) !important;
  font-weight: 500;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-purple);
  border-radius: 50%;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--accent-purple); }
}

/* Contract Mockup in explorer */
.contract-mockup {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  color: #1f2937;
  border-radius: 4px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
}

.contract-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.contract-body p.doc-text {
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 24px;
}

.signature-box {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  gap: 16px;
}

.sig-area {
  display: flex;
  flex-direction: column;
}

.sig-area span {
  font-size: 0.6rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.signature-line {
  border-bottom: 1px solid #9ca3af;
  height: 36px;
  display: flex;
  align-items: center;
}

.sig-font {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1rem;
  color: #1d4ed8;
  padding-left: 8px;
}

.pending-sig {
  justify-content: center;
  border-bottom: none;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 4px;
  height: 40px;
}

/* Pricing Section CSS */
.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.package-name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.package-price {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-type {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.package-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  transition: border var(--transition-normal);
}

.pricing-card .card-body {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex-shrink: 0;
}

.highlighted-pricing {
  border-color: rgba(230, 35, 53, 0.4);
  box-shadow: 0 15px 40px -10px rgba(230, 35, 53, 0.1);
}

.popular-ribbon {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 30px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-extra {
  margin-top: 48px;
  background: var(--overlay-light);
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: var(--radius-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  transition: background var(--transition-normal), border var(--transition-normal);
}

.pricing-extra p {
  font-size: 0.85rem;
}

.inline-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
  color: var(--accent-blue);
}

/* About Section Graphic */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-graphic-box {
  width: 100%;
  max-width: 440px;
  height: 320px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background var(--transition-normal), border var(--transition-normal);
}

.graphic-layer {
  position: absolute;
  background: var(--overlay-light);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: background var(--transition-normal), border var(--transition-normal);
}

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

.gl-1 {
  top: 30px;
  left: 30px;
}

.gl-2 {
  bottom: 30px;
  right: 30px;
  border-color: rgba(230, 35, 53, 0.2);
}

.graphic-map {
  width: 240px;
  height: 160px;
  z-index: 1;
}

.swiss-map-svg {
  width: 100%;
  height: 100%;
}

.map-pulse {
  animation: mapPulse 2s infinite alternate;
  transform-origin: 165px 35px;
}

@keyframes mapPulse {
  0% { r: 5px; opacity: 0.6; fill: var(--accent-red); }
  100% { r: 9px; opacity: 1; fill: var(--accent-red-hover); filter: drop-shadow(0 0 4px var(--accent-red)); }
}

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

.lead-text {
  font-size: 1.15rem;
  margin-top: 10px;
  margin-bottom: 20px;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.about-point {
  display: flex;
  gap: 16px;
}

.ap-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(230, 35, 53, 0.1);
  color: var(--accent-red-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-title);
  font-weight: bold;
  font-size: 1rem;
  border: 1px solid rgba(230, 35, 53, 0.2);
}

.ap-icon svg {
  width: 16px;
  height: 16px;
}

.ap-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ap-text strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
  transition: color var(--transition-normal);
}

/* Contact Section & Form Styling */
.contact-desc {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  align-items: center;
  transition: all var(--transition-fast);
}

a.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.cm-icon {
  width: 40px;
  height: 40px;
  background: var(--overlay-med);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  transition: background var(--transition-normal);
}

.cm-icon svg {
  width: 18px;
  height: 18px;
}

.cm-details {
  display: flex;
  flex-direction: column;
}

.cm-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cm-val {
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color var(--transition-normal);
}

.contact-form-wrapper {
  padding: 30px;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.light-theme .contact-form select {
  color: var(--text-main);
  background-color: var(--bg-card);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.light-theme .contact-form input::placeholder,
.light-theme .contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: var(--input-focus-bg);
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(230, 35, 53, 0.2);
}

/* Custom styling for select dropdown */
.select-wrapper {
  position: relative;
  width: 100%;
}

.contact-form select {
  appearance: none;
  width: 100%;
  padding-right: 40px;
  cursor: pointer;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.6rem;
  color: var(--text-muted);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Footer styling */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
  position: relative;
  z-index: 1;
  transition: background var(--transition-normal), border var(--transition-normal);
}

.footer-content {
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 48px;
  width: 200px;
}

.brand-text {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links-col h6 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  color: var(--text-main);
  transition: color var(--transition-normal);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-col ul li a:hover {
  color: var(--text-main);
  padding-left: 2px;
}

.footer-contact-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-contact-text a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 30px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: border var(--transition-normal);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Scroll Animation Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .grid-sidebar { grid-template-columns: 160px 1fr; }
  .hero-title { font-size: 2.75rem; }
  .grid-2 { gap: 24px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-contact {
    grid-template-columns: 1fr;
  }
  
  .hero-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }
  
  .hero-section { padding-top: 120px; }
  
  /* Hide desktop menu, show burger icon and header theme button */
  #desktop-menu, .nav-actions .btn {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Explorer components stacking */
  .explorer-pane.active {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  
  .pane-text {
    padding-right: 0;
  }
  
  /* Make QR bill stack */
  .qr-bill-mockup {
    grid-template-columns: 1fr;
    border-right: none;
    border-top: 1px dashed #9ca3af;
  }
  
  .qr-bill-section-left {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    padding-right: 0;
  }
  
  .mockup-body {
    grid-template-columns: 1fr;
  }
  
  .mockup-sidebar {
    display: none; /* Hide sidebar in mobile dashboard preview to save space */
  }
  
  .about-graphic-box {
    height: 240px;
  }
  
  .graphic-layer {
    padding: 8px 12px;
  }
  
  .gl-1 { top: 15px; left: 15px; }
  .gl-2 { bottom: 15px; right: 15px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.25rem; }
  .hero-ctas { flex-direction: column; }
  .hero-stats { justify-content: space-between; }
  .explorer-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .explorer-tab-btn {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .hide-mobile-tablet {
    display: none !important;
  }
}

/* The switch lives outside the filtered sticky header so it is viewport-fixed. */
#theme-toggle.theme-toggle-btn {
  position: fixed !important;
  top: auto !important;
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
}

@media (max-width: 640px) {
  #theme-toggle.theme-toggle-btn {
    right: 16px !important;
    bottom: 16px !important;
  }
}
