/* ==========================================================================
   Computer On Site - Main Stylesheet
   ========================================================================== */

:root {
  /* Literal & Brand Tokens */
  --blue-900: #0f2540;
  --blue-800: #1a3a5c;
  --blue-700: #2a5280;
  --orange: #a4490f;
  --orange-dark: #7c2d12;
  
  /* UI Design Tokens */
  --bg: #f5f6f8;
  --muted: #e8f0f8;
  --text: #172033;
  --soft: #607086;
  --white: #fff;
  --border: rgba(220, 227, 236, 0.7);
  --radius: 18px;
  
  /* Multi-layered Soft Shadows (Modern Premium Feel) */
  --shadow: 
    0 4px 6px -1px rgba(15, 37, 64, 0.02),
    0 10px 15px -3px rgba(15, 37, 64, 0.04),
    0 20px 25px -5px rgba(15, 37, 64, 0.06);
    
  /* Animation Timing */
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  /* Theme-specific custom properties */
  --header-bg: rgba(248, 250, 252, 0.82);
  --header-bg-scrolled: rgba(248, 250, 252, 0.94);
  --header-text: var(--blue-900);
  --card-bg: #fff;
  --isotype-bg: rgba(255, 255, 255, 0.72);
  --input-bg: #fff;
  
  /* Section backgrounds preserving contrast */
  --hero-bg: radial-gradient(circle at 85% 15%, rgba(232, 119, 34, 0.25), transparent 35%), linear-gradient(135deg, var(--blue-900), var(--blue-800), var(--blue-700));
  --page-hero-bg: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  --cta-bg: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

body.dark-theme {
  --bg: #090f1e;
  --muted: #131c2e;
  --text: #cbd5e1;
  --soft: #94a3b8;
  --white: #0e1626;
  --border: rgba(30, 41, 59, 0.7);
  --shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 10px 15px -3px rgba(0, 0, 0, 0.4),
    0 20px 25px -5px rgba(0, 0, 0, 0.5);
  
  --header-bg: rgba(14, 22, 38, 0.82);
  --header-bg-scrolled: rgba(14, 22, 38, 0.94);
  --header-text: #e2e8f0;
  --card-bg: #0e1626;
  --isotype-bg: rgba(19, 28, 46, 0.82);
  --input-bg: #070d18;
  
  /* Preserved dark gradients for dark theme to maintain high contrast with white text */
  --hero-bg: radial-gradient(circle at 85% 15%, rgba(232, 119, 34, 0.15), transparent 35%), linear-gradient(135deg, #090f1e, #131c2e, #16223f);
  --page-hero-bg: linear-gradient(135deg, #090f1e, #131c2e);
  --cta-bg: linear-gradient(135deg, #090f1e, #16223f);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
}

/* ==========================================================================
   Header Navigation (Glassmorphic Polish)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px !important;
  padding: 24px clamp(20px, 5vw, 72px); /* Taller landing header for premium impact */
  background: var(--header-bg) !important;
  color: var(--header-text) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 4px 18px rgba(15, 37, 64, 0.04) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease !important;
}

.site-header.scrolled {
  padding: 10px clamp(20px, 5vw, 72px); /* Shrunk scrolled header */
  background: var(--header-bg-scrolled) !important;
  box-shadow: 0 8px 30px rgba(15, 37, 64, 0.09) !important;
  border-bottom-color: rgba(15, 37, 64, 0.1) !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

/* Glassmorphic Brand Isotype Tile */
.brand-isotype-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 37, 64, 0.08);
  box-shadow: 0 4px 12px rgba(15, 37, 64, 0.04);
  padding: 6px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: isotype-float 4s ease-in-out infinite;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.brand-isotype-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Scrolled State Adjustment for Tile */
.site-header.scrolled .brand-isotype-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(15, 37, 64, 0.04);
}

/* Isotype Tile Hover Effects */
.brand:hover .brand-isotype-tile {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 122, 0, 0.35);
  transform: scale(1.08) rotate(6deg);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.12);
}

