/* ==========================================================================
   CodipyLabs — Shared Stylesheet
   Plain CSS3, mobile-first, no build step required.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors */
  --bg: #0a0e1a;            /* dark navy base */
  --surface: #ffffff;       /* light sections */
  --primary: #2563eb;       /* blue */
  --primary-2: #06b6d4;     /* cyan */
  --accent-grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --text: #0f172a;
  --muted: #64748b;

  /* Extended palette */
  --bg-2: #111827;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 10px 40px rgba(37, 99, 235, 0.35);

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 72px;

  /* Type */
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s;
  --t-med: 0.35s;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p { margin: 0 0 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--primary-2); }

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

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--dark {
  background: var(--bg);
  color: #cbd5e1;
}
.section--dark h2,
.section--dark h3 { color: #fff; }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section--dark .eyebrow { color: var(--primary-2); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #94a3b8; }

.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

.section--dark .btn-ghost,
.hero .btn-ghost,
.page-hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.section--dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.page-hero .btn-ghost:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
  background: rgba(255, 255, 255, 0.04);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-med) var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

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

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  position: relative;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.25rem;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}
.nav-links .btn { margin-left: 0.5rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform var(--t-med) var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { margin: 0.75rem 0 0; width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg);
  color: #e2e8f0;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* Animated gradient blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle at 30% 30%, #2563eb, transparent 70%);
  top: -120px; left: -80px;
  animation: float1 18s ease-in-out infinite;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 70% 70%, #06b6d4, transparent 70%);
  bottom: -140px; right: -60px;
  animation: float2 22s ease-in-out infinite;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle at 50% 50%, #7c3aed, transparent 70%);
  top: 40%; left: 55%;
  opacity: 0.35;
  animation: float1 26s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 50px) scale(1.12); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.08); }
}

/* subtle grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #94a3b8;
  max-width: 36ch;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* Hero mockup visual */
