/* ============================================
   BorealSense — Design System & Layout
   ============================================ */

:root {
  --forest-950: #0a1f14;
  --forest-900: #0f2e1e;
  --forest-800: #1a4d32;
  --forest-700: #236b44;
  --forest-600: #2d8656;
  --forest-500: #3a9e68;
  --forest-400: #5bb888;
  --forest-300: #8fd4ad;

  --earth-800: #3d2e1f;
  --earth-700: #5c4a35;
  --earth-600: #7a6348;
  --earth-500: #9a8268;
  --earth-400: #b8a48a;

  --cream-50: #faf8f4;
  --cream-100: #f3efe8;
  --cream-200: #e8e2d8;
  --cream-300: #d4ccc0;

  --text-primary: #1a2e22;
  --text-secondary: #4a5f52;
  --text-muted: #6b7f72;
  --text-on-dark: #f3efe8;
  --text-on-dark-muted: #b8cfc0;

  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Sans", "DM Sans", system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(10, 31, 20, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 31, 20, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 31, 20, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--forest-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--forest-500);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--forest-700);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Header ---- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 77, 50, 0.08);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  background: rgba(250, 248, 244, 0.96);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--forest-800);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo:hover {
  color: var(--forest-700);
}

.logo-mark {
  width: 32px;
  height: 32px;
  color: var(--forest-600);
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.nav-active {
  color: var(--forest-700) !important;
  background: rgba(45, 134, 86, 0.08);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover {
  color: var(--forest-700);
  background: rgba(45, 134, 86, 0.06);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.15rem !important;
  background: var(--forest-700) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
  background: var(--forest-600) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest-800);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--forest-700);
  color: white;
  border-color: var(--forest-700);
}

.btn-primary:hover {
  background: var(--forest-600);
  border-color: var(--forest-600);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(243, 239, 232, 0.35);
}

.btn-secondary:hover {
  background: rgba(243, 239, 232, 0.1);
  border-color: rgba(243, 239, 232, 0.55);
  color: white;
}

.btn-full {
  width: 100%;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: linear-gradient(165deg, var(--forest-950) 0%, var(--forest-900) 40%, var(--forest-800) 100%);
  color: var(--text-on-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("Boreal Chickadee.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(10, 31, 20, 0.82) 0%,
    rgba(15, 46, 30, 0.75) 50%,
    rgba(26, 77, 50, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem 6rem;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest-300);
  background: rgba(143, 212, 173, 0.12);
  border: 1px solid rgba(143, 212, 173, 0.25);
  border-radius: 100px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Sections ---- */

.section {
  padding-block: 5.5rem;
}

.section-alt {
  background: var(--cream-100);
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a4d32' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-header.align-left {
  text-align: left;
  margin-inline: 0;
  margin-bottom: 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-600);
  margin-bottom: 0.75rem;
}

.section-label-light {
  color: var(--forest-300);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- About ---- */

.about-content {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ---- Problem ---- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.problem-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.problem-card {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 77, 50, 0.08);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.problem-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--forest-600);
}

.problem-icon svg {
  width: 100%;
  height: 100%;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--forest-800);
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Solution ---- */

.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.solution-visual {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.solution-diagram {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 77, 50, 0.1);
  box-shadow: var(--shadow-lg);
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--cream-50);
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 77, 50, 0.1);
  width: 100%;
  max-width: 220px;
}

.diagram-node svg {
  width: 40px;
  height: 40px;
  color: var(--forest-600);
}

.diagram-node span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-800);
  text-align: center;
}

.diagram-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--forest-400), var(--forest-600));
}

.solution-forest-texture {
  position: absolute;
  inset: -20px;
  z-index: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 80%, rgba(45, 134, 86, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 77, 50, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.solution-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.solution-steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--forest-500);
  background: rgba(45, 134, 86, 0.1);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
}

.solution-steps h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-800);
  margin-bottom: 0.35rem;
}

.solution-steps p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Features ---- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 77, 50, 0.08);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 134, 86, 0.2);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  color: var(--forest-600);
  background: rgba(45, 134, 86, 0.08);
  border-radius: var(--radius-md);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-800);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Customers ---- */

.customers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.customer-card {
  padding: 2rem 1.75rem;
  text-align: center;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 77, 50, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.customer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.customer-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  color: var(--forest-600);
  background: linear-gradient(135deg, rgba(45, 134, 86, 0.1) 0%, rgba(26, 77, 50, 0.06) 100%);
  border-radius: 50%;
}

.customer-icon svg {
  width: 100%;
  height: 100%;
}

