/* ============================================================
   Datapolis e-Solutions — style.css
   Design System: "The Signal Tower"
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand colours */
  --navy: #105ba5;
  --sky: #48bde9;
  --hero-ground: #050d1a;
  --hero-surface: #0a1628;
  --hero-border: #1a2d4a;
  --light-ground: #f8f9fb;
  --light-surface: #ffffff;
  --body-ink: #1a2332;
  --muted-ink: #5a6a7e;
  --divider: #e4e8ef;

  /* Utility colours */
  --wa-green: #25d366;
  --danger-muted: #c0392b;

  /* Typography scale */
  --fs-display: clamp(2.5rem, 7.5vw, 5rem);
  --fs-headline: clamp(1.8rem, 3.5vw, 2.6rem);
  --fs-title: clamp(1.1rem, 2vw, 1.3rem);
  --fs-body: 1rem;
  --fs-label: 0.8rem;
  --fs-nav: 0.95rem;

  /* Radius */
  --r-card: 10px;
  --r-small: 6px;
  --r-pill: 50px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.14);
  --shadow-nav: 0 1px 12px rgba(0, 0, 0, 0.08);

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  /* Transitions */
  --t-fast: 0.2s ease-out;
  --t-reveal: 0.5s ease-out;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--navy) var(--hero-ground);
  overflow-x: hidden;
  max-width: 100vw;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--hero-ground);
}
::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 3px;
}

::selection {
  background: var(--sky);
  color: var(--hero-ground);
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--body-ink);
  background: var(--light-ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

/* ── Typography helpers ─────────────────────────────────────── */
.display-heading {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-heading {
  font-size: var(--fs-headline);
  font-weight: 600;
  line-height: 1.2;
}

.card-title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.3;
}

.section-label {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.25rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  padding: 0.75rem 1.625rem;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--sky);
  color: var(--hero-ground);
}
.btn-primary:hover {
  background: #62c9f0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--light-surface);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.btn-wa {
  background: #0f7338;
  color: #ffffff;
}
.btn-wa:hover {
  background: #0b5e2c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.btn-wa-nav {
  background: var(--sky);
  color: var(--hero-ground);
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
}
.btn-wa-nav:hover {
  background: #62c9f0;
  transform: translateY(-1px);
}

/* ── Reveal animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--t-reveal),
    transform var(--t-reveal);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Scrolled within dark hero: dark frosted glass shields content */
