/* ==========================================================================
   components.css - Reusable component styles
   Source of truth: WEBSITE-SPEC.md Section 3.4
   Visual reference: _reference/mockup-g2-brand-colors.html
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-btn);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  padding: 13px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

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

/* Primary: gradient blue-to-cyan */
.btn-primary {
  background: var(--gradient-primary-btn);
  color: var(--white-1);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Secondary: transparent with border */
.btn-secondary {
  background: transparent;
  color: var(--white-1);
  border: 2px solid var(--border-card);
}

.btn-secondary:hover {
  border-color: var(--white-3);
  color: var(--white-1);
}

/* White solid button (for dark backgrounds like hero) */
.btn-white {
  background: #FFFFFF;
  color: var(--bg-primary);
}

.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Ghost button (for dark backgrounds) */
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white-1);
}

/* Link-style button */
.btn-link {
  background: none;
  color: var(--blue-4);
  padding: 0;
  font-size: var(--text-btn);
  font-weight: 700;
  border: none;
}

.btn-link::after {
  content: ' \2192';
}

.btn-link:hover {
  transform: none;
  opacity: 0.8;
}

/* Small button variant */
.btn-sm {
  font-size: var(--text-btn-sm);
  padding: 8px 20px;
}

/* ==========================================================================
   BADGES / CHIPS
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-badge-sm);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-3);
  background: rgba(31, 155, 229, 0.08);
  padding: 5px 14px;
  border-radius: var(--border-radius-pill);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  font-size: var(--text-badge);
  font-weight: 600;
  color: var(--blue-1);
  margin-bottom: 20px;
}

.badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==========================================================================
   CARDS
   ========================================================================== */

/* Solution card (per spec Section 3.4) */
.card {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--border-radius-md);
  padding: 30px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.06);
}

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

.card-centered .icon-container {
  margin: 0 auto 18px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: var(--text-body-sm);
  color: var(--white-2);
  line-height: 1.6;
}

