@import url("https://fonts.googleapis.com/css2?family=Syncopate:wght@700&family=Space+Grotesk:wght@500;600;700&family=Inter:wght@300;400;500;600;700&family=Syne:wght@700;800&family=Fira+Code:wght@400;500&display=swap");

:root {
  /* Dark Mode (Default) Variables */
  --bg-base: #09090b;
  --bg-surface: #121214;
  --bg-card: rgba(18, 18, 20, 0.7);
  --border-muted: rgba(39, 39, 42, 0.6);
  --border-focus: rgba(244, 244, 245, 0.4);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.08);
  --blue-accent: #6366f1;
  --blue-glow: rgba(37, 99, 235, 0.15);

  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Syne", sans-serif;
  --font-mono: "Fira Code", monospace;
  --font-nav: "Space Grotesk", sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
  --border-radius-btn: 8px; /* Pill shaped buttons for a modern look */
  --border-radius-card: 12px;
}

body.light-mode {
  /* Light Mode Variables */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-muted: rgba(203, 213, 225, 0.8);
  --border-focus: rgba(37, 99, 235, 0.5);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #2563eb; /* Royal Blue */
  --accent-glow: rgba(37, 99, 235, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-muted) var(--bg-base);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

/* Background Grid Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--text-muted) 0.5px, transparent 0.5px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
}

/* Radial spotlight effect following the cursor (interactive via JS) */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    var(--accent-glow),
    transparent 80%
  );
  pointer-events: none;
  z-index: -1;
  transition: background 0.1s ease;
}

/* Typography Utilities */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Navigation */
header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-muted);
  background-color: rgba(9, 9, 11, 0.8);
  transition: var(--transition-smooth);
}

body.light-mode header {
  background-color: rgba(248, 250, 252, 0.8);
}

header.scrolled {
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-nav);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: invert(0);
}

body.light-mode .brand img {
  /* Invert logo for light mode to show white symbol as black, or keep if transparent */
  filter: invert(1);
}

.brand span {
  color: var(--text-primary);
  font-weight: 700;
  font-family: "Fira Code", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.65rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blue-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition-smooth);
}

.hamburger-btn:hover {
  border-color: var(--blue-accent);
  background: rgba(0, 112, 243, 0.05);
}

.ham-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-btn.is-active .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-active .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-muted);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 40px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(20px);
  overflow-y: auto;
  align-items: center;
}

.mobile-menu.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.mobile-menu-close svg {
  width: 20px;
  height: 20px;
}

.mobile-menu-close:hover {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
  background: rgba(0, 112, 243, 0.05);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  width: 100%;
  align-items: center;
}

.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 14px 24px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
  width: fit-content;
  text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 112, 243, 0.06);
}

.mobile-nav-link.active {
  color: var(--blue-accent);
}

.mobile-cta-btn {
  margin-top: 48px;
  width: 100%;
  max-width: 240px;
  justify-content: center;
}

/* Mobile overlay backdrop */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Show hamburger on mobile, hide nav links */
@media (max-width: 768px) {
  #main-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  #header-cta-btn {
    display: none;
  }
}

/* Button & Link Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-mono); /* Space Grotesk */
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--border-radius-btn);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn svg.btn-arrow {
  width: 16px;
  height: 16px;
  transition: var(--transition-smooth);
}

.btn:hover svg.btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--blue-accent);
  color: #ffffff;
  border: 1px solid var(--blue-accent);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
  background-color: white;
  color: black;
  border: 1px solid var(--border-muted);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--border-focus);
  background-color: rgb(177, 176, 176);
  transform: translateY(-2px);
}

