/* ========= DARK MODE THEME ========= */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --color-primary: #00b894;
  --color-primary-dark: #022335;
  --color-accent: #18e0a3;

  /* Dark surfaces */
  --color-bg: #050b11;
  --color-bg-soft: #07121f;
  --color-bg-card: #0d1b2a;

  /* Text */
  --color-text-main: #f5fbff;
  --color-text-muted: #97a4b5;

  /* Borders / shadows */
  --color-border-subtle: rgba(255,255,255,0.08);
  --shadow-soft: 0 18px 45px rgba(3, 19, 34, 0.45);

  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --nav-height: 64px;
  --container-width: 1120px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-main);
}

p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  scroll-margin-top: var(--nav-height);
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.section-intro {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Let intros in Use Cases + Services span the full container width */
#use-cases .section-intro,
#services .section-intro {
  max-width: none;
}

/* ========= Buttons ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
  background: transparent;
  color: var(--color-text-main);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #031019;
  box-shadow: 0 10px 30px rgba(0, 232, 163, 0.4);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #5cf0c4;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 232, 163, 0.55);
}

.btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--color-text-main);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-accent);
  background: rgba(24, 224, 163, 0.1);
}

.btn-small {
  padding: 0.25rem 1.1rem;
  margin-top: 3px;
  font-size: 0.82rem;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========= Header / Nav ========= */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 11, 17, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 52px;
  width: auto;
}

/* Theme-specific logo visibility */
.logo-light { display: none; }
.logo-dark { display: block; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: rgba(245,251,255,0.92);
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
  color: inherit;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* no underline on Book a Demo in the nav */
.nav-cta > a::after,
.nav-cta > a:hover::after,
.nav-cta > a:focus-visible::after {
  content: none;
}

.nav-cta { margin-left: 0.75rem; }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle-line {
  width: 22px;
  height: 2px;
  background: rgba(245,251,255,0.92);
  display: block;
  border-radius: 999px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle-line + .nav-toggle-line { margin-top: 5px; }

.nav-toggle.is-open .nav-toggle-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ========= Hero ========= */
#hero {
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: stretch;
  padding: 0;
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(2, 8, 19, 0.96), rgba(1, 50, 57, 0.9)),
    url("assets/website_cover_background.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-text-main);
}

#hero .hero-inner {
  min-height: calc(100svh - var(--nav-height));
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: flex;
}

#hero .hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 0.7rem;
}

.hero-title {
  font-size: clamp(2.4rem, 3vw + 1.6rem, 3.4rem);
  margin-bottom: 0.5rem;
}

.hero-title span { color: var(--color-accent); }

.hero-description-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-subtitle,
.hero-side-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.hero-subtitle { font-size: 0.96rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
  margin-bottom: 2.75rem;
}

.hero-meta {
  display: grid;
  gap: 1.4rem;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stat {
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(24, 224, 163, 0.2), rgba(7, 18, 32, 0.98));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 45px rgba(2, 9, 16, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
  align-items: center;
  text-align: center;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 224, 163, 0.9);
  box-shadow: 0 24px 60px rgba(1, 18, 30, 0.95);
  background:
    radial-gradient(circle at top left, rgba(24, 224, 163, 0.32), rgba(3, 14, 26, 0.98));
}

.hero-stat-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, #7fffd4, #00b894 50%, #022335 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.hero-stat-icon img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.hero-stat-value {
  font-size: clamp(1.25rem, 1.20vw + 0.90rem, 1.45rem);
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff;
}

.hero-video-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  transform: translateY(16px);
}

@media (max-width: 960px) {
  .hero-stat { padding: 1.4rem 1.5rem; }
  .hero-stat-icon { width: 68px; height: 68px; }
  .hero-stat-value { font-size: 1.7rem; }
}

@media (max-width: 600px) {
  .hero-stat-icon { width: 60px; height: 60px; }
  .hero-stat-value { font-size: 1.5rem; }
}

/* ===== HERO VIDEO CTA + MODAL ===== */
.btn-video {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
}

.btn-video::before {
  content: "▶";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  font-size: 0.7rem;
  margin-right: 0.45rem;
  line-height: 1.25;
  transform: translateY(-0.2px);
}

.video-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 10, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
}

.video-modal-backdrop.is-open { display: flex; }

.video-modal {
  max-width: 960px;
  width: 100%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: auto;
}

.video-modal-close:hover { background: rgba(0,0,0,0.85); }

.video-modal video,
.video-modal iframe {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== PRODUCT IMAGE CAROUSEL (INLINE) ===== */
.product-visual#pv-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.5rem auto 0;
  width: 100%;
}

.pv-image-wrap {
  flex: 1 1 auto;
  max-width: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: transparent;
}