.brand:hover .brand-isotype-tile img {
  transform: rotate(-6deg) scale(1.1);
}

/* Gentle Isotype Float Animation */
@keyframes isotype-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.brand-logo {
  display: block;
  width: 130px !important; /* Adjusted width for the cropped wordmark (540x230 ratio) for high prominence */
  height: auto;
  aspect-ratio: 130 / 55;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: none !important;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.site-header.scrolled .brand-logo {
  width: 95px !important; /* Compact scrolled wordmark width */
}

.brand strong {
  display: none !important; /* Hidden because the new logotype contains the text "Computer On Site" */
}

.brand small {
  display: block;
  color: rgba(15, 37, 64, 0.82);
  font-size: .76rem;
  border-left: 1px solid rgba(15, 37, 64, 0.15);
  padding-left: 12px;
  margin-left: 4px;
  transition: padding-left 0.35s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.site-header.scrolled .brand small {
  font-size: .70rem;
  padding-left: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px !important; /* Premium wide gap for landing page prominence */
  margin-left: auto !important;
  transition: gap 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.site-header.scrolled .main-nav {
  gap: 18px !important; /* Shrunk scrolled menu gap */
}

.main-nav a,
.main-nav a:visited {
  color: var(--blue-900) !important;
  text-decoration: none !important;
  font-weight: 750 !important;
  border-bottom: 2px solid transparent !important;
  padding: 8px 0 !important;
  font-size: 1.12rem !important; /* Made menu bigger as requested */
  transition: font-size 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s, border-bottom-color 0.25s !important;
}

.site-header.scrolled .main-nav a {
  font-size: 0.98rem !important; /* Shrunk scrolled menu font size */
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange) !important;
  border-bottom-color: var(--orange) !important;
}

.nav-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 2px 0 6px;
}

.language-nav {
  display: none !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--blue-900);
  font-size: 1.2rem;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-toggle:hover {
  background-color: var(--muted);
}

/* ==========================================================================
   Hero Section (Deep Gradient Motion & Balanced Typography)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 650px;
  padding: clamp(64px, 9vw, 118px) clamp(20px, 6vw, 88px);
  background: #000;
  color: #fff;
}

@keyframes hero-glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin: 8px 0 22px;
  letter-spacing: -.045em;
  text-wrap: balance; /* Modern fluid wrapping */
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}

.page-hero .lead {
  color: #d9e4ef;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: .78rem;
  color: var(--orange);
  margin: 0 0 8px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ==========================================================================
   Buttons (Subtle Scaling & Dynamic Shadows)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--transition-smooth), 
              box-shadow 0.3s var(--transition-smooth), 
              background-color 0.3s;
  font-size: .98rem;
}

.btn.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(164, 73, 15, 0.2);
}

.btn.primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(164, 73, 15, 0.35);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   Cards & Layouts (Soft Shadows & Card Lifting)
   ========================================================================== */

.hero-card,
.contact-card,
.lead-form {
  background: var(--card-bg);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.hero-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 37, 64, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 48%, rgba(0, 0, 0, 0) 68%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 48%, rgba(0, 0, 0, 0) 68%);
  z-index: 2;
  transition: background 0.3s ease;
}

body.dark-theme .hero-glass-overlay {
  background: rgba(9, 15, 30, 0.60);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 46%;
}

.hero-card h2 {
  margin-top: 0;
}

.hero-card ul,
.check-list {
  padding-left: 0;
  list-style: none;
}

.hero-card li,
.check-list li {
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
}

.hero-card li:before,
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 900;
}