body.light-mode .btn-primary {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid var(--border-muted);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

body.light-mode .btn-primary:hover {
  background-color: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

body.light-mode .btn-secondary {
  background-color: transparent;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .btn-secondary:hover {
  border-color: #000000;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--border-muted);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  display: inline-block;
  font-weight: 600;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 48px;
  position: relative;
  line-height: 1.2;
}

.section-title span {
  color: #6366f1;
  font-weight: 300;
}

/* Page 1: Hero Section */
#hero {
  padding-top: calc(var(--header-height) - 30px);
  padding-bottom: 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content .section-tag {
  padding-top: 52px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title span {
  color: #6366f1;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Before-After Comparison Showcase */
.comparison-showcase {
  margin-top: 105px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  position: relative;
}

.showcase-card {
  border-radius: var(--border-radius-card);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-muted);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.before-card {
  opacity: 0.6;
  filter: grayscale(40%) blur(0.5px);
  border-color: rgba(239, 68, 68, 0.2);
}

.before-card:hover {
  opacity: 0.8;
  filter: none;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.08);
}

.after-card {
  border: 1px solid rgba(25, 188, 74, 0.4);
  box-shadow:
    0 20px 40px rgba(6, 182, 212, 0.1),
    0 0 20px rgba(6, 182, 212, 0.05);
}

.after-card:hover {
  border-color: #2daf36;
  box-shadow:
    0 30px 60px rgba(11, 156, 45, 0.25),
    0 0 30px rgba(6, 182, 212, 0.15);
}

.showcase-header {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* allows text truncation */
}

.showcase-header .window-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.showcase-header .window-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.showcase-header .window-controls .dot.close {
  background-color: #ef4444;
}
.showcase-header .window-controls .dot.minimize {
  background-color: #eab308;
}
.showcase-header .window-controls .dot.maximize {
  background-color: #22c55e;
}

.showcase-header .window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.growth-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
  color: #22c55e;
  font-weight: 600;
  flex-shrink: 0;
}

.showcase-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.showcase-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.showcase-status.status-red {
  color: #ef4444;
}

.showcase-status.status-cyan {
  color: #22c55e;
}

.showcase-status .status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.showcase-status.status-red .status-indicator-dot {
  background-color: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.showcase-status.status-cyan .status-indicator-dot {
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s infinite;
}

.showcase-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  width: 100%;
}

.showcase-metric-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-muted);
  padding: 12px 8px;
  border-radius: 8px;
  text-align: center;
}

.showcase-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.showcase-num.text-red {
  color: #f87171;
}

.showcase-num.text-cyan {
  color: #22c55e;
}

.showcase-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.showcase-chart-box {
  position: relative;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.svg-chart-red,
.svg-chart-cyan {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-trend-arrow {
  position: absolute;
  right: 16px;
  top: 10px;
  color: #22c55e;
  font-size: 1.1rem;
  animation: arrow-bounce 1s infinite alternate;
}

.showcase-summary {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

@keyframes arrow-bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-4px);
  }
}

/* System Deployed Section */
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .system-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .system-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius-card);
  padding: 32px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.system-card:hover {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(99, 102, 241, 0.15);
}

body.light-mode .system-card:hover {
  box-shadow:
    0 30px 60px rgba(99, 102, 241, 0.1),
    0 0 30px rgba(99, 102, 241, 0.05);
}

.system-card-icon {
  font-size: 2rem;
  color: var(--blue-accent);
}

.system-card-title {
  font-size: 1.25rem;
}
.system-card-title p {
  color: var(--text-muted);
}

/* Founder Snippet */
.founder-section {
  background-color: var(--bg-surface);
  padding: 100px 0;
  border-top: 1px solid var(--border-muted);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.founder-heading {
  font-size: 3rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.15;
}

.founder-heading .name-colored {
  color: #6366f1;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.founder-img-wrap {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/5;
  border-radius: 20px;
  border: 1px solid var(--border-muted);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  transition: var(--transition-smooth);
}

body.light-mode .founder-img-wrap {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.founder-img-wrap:hover {
  border-color: #6366f1;
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.35);
}

.founder-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-content {
  display: flex;
  flex-direction: column;
}

.founder-bio {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.founder-bio:last-of-type {
  margin-bottom: 0;
}

.founder-socials {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.founder-socials .social-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
}

.founder-socials .social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.founder-socials .social-link.li-link:hover {
  color: #0a66c2;
  transform: scale(1.15);
}
.founder-socials .social-link.ig-link:hover {
  color: #e1306c;
  transform: scale(1.15);
}
.founder-socials .social-link.x-link:hover {
  color: var(--text-primary);
  transform: scale(1.15);
}
.founder-socials .social-link.yt-link:hover {
  color: #ff0000;
  transform: scale(1.15);
}
.founder-socials .social-link.web-link:hover {
  color: var(--blue-accent);
  transform: scale(1.15);
}

/* =========================================
   Autonomous Engine Section
   ========================================= */

.engine-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    rgba(0, 112, 243, 0.03) 40%,
    var(--bg-primary) 100%
  );
  isolation: isolate;
}

.engine-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
}

.engine-container {
  position: relative;
  z-index: 1;
}

/* Header */
.engine-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}

.engine-tag {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--blue-accent);
  margin-bottom: 20px;
}

.engine-title {
  font-size: 2.8rem;
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.engine-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-family: var(--font-mono);
}

/* Steps wrapper */
.engine-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
}

/* Horizontal connector line behind all nodes */
.engine-connector {
  position: absolute;
  top: 44px;
  left: calc(12.5%);
  width: calc(75%);
  z-index: 0;
  pointer-events: none;
}

