:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --card-alt: #f9fafb;
  --accent: #16a34a;
  --accent-soft: rgba(22, 163, 74, 0.08);
  --accent-strong: #16a34a;
  --text: #020617;
  --muted: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.6rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #f9fafb 0, #f3f4f6 35%, #e5e7eb 100%);
  color: var(--text);
  line-height: 1.6;
}

#bg-sphere-canvas {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1;
  pointer-events: none;
}

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

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

a:hover {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  padding: 5rem 0;
  background: #f9fafb;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.projects-section {
  background: rgba(249, 250, 251, 0.85);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.5);
  background: rgba(22, 163, 74, 0.06);
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #020617;
}

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

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.18rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #4b5563;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: #020617;
  border-color: rgba(226, 232, 240, 0.9);
  background: #f9fafb;
}

.nav-cta {
  background: #020617;
  color: #f9fafb !important;
  border-color: #020617 !important;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background: #020617;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 0.8rem;
}

.nav-toggle span:nth-child(2) {
  top: 1.15rem;
}

.nav-toggle span:nth-child(3) {
  bottom: 0.8rem;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 1.15rem;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  bottom: 1.15rem;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
}

.hero-content h1 {
  margin: 0.9rem 0 0.75rem;
  font-size: clamp(3rem, 4.4vw, 3.6rem);
  letter-spacing: -0.06em;
}

.hero-content h1 span {
  color: #020617;
}

.hero-subtitle {
  margin: 0 0 1.7rem;
  color: var(--muted);
  max-width: 30rem;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(to right, #16a34a, #22c55e);
  border-color: transparent;
  color: #f9fafb;
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(22, 163, 74, 0.55);
}

.btn-secondary {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.9);
  color: #111827;
}

.btn-secondary:hover {
  background: #f9fafb;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111827;
}

.hero-panel {
  display: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto;
  top: -6rem;
  right: -4rem;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(22, 163, 74, 0.16), transparent 70%);
  filter: blur(0.3px);
  pointer-events: none;
}

/* Grids */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.card {
  border-radius: 1.6rem;
  padding: 1.8rem 1.9rem 1.7rem;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 210px;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #eef2ff;
}

.card-icon-blue {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.card-icon-purple {
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
}

.card-icon-green {
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
}

.card-icon-orange {
  background: linear-gradient(135deg, #ffedd5, #fff7ed);
}

.card-link {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #16a34a;
}

.card-link:hover {
  text-decoration: underline;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
  border-color: rgba(209, 213, 219, 1);
}

/* Scroll reveal for cards */

.reveal-card {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cards-grid .reveal-card:nth-child(1) {
  transition-delay: 0.05s;
}

.cards-grid .reveal-card:nth-child(2) {
  transition-delay: 0.12s;
}

.cards-grid .reveal-card:nth-child(3) {
  transition-delay: 0.19s;
}

.cards-grid .reveal-card:nth-child(4) {
  transition-delay: 0.26s;
}

/* Capabilities strip / partenaires */

.capabilities-strip {
  position: relative;
  padding: 1.4rem 0;
  background: #f9fafb;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.capabilities-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(45, 212, 191, 0.12), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.capabilities-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.capabilities-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
}

.capabilities-marquee {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.capabilities-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: capabilities-scroll 26s linear infinite;
}

.cap-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.86rem;
  color: #111827;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

@keyframes capabilities-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: flex-start;
}

.about-grid h2 {
  margin: 0.8rem 0 0.6rem;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.about-grid p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.about-highlights {
  display: grid;
  gap: 1rem;
}

.highlight {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.highlight h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.highlight p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Projects */
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.project-row:last-of-type {
  margin-bottom: 0;
}

.project-row-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.project-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
}

.project-content {
  position: relative;
}

.project-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 0.4rem;
}

.project-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.project-content p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #16a34a;
}

.project-link:hover {
  text-decoration: underline;
}

/* Team / Meet the Experts */
.team-section {
  background: #020617;
  color: #e5e7eb;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-inner {
  max-width: 640px;
}

.team-inner h2 {
  margin: 0 0 0.7rem;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
}

.team-inner p {
  margin: 0 0 1.6rem;
  color: #d1d5db;
}

.team-cta {
  background: #f9fafb;
  color: #020617;
  border-color: #f9fafb;
}

.team-cta:hover {
  background: #e5e7eb;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta-inner {
  max-width: 640px;
}

.final-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.final-cta p {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.final-cta-btn {
  padding-inline: 2.6rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.5rem;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: flex-start;
}

.footer-brand p {
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.footer-columns h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.footer-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-columns li + li {
  margin-top: 0.3rem;
}

.footer-columns a:hover {
  color: #020617;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

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

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

  .about-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 3.4rem;
    right: 1.5rem;
    left: 1.5rem;
    flex-direction: column;
    padding: 0.65rem;
    border-radius: 1.1rem;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
    border: 1px solid rgba(55, 65, 81, 0.9);
    transform-origin: top right;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav-links.nav-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 4rem;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-grid,
  .process-steps,
  .faq-grid,
  .form-row,
  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .section,
  .section-alt {
    padding: 3.5rem 0;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
