/* ==========================================================================
   TechSAASify — styles.css
   --------------------------------------------------------------------------
   Table of contents
   01. Design tokens (custom properties)
   02. Reset & base
   03. Utilities (container, buttons, typography helpers)
   04. Scroll-reveal animation
   05. Navigation
   06. Hero
   07. Trust counters
   08. Section headers
   09. Services grid
   10. Solutions / process
   11. Tech stack (marquee + tabs)
   12. Industries
   13. Case-study carousel
   14. About
   15. Careers
   16. Contact + form
   17. Footer
   18. Back-to-top
   19. Responsive breakpoints
   20. Reduced motion
   ========================================================================== */


/* ==========================================================================
   01. Design tokens
   ========================================================================== */
:root {
  /* Surfaces */
  --navy-950: #050b1a;
  --navy-900: #0a1428;
  --navy-850: #0d1932;
  --navy-800: #111f3d;
  --navy-700: #1a2b50;

  /* Accents */
  --blue: #3b82f6;
  --blue-600: #2563eb;
  --blue-300: #93c5fd;
  --emerald: #10b981;
  --emerald-300: #6ee7b7;
  --gradient: linear-gradient(120deg, var(--blue) 0%, #22b8cf 50%, var(--emerald) 100%);

  /* Text */
  --text: #e8eef8;
  --text-muted: #9aa8c0;
  --text-dim: #6b7a96;

  /* Lines & glass */
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --glass: rgba(10, 20, 40, 0.62);
  --card: rgba(17, 31, 61, 0.55);

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --nav-h: 76px;

  /* Shape & motion */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  --glow-blue: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 18px 50px -12px rgba(59, 130, 246, 0.45);
}


/* ==========================================================================
   02. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

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

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  color: #fff;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
address { font-style: normal; }

/* Default stroke style for inline line icons */
svg:not(.mini-chart) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg .fill { fill: currentColor; stroke: none; }

:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(59, 130, 246, 0.4); color: #fff; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }


/* ==========================================================================
   03. Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-300);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  --pad-y: 12px;
  --pad-x: 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s, border-color 0.3s, color 0.3s;
  isolation: isolate;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }

.btn--sm { --pad-y: 10px; --pad-x: 18px; font-size: 0.88rem; }
.btn--lg { --pad-y: 16px; --pad-x: 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue-600), var(--blue) 45%, #14b8a6);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.7);
}
.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(16, 185, 129, 0.6);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: rgba(147, 197, 253, 0.6);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.btn--light { color: var(--navy-900); background: #fff; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 255, 255, 0.45); }


/* ==========================================================================
   04. Scroll-reveal animation
   Elements with [data-reveal] start hidden and animate in when
   script.js adds .is-visible. Optional --d sets a stagger delay.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}


/* ==========================================================================
   05. Navigation (sticky + glassmorphism)
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__img { display: block; height: 38px; width: auto; border-radius: 4px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.25s, background-color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after,
.nav__link:hover::after { width: 18px; }

.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ==========================================================================
   06. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(16, 185, 129, 0.12), transparent 60%),
    var(--navy-950);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow--blue { background: var(--blue); top: -120px; right: -80px; }
.hero__glow--green { background: var(--emerald); bottom: -200px; left: -160px; opacity: 0.22; animation-delay: -6s; }

@keyframes drift {
  to { transform: translate(-60px, 40px) scale(1.1); }
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  margin-bottom: 26px;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

/* Rotating word */
.hero__rotator { display: inline-block; position: relative; }
.hero__rotator .gradient-text {
  display: inline-block;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), filter 0.4s;
}
.hero__rotator .is-leaving { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
.hero__rotator .is-entering { opacity: 0; transform: translateY(14px); filter: blur(6px); }

.hero__sub {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.hero__badges svg { width: 18px; height: 18px; color: var(--emerald); }

/* ---- Floating UI graphic ---- */
.hero__visual {
  position: relative;
  height: 520px;
  perspective: 1200px;
  text-align: left; /* don't inherit the centred hero text on tablet/mobile */
}

.float-card {
  position: absolute;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(26, 43, 80, 0.85), rgba(13, 25, 50, 0.85));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease-out;
  will-change: transform;
}
/* Gentle idle float. The inner wrapper offset is applied by JS via --tx/--ty */
.float-card { transform: translate3d(var(--tx, 0), var(--ty, 0), 0); }
.float-card > * { animation: bob 6s ease-in-out infinite; }
.float-card:nth-child(2) > * { animation-delay: -1.5s; }
.float-card:nth-child(3) > * { animation-delay: -3s; }
.float-card:nth-child(4) > * { animation-delay: -4.5s; }
@keyframes bob {
  50% { transform: translateY(-8px); }
}

.float-card--code {
  top: 40px;
  left: 0;
  width: 360px;
  padding: 0;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 26, 0.4);
  animation: none !important;
}
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.window-bar span:nth-child(2) { background: #f59e0b; }
.window-bar span:nth-child(3) { background: #22c55e; }
.window-bar em { margin-left: 10px; font-style: normal; font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }
.float-card--code pre {
  margin: 0;
  padding: 18px 20px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #cbd5e1;
  white-space: pre;
  overflow: hidden;
  animation: none !important;
}
.tk-k { color: #c084fc; }
.tk-f { color: #60a5fa; }
.tk-s { color: #6ee7b7; }
.tk-n { color: #fbbf24; }
.tk-c { color: #64748b; font-style: italic; }

.float-card--chart { top: 0; right: 0; width: 240px; }
.float-card__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.float-card__head .up { color: var(--emerald-300); font-family: var(--font-head); font-size: 1rem; }
.mini-chart { width: 100%; height: 70px; }
.mini-chart__area { fill: url(#chartFill); }
.mini-chart__line {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawLine 2.4s 0.6s var(--ease) forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.float-card--status {
  bottom: 110px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.float-card--status > div { display: flex; flex-direction: column; }
.float-card--status b { font-size: 0.9rem; color: #fff; font-family: var(--font-head); }
.float-card--status small { font-size: 0.78rem; color: var(--text-dim); }
.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite !important;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.float-card--team { bottom: 20px; left: 50px; display: flex; flex-direction: column; gap: 10px; }
.float-card--team small { color: var(--text-muted); font-size: 0.8rem; }
.avatars { display: flex; }
.avatars span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-head);
  background: var(--c);
  color: #fff;
  border: 2px solid var(--navy-850);
  margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }

.orbit {
  position: absolute;
  border: 1px dashed rgba(147, 197, 253, 0.18);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.orbit--1 { width: 460px; height: 460px; top: 30px; left: 30px; animation: spin 60s linear infinite; }
.orbit--2 { width: 320px; height: 320px; top: 100px; left: 100px; animation: spin 40s linear infinite reverse; }
.orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}
.orbit--2::after { background: var(--emerald); box-shadow: 0 0 14px var(--emerald); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  transform: translateX(-50%);
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--blue-300);
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}


/* ==========================================================================
   07. Trust counters
   ========================================================================== */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -40px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(160deg, rgba(17, 31, 61, 0.9), rgba(10, 20, 40, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  padding-block: 8px;
}
.stat {
  padding: 32px 24px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--line-strong);
}
.stat__value {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__suffix {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { margin: 0; color: var(--text-muted); font-size: 0.95rem; }


/* ==========================================================================
   08. Section headers
   ========================================================================== */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
}
.section-head p:not(.kicker) { color: var(--text-muted); font-size: 1.06rem; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head--split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  text-align: left;
}
.section-head--split h2 { margin-bottom: 0; max-width: 620px; }


/* ==========================================================================
   09. Services grid
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s var(--ease);
}
/* Cursor-following spotlight (position set by JS) */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(59, 130, 246, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
/* Gradient border that animates in on hover */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--blue) 75%, var(--emerald) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--glow-blue);
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }
.service-card:hover::after { animation: borderSpin 3s linear infinite; }

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes borderSpin { to { --angle: 360deg; } }

.service-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.3), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(147, 197, 253, 0.25);
  transition: transform 0.45s var(--ease);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card:hover .service-card__icon { transform: rotate(-6deg) scale(1.08); }

.service-card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.97rem; flex-grow: 1; }

.service-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 24px; }
.service-card__tags li {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blue-300);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}
.service-card__link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.service-card__link:hover svg { transform: translateX(4px); }
.service-card__link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */


/* ==========================================================================
   10. Solutions / process
   ========================================================================== */
.solutions { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }

.solutions__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.solutions__inner .section-head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.solutions__inner .section-head p:not(.kicker) { margin-bottom: 28px; }

.process { display: grid; gap: 18px; counter-reset: step; }
.process__step {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 28px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.4s var(--ease), background-color 0.4s;
}
.process__step:hover {
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateX(6px);
  background: rgba(17, 31, 61, 0.8);
}
.process__num {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.process__step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.process__step p { color: var(--text-muted); margin: 0; }


/* ==========================================================================
   11. Tech stack (marquee + tabs)
   ========================================================================== */
.tech { background: var(--navy-900); overflow: hidden; }

/* Logo tile used in both the marquee and tab panel */
.tech-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: border-color 0.3s, transform 0.3s var(--ease), background-color 0.3s;
}
.tech-logo__img {
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
}
.tech-logo__fallback {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gradient);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.tech-logo span { font-weight: 500; font-size: 0.95rem; }

/* Marquee */
.marquee {
  position: relative;
  padding-block: 8px;
  margin-bottom: 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tabs */
.tabs {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(5, 11, 26, 0.5);
  padding: 10px;
}
.tabs__list {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.35), rgba(16, 185, 129, 0.3));
  border: 1px solid rgba(147, 197, 253, 0.3);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
  z-index: 0;
}
.tabs__tab {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.tabs__tab:hover { color: #fff; }
.tabs__tab[aria-selected="true"] { color: #fff; }

.tabs__panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  padding: 28px 18px 18px;
}
.tabs__panel .tech-logo { animation: popIn 0.5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.tabs__panel .tech-logo:hover {
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-4px);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}


/* ==========================================================================
   12. Industries
   ========================================================================== */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.industry {
  padding: 32px 28px;
  background: var(--navy-950);
  transition: background-color 0.4s;
}
.industry:hover { background: var(--navy-850); }
.industry svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--blue-300);
  transition: color 0.4s, transform 0.4s var(--ease);
}
.industry:hover svg { color: var(--emerald-300); transform: translateY(-4px); }
.industry h3 { font-size: 1.08rem; margin-bottom: 8px; }
.industry p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }


/* ==========================================================================
   13. Case-study carousel
   ========================================================================== */
.cases { background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-950)); }

