/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

:root {
  /* Default system theme (Dark as default) */
  --bg-primary: #0b0b0a;
  --bg-secondary: #121210;
  --bg-tertiary: #1b1b19;
  --text-primary: #f5f5f3;
  --text-secondary: #8d8d86;
  --text-muted: #60605a;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --accent-color: #ffffff;
  --accent-hover: #eaeaea;
  --accent-rgb: 255, 255, 255;
  --glow-color: rgba(255, 255, 255, 0.02);
  --shadow-color: rgba(0, 0, 0, 0.8);
  --card-glow: 0 4px 30px rgba(0, 0, 0, 0.4);
  --pill-bg: rgba(26, 26, 24, 0.85);
  --pill-border: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(11, 11, 10, 0.8);
  --badge-bg: rgba(255, 255, 255, 0.04);
  --badge-text: #ffffff;
  --bezel-color: #2c2c2a;
}

/* Light Theme Override */
html[data-theme="light"] {
  --bg-primary: #fafaf9;
  --bg-secondary: #f3f3f0;
  --bg-tertiary: #e6e6e2;
  --text-primary: #111110;
  --text-secondary: #60605a;
  --text-muted: #8d8d86;
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --accent-color: #000000;
  --accent-hover: #1e1e1e;
  --accent-rgb: 0, 0, 0;
  --glow-color: rgba(0, 0, 0, 0.01);
  --shadow-color: rgba(0, 0, 0, 0.05);
  --card-glow: 0 4px 30px rgba(0, 0, 0, 0.03);
  --pill-bg: rgba(240, 240, 238, 0.85);
  --pill-border: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(250, 250, 249, 0.8);
  --badge-bg: rgba(0, 0, 0, 0.04);
  --badge-text: #111110;
  --bezel-color: #d1d1cf;
}

/* Base Body Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 80px; /* Space for floating control capsule */
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Preloader Spinner */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.spinner {
  width: 40px;
  height: 40px;
  position: relative;
}
.pre-bounce1, .pre-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--accent-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: bounce 2.0s infinite ease-in-out;
}
.pre-bounce2 {
  animation-delay: -1.0s;
}
@keyframes bounce {
  0%, 100% { transform: scale(0.0); }
  50% { transform: scale(1.0); }
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container a {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 32px;
  width: auto;
  filter: var(--logo-filter);
  transition: filter 0.3s ease;
}
/* By default, in dark theme, invert the logo a bit or filter it to make it white if it is dark, but the CloudBasix logo is actually colored. Let's see if we should adjust logo color in dark theme. In dark theme, standard black/dark text logo might be hard to read. Let's add logo transparency or styling. */

/* Navigation Menu */
.mainnav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.menu-item > a:hover {
  color: var(--text-primary);
}

/* Submenu / Dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-secondary);
  border: none;
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--card-glow);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 101;
  display: flex;
  flex-direction: column !important;
  gap: 4px !important;
}

.menu-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sub-menu li a {
  color: var(--text-secondary);
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
  white-space: nowrap;
}

.sub-menu li a:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

/* Nested Sub-submenu for Case Studies AWS/Azure */
.sub-menu .menu-item {
  position: relative;
}
.sub-menu .sub-menu {
  left: 100%;
  top: 0;
  transform: translateX(10px);
}
.sub-menu .menu-item:hover .sub-menu {
  transform: translateX(0);
}

/* Hero Section */
.hero-section {
  padding: 120px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--badge-bg);
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
}

.hero-badge i {
  color: #dd9933; /* Golden accent */
}

.hero-title-container {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-container h1 {
  font-size: inherit;
  line-height: inherit;
}

#rotate_word {
  color: #dd9933;
  position: relative;
  display: inline-block;
  min-width: 250px;
  text-align: left;
  border-right: 2px solid #dd9933;
  animation: blink-caret 0.75s step-end infinite;
  white-space: nowrap;
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #dd9933 }
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-primary) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--accent-color);
  transition: background-color 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
}

/* Hero Flow Diagram (No Bezel Box) */
.hero-diagram-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.3s ease;
}

.hero-diagram-container:hover {
  transform: translateY(-2px);
}

.hero-diagram {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: none !important;
}