.site-nav.nav-dark-scrolled {
  background: rgba(5, 13, 26, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(72, 189, 233, 0.14);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* Scrolled into light sections: crisp light ground */
.site-nav.nav-scrolled {
  background: rgba(248, 249, 251, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.nav-logo img {
  max-height: 32px;
  width: auto;
  transition: filter var(--t-fast);
}

/* When scrolled, invert the white logo to a dark version using filter */
.nav-scrolled .nav-logo img {
  /* Keep white logo but apply brand navy tint via filter on light bg */
  filter: brightness(0) saturate(100%) invert(22%) sepia(60%) saturate(900%)
    hue-rotate(193deg) brightness(85%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  position: relative;
  font-size: var(--fs-nav);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.38rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition:
    color var(--t-fast),
    background-color var(--t-fast),
    border-color var(--t-fast);
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Active Nav Link: Modern Glassmorphic Pill with Signal Beacon */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  background: rgba(72, 189, 233, 0.12);
  border-color: rgba(72, 189, 233, 0.32);
}

.nav-links a.active::before,
.nav-links a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  outline: 2px solid rgba(72, 189, 233, 0.4);
  outline-offset: 1px;
}

/* Light Scrolled Mode Active Highlighting */
.nav-scrolled .nav-links a {
  color: var(--muted-ink);
}

.nav-scrolled .nav-links a:hover {
  color: var(--body-ink);
  background: rgba(16, 91, 165, 0.05);
}

.nav-scrolled .nav-links a.active,
.nav-scrolled .nav-links a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  background: rgba(16, 91, 165, 0.08);
  border-color: rgba(16, 91, 165, 0.22);
}

.nav-scrolled .nav-links a.active::before,
.nav-scrolled .nav-links a[aria-current="page"]::before {
  background: var(--navy);
  outline: 2px solid rgba(16, 91, 165, 0.28);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-scrolled .nav-hamburger span {
  background: var(--body-ink);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--hero-ground);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
  display: flex;
  opacity: 1;
}

.nav-overlay a {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.5rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: all var(--t-fast);
}

.nav-overlay a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-overlay a.active,
.nav-overlay a[aria-current="page"] {
  color: #ffffff;
  background: rgba(72, 189, 233, 0.14);
  border-color: rgba(72, 189, 233, 0.35);
}

.nav-overlay a.active::before,
.nav-overlay a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  outline: 2px solid rgba(72, 189, 233, 0.4);
  outline-offset: 1px;
}
.nav-overlay a.btn-wa:hover {
  color: #ffffff;
}
.nav-overlay a.legacy-none {
  color: var(--sky);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-ground);
  color: #ffffff;
  overflow: hidden;
  padding: 7.5rem 1.5rem 4.5rem;
}

/* Subtle ambient radial glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 65% at 38% 48%,
    rgba(16, 91, 165, 0.18) 0%,
    transparent 72%
  );
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 700px);
  height: min(90vw, 700px);
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
}

.hero-text h1 {
  color: var(--light-surface);
  max-width: 16ch;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

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

.hero-subhead {
  font-size: clamp(0.95rem, 1.4vw, 1.06rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 48ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding-top: 0.5rem;
}

/* ── Hero Visual: Subject Photo + Tech Pipeline Layer ───────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 520px;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 490px;
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--hero-surface);
  border: 1px solid rgba(72, 189, 233, 0.16);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero-image-wrap picture {
  display: contents;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  transform: scale(1.02);
  filter: contrast(1.04) saturate(1.02);
}

/* Dark-blue tonal integration & seamless edge fade */
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 13, 26, 0.12) 0%,
      rgba(10, 22, 40, 0.35) 55%,
      rgba(5, 13, 26, 0.9) 100%
    ),
    linear-gradient(
      90deg,
      rgba(5, 13, 26, 0.8) 0%,
      rgba(5, 13, 26, 0.1) 32%,
      transparent 65%,
      rgba(5, 13, 26, 0.4) 100%
    );
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-image-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(
    circle at 55% 45%,
    rgba(72, 189, 233, 0.12) 0%,
    rgba(16, 91, 165, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Foreground Technology Pipeline Layer ───────────────────── */
.tech-pipeline-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.pipeline-connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.conn-track {
  stroke: rgba(72, 189, 233, 0.14);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  fill: none;
}

.conn-pulse {
  stroke-width: 2.2;
  fill: none;
  stroke-dasharray: 18 140;
  animation: pulse-stream 4.5s linear infinite;
}

.conn-pulse-2 {
  animation-delay: 1.3s;
}

@keyframes pulse-stream {
  from {
    stroke-dashoffset: 316;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ── Glassmorphism Technology Cards ─────────────────────────── */
.tech-card {
  position: absolute;
  background: rgba(10, 22, 40, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(72, 189, 233, 0.24);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  width: clamp(205px, 35%, 235px);
  pointer-events: auto;
  cursor: default;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  z-index: 2;
}

.tech-card:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(72, 189, 233, 0.55);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.7),
    0 6px 16px rgba(0, 0, 0, 0.45);
}

/* Desktop positioning: cards sit OVER image without obscuring face */
.card-source {
  top: 7%;
  left: -4%;
  animation: card-drift-1 6.5s ease-in-out infinite;
}

.card-process {
  top: 36%;
  right: -5%;
  animation: card-drift-2 7.2s ease-in-out infinite 0.8s;
}

.card-output {
  bottom: 8%;
  left: 6%;
  animation: card-drift-3 6.8s ease-in-out infinite 1.5s;
}

@keyframes card-drift-1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes card-drift-2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes card-drift-3 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.card-step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sky);
  text-transform: uppercase;
}

.card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.card-status-dot.active {
  background: var(--sky);
  outline: 2px solid rgba(72, 189, 233, 0.4);
  outline-offset: 1.5px;
  animation: status-ping 2.5s infinite;
}

@keyframes status-ping {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.tech-card-body {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.tech-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(16, 91, 165, 0.35);
  border: 1px solid rgba(72, 189, 233, 0.2);
  color: var(--sky);
  flex-shrink: 0;
  margin-top: 1px;
}

.tech-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tech-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.tech-card-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
}

.tech-card-footer {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tech-metric-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(72, 189, 233, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ── Tablet Refinement (960px) ──────────────────────────────── */
@media (max-width: 960px) and (min-width: 721px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .pipeline-connector-svg {
    display: none;
  }
  .tech-card {
    width: clamp(185px, 46%, 215px);
    padding: 0.75rem 0.85rem;
  }
  .card-source {
    left: -2%;
  }
  .card-process {
    right: -2%;
  }
  .card-output {
    left: 2%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════════ */
.services {
  background: var(--light-ground);
  padding: 5rem 1.5rem;
}

.services-header {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-header p {
  margin-top: 1rem;
  color: var(--muted-ink);
  max-width: 58ch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--light-surface);
  border-radius: var(--r-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.service-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.3;
  color: var(--body-ink);
}

.service-card p {
  color: var(--muted-ink);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition:
    gap var(--t-fast),
    color var(--t-fast);
  margin-top: auto;
}

.service-link:hover {
  color: var(--sky);
  gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   COMPARISON WIDGET
═══════════════════════════════════════════════════════════════ */
.comparison {
  background: var(--hero-ground);
  color: #ffffff;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.comparison::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 60% at 75% 50%,
    rgba(16, 91, 165, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.comparison-header {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
  z-index: 1;
}

.comparison-header h2 {
  color: var(--light-surface);
  margin-bottom: 1rem;
}

.comparison-header p {
  color: rgba(255, 255, 255, 0.8);
}

/* Tabs */
.comparison-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.tab-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.375rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--hero-border);
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}

.tab-btn:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.tab-btn.active {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--hero-ground);
  font-weight: 600;
}

/* Panels */
.comparison-panels {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.comparison-panel {
  display: none;
  background: var(--hero-surface);
  border: 1px solid var(--hero-border);
  border-radius: var(--r-card);
  padding: 2rem;
}

.comparison-panel.is-active {
  display: block;
  animation: panel-in 0.3s ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  /* Premium "After" Panel */
  #comparison-after {
    background: linear-gradient(
      160deg,
      rgba(16, 91, 165, 0.2) 0%,
      rgba(10, 22, 40, 1) 100%
    );
    border: 1px solid rgba(72, 189, 233, 0.15);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
  }

  #comparison-after::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sky), transparent);
    opacity: 0.6;
  }

  #comparison-after .comparison-item p {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  #comparison-before {
    opacity: 0.7;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.03);
  }

  #comparison-before .comparison-item p {
    color: rgba(255, 255, 255, 0.6);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.comparison-item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.comparison-item p {
  font-size: 0.975rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════
   FOUNDER
═══════════════════════════════════════════════════════════════ */
.founder {
  background: var(--light-ground);
  padding: 5rem 1.5rem;
}

.founder-inner {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.founder-photo-wrap {
  position: relative;
}

.founder-photo {
  width: 100%;
  max-width: 380px;
  border-radius: var(--r-card);
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.founder-caption {
  margin-top: 0.875rem;
  font-size: 0.825rem;
  color: var(--muted-ink);
  text-align: center;
}

.founder-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.founder-text h2 {
  color: var(--body-ink);
}

.founder-text p {
  color: var(--muted-ink);
  max-width: 56ch;
}

.founder-text p + p {
  margin-top: 0.125rem;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  background: rgba(16, 91, 165, 0.08);
  color: var(--navy);
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: var(--fs-label);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   CTA / CONTACT STRIP
═══════════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--hero-ground);
  color: #ffffff;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 20% 50%,
    rgba(16, 91, 165, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.cta-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta-left h2 {
  color: var(--light-surface);
}

.cta-left p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 44ch;
}

.cta-left .btn-wa {
  align-self: flex-start;
  width: fit-content;
  display: inline-flex;
  padding: 0.75rem 1.625rem;
}

.cta-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta-contact-item a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--t-fast);
}

.cta-contact-item a:hover {
  color: var(--sky);
}

.cta-contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  background: var(--hero-surface);
  border: 1px solid var(--hero-border);
  border-radius: var(--r-small);
  color: white;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  width: 100%;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--sky);
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 189, 233, 0.2);
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
  background: var(--sky);
  color: var(--hero-ground);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
  border: none;
  cursor: pointer;
  margin-top: 0.25rem;
}

.btn-submit:hover {
  background: #62c9f0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.form-message {
  display: none;
  padding: 0.875rem 1.125rem;
  border-radius: var(--r-small);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background: rgba(16, 120, 60, 0.25);
  border: 1px solid #1ebe5b;
  color: #b6f5cb;
}

.form-message.error {
  background: rgba(220, 50, 50, 0.25);
  border: 1px solid #e74c3c;
  color: #ffc4be;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #030b15;
  color: #ffffff;
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hero-border);
}

.footer-brand img {
  max-height: 30px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 36ch;
}

.footer-nav h3,
.footer-contact h3 {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--t-fast);
}

