/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #14b8a6;
  --primary-dark: #0d9488;
  --primary-light: #5eead4;
  --secondary-color: #64748b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --gradient-start: #14b8a6;
  --gradient-end: #0d9488;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  /* Fixed header: utility strip + main nav (used for hero offset & mobile menu) */
  --navbar-stack-height: 120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll on mobile */
img,
video,
svg {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  :root {
    --navbar-stack-height: 112px;
  }

  .container {
    padding: 0 16px;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-utility {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
}

.nav-utility-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 0;
}

.nav-contact {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-contact-item:hover {
  color: var(--primary-color);
}

.nav-contact-item + .nav-contact-item {
  border-left: 1px solid var(--border-color);
  padding-left: 1rem;
  margin-left: 0.15rem;
}

.nav-contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.9;
}

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

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  list-style: none;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  padding-left: 1.75rem;
}

.dropdown-menu a .ai-copy-mark {
  font-size: 0.68em;
  vertical-align: 0.1em;
  margin-right: 0.08em;
}

button.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  color: inherit;
  padding: 0;
  font-family: inherit;
}

.nav-mega .dropdown-menu {
  min-width: 440px;
  padding: 1.25rem 1.5rem;
  left: 0;
  transform: none;
  text-align: left;
}

.nav-mega--narrow .dropdown-menu {
  min-width: 220px;
}

.nav-mega-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.5rem;
}

.nav-mega-inner--single {
  grid-template-columns: 1fr;
}

.nav-mega-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin: 0 0 0.375rem;
}

.nav-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mega-list li {
  margin: 0;
}

.nav-mega-list a {
  display: block;
  padding: 0.45rem 0;
  border-radius: 6px;
}

.nav-mega-list a:hover {
  padding-left: 0.35rem;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Button Component */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Blog post navigation button - ensure white text */
.blog-post-container ~ * .nav-actions .btn-primary-nav,
body:has(.blog-post-container) .nav-actions .btn-primary-nav,
.nav-actions .btn-primary-nav,
.nav-actions a.btn-primary-nav,
a.btn.btn-primary-nav {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  ) !important;
  color: #ffffff !important;
}