/* Card grid layouts */
.card-grid {
  display: grid;
  gap: var(--space-card-gap);
}

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

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid-1 {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1023px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Industry card variant (colored top border) */
.card-industry {
  position: relative;
  overflow: hidden;
}

.card-industry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.card-industry.science::before {
  background: var(--gradient-science);
}

.card-industry.education::before {
  background: linear-gradient(90deg, #059669, var(--accent-education));
}

.card-industry.industry::before {
  background: linear-gradient(90deg, #EA580C, var(--accent-industry));
}

.card-industry .card-tag {
  font-size: var(--text-badge-sm);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-industry.science .card-tag { color: var(--blue-3); }
.card-industry.education .card-tag { color: var(--accent-education); }
.card-industry.industry .card-tag { color: var(--accent-industry); }

/* ==========================================================================
   ICON CONTAINERS
   ========================================================================== */

.icon-container {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background: rgba(240, 168, 72, 0.1);
  color: var(--warm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ==========================================================================
   CTA CONTAINER
   ========================================================================== */

.cta-container {
  background: var(--gradient-cta-bg);
  border: 2px solid var(--border-card);
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  margin: 0 auto;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-container h2 {
  position: relative;
  margin-bottom: 12px;
}

.cta-container p {
  position: relative;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative;
}

@media (max-width: 767px) {
  .cta-container {
    padding: 36px 24px;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  background: var(--bg-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-margin);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-card);
}

/* Logo */
.logo {
  font-family: var(--font-body);
  font-size: var(--text-logo);
  font-weight: 800;
  color: var(--white-1);
  text-decoration: none;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-bar {
  display: block;
  width: 16px;
  height: 3px;
  background: var(--blue-4);
  border-radius: 2px;
  margin-top: 3px;
}

/* Image-based logo */
.logo-img {
  display: block;
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: none;
}

.footer-logo-img {
  display: block;
  height: auto;
  max-width: 200px;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .logo-img {
    height: 32px;
    max-height: 32px;
  }

  .footer-logo-img {
    max-width: 180px;
  }
}

/* Desktop navigation */
.nav-desktop {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-desktop a {
  color: var(--white-3);
  text-decoration: none;
  font-size: var(--text-nav);
  font-weight: 600;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--white-1);
  text-decoration: underline;
  text-decoration-color: var(--warm-accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Nav CTA button */
.nav-cta {
  background: var(--gradient-primary-btn);
  color: var(--white-1) !important;
  padding: 8px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: var(--text-btn-sm);
}

.nav-cta:hover {
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

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

.nav-dropdown > a::after {
  content: ' \25BE';
  font-size: 10px;
  opacity: 0.5;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius-sm);
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: var(--text-nav);
  font-weight: 500;
  color: var(--white-2);
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white-1);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white-1);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-header);
  padding: 24px var(--page-margin);
  overflow-y: auto;
  z-index: 99;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--white-2);
  border-bottom: 1px solid var(--border-card);
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--white-1);
}

.nav-mobile .mobile-dropdown-items {
  display: none;
  padding-left: 16px;
}

.nav-mobile .mobile-dropdown-items.is-open {
  display: block;
}

.nav-mobile .mobile-dropdown-items a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-3);
}

.nav-mobile .mobile-cta {
  display: block;
  background: var(--gradient-primary-btn);
  color: var(--white-1);
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 15px;
  margin-top: 16px;
  border-bottom: none;
}

.nav-mobile .mobile-cta:hover {
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* ==========================================================================
   SECTION PATTERNS
   ========================================================================== */

.section {
  padding: 96px var(--page-margin);
}

/* Constrain all direct children to max-width while allowing full-width backgrounds.
   Feature sections are grids that constrain themselves, so exclude their children. */
.section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Feature sections are grids - constrain the section itself instead of children */
.section.feature-section {
  max-width: calc(var(--max-width) + var(--page-margin) * 2);
  margin-left: auto;
  margin-right: auto;
}

.section.feature-section > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .chip {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: var(--space-title-content);
}

.section-header p {
  font-size: var(--text-body);
  color: var(--white-3);
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .section {
    padding: 64px var(--page-margin);
  }
}

/* Hero section */
.hero {
  background: var(--bg-hero);
  color: var(--white-1);
  padding: 100px var(--page-margin) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero background video */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 40, 0.7);
}

/* Hero background effects (fallback when no video) */
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow-cyan {
  top: 20%;
  left: 30%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
}

.hero-glow-blue {
  bottom: -10%;
  right: 20%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero-glow-warm {
  top: 40%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240, 168, 72, 0.06) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  animation: heroFadeIn 10s ease-out forwards;
  opacity: 0;
}

@keyframes heroFadeIn {
  0%  { opacity: 0; transform: translateY(12px); }
  40% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}


.hero h1 {
  margin-bottom: 22px;
}

.hero p {
  font-size: var(--text-hero-sub);
  color: rgba(255, 255, 255, 0.5);
  max-width: 500px;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Hero tagline - below-video section */
.hero-tagline {
  padding-top: 48px;
  padding-bottom: 56px;
  text-align: center;
}

.hero-tagline .section-header p {
  font-size: var(--text-hero-sub);
  max-width: 540px;
  line-height: 1.7;
}

.hero-tagline-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 767px) {
  .hero {
    padding: 64px var(--page-margin) 56px;
    min-height: auto;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-tagline-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* Approach section */
.section-approach {
  background: var(--bg-approach);
}

/* Trust strip */
.trust-strip {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-card);
  padding: 28px var(--page-margin);
  text-align: center;
}

.trust-label {
  font-size: var(--text-badge-sm);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-4);
  margin-bottom: 20px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: -0.5px;
}

@media (max-width: 767px) {
  .trust-logos {
    gap: 24px;
  }
}

/* Feature sections (alternating layout) */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-section.reverse {
  direction: rtl;
}

.feature-section.reverse > * {
  direction: ltr;
}

.feature-text .chip {
  margin-bottom: 14px;
}

.feature-text h2 {
  font-size: 34px;
  margin-bottom: 14px;
}

.feature-text p {
  font-size: var(--text-body-sm);
  color: var(--white-2);
}

.feature-btns {
  display: flex;
  gap: 12px;
}

.feature-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius-md);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .feature-section {
    grid-template-columns: 1fr;
  }

  .feature-section.reverse {
    direction: ltr;
  }

  .feature-visual {
    height: 280px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-card);
  padding: 48px var(--page-margin);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  font-size: var(--text-footer);
  color: var(--white-3);
  max-width: 480px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-social a {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-social a:hover {
  color: var(--white-1);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-footer);
  font-weight: 700;
  color: var(--white-1);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: var(--text-footer);
  color: var(--white-3);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white-1);
}

.footer-external {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
}

.footer-external a {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-external a:hover {
  color: var(--blue-3);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-card);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--white-3);
}

.footer-bottom a {
  color: var(--white-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--white-1);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--text-footer);
  font-weight: 600;
  color: var(--white-2);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: var(--text-body-sm);
  color: var(--white-1);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue-4);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--white-4);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--white-1);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--blue-1);
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--white-3);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--warm-accent);
}

.faq-item.is-open .faq-question {
  color: var(--warm-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: var(--text-body-sm);
  color: var(--white-2);
  line-height: 1.7;
}

/* ==========================================================================
   CODE BLOCK (SDK install pattern from mockup)
   ========================================================================== */

.code-block {
  display: inline-block;
  background: var(--bg-primary);
  color: var(--blue-1);
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-code);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-card);
}

/* ==========================================================================
   TESTIMONIAL
   ========================================================================== */

.testimonial-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.testimonial-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 64px;
  font-style: normal;
  color: var(--warm-accent);
  opacity: 0.4;
  line-height: 1;
  display: block;
  margin-bottom: -12px;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.testimonial-role {
  font-size: var(--text-footer);
  color: var(--white-3);
}

/* ==========================================================================
   CONTENT BLOCK - Narrative sections with visual structure
   Reusable pattern for text-forward sections across all pages.
   Replaces plain "centered paragraph dump" with structured layout:
   accent bar, chip label, optional highlight callout.
   ========================================================================== */

.content-block {
  padding: 96px var(--page-margin);
}