.carousel__controls { display: flex; gap: 12px; flex-shrink: 0; }
.carousel__btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: #fff;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }

.carousel { position: relative; }
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
  touch-action: pan-y;
}
.carousel__track {
  display: flex;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.carousel__track.is-dragging { transition: none; }

.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 360px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  user-select: none;
}
.slide__metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 48px;
  background:
    radial-gradient(400px 300px at 0% 0%, rgba(59, 130, 246, 0.35), transparent 70%),
    radial-gradient(400px 300px at 100% 100%, rgba(16, 185, 129, 0.25), transparent 70%),
    var(--navy-800);
  border-right: 1px solid var(--line);
}
.slide__big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.slide__metric > span:nth-child(2) { color: var(--text-muted); font-size: 1.05rem; }
.slide__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.slide__meta li {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
}

.slide__quote {
  margin: 0;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.slide__quote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  right: 40px;
  font-family: Georgia, serif;
  font-size: 9rem;
  line-height: 1;
  color: rgba(59, 130, 246, 0.14);
}
.slide__quote p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 32px;
}
.slide__quote footer { display: flex; align-items: center; gap: 14px; }
.slide__quote footer div { display: flex; flex-direction: column; }
.slide__quote footer small { color: var(--text-dim); }
.slide__avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c);
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
}

