/* ==========================================================================
   Krojen Technologies — Main Stylesheet
   Theme: Premium white · Primary #2563EB · Accent #0F172A
   Fonts: Poppins (headings) · Inter (body)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-soft: #EFF4FF;
  --accent: #0F172A;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --text: #111827;
  --text-muted: #5B6472;
  --border: #E7EBF1;
  --whatsapp: #22C05C;

  --radius-sm: 12px;
  --radius: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-primary: 0 8px 24px rgba(37, 99, 235, 0.28);

  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1180px;
  --nav-height: 74px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- 4. Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition),
              height var(--transition), background var(--transition);
}

.navbar.scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--accent);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-primary);
}

.logo-mark svg {
  width: 20px;
  height: 20px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin-left: auto;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta-mobile {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--accent);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 5rem) 0 5.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  background: rgba(37, 99, 235, 0.16);
  top: -140px;
  right: -120px;
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  background: rgba(37, 99, 235, 0.09);
  bottom: -160px;
  left: -100px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.83rem;
  margin-bottom: 1.4rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}

.highlight {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.32em;
  background: rgba(37, 99, 235, 0.14);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2.1rem;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--accent);
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 34px;
  background: var(--border);
}

/* Hero visual: code window */
.hero-visual {
  position: relative;
}

.code-window {
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }

.code-window-title {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.code-body {
  padding: 1.3rem 1.4rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.83rem;
  line-height: 1.75;
  color: #DCE3F0;
  overflow-x: auto;
}

.c-key { color: #93B4FF; }
.c-var { color: #7DD3FC; }
.c-str { color: #86EFAC; }
.c-num { color: #FCA5A5; }
.c-fn  { color: #C4B5FD; }
.c-com { color: rgba(255, 255, 255, 0.35); }

.code-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28C840;
  animation: pulse 1.8s infinite;
}

.status-ok {
  margin-left: auto;
  color: #86EFAC;
  font-weight: 600;
}

/* Floating chips & card */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.83rem;
  color: var(--accent);
  box-shadow: var(--shadow);
}

.chip-1 { top: -22px; left: -26px; }
.chip-2 { top: 34%; right: -34px; }
.chip-3 { bottom: 26%; left: -40px; }
.chip-4 { top: -18px; right: 12%; }

.float-card {
  position: absolute;
  bottom: -26px;
  right: -14px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E8F9EF;
  color: #16A34A;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.float-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
}

.float-card-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Floating animations */
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px);  } }
@keyframes floatC { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.float-slow { animation: floatA 7s ease-in-out infinite; }
.float-a    { animation: floatA 5.2s ease-in-out infinite; }
.float-b    { animation: floatB 6.1s ease-in-out infinite; }
.float-c    { animation: floatC 4.6s ease-in-out infinite; }

/* ---------- 6. Sections (shared) ---------- */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3.2rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
}

.section-text {
  color: var(--text-muted);
  font-size: 1.03rem;
}

/* ---------- 7. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.about-content .section-eyebrow { margin-bottom: 0.9rem; }
.about-content .section-title   { margin-bottom: 1rem; }
.about-content .section-text    { margin-bottom: 2rem; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.about-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.25);
}

.about-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

.about-card-icon svg { width: 22px; height: 22px; }

.about-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About visual panel */
.about-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.panel-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  width: 72px;
  color: var(--accent);
}

.panel-bar {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}

.panel-bar div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #60A5FA);
  transform-origin: left;
  animation: growBar 1.4s cubic-bezier(0.25, 0.7, 0.3, 1) both;
}

@keyframes growBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.panel-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ---------- 8. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 78rem;
  margin: 0 auto 3rem;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; }
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 1.3rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: gap var(--transition);
}

.service-link:hover {
  gap: 0.7rem;
}

/* ---------- 9. Why Choose Us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  transition: background var(--transition), color var(--transition);
}

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

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.89rem;
  color: var(--text-muted);
}

/* ---------- 10. Process ---------- */
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.process-line {
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 3px;
  background: rgba(37, 99, 235, 0.16);
  overflow: hidden;
}

/* Fills up as the walkthrough advances (--progress is set in script.js) */
.process-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--progress, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, #06B6D4, var(--primary) 55%, #7C3AED);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px var(--bg-alt), var(--shadow);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.process-step:hover .process-number {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

/* Auto-advancing walkthrough: steps already passed stay coloured in */
.process-step.is-done .process-number {
  background: linear-gradient(135deg, #06B6D4, var(--primary));
  border-color: transparent;
  color: #fff;
}

/* …and the current step lights up with a soft pulsing halo */
.process-step.is-active .process-number {
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  border-color: transparent;
  color: #fff;
  transform: scale(1.12);
  animation: stepHalo 1.8s ease-out infinite;
}

.process-step.is-active h3 { color: var(--primary); }

.process-step.is-active p { color: var(--text); }

@keyframes stepHalo {
  0% {
    box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 6px rgba(124, 58, 237, 0.35), var(--shadow-primary);
  }
  70% {
    box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 18px rgba(124, 58, 237, 0), var(--shadow-primary);
  }
  100% {
    box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 18px rgba(124, 58, 237, 0), var(--shadow-primary);
  }
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.87rem;
  color: var(--text-muted);
  max-width: 15rem;
  margin: 0 auto;
}

/* ---------- 10b. Impact / stats counters ---------- */
.stats-section {
  background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 45%, #fff 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #60A5FA);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition);
}

.stat-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.stat-card:hover::before { transform: scaleX(1); }

.stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}