.content-block--alt {
  background: var(--bg-approach);
}

.content-block-inner {
  max-width: 780px;
  margin: 0 auto;
  border-left: 3px solid;
  border-image: var(--gradient-primary-btn) 1;
  padding-left: 40px;
}

.content-block-inner .chip {
  margin-bottom: 14px;
}

.content-block-inner h2 {
  margin-bottom: 20px;
}

.content-block-inner p {
  color: var(--white-2);
  margin-bottom: 20px;
  line-height: 1.7;
}

.content-block-inner p:last-child,
.content-block-inner .content-highlight:last-child {
  margin-bottom: 0;
}

/* Highlight callout - pulls out a key stat or impactful statement */
.content-highlight {
  font-size: 20px;
  font-weight: 600;
  color: var(--white-1);
  line-height: 1.55;
  padding: 20px 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  margin-top: 28px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .content-block {
    padding: 64px var(--page-margin);
  }

  .content-block-inner {
    padding-left: 24px;
  }

  .content-highlight {
    font-size: 18px;
  }
}

/* ==========================================================================
   THEME OVERRIDES - Light theme component fixes
   Overrides for hardcoded rgba values that don't use custom properties.
   These are temporary while exploring theme directions.
   ========================================================================== */

/* --- Shared overrides for both light themes --- */

/* Ghost button: dark text instead of white */
[data-theme="clean"] .btn-ghost,
[data-theme="warm"] .btn-ghost {
  color: rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="clean"] .btn-ghost:hover,
[data-theme="warm"] .btn-ghost:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: rgba(0, 0, 0, 0.9);
}

/* White button inverts for light backgrounds */
[data-theme="clean"] .btn-white,
[data-theme="warm"] .btn-white {
  background: #0F172A;
  color: #FFFFFF;
}
[data-theme="clean"] .btn-white:hover,
[data-theme="warm"] .btn-white:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Primary button text stays white on gradient */
[data-theme="clean"] .btn-primary,
[data-theme="warm"] .btn-primary {
  color: #FFFFFF;
}

/* Badge */
[data-theme="clean"] .badge,
[data-theme="warm"] .badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Nav CTA stays white text on gradient */
[data-theme="clean"] .nav-cta,
[data-theme="warm"] .nav-cta {
  color: #FFFFFF !important;
}

/* Dropdown shadow */
[data-theme="clean"] .dropdown-menu,
[data-theme="warm"] .dropdown-menu {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
[data-theme="clean"] .dropdown-menu a:hover,
[data-theme="warm"] .dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Hero video overlay lighter */
[data-theme="clean"] .hero-video::after,
[data-theme="warm"] .hero-video::after {
  background: rgba(255, 255, 255, 0.75);
}

/* Hero subtitle */
[data-theme="clean"] .hero p,
[data-theme="warm"] .hero p {
  color: rgba(0, 0, 0, 0.5);
}

/* Trust strip logos */
[data-theme="clean"] .trust-logo,
[data-theme="warm"] .trust-logo {
  color: rgba(0, 0, 0, 0.25);
}

/* Testimonial */
[data-theme="clean"] .testimonial-quote,
[data-theme="warm"] .testimonial-quote {
  color: rgba(0, 0, 0, 0.7);
}

/* CTA container text */
[data-theme="clean"] .cta-container p,
[data-theme="warm"] .cta-container p {
  color: rgba(0, 0, 0, 0.5);
}

/* Grid lines on hero/CTA */
[data-theme="clean"] .hero-grid,
[data-theme="clean"] .testimonial-section::before,
[data-theme="clean"] .cta-container::before,
[data-theme="warm"] .hero-grid,
[data-theme="warm"] .testimonial-section::before,
[data-theme="warm"] .cta-container::before {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Feature visual grid overlay */
[data-theme="clean"] .feature-visual::before,
[data-theme="warm"] .feature-visual::before {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Hero glows - subtle on light */
[data-theme="clean"] .hero-glow-cyan,
[data-theme="warm"] .hero-glow-cyan {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}
[data-theme="clean"] .hero-glow-blue,
[data-theme="warm"] .hero-glow-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}
[data-theme="clean"] .hero-glow-warm,
[data-theme="warm"] .hero-glow-warm {
  background: radial-gradient(circle, rgba(240, 168, 72, 0.04) 0%, transparent 50%);
}

/* Secondary button */
[data-theme="clean"] .btn-secondary,
[data-theme="warm"] .btn-secondary {
  color: var(--white-1);
  border-color: var(--border-card);
}

/* ==========================================================================
   Site Forms — custom HTML forms that submit to HubSpot API
   ========================================================================== */

.site-form {
  max-width: 500px;
}

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

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  color: #CBD5E1;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-field .required {
  color: #EF4444;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #F1F5F9;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: #3B82F6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #64748B;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: #EF4444;
}

.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ADE80;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

.site-form .btn-primary {
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.site-form .btn-primary:hover {
  opacity: 0.9;
}

.site-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .site-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Beta form placeholder */
.form-placeholder {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--border-card);
  border-radius: 12px;
  color: var(--white-3);
}

.form-placeholder a {
  color: var(--blue-3);
}