.nav-actions .btn-primary-nav:hover,
.nav-actions a.btn-primary-nav:hover,
a.btn.btn-primary-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  ) !important;
  color: #ffffff !important;
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
  color: var(--primary-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-stack-height);
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.9),
    rgba(13, 148, 136, 0.8)
  );
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.3),
    rgba(13, 148, 136, 0.2)
  );
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s both;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-lede {
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 auto 2rem;
  opacity: 0.93;
  animation: fadeInUp 1s ease 0.3s both;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

/* Hero section buttons override */
.hero .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.hero .btn-primary {
  background: white;
  color: var(--primary-dark) !important;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.hero .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.hero .btn-secondary:hover {
  background: white;
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-light);
}

/* About page (multi-section layout, not blog) */
.about-prose {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-prose p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.about-prose a:not(.btn):not(.btn-primary):not(.btn-secondary) {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-prose a:not(.btn):not(.btn-primary):not(.btn-secondary):hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* About page: simple title, alternating image + text */
.about-page-top {
  padding: calc(var(--navbar-stack-height) + 2rem) 0 2rem;
  text-align: center;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.about-page-top .container {
  max-width: 56rem;
}

.about-page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-split-section {
  padding: 4rem 0;
}

.about-split-section--tinted {
  background: var(--bg-light);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.about-split--media-right .about-split__media {
  order: 2;
}

.about-split--media-right .about-split__text {
  order: 1;
}

.about-split__media {
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  background: var(--bg-light);
}

.about-split__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  vertical-align: middle;
}

.about-split__text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.about-split__text h2.about-split__lead {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-split--media-right .about-split__media,
  .about-split--media-left .about-split__media {
    order: 1;
  }

  .about-split--media-right .about-split__text,
  .about-split--media-left .about-split__text {
    order: 2;
  }

  .about-split__media,
  .about-split__media img {
    min-height: 220px;
  }
}

/* Solutions Section */
.solutions {
  background: var(--bg-light);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.solution-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.solution-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
}

.solution-icon svg {
  width: 100%;
  height: 100%;
}

.solution-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.solution-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.solution-card-automates {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.solution-card-automates li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.45;
}

.solution-card-automates li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* Events Section */
.events-content,
.workflows-content,
.assets-content,
.ai-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.events-text h3,
.workflows-text h3,
.assets-text h3,
.ai-text h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.events-text p,
.workflows-text p,
.assets-text p,
.ai-text p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.video-placeholder {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  border-radius: 12px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.video-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.video-placeholder svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.video-placeholder p {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Workflows Section */
.workflows {
  background: var(--bg-light);
}

.artemis-ai {
  background: var(--bg-light);
}

/* Plans Section */
.plans-comparison {
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-category {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.category-header {
  background: var(--bg-light);
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.category-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.plan-badge {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.category-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.plan-features-column {
  padding: 2rem;
}

.plan-features-column:first-child {
  border-right: none;
}

.pro-column {
  border: 2px solid var(--primary-color);
  background: rgba(20, 184, 166, 0.02);
  position: relative;
}

.column-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.column-header h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.plan-features-column:first-child .column-header h5 {
  color: var(--text-dark);
}

.plan-features-column:last-child .column-header h5 {
  color: var(--primary-color);
}

.column-header .plan-badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.875rem;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.plan-features li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
  line-height: 1.6;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.plan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2rem;
  border-top: 2px solid var(--border-color);
  background: var(--bg-light);
}

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

/* Blog Section */
.blog {
  background: var(--bg-white);
  /* Fixed navbar is taller than default section padding; offset + small gap below nav */
  padding-top: calc(var(--navbar-stack-height) + 2rem);
  scroll-margin-top: calc(var(--navbar-stack-height) + 0.5rem);
}

.blog-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.blog-carousel {
  overflow: hidden;
  position: relative;
}

.blog-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.blog-card {
  flex: 0 0 calc(33.333% - 1.333rem);
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-color)
  );
  color: white;
}

.blog-image-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.8;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
}

.blog-card-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.blog-card:hover .blog-card-link {
  transform: translateX(5px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 5px;
}

.carousel-dot:hover {
  background: var(--primary-light);
}

/* Blog Section Mobile */
@media (max-width: 768px) {
  .blog-carousel-wrapper {
    padding: 0 1rem;
  }

  .blog-card {
    flex: 0 0 calc(100% - 0rem);
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .blog-card-image {
    height: 180px;
  }

  .blog-card-content {
    padding: 1.25rem;
  }

  .blog-card h3 {
    font-size: 1.125rem;
  }

  .blog-card p {
    font-size: 0.875rem;
  }
}

/* Contact Section */
.contact {
  background: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
}

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

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-link span {
  font-size: 0.9375rem;
}

.trust-badges {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.soc2-badge {
  max-width: 150px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.soc2-badge:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-wrapper {
    padding: 0.75rem 0;
  }

  .logo img {
    width: 140px !important;
    padding-top: 8px !important;
  }

  .nav-menu,
  .nav-actions {
    display: none;
  }

  .nav-menu.active {
    position: fixed;
    left: 0;
    top: var(--navbar-stack-height);
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0 1rem;
    display: flex;
    z-index: 1000;
    max-height: calc(100vh - var(--navbar-stack-height) - 80px);
    overflow-y: auto;
  }

  .nav-menu.active li {
    margin: 0.5rem 0;
  }

  .nav-menu.active a {
    padding: 0.75rem 1rem;
    display: block;
    font-size: 1.125rem;
  }

  /* Mobile Dropdown Styles */
  .nav-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: center;
  }

  .dropdown-arrow {
    margin-left: auto;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: var(--bg-light);
    margin-top: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
    pointer-events: all;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 500px;
    padding: 0.5rem 0;
  }

  .dropdown-menu a {
    padding: 0.625rem 2rem;
    font-size: 1rem;
  }

  .dropdown-menu a:hover {
    padding-left: 2.5rem;
  }

  .nav-actions.active {
    position: fixed;
    left: 0;
    top: auto;
    bottom: 0;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 1rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 1rem;
    z-index: 999;
    border-top: 1px solid var(--border-color);
  }

  .nav-actions.active .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .nav-utility-inner {
    justify-content: center;
  }

  .nav-contact {
    justify-content: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .nav-contact-item + .nav-contact-item {
    padding-left: 0.75rem;
    margin-left: 0;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 90vh;
    padding-top: var(--navbar-stack-height);
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Section Spacing Mobile */
  section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .section-header p {
    font-size: 1.125rem;
  }

  /* Content Grids Mobile */
  .events-content,
  .workflows-content,
  .assets-content,
  .ai-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .events-text h3,
  .workflows-text h3,
  .assets-text h3,
  .ai-text h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .events-text p,
  .workflows-text p,
  .assets-text p,
  .ai-text p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .feature-list li {
    padding: 0.625rem 0;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
  }

  /* Solutions Grid Mobile */
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .solution-card {
    padding: 2rem 1.5rem;
  }

  .solution-card h3 {
    font-size: 1.25rem;
  }

  /* Contact Section Mobile */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  /* Plans Section Mobile */
  .category-content {
    grid-template-columns: 1fr;
  }

  .plan-features-column {
    padding: 1.5rem;
  }

  .plan-features-column:first-child {
    border-right: none;
    border-bottom: 2px solid var(--border-color);
  }

  .pro-column {
    border: 2px solid var(--primary-color);
    border-top: none;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .plan-features li {
    padding: 0.625rem 0;
    padding-left: 0;
    font-size: 0.9375rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .plan-features li::before {
    position: static;
    flex-shrink: 0;
  }

  .plan-actions {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }

  .footer-section {
    margin-bottom: 1rem;
  }

  .social-link {
    font-size: 0.875rem;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }

  .soc2-badge {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .logo img {
    width: 120px !important;
  }

  .hero {
    min-height: 85vh;
    padding-top: var(--navbar-stack-height);
  }

  .hero-content {
    padding: 1rem 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero .btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .events-text h3,
  .workflows-text h3,
  .assets-text h3,
  .ai-text h3 {
    font-size: 1.5rem;
  }

  .events-text p,
  .workflows-text p,
  .assets-text p,
  .ai-text p {
    font-size: 0.9375rem;
  }

  .solution-card {
    padding: 1.5rem 1.25rem;
  }

  .solution-card h3 {
    font-size: 1.125rem;
  }

  .solution-card p {
    font-size: 0.9375rem;
  }

  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    min-height: 44px; /* Better touch target */
  }

  .contact-form {
    padding: 1.5rem 1.25rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.875rem;
    font-size: 1rem; /* Prevents zoom on iOS */
    min-height: 44px; /* Better touch target */
  }

  .plan-features-column {
    padding: 1.25rem;
  }

  .category-header {
    padding: 1rem 1.25rem;
  }

  .plan-features li {
    font-size: 0.875rem;
    padding: 0.5rem 0;
    padding-left: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-content,
  .workflows-content,
  .assets-content,
  .ai-content {
    gap: 3rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-menu a,
  .solution-card {
    -webkit-tap-highlight-color: rgba(20, 184, 166, 0.2);
  }

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

  /* Better touch targets */
  .hamburger {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Blog Post Styles */
.blog-post-container {
  padding-top: calc(var(--navbar-stack-height) + 1.5rem);
  padding-bottom: 5rem;
  background: var(--bg-light);
  min-height: 100vh;
}

.blog-post-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-post-article {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.blog-post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-post-date {
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
  line-height: 1.2;
}

.blog-post-content.blog-post-content--loading {
  min-height: 14rem;
  pointer-events: none;
}

.blog-post-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-post-skeleton-line {
  height: 0.9rem;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--border-color) 0%,
    var(--bg-light) 48%,
    var(--border-color) 100%
  );
  background-size: 220% 100%;
  animation: blog-skeleton-shimmer 1.15s ease-in-out infinite;
}

.blog-post-skeleton-line--short {
  width: 72%;
}

.blog-post-skeleton-line--heading {
  height: 1.65rem;
  width: 88%;
  margin-bottom: 0.35rem;
}

@keyframes blog-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-post-skeleton-line {
    animation: none;
    background: var(--border-color);
  }
}

.blog-post-load-error {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-dark);
}

.blog-post-load-error h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.blog-post-content {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 1.125rem;
}

.blog-post-content p {
  margin: 0 0 1.5rem;
}

.blog-post-content p:last-child {
  margin-bottom: 0;
}

.blog-post-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  line-height: 1.3;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  line-height: 1.4;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.75rem;
  list-style-position: outside;
}

.blog-post-content ul {
  list-style-type: disc;
}

.blog-post-content ol {
  list-style-type: decimal;
}

.blog-post-content li {
  margin: 0 0 0.75rem;
  line-height: 1.7;
  display: list-item;
}

.blog-post-content li::marker {
  color: var(--text-light);
  font-weight: 600;
}

.blog-post-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.blog-post-content u {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.blog-post-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.25rem 0;
  height: 0;
  background: none;
}

.blog-post-content blockquote {
  margin: 1.25rem 0 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--border-color);
  color: var(--text-light);
}

.blog-post-content img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin: 2rem 0;
  display: block;
  box-shadow: var(--shadow-md);
}

.blog-post-content
  a:not(.btn):not(.btn-primary):not(.btn-primary-nav):not(.btn-secondary) {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.blog-post-content
  a:not(.btn):not(.btn-primary):not(.btn-primary-nav):not(
    .btn-secondary
  ):hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.blog-post-content .btn-primary,
.blog-post-content .btn-primary-nav {
  color: #ffffff !important;
}

.blog-post-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

@media (max-width: 768px) {
  .blog-post-container {
    padding-top: calc(var(--navbar-stack-height) + 1rem);
  }

  .blog-post-wrapper {
    padding: 0 16px;
  }

  .blog-post-article {
    padding: 2rem 1.5rem;
  }

  .blog-post-title {
    font-size: 2rem;
  }

  .blog-post-content {
    font-size: 1rem;
  }

  .blog-post-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }

  .blog-post-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
}

/* Outcome lift sections (Benchmark-style IA, Artemis styling) */
.outcome-lift-anchor {
  scroll-margin-top: calc(var(--navbar-stack-height) + 0.5rem);
}

.outcome-lift-band {
  padding: 3.25rem 0;
}

.outcome-lift-band .section-header {
  margin-bottom: 2rem;
}

.outcome-lift-band .section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Leading © on AI layers heading: subdued vs title weight */
.ai-copy-mark {
  font-size: 0.42em;
  font-weight: 500;
  opacity: 0.5;
  vertical-align: 0.15em;
  margin-right: 0.12em;
  letter-spacing: 0;
}

.capability-table tbody th .ai-copy-mark {
  font-size: 0.7em;
  vertical-align: 0.12em;
}

/* Solutions grid card title (h3 ~1.5rem): © proportional to card headline */
.solution-card h3 .ai-copy-mark {
  font-size: 0.48em;
  vertical-align: 0.22em;
}

/* Inline © before “Artemis AI” in body copy */
.ai-copy-mark--inline {
  font-size: 0.72em;
  vertical-align: 0.08em;
  margin-right: 0.06em;
}

.outcome-lift-band .section-header p {
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.outcome-lift--tint {
  background: var(--bg-light);
}

/* Homepage: enforce alternating grey / white bands below the hero */
.page-home .solutions {
  background: var(--bg-white);
}

.page-home #customer-voice.outcome-lift--tint {
  background: var(--bg-light);
}

.page-home #ai-layers.outcome-lift--tint {
  background: var(--bg-white);
}

.page-home #outcomes-roi.outcome-lift--tint {
  background: var(--bg-light);
}

.page-home section#blog.blog {
  background: var(--bg-white);
  /* Match .outcome-lift-band; skip carousel-era navbar stack on mid-page teaser */
  padding: 3.25rem 0;
}

.page-home .contact {
  background: var(--bg-light);
}

.outcome-lift-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.outcome-lift-cta--center {
  margin-top: 2.5rem;
}

.tier-grid {
  text-align: left;
}

.tier-card {
  background: var(--bg-white);
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--primary-color);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.tier-card .solution-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
}

.tier-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.tier-card-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 0.65rem;
}

.tier-card p:not(.tier-card-role) {
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
  flex-grow: 0;
}

.tier-enable-list {
  margin-bottom: 0;
  flex-grow: 1;
}

/* Preserve left inset for ✓ bullets; do not use padding shorthand that clears padding-left */
.tier-enable-list li {
  font-size: 0.875rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  padding-right: 0;
  padding-left: 1.85rem;
  position: relative;
}

.tier-enable-list li::before {
  left: 0.15rem;
}

.capability-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: var(--bg-white);
}

.capability-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.capability-table thead {
  background: linear-gradient(
    180deg,
    rgba(20, 184, 166, 0.08),
    var(--bg-light)
  );
}

.capability-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.65);
}

.capability-table th,
.capability-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.capability-table thead th {
  font-weight: 600;
  color: var(--text-dark);
}

.capability-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.capability-table tbody tr:last-child th,
.capability-table tbody tr:last-child td {
  border-bottom: none;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.before-after-col {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.before-after-col h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.before-after-col--before h3 {
  color: var(--secondary-color);
}

.before-after-col--after h3 {
  color: var(--primary-dark);
}

.before-after-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.before-after-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--text-dark);
  line-height: 1.45;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.before-after-list li:last-child {
  border-bottom: none;
}

.before-after-col--before .before-after-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 700;
}

.before-after-list--after li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.roi-disclaimer {
  font-size: 1rem !important;
  color: var(--text-light) !important;
  max-width: 42rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.roi-card {
  background: var(--bg-white);
  padding: 1.35rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary-light);
}

.roi-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.roi-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.proof-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.proof-card-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.proof-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.proof-card p:last-child {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.faq-section .section-header {
  margin-bottom: 1.75rem;
}

.faq-list {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-dark);
  list-style: none;
  position: relative;
  padding-right: 2rem;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

.faq-item p {
  padding: 0 0 1rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .hero-lede {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .capability-table {
    font-size: 0.875rem;
  }

  .capability-table th,
  .capability-table td {
    padding: 0.75rem;
  }
}

/* Subpages (platform, blog index, contact, faq) */
.site-subpage .contact > .container > .section-header {
  display: none;
}

.page-hero {
  padding: calc(var(--navbar-stack-height) + 2rem) 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
}

.page-hero--blog {
  padding-bottom: 3rem;
}

.page-hero-eyebrow {
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
  color: var(--text-light);
}

.page-hero-eyebrow a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.page-hero-eyebrow a:hover {
  text-decoration: underline;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--text-dark);
  font-weight: 700;
}

.page-hero-lead {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 40rem;
  margin: 0;
  line-height: 1.6;
}

.page-main {
  padding-bottom: 4rem;
}

.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.blog-teaser-grid .blog-card {
  height: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  margin: 0;
  background: var(--bg-white);
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.65rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.testimonial-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.14);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}

.testimonial-role {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.testimonial-org {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-light);
  margin: 0 0 1.1rem;
}

.testimonial-quote {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}

.testimonial-quote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  font-style: normal;
}

.blog-teaser-cta {
  text-align: center;
  margin-top: 2rem;
}

.blog-index-main {
  padding-top: 2.5rem;
}

.blog-index-featured {
  margin-bottom: 2.5rem;
}

.blog-index-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.blog-index-featured-inner > a {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.blog-index-featured-media {
  min-height: 240px;
  background: var(--bg-light) center / cover no-repeat;
}

.blog-index-featured-text {
  padding: 2rem 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-index-featured-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.blog-index-featured-title {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-dark);
}

.blog-index-featured-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.blog-index-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-index-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-index-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.blog-index-card-image {
  aspect-ratio: 16 / 10;
  background: var(--bg-light) center / cover no-repeat;
}

.blog-index-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.blog-index-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.blog-index-card-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.blog-index-card-title {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-dark);
}

.blog-index-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-index-empty,
.blog-index-error {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .blog-index-featured-inner {
    grid-template-columns: 1fr;
  }

  .blog-index-featured-text {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-mega .dropdown-menu {
    min-width: unset;
    width: 100%;
  }

  .nav-mega-inner {
    grid-template-columns: 1fr;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 880px;
  }
}