.pv-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.pv-arrow {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.pv-arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--color-accent);
  border-right: 3px solid var(--color-accent);
  opacity: 0.95;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.55));
  display: block;
}

.pv-arrow-left::before { transform: rotate(-135deg); }
.pv-arrow-right::before { transform: rotate(45deg); }

.pv-arrow:hover::before {
  opacity: 1;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.7));
}

.pv-arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .product-visual#pv-carousel { width: 100%; }
  .pv-image-wrap { max-width: 100%; }
}

/* ===== PRODUCT IMAGE MODAL (LIGHTBOX) ===== */
.pv-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 10, 25, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 70;
}
.pv-modal-backdrop.is-open { display: flex; }

.pv-modal {
  position: relative;
  width: min(1400px, 96vw);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.pv-modal-content {
  position: relative;
  width: min(1200px, 92vw);
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

.pv-modal-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  background: transparent;
}

.pv-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.pv-modal-close:hover { background: rgba(0,0,0,0.85); }

.pv-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 6;
  font-size: 0;
}
.pv-modal-arrow::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--color-accent);
  border-right: 3px solid var(--color-accent);
  opacity: 0.95;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.75));
}
.pv-modal-arrow-left::before { transform: rotate(-135deg); }
.pv-modal-arrow-right::before { transform: rotate(45deg); }

.pv-modal-arrow-left { left: 14px; }
.pv-modal-arrow-right { right: 14px; }

@media (min-width: 900px) {
  .pv-modal-arrow-left { left: -5px; }
  .pv-modal-arrow-right { right: -35px; }
}

/* ========= Our Story ========= */
#story {
  background:
    radial-gradient(circle at top left, rgba(34, 139, 230, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 232, 163, 0.14), transparent 60%),
    var(--color-bg-soft);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: flex-start;
}

.story-timeline {
  margin-top: 3rem;
  border-left: none;
  padding-left: 0;
}

.story-cards-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.story-card {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: stretch;
  text-align: center;
  gap: 0.35rem;
  min-height: 180px;
  padding: 1.4rem 1.6rem;
  height: 100%;
}

/* Dark gradients for the timeline cards */
.story-cards-grid .story-card:nth-child(1) {
  background: linear-gradient(145deg, #071521 0%, #061d27 55%, rgba(24, 224, 163, 0.15) 100%);
  border-color: rgba(24, 224, 163, 0.25);
}
.story-cards-grid .story-card:nth-child(2) {
  background: linear-gradient(145deg, #071521 0%, #061d27 50%, rgba(24, 224, 163, 0.25) 100%);
  border-color: rgba(24, 224, 163, 0.3);
}
.story-cards-grid .story-card:nth-child(3) {
  background: linear-gradient(145deg, #071521 0%, #061d27 45%, rgba(24, 224, 163, 0.35) 100%);
  border-color: rgba(24, 224, 163, 0.4);
}
.story-cards-grid .story-card:nth-child(4) {
  background: linear-gradient(145deg, #071521 0%, #051c26 40%, rgba(24, 224, 163, 0.45) 100%);
  border-color: rgba(24, 224, 163, 0.5);
}

.story-card-year {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.story-card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding: 0 0.6rem 0.8rem;
}

.story-media-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(24, 224, 163, 0.35), rgba(2, 17, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.story-media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.story-media-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.story-media-list {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.story-media-list li + li { margin-top: 0.3rem; }

.story-media-caption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.story-media-badge {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-main);
  white-space: nowrap;
  background: transparent;
}

/* ========= Product ========= */
#product { background: #050b11; }

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: stretch;
}

.product-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.product-card ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
}

.product-card li + li { margin-top: 0.3rem; }

/* ========= Use Cases ========= */
#use-cases {
  background:
    radial-gradient(circle at top right, rgba(24, 224, 163, 0.23), transparent 55%),
    #050b11;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 18px 45px rgba(2, 9, 16, 0.65);
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 0.9rem;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 224, 163, 0.75);
  box-shadow: 0 24px 55px rgba(3, 29, 40, 0.85);
}

.card-image {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-main);
}

.card p { color: var(--color-text-muted); }

.card ul {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.card ul li + li { margin-top: 0.3rem; }

.card-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.78rem;
  color: rgba(240,253,255,0.6);
}

/* ===== USE CASES: MINI CAROUSELS (3x) ===== */
.card-image.is-carousel {
  border: none;
  overflow: visible;
}