/* Horizontal Sub Nav */
.home2-nav {
  position: sticky;
  top: 68px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 99;
  padding: 0 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.subnav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.subnav-link, .subnav-external-link, .home2-nav a, .home2-nav .nav-link {
  color: var(--text-secondary);
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 14px 0;
  position: relative;
  text-decoration: none !important;
}

.subnav-link:hover, .subnav-link.active, .subnav-external-link:hover, .home2-nav a:hover, .home2-nav a.active {
  color: var(--text-primary) !important;
}

.subnav-link::after, .subnav-external-link::after, .home2-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.subnav-link.active::after, .home2-nav a.active::after {
  transform: scaleX(1);
}

/* Layout Grid Sections */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Featured Customer Story Row */
.featured-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.featured-image-container {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

.featured-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: none;
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-tag {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #dd9933;
  font-weight: 600;
}

.featured-title {
  font-size: 32px;
  line-height: 1.2;
}

.featured-desc {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Grid Layout (3 Columns) */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--card-glow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.card-title {
  font-size: 20px;
  line-height: 1.3;
}

.card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: none;
  margin-top: 8px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 12px;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-list li i {
  color: #dd9933;
  font-size: 10px;
}

/* Video Containers */
.video-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 8px;
  border: none;
  overflow: hidden;
  background-color: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* S3 Data Lake integration block */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* POC Banner */
.poc-banner-section {
  padding: 60px 24px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(221, 153, 51, 0.08), transparent 60%);
}

.poc-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--card-glow);
}

.poc-title {
  font-size: 32px;
}

/* Case Studies Cards Row */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-study-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: none;
  transition: transform 0.3s ease;
}

.case-study-card:hover img {
  transform: scale(1.02);
}

.case-study-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Infinite scrolling customer logo marquee */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.marquee-container {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: marquee-scroll 35s linear infinite;
  align-items: center;
}

.marquee-track {
  display: flex;
  gap: 60px;
  align-items: center;
}

.customer-logo {
  height: 28px;
  width: auto;
  opacity: 0.45;
  transition: opacity 0.2s ease, filter 0.2s ease;
  filter: grayscale(1) brightness(var(--logo-brightness));
}