.footer-nav a:hover {
  color: var(--sky);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--t-fast);
}

.footer-contact-item a:hover {
  color: var(--sky);
}

.footer-contact-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.5;
}

.footer-bottom {
  padding-block: 1.25rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* Tablet ≤ 960px */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cta-left p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 44ch;
  }
}

/* Mobile ≤ 720px */
@media (max-width: 720px) {
  .nav-right {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
  }

  .hero {
    padding: 6.5rem 1.25rem 3.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 1rem 2rem;
    gap: 2.5rem;
    margin-top: 0;
  }

  .hero-text h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 8.5vw, 3.2rem);
    line-height: 1.08;
  }

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

  .hero-subhead {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    min-height: auto;
    flex-direction: column;
  }

  .hero-image-wrap {
    max-width: 100%;
    height: 380px;
    border-radius: 16px;
  }

  /* Reposition pipeline cards on mobile: neatly stacked below photo */
  .tech-pipeline-layer {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: -3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0 0.5rem;
    z-index: 4;
  }

  .pipeline-connector-svg {
    display: none;
  }

  .tech-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    max-width: 100%;
    animation: none !important;
    text-align: left;
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .founder-inner {
    grid-template-columns: 1fr;
  }

  .founder-photo {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-position: top;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Small mobile ≤ 420px */
@media (max-width: 420px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .hero-image-wrap {
    height: 310px;
  }
}

/* ── Reduced Motion (Accessibility) ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .card-source,
  .card-process,
  .card-output,
  .card-status-dot.active,
  .conn-pulse {
    animation: none !important;
  }
  .tech-card {
    transition: none !important;
  }
}