.uc-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.uc-image-wrap {
  flex: 1 1 auto;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.uc-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.uc-carousel .pv-arrow {
  width: 34px;
  height: 34px;
}
.uc-carousel .pv-arrow::before {
  width: 10px;
  height: 10px;
  border-top-width: 3px;
  border-right-width: 3px;
}

/* ========= Services ========= */
#services { background: #050b11; }

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.services-layout > aside {
  margin-top: 0;
  align-self: center;
}

@media (max-width: 960px) {
  .services-layout > aside {
    align-self: stretch;
    margin-top: 1.5rem;
  }
}

.services-grid { display: grid; gap: 1.5rem; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem 1.7rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-card h3 {
  margin: 0;
  color: var(--color-text-main);
  font-size: 1.35rem;
  font-weight: 600;
}

.service-card-body {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 224, 163, 0.75);
  box-shadow: 0 24px 55px rgba(3, 29, 40, 0.85);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, #7fffd4, #00b894 45%, #022335 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.services-cta { margin-top: 2rem; }

.engage-card {
  background: radial-gradient(circle at top left, rgba(24, 224, 163, 0.35), rgba(2, 17, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-soft);
  color: var(--color-text-muted);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.engage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.engage-card-header h3 { margin: 0; }

/* ========= Contact ========= */
#contact {
  background:
    radial-gradient(circle at top left, rgba(0, 184, 148, 0.38), transparent 60%),
    #02070d;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-highlight {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-highlight strong { color: #ffffff; }

.contact-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-form {
  background: var(--color-bg-card);
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.form-row { margin-bottom: 1rem; }

.form-row label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--color-text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: rgba(3,10,19,0.9);
  color: var(--color-text-main);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(153, 169, 189, 0.9);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(0, 232, 163, 0.45);
  background: rgba(2, 13, 23, 0.96);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-helper {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.form-success {
  background: rgba(24, 224, 163, 0.1);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.form-success p {
  margin: 0;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.form-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid #ff6b7a;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.form-error p {
  margin: 0;
  color: #ff6b7a;
  font-weight: 600;
}

/* ========= Footer ========= */
footer {
  background: #01050a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem 0 2rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-brand strong {
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--color-text-main);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-accent); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}

.footer-contact a { color: var(--color-text-main); }

.footer-social-linkedin {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #0a66c2;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.footer-social-linkedin:hover,
.footer-social-linkedin:focus-visible {
  background: #0d7ff0;
  box-shadow: 0 0 0 1px rgba(13, 127, 240, 0.5);
  transform: translateY(-1px);
}

.footer-links-secondary { justify-content: center; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}

.footer-contact-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .footer-contact-row { justify-content: flex-start; }
}

/* ========= Responsive ========= */
@media (max-width: 960px) {
  .story-grid,
  .product-grid,
  .services-layout,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-description-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .story-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  section { padding: 3.75rem 0; }

  #hero { padding: 0; }
  #hero .hero-inner {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .navbar { position: relative; }
  .nav-toggle { display: block; }
  .nav-primary { position: static; }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 11, 17, 0.92);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav-links.nav-open { display: flex; }
  .nav-cta { margin-left: 0; }

  .cards-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact { text-align: left; }
}

@media (max-width: 520px) {
  .story-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 520px;
  margin-left: auto;

  background: rgba(5, 11, 17, 0.95);
  color: var(--color-text-main);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1rem 1.2rem;

  font-size: 0.82rem;
  z-index: 100;
}

.cookie-banner:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p { margin: 0; color: var(--color-text-muted); }

.cookie-banner a {
  color: var(--color-accent);
  text-decoration: none;
}
.cookie-banner a:hover { text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.cookie-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cookie-btn-accept {
  background: var(--color-accent);
  color: #031019;
  box-shadow: 0 10px 26px rgba(0, 232, 163, 0.30);
}
.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 232, 163, 0.42);
}

.cookie-btn-reject {
  background: rgba(3, 10, 19, 0.92);
  color: var(--color-accent);
  border-color: rgba(24, 224, 163, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.cookie-btn-reject:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.50);
}

/* Theme switch icons in nav */
.nav-theme {
  display: flex;
  align-items: center;
  height: var(--nav-height);
}

.nav-links li { display: flex; align-items: center; }

/* no underline animation on these */
.nav-theme a::after { content: none !important; }

/* slightly bigger button + icon */
.theme-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.theme-btn img {
  width: 26px;
  height: 26px;
}

/* Theme icon visibility for dark mode (show sun icon to switch to light) */
.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

/* ========= Simple Pages (Privacy, Cookies, FAQs) ========= */
.simple-page {
  padding: 4rem 0 5rem;
  min-height: calc(100vh - var(--nav-height) - 120px);
}

.simple-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.simple-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.simple-page p,
.simple-page li {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.simple-page ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.simple-page li + li {
  margin-top: 0.35rem;
}

.simple-page a {
  color: var(--color-accent);
}

.simple-page a:hover {
  text-decoration: underline;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--color-bg-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(24, 224, 163, 0.08);
}

.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
  padding: 0 1.25rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}