.stat-icon svg { width: 24px; height: 24px; }

.stat-card:hover .stat-icon {
  background: var(--primary);
  color: #fff;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-suffix { color: var(--primary); }

.stat-label {
  margin-top: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- 11. Technologies (scrolling strip) ---------- */
.tech-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

/* The track is duplicated in the markup, so translating by -50% loops seamlessly */
.tech-marquee-inner {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tech-scroll 30s linear infinite;
}

.tech-marquee:hover .tech-marquee-inner {
  animation-play-state: paused;
}

@keyframes tech-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tech-track {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-right: 0.9rem;
  list-style: none;
}

.tech-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.25rem 0.6rem 0.7rem;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}

.tech-item:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow);
}

.tech-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.tech-logo svg { width: 19px; height: 19px; }

.tech-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--accent);
}

/* ---------- 12. CTA ---------- */
.cta-section {
  padding: 2rem 0 5.5rem;
}

.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  border-radius: 24px;
  padding: 4.2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.5), transparent 65%);
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.9rem;
}

.cta-box p {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.cta-box .btn { position: relative; }

/* ---------- 13. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
  align-items: start;
}

.contact-big-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-big-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.whatsapp-btn { background: var(--whatsapp); }
.email-btn    { background: var(--primary); }

.contact-big-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}

.contact-big-icon svg { width: 24px; height: 24px; }

.contact-big-btn strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.contact-big-btn small {
  font-size: 0.83rem;
  opacity: 0.88;
}

.contact-details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
  margin-top: 0.4rem;
}

.contact-detail {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.detail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.detail-icon svg { width: 20px; height: 20px; }

.contact-detail strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent);
}

.contact-detail p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact form */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9AA3B2;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #DC2626;
  background: #FEF6F6;
}

.form-error {
  display: block;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #DC2626;
  margin-top: 0.35rem;
}

.form-success {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #E8F9EF;
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #15803D;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- 14. Footer ---------- */
.footer {
  background: var(--accent);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.6rem;
  padding-bottom: 3rem;
}

.logo-footer {
  color: #fff;
  margin-bottom: 1.1rem;
}

.logo-footer .logo-accent { color: #7FA8FF; }

.footer-brand p {
  font-size: 0.92rem;
  max-width: 22rem;
  margin-bottom: 1.4rem;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col em {
  font-style: normal;
  font-size: 0.75rem;
  color: #7FA8FF;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 15. Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---------- 16. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.7, 0.3, 1),
              transform 0.7s cubic-bezier(0.25, 0.7, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  /* The tech strip keeps running by design — just slower and gentler here.
     Delete this rule if you'd rather it freeze for motion-sensitive visitors. */
  .tech-marquee-inner {
    animation: tech-scroll 30s linear infinite !important;
  }

  /* The process walkthrough keeps its smooth colour flow too */
  .process-line-fill { transition-duration: 0.8s !important; }
  .process-number { transition-duration: 0.28s !important; }
  .process-step.is-active .process-number {
    animation: stepHalo 1.8s ease-out infinite !important;
  }
}

/* ==========================================================================
   18. Responsive
   ========================================================================== */

/* Laptop / small desktop */
@media (max-width: 1080px) {
  .hero-inner { gap: 2.6rem; }
  .chip-3 { left: -14px; }
  .chip-2 { right: -12px; }
}

/* Tablet */
@media (max-width: 920px) {
  .section { padding: 4.2rem 0; }

  .hero {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3.6rem;
    text-align: center;
  }

  .hero-subtitle { margin-inline: auto; }
  .hero-actions,
  .hero-trust { justify-content: center; }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .about-visual { max-width: 480px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    max-width: 26rem;
    margin: 0 auto;
  }

  .process-line {
    top: 0;
    bottom: 0;
    left: 25px;
    right: auto;
    width: 3px;
    height: auto;
    background: rgba(37, 99, 235, 0.16);
  }

  /* Vertical timeline: the fill grows downwards instead of across */
  .process-line-fill {
    width: 100%;
    height: var(--progress, 0%);
    bottom: auto;
    background: linear-gradient(180deg, #06B6D4, var(--primary) 55%, #7C3AED);
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .process-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 1.2rem;
    text-align: left;
    align-items: start;
  }

  .process-number { margin: 0; grid-row: 1 / 3; }
  .process-step p { margin: 0; max-width: none; }

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

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

/* Mobile nav breakpoint */
@media (max-width: 820px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem 1.25rem 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .navbar.scrolled .nav-links { top: 64px; }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-link::after { display: none; }

  .nav-cta-mobile {
    display: inline-flex;
    margin-top: 1.1rem;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .section { padding: 3.6rem 0; }

  .hero-title { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .hero-subtitle { font-size: 1.02rem; }

  .hero-actions .btn { width: 100%; }

  .hero-trust { gap: 1rem; }

  .code-body { font-size: 0.72rem; padding: 1.05rem; }

  .float-chip { display: none; }
  .float-card { right: 0; bottom: -20px; }

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

  .stat-card { padding: 1.6rem 1rem 1.3rem; }
  .stat-icon { width: 44px; height: 44px; }

  .tech-item { padding: 0.5rem 1rem 0.5rem 0.55rem; }
  .tech-logo { width: 26px; height: 26px; }
  .tech-logo svg { width: 17px; height: 17px; }
  .tech-name { font-size: 0.84rem; }
  .tech-marquee-inner { animation-duration: 22s; }

  .cta-box { padding: 3.2rem 1.4rem; }

  .contact-form { padding: 1.6rem 1.3rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