.connector-line {
  position: relative;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-muted) 15%,
    var(--border-muted) 85%,
    transparent 100%
  );
  overflow: visible;
}

/* Travelling light pulse along the connector */
.connector-pulse {
  position: absolute;
  top: 50%;
  left: -60px;
  width: 60px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--blue-accent),
    transparent
  );
  border-radius: 2px;
  animation: pulse-travel 3.5s linear infinite;
  box-shadow: 0 0 12px 4px rgba(0, 112, 243, 0.5);
}

@keyframes pulse-travel {
  0% {
    left: -60px;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    left: calc(100% + 60px);
    opacity: 0;
  }
}

/* Each step card */
.engine-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.engine-step.in-view {
  opacity: 1;
  transform: translateY(0);
}

.engine-step:nth-child(2) {
  transition-delay: 0.1s;
}
.engine-step:nth-child(3) {
  transition-delay: 0.2s;
}
.engine-step:nth-child(4) {
  transition-delay: 0.3s;
}
.engine-step:nth-child(5) {
  transition-delay: 0.4s;
}

/* Node circle */
.step-node {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  flex-shrink: 0;
}

/* Pulsing ring behind node */
.step-node-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 112, 243, 0.25);
  animation: node-ring-pulse 2.5s ease-in-out infinite;
}

@keyframes node-ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.1;
  }
}

.engine-step:nth-child(3) .step-node-ring {
  animation-delay: 0.6s;
}
.engine-step:nth-child(4) .step-node-ring {
  animation-delay: 1.2s;
}
.engine-step:nth-child(5) .step-node-ring {
  animation-delay: 1.8s;
}

/* Icon box */
.step-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  transition: var(--transition-smooth);
}

.step-icon svg {
  width: 30px;
  height: 30px;
  color: var(--blue-accent);
}

.engine-step:hover .step-icon {
  background: rgba(2, 113, 249, 0.1);
  border-color: var(--blue-accent);
  box-shadow: 0 0 30px rgba(0, 112, 243, 0.2);
}

.engine-step:hover .step-icon svg {
  color: var(--blue-accent);
  filter: drop-shadow(0 0 6px rgba(0, 112, 243, 0.8));
}

/* Step number badge */
.step-number {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: var(--blue-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* Text content */
.step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-label {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.step-tech {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-accent);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-family: var(--font-mono);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .engine-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 24px;
  }

  .engine-connector {
    display: none;
  }
}

@media (max-width: 560px) {
  .engine-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .engine-section {
    padding: 80px 0;
  }
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  padding: 32px 24px;
  border-radius: var(--border-radius-card);
  position: relative;
  transition: var(--transition-smooth);
}

.process-card:hover {
  /* border-color: #6366F1; */
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(99, 102, 241, 0.15);
}

body.light-mode .process-card:hover {
  /* border-color: #6366F1; */
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.1),
    0 0 20px rgba(99, 102, 241, 0.05);
}

.process-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--border-muted);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
  font-weight: 800;
  transition: var(--transition-smooth);
}

.process-card:hover .process-num {
  color: var(--blue-accent);
  opacity: 0.3;
}

.process-title {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.process-title p {
  color: var(--text-muted);
}

/* Industry Use Cases Section */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.use-case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.use-case-card:hover {
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(99, 102, 241, 0.15);
}

body.light-mode .use-case-card:hover {
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.1),
    0 0 20px rgba(99, 102, 241, 0.05);
}

.use-case-tag {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  font-weight: 700;
}

.use-case-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
  font-family: var(--font-mono);
}

/* Primary CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--bg-surface) 0%,
    var(--bg-base) 100%
  );
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
  text-align: center;
  padding: 120px 0;
}

.cta-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 4rem;
}

.cta-title span {
  color: #6366f1;
}
.cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
}

/* Footer Section */
footer {
  background-color: var(--bg-surface);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 38px;
  width: auto;
  transition: var(--transition-smooth);
}

body.light-mode .footer-logo img {
  filter: invert(1);
}

.footer-logo span {
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--blue-accent);
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-socials .social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  text-decoration: none;
  width: fit-content;
}

.footer-socials .social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

.footer-socials .social-link span {
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-socials .social-link:hover {
  transform: translateX(4px);
}

.footer-socials .social-link.li-link:hover {
  color: #0a66c2;
}
.footer-socials .social-link.ig-link:hover {
  color: #e1306c;
}
.footer-socials .social-link.x-link:hover {
  color: var(--text-primary);
}
.footer-socials .social-link.fb-link:hover {
  color: #1877f2;
}
.footer-socials .social-link.email-link:hover {
  color: #ea4335;
}
.footer-socials .social-link.wa-link:hover {
  color: #25d366;
}
.footer-socials .social-link.wa-link:hover svg {
  transform: scale(1.18);
  filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.7));
}

