/* =============================================
   Batterylog — Unified Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Barlow:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-accent: #0BE6AE;
  --color-accent-dark: #09c596;
  --color-blue: #00A1E4;
  --color-dark: #1a1a1a;
  --color-dark-mid: #2b2b2b;
  --color-dark-card: #222222;
  --color-white: #ffffff;
  --color-off-white: #f7f8fa;
  --color-text: #111111;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  /*  4px */
  --space-2: 0.5rem;
  /*  8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */
  --space-32: 8rem;
  /* 128px */

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-6);

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .16);
  --shadow-accent: 0 4px 24px rgba(11, 230, 174, .25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Nav */
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.text-accent {
  color: var(--color-accent);
}

.text-white {
  color: var(--color-white);
}

.text-muted {
  color: var(--color-text-muted);
}

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

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base),
    box-shadow var(--transition-base), transform var(--transition-fast);
  white-space: nowrap;
}

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

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

.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

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

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.nav__link {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  color: var(--color-text);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-accent);
  background: rgba(11, 230, 174, 0.08);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
}

.nav__dropdown-toggle svg {
  transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-toggle svg,
.nav__dropdown.open .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-base), transform var(--transition-base),
    visibility var(--transition-base);
  z-index: 100;
  overflow: hidden;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

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

.dropdown-item:hover {
  background: var(--color-off-white);
}

.dropdown-item__title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.dropdown-item__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.nav__cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  border: none;
  background: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  overflow-y: auto;
  z-index: 999;
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile-link {
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__mobile-link:hover {
  color: var(--color-accent);
  background: rgba(11, 230, 174, 0.06);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  /* anchor content to bottom */
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 12, 14, 0.92) 0%,
      rgba(10, 12, 14, 0.65) 45%,
      rgba(10, 12, 14, 0.18) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-16);
  padding-top: var(--space-16);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: var(--space-8);
}

.hero__left {
  display: flex;
  flex-direction: column;
}

.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  opacity: 0.9;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.hero__title {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
  max-width: 400px;
  line-height: 1.7;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
  writing-mode: horizontal-tb;
}

@keyframes scrollLine {

  0%,
  100% {
    opacity: 0.4;
    height: 40px;
  }

  50% {
    opacity: 1;
    height: 60px;
  }
}

/* --- Sections --- */
section {
  padding: var(--space-24) 0;
}

.section--dark {
  background: var(--color-dark-card);
}

.section--off-white {
  background: var(--color-off-white);
}

.section-header {
  margin-bottom: var(--space-16);
}

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

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Feature Sections (Homepage subpage teasers) --- */
.feature-section {
  background: var(--color-white);
  padding: var(--space-24) 0;
}

.feature-section+.feature-section {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-24);
}

.feature-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* reversed: image is first in DOM order, so grid gives natural left placement */

.feature-section__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-section__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.feature-section__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 0;
}

.feature-section__cta {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.feature-section__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-lg);
}

.feature-section__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.feature-section__visual:hover img {
  transform: scale(1.03);
}

/* --- Two-col layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.two-col--reversed .two-col__visual {
  order: -1;
}

/* --- Problem Statement --- */
.problem {
  background: var(--color-white);
}

.problem__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.problem__lead {
  font-size: var(--text-3xl);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.problem__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --- Services Grid --- */
.services {
  background: var(--color-dark-card);
  padding: var(--space-24) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
}

.service-card {
  padding: var(--space-8) var(--space-6);
  background: var(--color-dark-mid);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: background var(--transition-base), transform var(--transition-base);
  cursor: default;
}

.service-card:hover {
  background: #333333;
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* --- Accent bar on cards --- */
.service-card::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.service-card:hover::before {
  width: 100%;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-dark);
  padding: var(--space-24) 0;
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.cta-section__portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 420px;
}

.cta-section__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(20%);
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.team-card__photo {
  aspect-ratio: 4/3;
  background: var(--color-off-white);
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.04);
}

.team-card__info {
  padding: var(--space-6);
}

.team-card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Contact Form — Premium --- */
.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--color-border);
}

.form-group {
  position: relative;
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.form-group:focus-within .form-label {
  color: #0abf96;
}

/* Input base */
.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  transition: all var(--transition-base);
  outline: none;
  /* default: subtle border */
  border: 1.5px solid #e0e4e8;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b0b8c1;
  font-weight: 400;
}

/* Focus / filled state — gradient border via background-clip trick */
.form-input:focus,
.form-textarea:focus,
.form-input:not(:placeholder-shown),
.form-textarea:not(:placeholder-shown) {
  border-color: transparent;
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(135deg, #0BE6AE 0%, #00A1E4 100%) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 12px rgba(11, 230, 174, 0.12), 0 0 0 4px rgba(11, 230, 174, 0.06);
}

/* Success checkmark ring on valid inputs */
.form-input:valid:not(:placeholder-shown):not([type='email']) {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(135deg, #0BE6AE 0%, #22d97a 100%) border-box;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.stat {
  text-align: center;
  padding: var(--space-6);
  border-top: 2px solid var(--color-accent);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Page Hero (subpages) --- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-20);
  background: var(--color-dark);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  margin-bottom: var(--space-4);
}

.footer__logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-sm);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color var(--transition-fast), color var(--transition-fast),
    background var(--transition-fast);
}

.footer__social a:hover {
  border-color: var(--color-accent);
  background: rgba(11, 230, 174, 0.1);
  color: var(--color-accent);
}