.customer-logo:hover {
  opacity: 0.9;
  filter: grayscale(0) brightness(1);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Testimonials section */
.testimonials-section {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.testimonials-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-card {
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--card-glow);
}

.stars-row {
  display: flex;
  gap: 4px;
}

.stars-row img {
  height: 16px;
  width: auto;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.testimonials-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 140px;
}

.rating-badge {
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.rating-badge img.logo-cloud {
  max-width: 140px;
  height: auto;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}

.faq-question i {
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Footer */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 30px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-secondary);
  font-size: 16px;
}

.footer-socials a:hover {
  color: var(--text-primary);
}

/* Floating Control Capsule */
.control-capsule {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: var(--pill-bg);
  border: 1px solid var(--pill-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 9999px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 9999px;
  padding: 2px;
  position: relative;
}

html[data-theme="dark"] .theme-switcher {
  background-color: rgba(255, 255, 255, 0.03);
}

.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
}

.theme-btn:hover {
  color: var(--text-primary);
}

.theme-btn.active {
  color: var(--accent-color);
  background-color: var(--bg-tertiary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Language Switcher */
.lang-switcher-container {
  position: relative;
  border-left: 1px solid var(--border-color);
  padding-left: 8px;
}

.lang-btn {
  background: none;
  border: 1.5px solid var(--text-primary);
  border-radius: 9999px;
  padding: 6px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  background-color: rgba(var(--accent-rgb), 0.04);
}

.lang-btn i.fa-chevron-up {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.lang-btn.open i.fa-chevron-up {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 14px;
  width: 180px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  z-index: 1001;
  animation: fly-up 0.2s ease;
}

@keyframes fly-up {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lang-dropdown.show {
  display: flex;
}

.lang-option {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.lang-option.selected {
  color: var(--text-primary);
  font-weight: 500;
}

.lang-option .fa-check {
  font-size: 11px;
  color: var(--accent-color);
  display: none;
}

.lang-option.selected .fa-check {
  display: block;
}

/* Utility Theme Variables for Specific Elements */
html[data-theme="dark"] {
  --logo-filter: invert(0);
  --logo-brightness: 1.5;
}

html[data-theme="light"] {
  --logo-filter: none;
  --logo-brightness: 0.8;
}

/* Responsiveness overrides */
@media (max-width: 991px) {
  .featured-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .grid-3col {
    grid-template-columns: 1fr 1fr;
  }
  .two-col-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .testimonials-section {
    grid-template-columns: 1fr;
  }
  .testimonials-right {
    position: static;
  }
  .case-studies-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .site-header {
    position: relative;
  }
  .header-wrap {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .mainnav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .subnav-wrap {
    gap: 16px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
  }
  .hero-title-container {
    font-size: 32px;
  }
  #rotate_word {
    min-width: 180px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto 40px;
  }
  .grid-3col {
    grid-template-columns: 1fr;
  }
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Light/Dark Image Toggles */
html[data-theme="dark"] .light-only {
  display: none !important;
}
html[data-theme="dark"] .dark-only {
  display: block !important;
}
html[data-theme="light"] .light-only {
  display: block !important;
}
html[data-theme="light"] .dark-only {
  display: none !important;
}

/* Hero diagrams grid (70/30 split) */
.hero-diagrams-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 767px) {
  .hero-diagrams-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* White header and light gray sub-nav bar in light theme */
html[data-theme="light"] .home2-nav {
  background-color: #e2e2e2 !important;
  background: #e2e2e2 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .site-header {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 380px;
  z-index: 1001;
  background-color: var(--pill-bg);
  border: 1px solid var(--pill-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.cookie-banner.hidden {
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner-text h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cookie-banner-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text p a {
  color: var(--text-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-cookie-decline {
  background: transparent;
  border: 1px solid var(--pill-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

html[data-theme="light"] .btn-cookie-decline:hover {
  background: rgba(0, 0, 0, 0.03);
}

.btn-cookie-accept {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.btn-cookie-accept:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Adjust banner for mobile screen sizes */
@media (max-width: 480px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 90px;
    max-width: calc(100% - 24px);
  }
}

/* API Documentation Styles */
.docs-container {
  display: flex;
  min-height: calc(100vh - 80px);
  margin-top: 80px;
  position: relative;
}

.docs-sidebar {
  width: 300px;
  border-right: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 24px;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
}

.docs-content {
  flex-grow: 1;
  padding: 40px 48px;
  max-width: 1000px;
  min-height: 100%;
  overflow-x: hidden;
}

.docs-search-container {
  position: relative;
  margin-bottom: 24px;
}

.docs-search-container i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

.docs-search-container input {
  width: 100%;
  padding: 10px 14px 10px 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.docs-search-container input:focus {
  border-color: var(--text-muted);
  outline: none;
}

.docs-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 24px 0 8px 0;
  letter-spacing: 0.05em;
}

.docs-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-menu-item {
  margin-bottom: 4px;
}

.docs-menu-item a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.docs-menu-item a:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.docs-menu-item.active a {
  background-color: var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  border-left: 2px solid var(--text-primary);
  border-radius: 0 6px 6px 0;
}

/* REST API Tables */
.restapi-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.restapi-table th, .restapi-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.restapi-table th {
  background-color: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

.restapi-table tr:last-child td {
  border-bottom: none;
}

.restapi-table td code {
  background-color: var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
}

/* Code blocks and copy button */
.docs-content pre {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  position: relative;
}

.docs-content pre code {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: var(--text-primary);
}

.copy-code-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.docs-content pre:hover .copy-code-btn {
  opacity: 1;
}

.copy-code-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Typography elements in docs */
.docs-content h1 {
  font-size: 32px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.docs-content h3 {
  font-size: 18px;
  margin: 28px 0 12px 0;
}

.docs-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.docs-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.docs-content li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .docs-container {
    flex-direction: column;
    margin-top: 80px;
  }
  
  .docs-sidebar {
    width: 100%;
    height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    top: 0;
  }
  
  .docs-content {
    padding: 24px 20px;
  }
}

/* Ensure scroll targets clear the fixed header */
h1[id], h2[id], h3[id], h4[id], [id].panel-widget-style, [id].provider-section {
  scroll-margin-top: 90px;
}
#products, #case-studies, #testimonials, #security, #faq {
  scroll-margin-top: 130px; /* Offset for both sticky header and subnav bar */
}

/* SiteOrigin Page Builder Layout Compatibility */
.panel-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
  width: 100%;
}

.panel-grid-cell {
  flex: 1 1 0px;
  min-width: 280px;
}

@media (max-width: 768px) {
  .panel-grid {
    flex-direction: column;
    gap: 20px;
  }
  .panel-grid-cell {
    width: 100%;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WordPress Image Alignment Classes */
.alignleft {
  float: left !important;
  margin: 6px 28px 24px 0 !important;
  max-width: 45%;
}
.alignright {
  float: right !important;
  margin: 6px 0 24px 28px !important;
  max-width: 45%;
}
.aligncenter {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 768px) {
  .alignleft, .alignright {
    float: none !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }
}