.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width 0.4s var(--ease), background-color 0.3s;
}
.carousel__dot[aria-selected="true"] { width: 34px; background: var(--gradient); }

.carousel__progress {
  height: 2px;
  max-width: 220px;
  margin: 18px auto 0;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.carousel__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
}


/* ==========================================================================
   14. About
   ========================================================================== */
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about__content > p { color: var(--text-muted); font-size: 1.04rem; }
.about__content .section-head { margin-bottom: 24px; }

.about__visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.about__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle, transparent 54%, rgba(59, 130, 246, 0.08) 55%, transparent 56%),
    radial-gradient(circle, transparent 74%, rgba(16, 185, 129, 0.08) 75%, transparent 76%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12), transparent 60%);
  animation: spin 80s linear infinite;
}
.about__ring::before,
.about__ring::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 16px var(--emerald);
  top: 14%;
  left: 14%;
}
.about__ring::after { background: var(--blue); box-shadow: 0 0 16px var(--blue); top: auto; left: auto; bottom: 6%; right: 30%; }

.about__card {
  position: relative;
  z-index: 1;
  width: min(300px, 80%);
  padding: 32px;
  text-align: center;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(26, 43, 80, 0.9), rgba(10, 20, 40, 0.9));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.about__pin {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--emerald);
  animation: bob 3s ease-in-out infinite;
}
.about__city { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: 4px; }
.about__coords { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); margin-bottom: 20px; }
.about__clock {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.about__clock span { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.about__clock b { font-family: var(--font-head); font-size: 1.8rem; color: #fff; font-variant-numeric: tabular-nums; }

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.values li {
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  border-left: 3px solid var(--blue);
}
.values li:nth-child(even) { border-left-color: var(--emerald); }
.values b { display: block; font-family: var(--font-head); color: #fff; margin-bottom: 2px; }
.values span { font-size: 0.9rem; color: var(--text-muted); }


/* ==========================================================================
   15. Careers
   ========================================================================== */
.careers { padding-top: 0; }
.careers__banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(16, 185, 129, 0.45), transparent 60%),
    linear-gradient(120deg, #1d4ed8, #2563eb 40%, #0e7490);
  box-shadow: 0 40px 80px -30px rgba(37, 99, 235, 0.6);
}
.careers__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.careers__banner > * { position: relative; }
.careers__banner .kicker { color: #d1fae5; }
.careers__banner .kicker::before { background: #fff; }
.careers__banner h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 620px; }
.careers__banner p { color: rgba(255, 255, 255, 0.85); max-width: 600px; }
.careers__roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.careers__roles li {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}


/* ==========================================================================
   16. Contact + form
   ========================================================================== */
.site-footer {
  position: relative;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--navy-900);
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  padding-block: var(--section-y) 80px;
  border-bottom: 1px solid var(--line);
}
.contact__info h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
.contact__info > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }

.office-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.office-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.office-card__head div { display: flex; flex-direction: column; }
.office-card__head b { font-family: var(--font-head); color: #fff; }
.office-card__head small { color: var(--emerald-300); font-size: 0.8rem; }
.office-card__flag {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  background: linear-gradient(180deg, #ff9933 0 33%, #fff 33% 66%, #138808 66%);
  color: #000080;
}
.office-card__list { padding: 20px 24px; display: grid; gap: 14px; }
.office-card__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.office-card__list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--blue-300); }
.office-card__list a { transition: color 0.25s; }
.office-card__list a:hover { color: #fff; }
.office-card__map { height: 200px; border-top: 1px solid var(--line); }
.office-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9) hue-rotate(180deg);
  transition: filter 0.5s;
}
.office-card__map:hover iframe { filter: none; }

/* ---- Form ---- */
.contact-form {
  position: relative;
  align-self: start;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(17, 31, 61, 0.85), rgba(10, 20, 40, 0.85));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 18px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Floating-label field */
.field { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 24px 16px 10px;
  background: rgba(5, 11, 26, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa8c0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field select option { background: var(--navy-900); color: var(--text); }

.field label {
  position: absolute;
  left: 17px;
  top: 17px;
  font-size: 0.98rem;
  color: var(--text-dim);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease), color 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: rgba(5, 11, 26, 0.8);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
/* Float label when focused or filled */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label,
.field.has-value label {
  transform: translateY(-10px) scale(0.78);
  color: var(--blue-300);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12); }
.field.is-invalid label { color: #fca5a5; }
.field.is-valid input,
.field.is-valid textarea { border-color: rgba(16, 185, 129, 0.6); }

.field__error {
  display: block;
  min-height: 0;
  font-size: 0.8rem;
  color: #fca5a5;
  margin-top: 6px;
}
.field__error:empty { display: none; }
.field__counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 0.74rem;
  color: var(--text-dim);
  pointer-events: none;
}
.field:has(.field__error:not(:empty)) .field__counter { bottom: 36px; }

/* Interest chips */
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}
.chips label:hover span { border-color: rgba(147, 197, 253, 0.5); color: #fff; }
.chips input:checked + span {
  color: #fff;
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--blue);
}
.chips input:focus-visible + span { outline: 2px solid var(--blue-300); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--text-muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.consent.is-invalid span { color: #fca5a5; }

/* Honeypot field: kept out of view and out of the tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Delivery error banner */
.form-error {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.form-error[hidden] { display: none; }

/* Submit button loading state */
.btn__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.contact-form.is-loading .btn__label { opacity: 0.7; }
.contact-form.is-loading .btn__spinner { display: inline-block; }
.contact-form.is-loading .contact-form__submit { pointer-events: none; }

/* Success state */
.form-success {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px;
  text-align: center;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  animation: popIn 0.5s var(--ease);
}
.form-success[hidden] { display: none; }
.form-success svg { width: 76px; height: 76px; margin-bottom: 14px; color: var(--emerald); stroke-width: 2.5; }
.form-success circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: drawLine 0.8s var(--ease) forwards; }
.form-success path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawLine 0.5s 0.6s var(--ease) forwards; }
.form-success p { color: var(--text-muted); max-width: 340px; }


/* ==========================================================================
   17. Footer (4 columns)
   ========================================================================== */
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-block: 72px 56px;
}
.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 22px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col ul a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.footer-col nav a:hover,
.footer-col ul a:hover { color: #fff; padding-left: 6px; }
.footer-col--brand p { color: var(--text-muted); font-size: 0.95rem; margin: 20px 0 24px; max-width: 320px; }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--navy-950);
  background: var(--emerald-300);
  vertical-align: middle;
}