.hero-visual {
  position: relative;
  perspective: 1200px;
}
.mockup {
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  transform: rotateY(-8deg) rotateX(4deg);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-12px); }
}
.mockup-bar {
  display: flex; gap: 6px; padding: 0.35rem 0.5rem 0.75rem;
}
.mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.mockup-bar span:nth-child(1) { background: #ef4444; }
.mockup-bar span:nth-child(2) { background: #f59e0b; }
.mockup-bar span:nth-child(3) { background: #22c55e; }
.mockup-screen {
  background: #0b1120;
  border-radius: 12px;
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}
.code-line { height: 12px; border-radius: 6px; background: rgba(148, 163, 184, 0.18); }
.code-line.grad { background: var(--accent-grad); opacity: 0.8; }
.code-line.w-40 { width: 40%; }
.code-line.w-60 { width: 60%; }
.code-line.w-75 { width: 75%; }
.code-line.w-50 { width: 50%; }
.mockup-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.4rem;
}
.mockup-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
}
.mockup-stat b { display: block; color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.mockup-stat small { color: #64748b; font-size: 0.7rem; }

.float-card {
  position: absolute;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-head);
}
.float-card .ic {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-grad); color: #fff;
}
.float-card-1 { top: -18px; right: 10px; animation: floaty 5s ease-in-out infinite; }
.float-card-2 { bottom: -16px; left: -16px; animation: floaty 7s ease-in-out infinite reverse; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sub { max-width: 100%; }
  .hero-visual { max-width: 420px; margin: 1rem auto 0; }
  .mockup { transform: none; animation: floaty 6s ease-in-out infinite; }
}

/* ==========================================================================
   Stats / Trust strip
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}
.stat span { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
}

/* ==========================================================================
   Cards grid (services, work, values)
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.12));
  color: var(--primary);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }

/* ==========================================================================
   Why choose / feature rows
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
}
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature .f-ic {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #fff;
  display: grid; place-items: center;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.feature p { color: var(--muted); margin: 0; }
.section--dark .feature p { color: #94a3b8; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ==========================================================================
   Portfolio / Work
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.work-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.work-thumb .label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  z-index: 2;
}
.work-thumb--salonipy { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.work-thumb--ph { background: linear-gradient(135deg, #1e293b, #334155); }
.work-thumb--green { background: linear-gradient(135deg, #059669, #10b981); }
.work-thumb--violet { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.work-thumb--amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.work-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12), transparent 40%);
}
.work-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.work-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.09);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.tag--featured { color: #fff; background: var(--accent-grad); }
.work-body h3 { margin-bottom: 0.4rem; }
.work-body p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.work-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.5rem;
}
.work-link svg { transition: transform var(--t-fast) var(--ease); }
.work-link:hover svg { transform: translateX(4px); }

.work-card--soon { border-style: dashed; background: var(--bg-soft); }
.work-card--soon .work-thumb {
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 12px, #e9eef5 12px, #e9eef5 24px);
  color: var(--muted);
}
.work-card--soon .work-thumb::after { display: none; }
.work-card--soon .work-thumb .label { color: var(--muted); font-size: 1.1rem; }

/* ==========================================================================
   Process timeline
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }
.process-step {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.process-step .num {
  width: 48px; height: 48px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid; place-items: center;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.process-step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 6 reviews → 3 × 2 grid on desktop */
  gap: 1.5rem;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonials-grid > .quote { min-width: 0; }  /* prevent grid overflow on narrow screens */
.quote {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.quote .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 0.75rem; }
.quote blockquote { margin: 0 0 1.25rem; font-size: 1.02rem; color: var(--text); }
.quote .author { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700;
}
.quote .author b { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.quote .author span { color: var(--muted); font-size: 0.85rem; }

/* ==========================================================================
   Tech stack strip
   ========================================================================== */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.tech-pill {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.tech-pill:hover { transform: translateY(-3px); border-color: var(--primary-2); color: #fff; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: var(--accent-grad);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.25), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.15), transparent 35%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.92); max-width: 520px; margin: 0 auto 1.75rem; font-size: 1.1rem; }
.cta-banner .btn-primary { background: #fff; color: var(--primary); }
.cta-banner .btn-primary:hover { background: #fff; color: var(--primary-2); box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
.cta-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.cta-banner .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.12); }

/* ==========================================================================
   Contact / Forms
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .info-item {
  display: flex; gap: 0.85rem; align-items: flex-start;
  margin-bottom: 1.4rem;
}
.contact-info .info-item .ic {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.12));
  color: var(--primary);
  display: grid; place-items: center;
}
.contact-info .info-item b { font-family: var(--font-head); display: block; }
.contact-info .info-item a, .contact-info .info-item span { color: var(--muted); }

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form .btn { width: 100%; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 0.75rem 0 0; text-align: center; }

.form-success {
  display: none;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.form-success.show { display: block; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  background: var(--bg);
  color: #cbd5e1;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 25% 10%, rgba(37,99,235,0.35), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(6,182,212,0.3), transparent 45%);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #94a3b8; max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: #64748b;
}
.breadcrumb a { color: #94a3b8; }
.breadcrumb a:hover { color: var(--primary-2); }
.breadcrumb span { color: #475569; }

/* ==========================================================================
   Detailed service blocks (services page)
   ========================================================================== */
.service-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.service-block:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-block .s-ic {
  width: 60px; height: 60px; border-radius: 15px;
  background: var(--accent-grad); color: #fff;
  display: grid; place-items: center;
}
.service-block ul.checks { margin-top: 0.75rem; display: grid; gap: 0.4rem; }
.service-block ul.checks li {
  position: relative; padding-left: 1.6rem; color: var(--muted); font-size: 0.94rem;
}
.service-block ul.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--primary-2); font-weight: 700;
}
@media (max-width: 560px) {
  .service-block { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Values / team (about page)
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 0.9rem;
  background: var(--accent-grad);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.8rem;
  box-shadow: var(--shadow-md);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.team-card p { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg);
  color: #94a3b8;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .logo { color: #fff; display: inline-block; margin-bottom: 0.75rem; }
.footer-about p { font-size: 0.92rem; max-width: 34ch; }
.footer h4 {
  color: #fff; font-size: 0.95rem; margin-bottom: 1rem;
  font-family: var(--font-head); letter-spacing: 0.02em;
}
.footer ul li { margin-bottom: 0.55rem; }
.footer ul a { color: #94a3b8; font-size: 0.92rem; }
.footer ul a:hover { color: var(--primary-2); }
.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.social a:hover { transform: translateY(-3px); background: var(--accent-grad); color: #fff; border-color: transparent; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.footer-bottom a { color: #94a3b8; }

/* ==========================================================================
   Scroll reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blob, .mockup, .float-card { animation: none !important; }
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--t-fast) var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   IT / Tech hero animations (added)
   ========================================================================== */

/* Particle network canvas behind the hero */
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

/* Animated sheen across all gradient accent text */
.gradient-text {
  background-size: 220% auto;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* Typewriter caret */
.type-caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 3px;
  background: var(--primary-2);
  vertical-align: -2px;
  border-radius: 2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.type-rotate { display: inline-block; }

/* Live code editor inside the hero mockup */
.code-block {
  margin: 0;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.75;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 9.5em;
}
.code-block .kw   { color: #c084fc; }   /* keyword */
.code-block .fn   { color: #38bdf8; }   /* function */
.code-block .str  { color: #34d399; }   /* string */
.code-block .prop { color: #7dd3fc; }   /* property */
.code-block .val  { color: #fbbf24; }   /* value */
.code-block .cm   { color: #64748b; font-style: italic; } /* comment */
.code-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--primary-2);
  vertical-align: -2px;
  margin-left: 1px;
  animation: caret-blink 1s steps(1) infinite;
}

/* Ambient floating tech chips */
.tech-chip {
  position: absolute;
  z-index: -1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  opacity: 0.85;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.chip-1 { top: 14%;  left: 44%; animation: drift 11s ease-in-out infinite; }
.chip-2 { top: 30%;  right: 7%;  animation: drift 9s  ease-in-out infinite reverse; }
.chip-3 { bottom: 22%; left: 7%; animation: drift 13s ease-in-out infinite; }
.chip-4 { bottom: 12%; left: 40%; animation: drift 10s ease-in-out infinite reverse; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -16px); }
}
@media (max-width: 880px) { .tech-chip { display: none; } }

/* Infinite scrolling tech marquee */
.tech-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tech-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.tech-marquee:hover .tech-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Interior page-hero animations + extra micro-interactions (added)
   ========================================================================== */

/* Floating tech chips on interior page heroes (kept near the edges) */
.page-hero .tech-chip { opacity: 0.7; }
.page-hero .pchip-1 { top: 24%;  left: 9%;  animation: drift 11s ease-in-out infinite; }
.page-hero .pchip-2 { top: 32%;  right: 10%; animation: drift 9s  ease-in-out infinite reverse; }
.page-hero .pchip-3 { bottom: 22%; left: 15%; animation: drift 13s ease-in-out infinite; }
.page-hero .pchip-4 { bottom: 26%; right: 14%; animation: drift 10s ease-in-out infinite reverse; }

/* Shine sweep across primary buttons on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-primary:hover::after { animation: sheen 0.85s ease; }
@keyframes sheen { from { left: -130%; } to { left: 140%; } }

/* Animated scroll-down cue in the home hero */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
  z-index: 5;
  transition: border-color var(--t-fast) var(--ease);
}
.scroll-cue:hover { border-color: var(--primary-2); }
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary-2);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(-3px); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}
@media (max-width: 880px) { .scroll-cue { display: none; } }

/* ==========================================================================
   Keep the rotating headline word on a single line (added)
   ========================================================================== */
.hero h1 {
  font-size: clamp(1.8rem, 4.6vw, 3.15rem);
  line-height: 1.12;
}
/* The typed word + caret never wrap, even for two-word phrases */
.type-line {
  display: block;
  white-space: nowrap;
}

/* Headline lines stack cleanly with no empty gap (added) */
.hero h1 .h1-line { display: block; }
.hero h1 .type-line { margin: 0; }

/* Trim the top gap above the hero badge (added) */
.hero { padding-top: clamp(1.75rem, 4vw, 3.25rem); }

/* ==========================================================================
   Mobile: keep key sections in TWO columns instead of stacking (added)
   ========================================================================== */
@media (max-width: 620px) {
  .grid-3,
  .grid-2,
  .work-grid,
  .process,
  .footer-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  /* Testimonials become a swipeable single-card slider on mobile */
  .testimonials-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;            /* Firefox */
    -webkit-overflow-scrolling: touch;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
  .testimonials-grid > .quote {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }
  .quote blockquote { font-size: 0.95rem; }

  /* Tighten cards so two fit comfortably on small screens */
  .card { padding: 1.05rem; }
  .card-icon { width: 42px; height: 42px; margin-bottom: 0.7rem; }
  .card-icon svg { width: 21px; height: 21px; }
  .card h3 { font-size: 0.98rem; }
  .card p { font-size: 0.82rem; }

  .work-body { padding: 1rem; }
  .work-body h2,
  .work-body h3 { font-size: 1rem; }
  .work-body p { font-size: 0.8rem; }
  .work-tags { gap: 0.3rem; }
  .tag { font-size: 0.62rem; padding: 0.18rem 0.5rem; }

  .quote { padding: 1.05rem; }
  .quote blockquote { font-size: 0.86rem; }
  .quote .author b { font-size: 0.85rem; }
  .quote .author span { font-size: 0.76rem; }
  .avatar { width: 36px; height: 36px; }

  .process-step { padding: 1.1rem 0.7rem; }
  .process-step .num { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 0.6rem; }
  .process-step h3 { font-size: 0.98rem; }
  .process-step p { font-size: 0.8rem; }

  .footer-grid { gap: 1.4rem 1rem; }
  .footer-about { grid-column: 1 / -1; }   /* brand block spans full width, links in 2 cols */
}

/* Re-assert two columns at very small widths (override old single-column rules) */
@media (max-width: 480px) {
  .process,
  .team-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Testimonials: tidy author block on small screens so nothing overflows (added) */
@media (max-width: 620px) {
  .quote .author { gap: 0.5rem; align-items: center; }
  .quote .author > div { min-width: 0; }
  .quote .author b { font-size: 0.82rem; line-height: 1.25; }
  .quote .author span { font-size: 0.72rem; }
  .avatar { flex: 0 0 auto; width: 34px; height: 34px; font-size: 0.85rem; }
}

/* ==========================================================================
   Hide breadcrumb on all pages + testimonial slider dots (added)
   ========================================================================== */
.breadcrumb { display: none; }

/* Slider dots (only visible on the mobile testimonials slider) */
.slider-dots { display: none; }
@media (max-width: 620px) {
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }
  .slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: width var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  }
  .slider-dots button.active {
    width: 22px;
    border-radius: 5px;
    background: var(--accent-grad);
  }
}

/* ==========================================================================
   Advanced mobile / tablet navigation menu (added)
   ========================================================================== */
@media (max-width: 880px) {
  /* Full-screen slide-in panel from the right */
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background:
      radial-gradient(120% 60% at 100% 0, rgba(37, 99, 235, 0.06), transparent 60%),
      #ffffff;
    padding: 1.5rem clamp(1.25rem, 6vw, 2.25rem) 2rem;
    border: none;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    max-height: none;
  }
  .nav-links.open { transform: translateX(0); }

  /* Each item fades + slides in with a slight stagger */
  .nav-links li {
    opacity: 0;
    transform: translateY(10px);
  }
  .nav-links.open li { animation: navIn 0.45s var(--ease) forwards; }
  .nav-links.open li:nth-child(1) { animation-delay: 0.06s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.12s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.18s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.24s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.30s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.36s; }
  @keyframes navIn { to { opacity: 1; transform: none; } }

  /* Link styling — large, tappable, with a divider + arrow */
  .nav-links a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-links a:not(.btn)::after {
    content: "→";
    font-size: 1rem;
    color: var(--muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  }
  .nav-links a:not(.btn):hover,
  .nav-links a:not(.btn):active { color: var(--primary); }
  .nav-links a:not(.btn):hover::after { opacity: 1; transform: none; }
  .nav-links a.active {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent);
  }
  .nav-links a.active::after { content: "•"; color: var(--primary-2); opacity: 1; transform: none; }

  /* CTA button sits below the links, full width */
  .nav-links .btn {
    margin-top: auto;
    width: 100%;
    font-size: 1.08rem;
    padding: 1rem;
    border-bottom: none;
  }
  .nav-links li:last-child { margin-top: 1.5rem; }

  /* Animate the hamburger into a clean X (already handled) and keep it on top */
  .nav-toggle { z-index: 110; }
}

/* Stop the page behind the menu from scrolling */
body.nav-open { overflow: hidden; }

/* ==========================================================================
   Tablet polish (added)
   ========================================================================== */
@media (min-width: 621px) and (max-width: 900px) {
  .work-grid,
  .grid-3,
  .grid-2,
  .testimonials-grid,
  .team-grid,
  .process { gap: 1.25rem; }

  .hero-grid { gap: 2rem; }
  .contact-grid { gap: 2rem; }
  .stats { gap: 1.25rem; }
  /* keep process readable: 2 across instead of cramped 5 */
  .process { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Legal / privacy policy content (added)
   ========================================================================== */
.legal h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
}
.legal p { color: #334155; }
.legal ul.checks { margin: 0.5rem 0 1rem; display: grid; gap: 0.45rem; }
.legal ul.checks li {
  position: relative;
  padding-left: 1.6rem;
  color: #334155;
}
.legal ul.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--primary-2);
  font-weight: 700;
}
.legal a { font-weight: 600; }

/* ==========================================================================
   Animated brand logo (C mark + scanning dot) — added
   ========================================================================== */
.logo{display:inline-flex;align-items:center;position:relative;gap:.01em;line-height:1;}
.logo-mark{display:inline-flex;align-items:center;}
.logo-mark svg{height:.95em;width:.95em;display:block;}
.logo-word{display:inline-block;}
.logo-dot{
  position:absolute;top:50%;left:.72em;
  width:.34em;height:.34em;border-radius:50%;
  background:var(--primary-2);
  transform:translate(-50%,-50%);
  box-shadow:0 0 6px rgba(6,182,212,.7);
  animation:logoDot 4.5s ease-in-out infinite;
}
@keyframes logoDot{
  0%{left:.72em;opacity:0}
  10%{left:.72em;opacity:1}
  45%{left:100%;opacity:1}
  70%{left:100%;opacity:1}
  73%{opacity:.2}
  77%{opacity:1}
  88%{left:100%;opacity:1}
  92%{left:100%;opacity:0}
  100%{left:.72em;opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .logo-dot{animation:none;left:100%;opacity:1}
}

/* ==========================================================================
   Testimonials autoplay slider — mobile 1/view, desktop 4/view (added)
   ========================================================================== */
.testimonials-grid{
  display:flex;
  grid-template-columns:none;
  gap:1.25rem;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:.5rem;
}
.testimonials-grid::-webkit-scrollbar{display:none;}
.testimonials-grid>.quote{
  flex:0 0 calc((100% - 3 * 1.25rem) / 4);   /* 4 reviews per screen (desktop) */
  min-width:0;
  scroll-snap-align:start;
}
@media (max-width:1000px){
  .testimonials-grid>.quote{flex-basis:calc((100% - 1.25rem) / 2);}  /* 2 per screen (tablet) */
}
@media (max-width:620px){
  .testimonials-grid>.quote{flex-basis:100%;}  /* 1 per screen (mobile) */
}
/* Dots now show on every breakpoint */
.slider-dots{display:flex;justify-content:center;gap:.5rem;margin-top:1.5rem;}
.slider-dots button{width:8px;height:8px;padding:0;border:none;border-radius:50%;background:#cbd5e1;cursor:pointer;transition:width .2s var(--ease),background .2s var(--ease);}
.slider-dots button.active{width:22px;border-radius:5px;background:var(--accent-grad);}

/* ==========================================================================
   Mobile: stop the stats card overlapping the hero floating cards (added)
   ========================================================================== */
@media (max-width: 880px){
  .stats{ margin-top: -2rem; }                                   /* nudge up toward hero, no overlap */
  .hero-visual{ margin-bottom: 0.75rem; }
  section[aria-label="Key results"]{ padding-bottom: 1.25rem; }  /* trim gap before "What we do" */
}

/* ==========================================================================
   Fixes: mobile horizontal scroll, logo spacing, hopping dot (added)
   ========================================================================== */

/* 1) Off-canvas mobile menu was creating sideways scroll — clip it.
      overflow-x:clip (not hidden) keeps the sticky navbar working. */
html{ overflow-x: clip; }

/* 2) Close the gap between the C mark and "odipy" */
.logo{ gap: 0; }
.logo-mark{ margin-right: -0.16em; }

/* 3) Make the dot hop across the word like a playful code cursor */
.logo-dot{ left: .55em; animation: logoHop 4.6s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes logoHop{
  0%   { left:.55em;  opacity:0; transform:translate(-50%,-50%) }
  6%   { opacity:1 }
  9%   { left:.55em;  transform:translate(-50%,-50%) translateY(0) }
  17%  { left:2.0em;  transform:translate(-50%,-50%) translateY(-.5em) }   /* hop 1 up */
  25%  { left:2.9em;  transform:translate(-50%,-50%) translateY(0) }       /* land */
  33%  { left:3.9em;  transform:translate(-50%,-50%) translateY(-.5em) }   /* hop 2 up */
  41%  { left:4.8em;  transform:translate(-50%,-50%) translateY(0) }       /* land */
  50%  { left:6.4em;  transform:translate(-50%,-50%) translateY(-.5em) }   /* hop 3 up */
  58%  { left:100%;   transform:translate(-50%,-50%) translateY(0) }       /* land at end */
  70%  { left:100%;   opacity:1; transform:translate(-50%,-50%) translateY(0) }
  74%  { opacity:.15 }                                                     /* blink like a caret */
  78%  { opacity:1 }
  88%  { left:100%;   opacity:1; transform:translate(-50%,-50%) translateY(0) }
  93%  { opacity:0 }
  100% { left:.55em;  opacity:0; transform:translate(-50%,-50%) translateY(0) }
}

/* Keep the dot visible & still when motion is reduced (must stay last) */
@media (prefers-reduced-motion: reduce){
  .logo-dot{ animation: none; left: 100%; opacity: 1; transform: translate(-50%,-50%); }
}

/* ---------- Blog post thumbnails ---------- */
.blog-thumb{aspect-ratio:16/10;overflow:hidden;background:var(--bg);}
.blog-thumb img{width:100%;height:100%;object-fit:cover;display:block;}

/* ==========================================================================
   Mobile menu: clean full-width divider between each item (added)
   ========================================================================== */
@media (max-width: 880px){
  .nav-links li{ border-bottom: 1px solid var(--border); }
  .nav-links li:last-child{ border-bottom: none; }   /* no line under the CTA button */
  .nav-links a:not(.btn){ border-bottom: none; }      /* avoid a double line */
}

/* ==========================================================================
   Footer logo: keep the C mark aligned with the text (added)
   ========================================================================== */
.footer .logo{ display: inline-flex; align-items: center; }

/* ==========================================================================
   FAQ accordion (native <details>) — added
   ========================================================================== */
.faq{ max-width:760px; margin:0 auto; display:grid; gap:.85rem; }
.faq-item{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:box-shadow var(--t-med) var(--ease); }
.faq-item[open]{ box-shadow:var(--shadow-sm); }
.faq-item summary{
  list-style:none; cursor:pointer; padding:1.1rem 1.25rem;
  font-family:var(--font-head); font-weight:600; font-size:1.02rem; color:var(--text);
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:1.5rem; line-height:1; color:var(--primary); flex:0 0 auto; }
.faq-item[open] summary::after{ content:"\2212"; }
.faq-item summary:hover{ color:var(--primary); }
.faq-a{ padding:0 1.25rem 1.2rem; color:var(--muted); }
.faq-a p{ margin:0; }

/* ==========================================================================
   Portfolio cards: project logo as a clean, centered app-icon (redesigned)
   ========================================================================== */
.work-thumb--logo{
  /* soft brand-tinted surface instead of a full gradient banner */
  background:
    radial-gradient(circle at 26% 22%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(circle at 82% 88%, rgba(6, 182, 212, 0.11), transparent 55%),
    var(--bg-soft);
  aspect-ratio: 16 / 9;
  padding: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.work-thumb--logo::after{ display: none; }   /* drop the white overlay meant for dark banners */
.proj-logo{
  width: 92px; height: 92px;
  max-width: 92px;
  object-fit: contain;                        /* whole logo, consistent size for every project */
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 12px 26px rgba(2, 6, 23, 0.14),
    0 2px 6px rgba(2, 6, 23, 0.07);
  position: relative; z-index: 1;
  transition: transform var(--t-med) var(--ease);
}
.work-card:hover .proj-logo{ transform: translateY(-3px) scale(1.03); }
@media (max-width: 620px){
  .work-thumb--logo{ aspect-ratio: 16 / 8; padding: 1.25rem; }
  .proj-logo{ width: 76px; height: 76px; }
}