.customer-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--forest-800);
  margin-bottom: 0.5rem;
}

.customer-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Last two customer cards centered on wide screens */
.customers-grid .customer-card:nth-child(4) {
  grid-column: 1 / 2;
}

.customers-grid .customer-card:nth-child(5) {
  grid-column: 2 / 3;
}

@media (min-width: 769px) {
  .customers-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .customers-grid .customer-card:nth-child(1),
  .customers-grid .customer-card:nth-child(2),
  .customers-grid .customer-card:nth-child(3) {
    grid-column: span 2;
  }

  .customers-grid .customer-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .customers-grid .customer-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* ---- Trust ---- */

.section-trust {
  position: relative;
  background: var(--forest-900);
  color: var(--text-on-dark);
  overflow: hidden;
}

.trust-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 100%, rgba(45, 134, 86, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(91, 184, 136, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10 L55 30 L75 30 L60 42 L65 62 L50 50 L35 62 L40 42 L25 30 L45 30 Z' fill='%231a4d32' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.section-trust .section-header h2 {
  color: var(--text-on-dark);
}

.trust-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(143, 212, 173, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition);
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(143, 212, 173, 0.25);
}

.trust-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--forest-400);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.trust-card p {
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
}

/* ---- Contact ---- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--forest-800);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-details svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--forest-600);
}

.contact-form {
  padding: 2.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 77, 50, 0.1);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-800);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(45, 134, 86, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form-note.success {
  color: var(--forest-600);
}

.form-note.error {
  color: #b54a4a;
}

/* ---- Footer ---- */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--forest-950);
  color: var(--text-on-dark-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1.5rem 2rem;
  align-items: start;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-on-dark);
}

.footer-tagline {
  font-size: 0.9rem;
  margin-top: 0.35rem;
  color: var(--text-on-dark-muted);
}

.footer-contact {
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
}

.footer-contact a {
  color: var(--text-on-dark-muted);
}

.footer-contact a:hover {
  color: var(--forest-300);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

.footer-links a:hover {
  color: var(--forest-300);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(143, 212, 173, 0.1);
  font-size: 0.85rem;
  color: rgba(184, 207, 192, 0.6);
}

/* ---- Technology Page ---- */

.page-hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 3rem;
  background: var(--cream-100);
  border-bottom: 1px solid rgba(26, 77, 50, 0.08);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest-900);
  margin-bottom: 0.75rem;
}

.page-hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-split-reverse .tech-media {
  order: 2;
}

.tech-split-reverse .tech-content {
  order: 1;
}

.tech-media {
  margin: 0;
}

.tech-media img {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.tech-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--forest-800);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.tech-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.tech-content p:last-child {
  margin-bottom: 0;
}

.tech-cta {
  background: var(--forest-900);
  color: var(--text-on-dark);
  text-align: center;
}

.tech-cta-inner {
  max-width: 560px;
  margin-inline: auto;
}

.tech-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tech-cta p {
  color: var(--text-on-dark-muted);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.tech-cta .btn-primary:hover {
  color: white;
}

/* Technology section on the main page (stacked splits) */
#technology .tech-split {
  margin-top: 3.5rem;
}

/* ---- Investors ---- */

.investor-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin-inline: auto;
  padding: 2.5rem;
  background: white;
  border: 1px solid rgba(26, 77, 50, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.investor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.investor-logo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

.investor-text h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest-800);
  margin-bottom: 0.75rem;
}

.investor-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.investor-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---- Scroll Animations ---- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .fade-in:nth-child(1) { transition-delay: 0.1s; }
.hero .fade-in:nth-child(2) { transition-delay: 0.2s; }
.hero .fade-in:nth-child(3) { transition-delay: 0.3s; }
.hero .fade-in:nth-child(4) { transition-delay: 0.4s; }
.hero .fade-in:nth-child(5) { transition-delay: 0.5s; }

/* ---- Responsive ---- */

@media (max-width: 968px) {
  .solution-layout,
  .contact-layout,
  .tech-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tech-split-reverse .tech-media,
  .tech-split-reverse .tech-content {
    order: unset;
  }

  .solution-visual {
    position: static;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid-3 {
    grid-template-columns: 1fr;
  }

  .investor-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .investor-logo {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: 4rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 77, 50, 0.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
  }

  .problem-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .customers-grid {
    grid-template-columns: 1fr;
  }

  .customers-grid .customer-card:nth-child(4),
  .customers-grid .customer-card:nth-child(5) {
    grid-column: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .contact-form {
    padding: 1.75rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