.footer-bottom {
  border-top: 1px solid var(--border-muted);
  padding-top: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Page 2 & 3 specific styles */
.page-hero {
  padding: 140px 0 80px 0;
  text-align: center;
}

.page-hero-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

/* Services Grid Section Header */
.services-grid-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}

.services-grid-header .section-title {
  margin-bottom: 20px;
  line-height: 1.15;
}

.services-grid-header .section-title span {
  background: linear-gradient(135deg, var(--blue-accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-grid-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
  font-family: var(--font-mono);
}

/* Services Page Card Grids */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.services-page-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius-card);
  padding: 48px 40px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Special Clean White/Blue contrast request for service cards in light/dark mode */
body.light-mode .services-page-card {
  background: #ffffff;
  border: 1px solid var(--border-muted);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.04);
}

body.light-mode .services-page-card:hover {
  box-shadow:
    0 30px 60px rgba(99, 102, 241, 0.12),
    0 0 30px rgba(99, 102, 241, 0.08);
}

/* Dark mode service card styling */
.services-page-card:hover {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(99, 102, 241, 0.18);
}

.services-page-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.services-page-card:hover .services-page-card-icon {
  color: #ffffff;
}

.services-page-card-title {
  font-size: 1.25rem;
}

.services-page-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-hook {
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.card-bullets {
  list-style-type: circle;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-bullets li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.card-bullets li strong {
  color: var(--text-primary);
  font-weight: 400;
}

/* Bottom Widgets */
.theme-toggle-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
  transform: scale(1.1);
}

.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Animations */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive design adjustments */
@media (max-width: 1024px) {
  .hero-grid,
  .founder-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .comparison-showcase {
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    align-items: center;
    width: 100%;
  }

  .showcase-card {
    max-width: 480px;
    width: 100%;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .hero-content .section-tag {
    padding-top: 52px;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .showcase-body {
    padding: 16px;
  }

  .showcase-num {
    font-size: 1.2rem;
  }

  .showcase-metric-box {
    padding: 8px 6px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .use-case-card {
    padding: 28px 24px;
  }

  .services-page-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .comparison-showcase {
    margin-top: 0;
  }

  .showcase-header {
    padding: 10px 14px;
  }

  .showcase-body {
    padding: 14px;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .engine-title {
    font-size: 2rem;
  }

  .mission-large-title {
    font-size: 2rem;
  }

  .founder-heading {
    font-size: 2.2rem;
  }

  .page-hero-title {
    font-size: 2rem;
  }
}

/* Unified Typography Consistency Guarantee */
.hero-subtitle,
.system-grid p,
.system-card p,
.founder-bio,
.process-grid p,
.process-card p,
.footer-tagline,
.footer-link,
.page-hero-desc,
.services-page-card-desc,
.mission-lead-p,
.mission-card-text,
.use-case-body {
  font-family: var(--font-mono) !important;
}

/* Mission Section Styles */
.mission-section {
  position: relative;
  background-image: url("assets/about_mission_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
  overflow: hidden;
}

.mission-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 12, 0.94) 0%,
    rgba(15, 15, 18, 0.88) 100%
  );
  z-index: 1;
}

body.light-mode .mission-section::before {
  background: linear-gradient(
    135deg,
    rgba(250, 250, 252, 0.95) 0%,
    rgba(244, 244, 246, 0.9) 100%
  );
}

.mission-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.mission-header-block {
  text-align: left;
  max-width: 900px;
}

.mission-large-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  max-width: 600px;
  margin-bottom: 48px;
  position: relative;
  line-height: 1.2;
}

.mission-large-title span {
  color: #6366f1;
  font-weight: 300;
}
.mission-lead-p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.mission-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .mission-cards-grid {
    grid-template-columns: 1fr;
  }
}

.mission-detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

body.light-mode .mission-detail-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.mission-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mission-card-icon {
  font-size: 2rem;
}

.mission-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mission-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.mission-badge {
  align-self: flex-start;
  padding: 6px 12px;
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.mission-contact-box {
  background: rgba(0, 112, 243, 0.05);
  border: 1px solid rgba(0, 112, 243, 0.1);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-box-label {
  color: var(--text-muted);
}

.contact-box-link {
  color: var(--blue-accent);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-box-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}