.section {
  padding: clamp(54px, 7vw, 90px) clamp(20px, 6vw, 88px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section h2,
.cta h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.cards {
  display: grid;
  gap: 20px;
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ==========================================================================
   Modern Dynamic Cards
   ========================================================================== */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: 
    transform 0.4s var(--transition-smooth), 
    box-shadow 0.4s var(--transition-smooth), 
    border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(164, 73, 15, 0.3);
  box-shadow: 0 20px 40px -15px rgba(15, 37, 64, 0.12);
}

.card h3 {
  margin: 8px 0 10px;
  font-size: 1.18rem;
  transition: color 0.3s;
}

.card:hover h3 {
  color: var(--blue-900);
}

.card p {
  color: var(--soft);
  margin-bottom: 0;
  text-wrap: pretty;
}

/* Dynamic Emoji Icon Badges */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--muted);
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover .icon {
  background-color: rgba(164, 73, 15, 0.1);
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 4px 12px rgba(164, 73, 15, 0.08);
}

.muted {
  background: var(--bg);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.split p {
  text-wrap: pretty;
}

/* ==========================================================================
   Metrics & Proof Grid (Counter Accent Upgrades)
   ========================================================================== */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.proof-grid div {
  background: #white;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.proof-grid div:hover {
  transform: translateY(-3px);
  border-color: rgba(164, 73, 15, 0.2);
  box-shadow: 0 10px 20px rgba(15, 37, 64, 0.04);
}

.proof-grid strong {
  display: block;
  background: linear-gradient(135deg, var(--blue-800), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.2rem;
  font-weight: 800;
}

.proof-grid span {
  color: var(--soft);
}

/* ==========================================================================
   Call to Action (CTA) & General Layouts
   ========================================================================== */

.cta {
  text-align: center;
  background: var(--cta-bg);
  color: #fff;
  padding: 64px 20px;
}

.cta p {
  color: #d9e4ef;
  margin: 0 auto 24px;
  max-width: 660px;
  text-wrap: pretty;
}

.page-hero {
  padding: clamp(62px, 8vw, 104px) clamp(20px, 6vw, 88px);
  background: var(--page-hero-bg);
  color: #fff;
}

/* ==========================================================================
   Timeline / Roadmaps
   ========================================================================== */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.timeline div {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline div:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 37, 64, 0.04);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.flow div {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  color: var(--blue-800);
}

.flow span {
  color: var(--orange);
  font-weight: 900;
}

/* ==========================================================================
   Forms & Contact layout (Fluid Focus Polish)
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 26px;
  align-items: start;
}

.lead-form label {
  display: block;
  font-weight: 750;
  margin: 16px 0 0;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(164, 73, 15, 0.08);
}

/* Premium Form Validation Focus Glows */
.lead-form input:user-valid,
.lead-form select:user-valid,
.lead-form textarea:user-valid {
  border-color: rgba(46, 204, 113, 0.45) !important;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.06) !important;
}

.lead-form input:user-invalid,
.lead-form select:user-invalid,
.lead-form textarea:user-invalid {
  border-color: rgba(231, 76, 60, 0.45) !important;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.06) !important;
}

/* Multi-step Stepper Wizard Styles */
.form-step {
  display: none;
  animation: step-slide-in 0.4s var(--transition-smooth);
}

.form-step.active {
  display: block;
}

@keyframes step-slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Bar */
.stepper-progress-container {
  margin-bottom: 24px;
  background: var(--border);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  position: relative;
}

.stepper-progress-bar {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wizard Radio Cards (Premium Interactive Selector buttons) */
.wizard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}

.wizard-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s var(--transition-smooth);
  background: var(--card-bg);
  position: relative;
  font-weight: 700;
  font-size: 0.90rem;
  color: var(--text);
  user-select: none;
  box-shadow: var(--shadow);
}

.wizard-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  background: var(--muted);
}

.wizard-card.selected {
  border-color: var(--orange);
  background: rgba(164, 73, 15, 0.08);
  box-shadow: 0 4px 14px rgba(164, 73, 15, 0.12);
  transform: translateY(-2px);
}

.wizard-card input[type="radio"],
.wizard-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.wizard-card-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 6px;
}