.socials { display: flex !important; gap: 10px !important; }
.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease) !important;
}
.socials a:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
  padding-left: 0 !important;
}
.socials svg { width: 18px; height: 18px; }

.footer-address { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; }
.footer-contact { margin-bottom: 26px; }

.newsletter label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.newsletter__row {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 11, 26, 0.55);
  transition: border-color 0.25s;
}
.newsletter__row:focus-within { border-color: var(--blue); }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  background: none;
  border: 0;
  outline: none;
  font-size: 0.9rem;
}
.newsletter .btn { --pad-x: 12px; --pad-y: 10px; }
.newsletter .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.newsletter__msg { display: block; margin-top: 8px; font-size: 0.8rem; min-height: 1em; }
.newsletter__msg.ok { color: var(--emerald-300); }
.newsletter__msg.err { color: #fca5a5; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-dim);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a:hover { color: #fff; }


/* ==========================================================================
   18. Back-to-top
   ========================================================================== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 30px -8px rgba(59, 130, 246, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s, background-color 0.3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--emerald); }


/* ==========================================================================
   19. Responsive breakpoints
   ========================================================================== */

/* ---- Large tablets / small laptops ---- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr 0.85fr; gap: 24px; }
  .hero__visual { transform: scale(0.85); transform-origin: center right; }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* ---- Tablets: collapse nav into a slide-down panel ---- */
@media (max-width: 960px) {
  :root { --nav-h: 68px; }

  .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 24px var(--gutter) 32px;
    background: rgba(5, 11, 26, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    overflow-y: auto;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: 1.2rem; padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: block; margin-top: 24px; }

  /* When the menu is open, give the header a solid background */
  .site-header.menu-open { background: rgba(5, 11, 26, 0.96); }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-inline: auto; }
  .hero__ctas, .hero__badges { justify-content: center; }
  .hero__visual { height: 440px; width: 100%; max-width: 560px; margin: 16px auto 0; transform: none; }
  .float-card--code { width: 320px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

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

  .solutions__inner { grid-template-columns: 1fr; gap: 40px; }
  .solutions__inner .section-head { position: static; }

  .slide { grid-template-columns: 1fr; }
  .slide__metric { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px; }
  .slide__quote { padding: 36px; }

  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { max-width: 380px; width: 100%; margin-inline: auto; }

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

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

/* ---- Phones ---- */
@media (max-width: 640px) {
  .hero { padding-bottom: 80px; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .hero__visual { height: 380px; }
  .float-card--code { width: 270px; top: 50px; }
  .float-card--code pre { font-size: 0.72rem; padding: 14px; }
  .float-card--chart { width: 180px; padding: 14px; }
  .float-card--status { bottom: 96px; right: 0; padding: 12px 14px; }
  .float-card--team { left: 0; bottom: 6px; padding: 14px; }
  .orbit--1 { width: 320px; height: 320px; left: 50%; margin-left: -160px; }
  .orbit--2 { width: 220px; height: 220px; left: 50%; margin-left: -110px; }
  .hero__scroll { display: none; }

  .stats { margin-top: -24px; }
  .stat { padding: 24px 12px; }

  .services__grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }

  .section-head { margin-bottom: 40px; }
  .section-head--split { flex-direction: column; align-items: flex-start; }

  .process__step { padding: 22px; gap: 16px; }

  .tabs__panel { grid-template-columns: repeat(2, 1fr); padding: 20px 6px 8px; }
  .tech-logo { padding: 10px; gap: 10px; }
  .tech-logo span { font-size: 0.86rem; white-space: normal; line-height: 1.25; }

  .industries__grid { grid-template-columns: 1fr; }
  .industry { padding: 26px 22px; }

  .slide__metric, .slide__quote { padding: 28px 24px; }
  .slide__quote::before { font-size: 6rem; right: 20px; }

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

  .careers__banner .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 380px) {
  .float-card--code { width: 240px; }
  .float-card--chart { width: 150px; }
  .logo__img { height: 32px; }
}


/* ==========================================================================
   20. Reduced motion: respect user preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