/* --- Content Blocks (subpages) --- */
.content-block {
  padding: var(--space-24) 0;
}

.content-block--alt {
  background: var(--color-off-white);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.feature-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 230, 174, 0.3);
}

.feature-item__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 230, 174, 0.1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--color-accent);
}

.feature-item__icon svg {
  width: 24px;
  height: 24px;
}

/* .feature-item__body — no additional styles needed */

.feature-item__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.feature-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- Accent Divider --- */
.accent-divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: var(--space-4) 0 var(--space-6);
  border-radius: 2px;
}

/* =============================================
   Scroll Reveal Utilities
   ============================================= */

/* Initial hidden states */
.reveal-init {
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-down {
  opacity: 0;
  transform: translateY(-28px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
}

/* Revealed state */
.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Hero text entrance on page load */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero__title {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero__subtitle {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.hero__actions {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

/* Feature section images — contain overflow for parallax scale */
.feature-section__visual {
  overflow: hidden;
}

.feature-section__visual img {
  transition: transform 0s linear;
  /* handled by rAF in JS */
  will-change: transform;
  transform: scale(1.06) translateY(0);
}

/* Hero bg — contain parallax overflow */
.hero {
  overflow: hidden;
}

.hero__bg {
  will-change: transform;
}

/* Subtle hover lift on feature cards */
.feature-item {
  transition: box-shadow var(--transition-base),
    border-color var(--transition-base),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-item:hover {
  transform: translateY(-3px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .reveal-init,
  .reveal-up,
  .reveal-down,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .hero__eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero__actions {
    animation: none !important;
  }

  .hero__bg {
    will-change: auto;
  }

  .feature-section__visual img {
    transform: none !important;
  }
}

/* =============================================
   Responsive
   ============================================= */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .feature-section__inner {
    gap: var(--space-10);
  }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
  :root {
    --container-pad: var(--space-5);
    --nav-height: 64px;
  }

  /* --- Typography --- */
  h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  h3 {
    font-size: var(--text-2xl);
  }

  /* --- Sections tighter on mobile --- */
  section {
    padding: var(--space-16) 0;
  }

  .content-block {
    padding: var(--space-16) 0;
  }

  .feature-section {
    padding: var(--space-16) 0;
  }

  .services {
    padding: var(--space-16) 0;
  }

  .cta-section {
    padding: var(--space-16) 0;
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  /* --- Nav --- */
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Hamburger → X animation */
  .nav__hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav__hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile nav — full-screen, taller links */
  .nav__mobile {
    padding: var(--space-4) var(--space-5) var(--space-8);
    gap: 0;
  }

  .nav__mobile-link {
    padding: var(--space-5) var(--space-4);
    font-size: var(--text-xl);
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .nav__mobile-link:last-child {
    margin-top: var(--space-4);
    display: block;
    text-align: center;
    background: var(--color-accent);
    color: var(--color-dark) !important;
    border-radius: var(--radius-sm);
    border-bottom: none;
    font-weight: 700;
    padding: var(--space-4);
  }

  /* --- Hero — single column, full-width buttons --- */
  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }

  .hero__content {
    grid-template-columns: 1fr;
    padding-bottom: var(--space-12);
    padding-top: var(--space-8);
    gap: var(--space-6);
  }

  .hero__right {
    align-items: flex-start;
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--space-3);
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }

  .hero__subtitle {
    max-width: 100%;
    font-size: var(--text-base);
  }

  .hero__scroll {
    display: none;
  }

  /* --- Page hero (subpages) --- */
  .page-hero {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-12);
  }

  .page-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .page-hero__subtitle {
    font-size: var(--text-base);
    max-width: 100%;
  }

  /* --- Feature sections — stack image above text --- */
  .feature-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Always show image first on mobile regardless of --reversed */
  .feature-section--reversed .feature-section__visual {
    order: -1;
  }

  .feature-section__title {
    font-size: var(--text-2xl);
  }

  .feature-section__desc {
    font-size: var(--text-base);
    max-width: 100%;
  }

  .feature-section__cta {
    width: 100%;
    justify-content: center;
  }

  /* --- Problem statement --- */
  .two-col,
  .problem__inner,
  .cta-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .two-col--reversed .two-col__visual {
    order: unset;
  }

  .problem__lead {
    font-size: var(--text-2xl);
  }

  /* --- Services grid — 2 col on mobile --- */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-1);
  }

  .service-card {
    padding: var(--space-5) var(--space-4);
  }

  /* --- Stats row — 3 col stays but smaller --- */
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
  }

  .stat {
    padding: var(--space-4) var(--space-2);
  }

  .stat__number {
    font-size: var(--text-2xl);
  }

  /* --- CTA section portrait — hide on mobile --- */
  .cta-section__portrait {
    display: none;
  }

  /* --- Team grid --- */
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* --- Contact form --- */
  .contact-form {
    padding: var(--space-6) var(--space-5);
  }

  /* --- Footer --- */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .footer__legal {
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
  }

  /* --- Buttons full-width in CTA blocks --- */
  .btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }
}

/* ---- Small mobile (≤480px) ---- */
@media (max-width: 480px) {

  /* Services → 1 col on very small screens */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Stats → 1 col */
  .stats-row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .stat {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    text-align: left;
    padding: var(--space-4);
    border-top: none;
    border-left: 2px solid var(--color-accent);
  }

  .stat__number {
    font-size: var(--text-3xl);
  }

  /* Footer → single column */
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}