/* Stepper Buttons Row */
.stepper-buttons {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.stepper-buttons .btn {
  padding: 12px 24px;
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note,
.privacy-note {
  color: var(--soft);
  font-size: .92rem;
}

/* ==========================================================================
   Partners & Team section
   ========================================================================== */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.partner-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 !important; /* Removed padding to let the photo fill the top half */
  text-align: left; /* Changed alignment to left for modern profile look */
  box-shadow: var(--shadow);
  overflow: hidden; /* Ensures the image zoom is clipped within the card's rounded borders */
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(15, 37, 64, 0.12);
}

.partner-photo {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important; /* Premium 2:3 vertical portrait aspect ratio */
  height: auto !important; /* Computes height dynamically based on aspect ratio */
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block;
  object-fit: cover;
  object-position: center top; /* Focuses the crop on the face at the top of the portrait */
  transition: transform 0.6s var(--transition-smooth) !important;
}

.partner-card:hover .partner-photo {
  transform: scale(1.06) !important;
}

.partner-card h3 {
  margin: 20px 24px 6px !important;
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--blue-900);
}

.partner-card p {
  margin: 0 24px 20px !important;
  color: var(--soft);
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 26px clamp(20px, 6vw, 88px);
  background: #0b1b2e;
  color: rgba(255, 255, 255, 0.75);
  font-size: .94rem;
}

.site-footer a {
  color: #fff;
}

/* ==========================================================================
   Special review cards
   ========================================================================== */

.logo-review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.logo-review-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 920px) {
  .site-header {
    background: var(--header-bg-scrolled) !important;
    flex-wrap: wrap;
  }
  
  .language-nav {
    order: 4;
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  
  .main-nav {
    margin-left: 0 !important;
  }
  
  .nav-divider {
    display: none;
  }
  
  .main-nav a,
  .main-nav a:visited {
    color: #fff !important;
    border-bottom-color: transparent !important;
  }
  
  .main-nav a:hover,
  .main-nav a.active {
    color: #fff !important;
    border-bottom-color: var(--orange) !important;
  }
  
  .cards.four,
  .cards.three,
  .cards.two,
  .split,
  .contact-layout,
  .partner-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-card {
    max-width: 640px;
  }

  .hero-glass-overlay {
    width: 100%;
    border-right: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero-content {
    max-width: 100%;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: var(--blue-900);
    padding: 16px 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .timeline {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px !important; /* Fixed padding on mobile to prevent CLS */
  }
  
  .brand-logo {
    width: 135px !important; /* Fixed logo width on mobile to prevent CLS */
  }

  .site-header.scrolled {
    padding: 12px 16px !important; /* Keep identical to unscrolled state */
  }

  .site-header.scrolled .brand-logo {
    width: 135px !important; /* Keep identical to unscrolled state */
  }
  
  .brand small {
    display: none;
  }
  
  .section,
  .page-hero,
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }
  
  .proof-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
  }
}

/* Sleek Theme Switcher Button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--header-text);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--transition-smooth);
  padding: 0;
  flex-shrink: 0;
  margin-left: 12px;
}

.theme-toggle:hover {
  background-color: var(--muted);
  border-color: var(--orange);
  transform: scale(1.05);
}

.theme-toggle .sun-icon {
  display: none;
}
.theme-toggle .moon-icon {
  display: block;
}

body.dark-theme .theme-toggle .sun-icon {
  display: block;
}
body.dark-theme .theme-toggle .moon-icon {
  display: none;
}

/* Force dark theme adjustments on body/html */
body.dark-theme {
  background-color: var(--white);
  color: var(--text);
}

body.dark-theme .site-header {
  border-bottom-color: var(--border) !important;
}

body.dark-theme .main-nav a {
  color: var(--text) !important;
}

body.dark-theme .main-nav a:hover,
body.dark-theme .main-nav a.active {
  color: var(--orange) !important;
}

body.dark-theme .btn.secondary {
  color: var(--text);
  border-color: var(--border);
}

body.dark-theme .btn.secondary:hover {
  background: var(--muted);
}

/* Accessibility Typography Overrides for Dark Mode */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme strong,
body.dark-theme label,
body.dark-theme .lead-form label,
body.dark-theme .form-step h3 {
  color: var(--text) !important;
}

body.dark-theme .lead-form input,
body.dark-theme .lead-form select,
body.dark-theme .lead-form textarea {
  color: var(--text) !important;
  background-color: var(--input-bg) !important;
  border-color: var(--border) !important;
}

/* Dual Logo Support (Pure CSS Theme Swapping) */
.brand-logo.light-logo {
  display: block;
}

.brand-logo.dark-logo {
  display: none;
}

body.dark-theme .brand-logo.light-logo {
  display: none;
}

body.dark-theme .brand-logo.dark-logo {
  display: block;
}

/* ==========================================================================
   Header Actions & Unified Dropdown Language Switcher
   ========================================================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Sits next to hamburger menu on mobile */
@media (max-width: 920px) {
  .header-actions {
    order: 2;
    margin-left: auto;
  }
  
  .nav-toggle {
    order: 3;
    margin-left: 10px;
  }
}

/* Theme toggle inside actions needs no custom margin */
.header-actions .theme-toggle {
  margin-left: 0 !important;
}

/* Dropdown Capsule wrapper */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s var(--transition-smooth);
}

.lang-dropdown-btn:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
  background: var(--muted);
}

.lang-dropdown-btn .arrow-down {
  font-size: 0.7rem;
  color: var(--soft);
  transition: transform 0.3s;
}

.lang-dropdown.open .lang-dropdown-btn .arrow-down {
  transform: rotate(180deg);
}

/* Dropdown Menu Overlay */
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 
    0 10px 25px -5px rgba(15, 37, 64, 0.1),
    0 8px 16px -6px rgba(15, 37, 64, 0.05);
  width: 170px;
  z-index: 100;
  overflow: hidden;
  padding: 6px;
  animation: dropdown-fade-in 0.25s var(--transition-smooth);
}

.lang-dropdown.open .lang-dropdown-menu {
  display: block;
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown Item styles */
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text) !important;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.25s;
  cursor: pointer;
}

.lang-dropdown-item:hover {
  background: var(--muted);
  color: var(--orange) !important;
}

.lang-dropdown-item.active {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #007aff !important;
}

body.dark-theme .lang-dropdown-item.active {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #3b82f6 !important;
}

.lang-dropdown-item .check-mark {
  margin-left: auto;
  font-weight: 900;
  font-size: 0.88rem;
  display: none;
}

.lang-dropdown-item.active .check-mark {
  display: inline-block;
}

.lang-dropdown-item .flag {
  font-size: 1.1rem;
}

/* ==========================================================================
   Premium Success Card and Micro-spinner
   ========================================================================== */

/* Button spinner */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form success card with premium aesthetics */
.form-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 
    0 15px 35px -5px rgba(16, 185, 129, 0.05),
    0 10px 20px -6px rgba(0, 0, 0, 0.02);
  min-height: 320px;
}

body.dark-theme .form-success-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(16, 185, 129, 0.3);
}

.form-success-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-success-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--soft);
  max-width: 440px;
  margin: 0;
}

body.dark-theme .form-success-card p {
  color: #94a3b8;
}

/* SVG Animated Checkmark styling */
.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

body.dark-theme .success-icon-wrapper {
  background: rgba(16, 185, 129, 0.12);
}

.checkmark-svg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 4;
  stroke: #10b981;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #10b981;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 4;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px rgba(16, 185, 129, 0.05);
  }
}

/* Error message notice styles */
.form-error-msg {
  display: none;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.5;
  animation: shake 0.5s ease-in-out;
}

body.dark-theme .form-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Simple fade in utility class */
.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   Premium Glassmorphic Success Modal Overlay
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 24px;
  padding: 44px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 
    0 20px 40px -15px rgba(15, 23, 42, 0.15),
    0 15px 25px -10px rgba(16, 185, 129, 0.05);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.dark-theme .modal-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 24px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--soft);
  margin-bottom: 28px;
  margin-top: 0;
}

body.dark-theme .modal-card p {
  color: #94a3b8;
}

.modal-close-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 99px;
  padding: 12px 40px;
  font-weight: 750;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
  transition: all 0.3s;
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

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