/* =========================================================
   CodeWorks Solution — base styles
   ========================================================= */

/* Fonts, hosted on this site (assets/fonts) instead of Google Fonts: one fewer server to
   connect to before text can show. Each file covers all the weights we use.
   swap = show text straight away in a fallback font, then switch when the font arrives. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Extra characters, e.g. the peso sign (₱). Only downloaded on pages that use them. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light only;

  /* Colors: light */
  --cw-primary: #635ACE;
  --cw-primary-dark: #4F46B8;
  --cw-accent: #5C99E9;
  --cw-text: #171A22;
  --cw-text-muted: #5A5F6E;
  --cw-bg: #FFFFFF;
  --cw-bg-soft: #F4F3FC;
  --cw-border: #E6E4F5;
  --cw-surface: #FFFFFF;
  --cw-gradient: linear-gradient(135deg, #635ACE 0%, #5C99E9 100%);
  --cw-shadow: 0 20px 50px -20px rgba(99, 90, 206, 0.35);
  --cw-shadow-sm: 0 8px 24px -10px rgba(23, 26, 34, 0.18);

  /* Type */
  --cw-font: 'Montserrat', 'Poppins', Arial, sans-serif;
  --cw-font-code: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shape */
  --cw-radius-sm: 8px;
  --cw-radius-md: 12px;
  --cw-radius-lg: 16px;

  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cw-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cw-text);
  background: var(--cw-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; color: var(--cw-text); margin: 0; }
[hidden] { display: none !important; } /* beat component display rules (e.g. .form's grid) */
/* Text for screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cw-primary);
  font-size: 0.8rem;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--cw-radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn--sm { padding: 11px 18px; font-size: 0.85rem; }
.btn--primary {
  background: var(--cw-primary);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -10px rgba(99, 90, 206, 0.7);
}
.btn--primary:hover { background: var(--cw-primary-dark); transform: translateY(-2px); }
.btn--outline {
  border-color: var(--cw-primary);
  color: var(--cw-primary);
  background: transparent;
}
.btn--outline:hover { background: var(--cw-primary); color: #FFFFFF; transform: translateY(-2px); }
.btn__arrow { transition: transform 0.2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--cw-gradient);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 500;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__links a { opacity: 0.95; }
.topbar__links a:hover { opacity: 1; text-decoration: underline; }
.topbar__contact { display: inline-flex; align-items: center; gap: 8px; }
.topbar__contact svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cw-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--cw-border); box-shadow: var(--cw-shadow-sm); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

/* Logo: codework_sideicon.png is already trimmed (937×220), so just size it by height. */
.logo { display: inline-flex; flex-shrink: 0; padding: 4px 0; }
.logo__img {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav__menu > a:not(.btn) {
  position: relative;
  padding: 6px 0;
  color: var(--cw-text);
  transition: color 0.2s;
}
.nav__menu > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--cw-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav__menu > a:not(.btn):hover,
.nav__menu > a.is-active { color: var(--cw-primary); }
.nav__menu > a:not(.btn):hover::after,
.nav__menu > a.is-active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none !important; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-surface);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--cw-text);
  transition: transform 0.25s, opacity 0.25s;
}
.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); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--cw-primary) 10%, transparent), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--cw-accent) 8%, transparent), transparent 70%),
    var(--cw-bg);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__slash {
  position: absolute;
  width: 14px;
  border-radius: 8px;
  background: var(--cw-gradient);
  opacity: 0.08;
  transform: skewX(-25deg);
}
.hero__slash--1 { height: 260px; top: 60px; left: 4%; }
.hero__slash--2 { height: 140px; top: 330px; left: 8%; opacity: 0.05; }
.hero__slash--3 { height: 200px; bottom: 120px; right: 3%; opacity: 0.06; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 24px;
}
.hero__highlight {
  position: relative;
  display: inline-block;
  color: var(--cw-primary);
}
.hero__highlight::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0.06em;
  height: 0.16em;
  border-radius: 6px;
  background: var(--cw-gradient);
  opacity: 0.35;
  z-index: -1;
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--cw-text-muted);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__lead strong { color: var(--cw-text); font-weight: 600; }

.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cw-text-muted);
}
.hero__checks li { display: flex; align-items: center; gap: 8px; }
.hero__checks li::before {
  content: '/';
  font-weight: 700;
  color: var(--cw-primary);
  font-size: 1.05rem;
}

/* ---------- Hero visual ---------- */
.hero__visual { display: flex; justify-content: center; }

.orbit {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
}
.orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--cw-primary) 30%, transparent);
}
.orbit__ring--outer { inset: 0; animation: spin 60s linear infinite; }
.orbit__ring--inner { inset: 9%; border-style: solid; border-color: color-mix(in srgb, var(--cw-primary) 12%, transparent); }
.orbit__disc {
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background: var(--cw-gradient);
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.7);
}
.orbit__disc::after {
  /* the brand slash, big and soft, inside the disc */
  content: '';
  position: absolute;
  width: 16%;
  height: 58%;
  left: 50%;
  top: 21%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-50%) skewX(-25deg);
}

/* Laptop */
.laptop {
  position: absolute;
  left: 6%;
  top: 30%;
  width: 74%;
  z-index: 2;
  filter: drop-shadow(0 30px 40px rgba(23, 26, 34, 0.3));
  animation: float 7s ease-in-out infinite;
}
.laptop__screen {
  background: #171A22;
  border-radius: 12px 12px 0 0;
  padding: 3.2%;
  aspect-ratio: 16 / 10;
}
.laptop__base {
  height: 12px;
  margin: 0 -7%;
  background: linear-gradient(#D9DAE3, #B9BBC8);
  border-radius: 0 0 14px 14px;
  position: relative;
}
.laptop__base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 18%;
  height: 5px;
  transform: translateX(-50%);
  background: #A7A9B8;
  border-radius: 0 0 6px 6px;
}

.mock {
  height: 100%;
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  background: #F4F3FC;
  border-bottom: 1px solid #E6E4F5;
}
.mock__bar i { width: 6px; height: 6px; border-radius: 50%; background: #D5D2EE; }
.mock__bar i:first-child { background: #635ACE; }
.mock__url {
  margin-left: 8px;
  flex: 1;
  max-width: 55%;
  font-family: var(--cw-font-code);
  font-size: 7px;
  line-height: 1;
  color: #8B8FA0;
  background: #FFFFFF;
  border-radius: 4px;
  padding: 3px 6px;
}
.mock__body { flex: 1; padding: 7% 7% 6%; display: flex; flex-direction: column; gap: 9%; }
.mock__nav { display: flex; justify-content: space-between; align-items: center; }
.mock__brand { width: 18%; height: 7px; border-radius: 4px; background: #635ACE; }
.mock__links { display: flex; gap: 6px; }
.mock__links b { width: 18px; height: 4px; border-radius: 3px; background: #DCDAF0; }
.mock__hero { display: flex; gap: 8%; align-items: flex-end; }
.mock__text { flex: 1.2; display: flex; flex-direction: column; gap: 6px; }
.mock__line { height: 7px; border-radius: 4px; background: #171A22; }
.mock__line--lg { width: 95%; }
.mock__line--md { width: 70%; }
.mock__line--sm { width: 80%; height: 4px; background: #C9CBD6; margin-top: 3px; }
.mock__btn { width: 38%; height: 11px; border-radius: 4px; background: #635ACE; margin-top: 5px; }
.mock__chart {
  flex: 1;
  height: 58px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 6px;
  background: #F4F3FC;
  border-radius: 6px;
}
.mock__chart span {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(#635ACE, #5C99E9);
  transform-origin: bottom;
  animation: grow 1.4s cubic-bezier(.2, .8, .2, 1) both;
}
.mock__chart span:nth-child(2) { animation-delay: .1s; }
.mock__chart span:nth-child(3) { animation-delay: .2s; }
.mock__chart span:nth-child(4) { animation-delay: .3s; }
.mock__chart span:nth-child(5) { animation-delay: .4s; }
.mock__cards { display: flex; gap: 6px; }
.mock__cards span { flex: 1; height: 22px; border-radius: 5px; background: #F4F3FC; border: 1px solid #E6E4F5; }

/* Phone */
.phone {
  position: absolute;
  right: 7%;
  top: 40%;
  width: 21%;
  aspect-ratio: 9 / 18.5;
  background: #171A22;
  border-radius: 20px;
  padding: 5px;
  z-index: 3;
  box-shadow: 0 30px 50px -18px rgba(23, 26, 34, 0.55);
  animation: float 6s ease-in-out infinite reverse;
}
.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 30%;
  height: 6px;
  border-radius: 6px;
  background: #171A22;
  transform: translateX(-50%);
  z-index: 1;
}
.phone__screen {
  height: 100%;
  border-radius: 15px;
  background: #FFFFFF;
  padding: 22px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.phone__head { width: 60%; height: 6px; border-radius: 3px; background: #171A22; }
.phone__card { height: 38%; border-radius: 8px; background: var(--cw-gradient); }
.phone__row { height: 5px; border-radius: 3px; background: #DCDAF0; }
.phone__row--short { width: 65%; }
.phone__btn { margin-top: auto; height: 14px; border-radius: 5px; background: #635ACE; }

/* Person cutout ($hero_person in config.php).
   The box spans the disc's width (17%–83%) and runs from 2% down to the disc's
   bottom edge (83%). Its bottom corners match the disc's curve, so the waist-up
   photo is rounded off by the circle while the head rises above it. */
.hero-person {
  position: absolute;
  z-index: 2;
  left: 17%;
  right: 17%;
  top: 2%;
  bottom: 17%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 40.7% 40.7%; /* 33% of the orbit, as a share of this box's width / height */
}
.hero-person img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 20px 30px rgba(23, 26, 34, 0.25));
}

/* With a person, the phone sits smaller in the lower-right, and the top icon moves off the head */
.orbit--person .phone { width: 17%; right: 3%; top: 55%; }
.orbit--person .orb--1 { top: 30%; left: 4%; }
.orbit--person .orb--2 { top: 56%; left: -2%; }

/* Real screenshots inside the frames ($hero_screens in config.php) */
.laptop--img .laptop__screen { aspect-ratio: 16 / 9; }
.laptop__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* trims the empty page margins on both sides */
  border-radius: 4px;
  background: #FFFFFF;
}
.phone--img { aspect-ratio: 9 / 17; }
.phone--img .phone__screen { padding: 9% 0 0; overflow: hidden; } /* status-bar strip so the notch doesn't cover the logo */
.phone__img { display: block; width: 100%; height: auto; }

/* Floating chips */
.chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--cw-radius-md);
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  box-shadow: var(--cw-shadow);
  font-size: 0.78rem;
  line-height: 1.2;
}
.chip b { display: block; font-weight: 700; color: var(--cw-text); }
.chip small { color: var(--cw-text-muted); font-size: 0.72rem; }
.chip code { font-family: var(--cw-font-code); font-size: 0.8rem; color: var(--cw-text); }
.chip__slash { font-size: 1.2rem; font-weight: 800; color: var(--cw-primary); line-height: 1; }
.chip__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--cw-primary) 12%, transparent);
}
.chip__icon svg,
.orb svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip--code { top: 13%; left: 2%; animation: float 5s ease-in-out infinite; }
.chip--stat { top: 12%; right: -2%; animation: float 6.5s ease-in-out infinite .6s; }
.chip--ok { bottom: 10%; left: 12%; animation: float 5.5s ease-in-out infinite 1.2s; }

/* Orbit icons */
.orb {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  box-shadow: var(--cw-shadow-sm);
}
.orb--1 { top: 2%; left: 44%; }
.orb--2 { top: 48%; left: -3%; }
.orb--3 { bottom: 3%; right: 26%; }
.orb--4 { top: 31%; right: -4%; }

/* ---------- Stats strip ---------- */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  padding: 30px 12px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: 999px;
  box-shadow: var(--cw-shadow);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}
.stat + .stat { border-left: 1px solid var(--cw-border); }
.stat__num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cw-text);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cw-primary);
}

.tech {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cw-text-muted);
}

/* =========================================================
   Shared section heading
   ========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
}
.section-head__text { max-width: 620px; }
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-lead { color: var(--cw-text-muted); font-size: 1.02rem; }
.section-head__link { flex-shrink: 0; }
.text-primary { color: var(--cw-primary); white-space: nowrap; }
.slash { color: var(--cw-primary); font-weight: 800; }

/* =========================================================
   Services
   ========================================================= */
.services {
  position: relative;
  padding: 100px 0;
  background: var(--cw-bg-soft);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--cw-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--cw-primary) 30%, transparent);
  box-shadow: var(--cw-shadow);
}
.service-card:hover::before,
.service-card:focus-visible::before { transform: scaleX(1); }

.service-card__num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--cw-primary) 40%, transparent);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--cw-primary) 10%, transparent);
  transition: background 0.25s;
}
.service-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}
.service-card:hover .service-card__icon { background: var(--cw-gradient); }
.service-card:hover .service-card__icon svg { stroke: #FFFFFF; }

.service-card__title { font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; }
.service-card__text { color: var(--cw-text-muted); font-size: 0.94rem; }
.service-card__price {
  align-self: flex-start;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cw-primary) 10%, transparent);
  color: var(--cw-primary);
  font-size: 0.8rem;
  font-weight: 600;
}
.service-card__price b { font-weight: 800; }

/* "Websites from ₱4,999 · See pricing" under the hero buttons */
.hero__price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 22px;
  padding: 10px 16px;
  border-radius: var(--cw-radius-md);
  background: var(--cw-bg-soft);
  border: 1px solid var(--cw-border);
  font-size: 0.92rem;
  color: var(--cw-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero__price b { font-size: 1.1rem; font-weight: 800; color: var(--cw-primary); }
.hero__price-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--cw-primary); }
.hero__price:hover { border-color: color-mix(in srgb, var(--cw-primary) 40%, transparent); box-shadow: var(--cw-shadow-sm); }
.hero__price:hover .btn__arrow { transform: translateX(4px); }

/* "Starts at ₱4,999 · See pricing" next to a Services page quote button */
.svc-block__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.svc-block__price { font-size: 0.92rem; color: var(--cw-text-muted); }
.svc-block__price b { color: var(--cw-primary); font-weight: 800; }
.svc-block__price a { font-weight: 600; color: var(--cw-primary); }

.services__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 26px 32px;
  border-radius: var(--cw-radius-lg);
  background: var(--cw-surface);
  border: 1px dashed color-mix(in srgb, var(--cw-primary) 40%, transparent);
}
.services__cta p { color: var(--cw-text-muted); }
.services__cta strong { color: var(--cw-text); font-weight: 600; }

/* =========================================================
   Why choose us
   ========================================================= */
.why {
  position: relative;
  padding: 110px 0;
  background: var(--cw-bg);
  overflow: hidden;
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 72px;
}

/* Visual */
.why__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 48px 0;
}
.why__blob {
  position: absolute;
  inset: 0 6%;
  border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
  background: var(--cw-gradient);
  opacity: 0.12;
}
.why__blob::after {
  content: '';
  position: absolute;
  width: 11%;
  height: 70%;
  left: 50%;
  top: 15%;
  border-radius: 14px;
  background: var(--cw-gradient);
  opacity: 0.35;
  transform: translateX(-50%) skewX(-25deg);
}

.update-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 26px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-lg);
  box-shadow: var(--cw-shadow);
}
.update-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cw-border);
  line-height: 1.3;
}
.update-card__head b { display: block; font-size: 0.92rem; }
.update-card__head small { color: var(--cw-text-muted); font-size: 0.75rem; }
.update-card__logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cw-bg-soft);
  overflow: hidden;
}
.update-card__logo img { display: block; width: auto; height: 22px; }

.badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge--ok { color: var(--cw-primary); background: color-mix(in srgb, var(--cw-primary) 12%, transparent); }

.update-card__progress { padding: 20px 0 6px; }
.update-card__progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--cw-text-muted);
  margin-bottom: 8px;
}
.update-card__progress-top b { color: var(--cw-text); }
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--cw-bg-soft);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: inherit;
  background: var(--cw-gradient);
  transform-origin: left;
  animation: fill 1.6s cubic-bezier(.2, .8, .2, 1) both;
}

.milestones {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}
.milestones li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cw-text-muted);
}
.milestones small {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cw-text-muted);
}
.milestones__dot {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--cw-border);
  background: var(--cw-surface);
}
.milestones__dot svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.milestones .is-done { color: var(--cw-text); }
.milestones .is-done .milestones__dot { background: var(--cw-primary); border-color: var(--cw-primary); }
.milestones .is-current { color: var(--cw-text); }
.milestones .is-current .milestones__dot {
  border-color: var(--cw-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cw-primary) 15%, transparent);
}
.milestones .is-current .milestones__dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cw-primary);
}
.milestones .is-current small { color: var(--cw-primary); font-weight: 600; }

.update-card__note {
  padding: 12px 14px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-soft);
  font-size: 0.82rem;
  color: var(--cw-text-muted);
}

.why__chip { z-index: 2; }
.why__chip .chip__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why__chip--top { top: 10px; right: 0; animation: float 6s ease-in-out infinite; }
.why__chip--bottom { bottom: 14px; left: 0; animation: float 5.5s ease-in-out infinite .8s; }

/* Team photo ($why_image in config.php): people stand on a gradient panel,
   heads rising above its top edge, waists rounded off by its bottom corners. */
.why__visual--photo { padding: 24px 0 0; }
.why-photo {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 760 / 943;
}
.why-photo__panel {
  position: absolute;
  inset: 24% 0 0 0;
  border-radius: 24px;
  background: var(--cw-gradient);
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.6);
  overflow: hidden;
}
.why-photo__panel::after {
  /* brand slash inside the panel */
  content: '';
  position: absolute;
  width: 14%;
  height: 130%;
  right: 12%;
  top: -15%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-25deg);
}
.why-photo__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}
.why-photo__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.why__visual--photo .why__chip--top { top: 4%; right: -6%; left: auto; bottom: auto; }
.why__visual--photo .why__chip--bottom { bottom: 6%; left: -8%; top: auto; right: auto; }
.why__chip--progress {
  z-index: 2;
  top: 50%;
  right: -12%;
  animation: float 6.5s ease-in-out infinite .4s;
}
/* Extra badges: top-left beside the heads, bottom-right under the laptop */
.why__chip--reviews { z-index: 2; top: 18%; left: -10%; animation: float 5.8s ease-in-out infinite 1s; }
.why__chip--price { z-index: 2; bottom: -3%; right: -4%; animation: float 6.2s ease-in-out infinite 1.6s; }
.chip__icon--star { background: color-mix(in srgb, #F5B544 18%, transparent); }
.why__chip .chip__icon--star svg { stroke: #E39B1F; fill: #F5B544; }
.why__progress { display: grid; gap: 5px; min-width: 120px; }
.why__progress .progress { height: 6px; }

/* Copy */
.why__copy .section-lead { margin-bottom: 36px; }

.reasons {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 32px;
}
.reason { display: flex; align-items: flex-start; gap: 16px; }
.reason__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cw-primary) 10%, transparent);
}
.reason__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reason__title { font-size: 1.02rem; line-height: 1.3; margin-bottom: 6px; }
.reason__text { font-size: 0.9rem; color: var(--cw-text-muted); line-height: 1.55; }

.why__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   Our process
   ========================================================= */
.section-head.section-head--center {
  gap: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.process {
  position: relative;
  padding: 110px 0;
  background: var(--cw-bg-soft);
  overflow: hidden;
}

.steps {
  --marker: 72px;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
/* Connecting line behind the markers */
.steps::before {
  content: '';
  position: absolute;
  top: calc(var(--marker) / 2);
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cw-primary) 45%, transparent) 0 8px, transparent 8px 16px);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step__marker {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}
.step__icon {
  display: grid;
  place-items: center;
  width: var(--marker);
  height: var(--marker);
  border-radius: 50%;
  background: var(--cw-surface);
  border: 2px solid color-mix(in srgb, var(--cw-primary) 25%, transparent);
  box-shadow: 0 0 0 8px var(--cw-bg-soft), var(--cw-shadow-sm);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.step__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.step__num {
  position: absolute;
  top: -4px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--cw-primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  border: 3px solid var(--cw-bg-soft);
}
.step:hover .step__icon {
  background: var(--cw-gradient);
  border-color: transparent;
  transform: translateY(-4px);
}
.step:hover .step__icon svg { stroke: #FFFFFF; }

.step__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 24px 20px 20px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-lg);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.step:hover .step__body {
  border-color: color-mix(in srgb, var(--cw-primary) 30%, transparent);
  box-shadow: var(--cw-shadow);
}
.step__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cw-primary);
  margin-bottom: 6px;
}
.step__title { font-size: 1.08rem; line-height: 1.3; margin-bottom: 10px; }
.step__text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--cw-text-muted);
  margin-bottom: 18px;
}
.step__get {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-soft);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}
.step__get svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step__get small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cw-text-muted);
}

.process__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 24px 32px;
  border-radius: var(--cw-radius-lg);
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
}
.promises {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* =========================================================
   Featured work
   ========================================================= */
.work {
  padding: 110px 0;
  background: var(--cw-bg);
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.project:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--cw-primary) 30%, transparent);
  box-shadow: var(--cw-shadow);
}

/* Media area */
.project__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cw-gradient);
}
.project__media::before {
  /* brand slash watermark */
  content: '';
  position: absolute;
  width: 12%;
  height: 120%;
  left: 78%;
  top: -10%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-25deg);
}
.project__media--mobile { background: linear-gradient(135deg, #5C99E9 0%, #635ACE 100%); }
.project__media--software { background: linear-gradient(160deg, #4F46B8 0%, #635ACE 55%, #5C99E9 100%); }
.project__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project:hover .project__media img { transform: scale(1.04); }

.project__tags {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project__tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cw-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Whole picture area is clickable, above the preview */
.project__media-link { position: absolute; inset: 0; z-index: 3; }

/* Full-page screenshot ('screenshot' in $projects). On hover it glides up until
   the bottom of the image meets the bottom of the card (100cqh = card height).
   main.js sets --t so long pages scroll at a steady speed. */
.project__scroll {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  container-type: size;
  background: #FFFFFF;
}
.project__media .project__scroll img {
  position: absolute;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: initial;
  transform: translateY(0);
  transition: transform 1.2s ease;
}
.project:hover .project__scroll img,
.project:focus-within .project__scroll img {
  transform: translateY(calc(-100% + 100cqh));
  transition: transform var(--t, 8s) cubic-bezier(0.45, 0, 0.55, 1);
}
.project__hint {
  position: absolute;
  top: 14px; /* labels sit along the bottom */
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(23, 26, 34, 0.72);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}
.project__hint svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.project:hover .project__hint { opacity: 0; }
/* Keep the screenshot's own logo/header visible */
.project__scroll ~ .project__tags { top: auto; bottom: 14px; }
.project__scroll ~ .project__tags .project__tag {
  box-shadow: 0 6px 16px -6px rgba(23, 26, 34, 0.35); /* stands out on white screenshots */
}
@media (hover: none) { .project__hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .project:hover .project__scroll img { transform: none; }
}

/* Placeholder mockups (shown until a real screenshot is added) */
.pm-site,
.pm-dash,
.pm-phone {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  box-shadow: 0 20px 40px -12px rgba(23, 26, 34, 0.45);
  transition: transform 0.4s;
}
.project:hover .pm-site,
.project:hover .pm-dash,
.project:hover .pm-phone { transform: translateY(-6px); }

.pm-site {
  width: 76%;
  height: 72%;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pm-site__bar { display: flex; gap: 4px; padding: 7px 9px; background: #F4F3FC; }
.pm-site__bar i { width: 6px; height: 6px; border-radius: 50%; background: #D5D2EE; }
.pm-site__hero { display: flex; flex-direction: column; gap: 7px; padding: 16px 14px 12px; }
.pm-site__line { height: 8px; border-radius: 4px; background: #171A22; }
.pm-site__line--lg { width: 70%; }
.pm-site__line--md { width: 48%; background: #C9CBD6; height: 5px; }
.pm-site__btn { width: 28%; height: 12px; margin-top: 4px; border-radius: 4px; background: #635ACE; }
.pm-site__cards { display: flex; gap: 8px; padding: 0 14px; }
.pm-site__cards i { flex: 1; height: 40px; border-radius: 6px; background: #F4F3FC; border: 1px solid #E6E4F5; }

.pm-phone {
  width: 30%;
  height: 84%;
  padding: 16px 9px 0;
  border: 5px solid #171A22;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pm-phone__head { width: 55%; height: 6px; border-radius: 3px; background: #171A22; }
.pm-phone__hero { height: 30%; border-radius: 8px; background: linear-gradient(135deg, #635ACE, #5C99E9); }
.pm-phone__row { height: 5px; border-radius: 3px; background: #DCDAF0; }
.pm-phone__row--short { width: 60%; }
.pm-phone__grid { display: flex; gap: 5px; }
.pm-phone__grid i { flex: 1; height: 26px; border-radius: 5px; background: #F4F3FC; border: 1px solid #E6E4F5; }
.pm-phone__btn { height: 12px; border-radius: 4px; background: #635ACE; }

.pm-dash {
  width: 80%;
  height: 72%;
  border-radius: 10px 10px 0 0;
  display: flex;
  overflow: hidden;
}
.pm-dash__side {
  width: 22%;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #171A22;
}
.pm-dash__side i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
.pm-dash__side i:first-child { width: 70%; height: 7px; background: #8880E6; margin-bottom: 6px; }
.pm-dash__main { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pm-dash__kpis { display: flex; gap: 6px; }
.pm-dash__kpis i { flex: 1; height: 26px; border-radius: 6px; background: #F4F3FC; border: 1px solid #E6E4F5; }
.pm-dash__kpis i:first-child { background: color-mix(in srgb, #635ACE 14%, #FFFFFF); }
.pm-dash__chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  background: #F4F3FC;
}
.pm-dash__chart b { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: linear-gradient(#635ACE, #5C99E9); }

/* Body */
.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 22px;
}
.project__client {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cw-primary);
  margin-bottom: 6px;
}
.project__name { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; }
.project__name a:hover { color: var(--cw-primary); }
/* flex: 1 soaks up the extra space, so result boxes line up across cards */
.project__summary { flex: 1; font-size: 0.9rem; color: var(--cw-text-muted); margin-bottom: 20px; }

.project__result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--cw-radius-md);
  background: var(--cw-bg-soft);
  border-left: 3px solid var(--cw-primary);
}
.project__result p { font-size: 0.88rem; font-weight: 500; line-height: 1.3; color: var(--cw-text-muted); }
.project__result b {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--cw-text);
}
.project__result-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cw-gradient);
}
.project__result-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--cw-border);
}
.project__more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cw-primary);
}
.project__more:hover .btn__arrow { transform: translateX(4px); }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials {
  position: relative;
  padding: 110px 0;
  background: var(--cw-bg-soft);
  overflow: hidden;
}
.testimonials::before {
  /* large soft brand slash in the background */
  content: '';
  position: absolute;
  width: 90px;
  height: 520px;
  left: 50%;
  top: 50%;
  border-radius: 40px;
  background: var(--cw-gradient);
  opacity: 0.05;
  transform: translate(-50%, -50%) skewX(-25deg);
}

/* Review cards: equal height in a row. Long reviews are clipped (fade + "Read full review"). */
.reviews {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 24px;
}
.reviews.has-open { align-items: start; } /* one review expanded: the others keep their size */
.reviews--1 { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.reviews--2 { grid-template-columns: repeat(2, 1fr); max-width: 1000px; margin: 0 auto; }

.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px 28px 26px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: 20px;
  box-shadow: var(--cw-shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.review:hover { box-shadow: var(--cw-shadow); border-color: color-mix(in srgb, var(--cw-primary) 25%, transparent); }

.review__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.review__stars { display: flex; gap: 3px; }
.review__stars svg { width: 20px; height: 20px; fill: #F5B544; }
.review__mark { width: 30px; height: 23px; fill: var(--cw-primary); opacity: 0.2; }

/* Clipped to ~7 lines so every card is the same height */
.review__text {
  --lines: 7;
  position: relative;
  margin: 0;
  max-height: calc(var(--lines) * 1.7em);
  overflow: hidden;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--cw-text);
}
.review__text p + p { margin-top: 0.6em; }
.review__text.is-clipped::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.4em;
  background: linear-gradient(transparent, var(--cw-surface));
  pointer-events: none;
}
.review__text.is-open { max-height: none; }
.review__text.is-open::after { display: none; }

.review__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cw-primary);
  cursor: pointer;
}
.review__more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s;
}
.review__more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Author block pinned to the bottom: round client icon | name, description, website */
.review__author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--cw-border);
}
/* Space between the review and the author line (the toggle sits inside that gap) */
.review__text { margin-bottom: 18px; }
.review__more { margin: -8px 0 18px; }
/* Client icon: same size circle on every card */
.review__logo {
  flex-shrink: 0;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--cw-border), 0 6px 14px -8px rgba(23, 26, 34, 0.35);
}
.review__logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review__initials {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cw-gradient);
  color: #FFFFFF;
  font-weight: 700;
}
.review__who { display: grid; gap: 1px; min-width: 0; line-height: 1.35; }
.review__who b { font-size: 0.95rem; }
.review__who small { font-size: 0.78rem; color: var(--cw-text-muted); }
.review__site { font-size: 0.78rem; font-weight: 600; color: var(--cw-primary); overflow-wrap: anywhere; }
.review__site:hover { text-decoration: underline; text-underline-offset: 3px; }
.testimonials__cta {
  position: relative;
  margin-top: 48px;
  text-align: center;
  color: var(--cw-text-muted);
}
.testimonials__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-weight: 600;
  color: var(--cw-primary);
}
.testimonials__cta a:hover .btn__arrow { transform: translateX(4px); }

/* =========================================================
   Final CTA
   ========================================================= */
.cta {
  padding: 100px 0;
  background: var(--cw-bg);
}
.cta__band {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 64px 64px;
  border-radius: 24px;
  background: var(--cw-gradient);
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.7);
}

.cta__decor { position: absolute; inset: 0; pointer-events: none; }
.cta__decor span {
  position: absolute;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transform: skewX(-25deg);
}
.cta__decor span:nth-child(1) { width: 60px; height: 360px; right: 30%; top: -60px; }
.cta__decor span:nth-child(2) { width: 26px; height: 220px; right: 22%; bottom: -80px; background: rgba(255, 255, 255, 0.07); }
.cta__decor span:nth-child(3) { width: 14px; height: 140px; left: 3%; bottom: -30px; background: rgba(255, 255, 255, 0.08); }

.cta__copy,
.cta__actions { position: relative; z-index: 1; }

.eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.cta__title {
  color: #FFFFFF;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.cta__title span { display: block; opacity: 0.85; }
.cta__text { max-width: 520px; font-size: 1.04rem; color: rgba(255, 255, 255, 0.9); }

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  border-radius: var(--cw-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--white {
  background: #FFFFFF;
  color: var(--cw-primary);
  padding: 16px 30px;
  font-size: 1rem;
  box-shadow: 0 14px 30px -12px rgba(23, 26, 34, 0.45);
}
.btn--white:hover { background: var(--cw-bg-soft); transform: translateY(-2px); }
.cta__alt { font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); }
.cta__alt a { font-weight: 600; color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.cta__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}
.cta__note svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  padding: 110px 0;
  background: var(--cw-bg-soft);
  border-top: 1px solid var(--cw-border);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 64px;
}
.contact__info { padding-top: 12px; }
.contact__info .section-lead { margin-bottom: 36px; }

.contact__details { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 20px; }
.contact__details li { display: flex; align-items: center; gap: 16px; font-weight: 600; }
.contact__details small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cw-text-muted);
}
.contact__details a { word-break: break-word; transition: color 0.2s; }
.contact__details a:hover { color: var(--cw-primary); }
.contact__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
}
.contact__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__card {
  padding: 40px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-lg);
  box-shadow: var(--cw-shadow);
}

/* Form */
.form { display: grid; gap: 20px; }
/* align-items: start so a field next to a long error message doesn't stretch taller */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field__req { color: var(--cw-primary); }
.field__opt { font-weight: 400; color: var(--cw-text-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--cw-text);
  background: var(--cw-surface);
  border: 1.5px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field ::placeholder { color: #9A9DAB; }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23635ACE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: color-mix(in srgb, var(--cw-primary) 35%, var(--cw-border)); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cw-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cw-primary) 18%, transparent);
}
.field.has-error input,
.field.has-error textarea { border-color: #D64545; }
.field__error { font-size: 0.8rem; font-weight: 500; color: #C03434; }

.form__alert {
  padding: 12px 16px;
  border-radius: var(--cw-radius-sm);
  background: #FDECEC;
  color: #A32A2A;
  font-size: 0.9rem;
  font-weight: 500;
}

.form__submit { justify-content: center; width: 100%; padding: 16px 26px; font-size: 1rem; }
.form__submit[disabled] { opacity: 0.7; cursor: wait; transform: none; }
.form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -6px;
  font-size: 0.85rem;
  color: var(--cw-text-muted);
}
.form__note svg,
.form-success__icon svg {
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form__note svg { width: 16px; height: 16px; }

/* Success message */
.form-success { text-align: center; padding: 32px 8px; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cw-primary) 12%, transparent);
}
.form-success__icon svg { width: 34px; height: 34px; }
.form-success h3 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 10px; }
.form-success p { color: var(--cw-text-muted); margin-bottom: 28px; }

/* =========================================================
   Service landing pages (service.php)
   ========================================================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cw-text-muted);
}
.breadcrumb a { color: var(--cw-text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cw-primary); }
.breadcrumb [aria-current] { color: var(--cw-text); font-weight: 600; }

/* Hero */
.svc-hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(800px 420px at 50% 0%, color-mix(in srgb, var(--cw-primary) 10%, transparent), transparent 70%),
    var(--cw-bg);
}
.svc-hero__inner { max-width: 860px; }
.svc-hero .breadcrumb { justify-content: center; }
.svc-hero .hero__lead { margin: 0 auto 36px; max-width: 640px; }
.svc-hero__title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 22px;
}
.svc-hero__highlight { color: var(--cw-primary); }

/* Jump menu: one chip per service */
.svc-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.svc-jump__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.svc-jump__chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-jump__chip:hover {
  color: var(--cw-primary);
  border-color: color-mix(in srgb, var(--cw-primary) 40%, transparent);
  box-shadow: var(--cw-shadow-sm);
  transform: translateY(-2px);
}

/* Browser frame around a project screenshot */
.browser {
  position: relative;
  border-radius: var(--cw-radius-lg);
  overflow: hidden;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.45);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--cw-bg-soft);
  border-bottom: 1px solid var(--cw-border);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5D2EE; }
.browser__bar i:first-child { background: var(--cw-primary); }
.browser__url {
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--cw-surface);
  font-family: var(--cw-font-code);
  font-size: 0.72rem;
  color: var(--cw-text-muted);
}

/* Screenshot that glides down the page on hover (same idea as the project cards) */
.svc-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  container-type: size;
  background: #FFFFFF;
}
.svc-shot img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(0);
  transition: transform 1.2s ease;
}
.svc-shot:hover img {
  transform: translateY(calc(-100% + 100cqh));
  transition: transform var(--t, 8s) cubic-bezier(0.45, 0, 0.55, 1);
}
.svc-shot:hover .project__hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .svc-shot:hover img { transform: none; } }

/* One section per service. Every other one is on Mist, with the picture on the left. */
.svc-block { padding: 100px 0; background: var(--cw-bg); }
.svc-block--mist { background: var(--cw-bg-soft); }
.svc-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}
.svc-block--reverse .svc-block__visual { order: -1; }
.svc-block__eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.svc-block__eyebrow .eyebrow { margin: 0; }
.svc-block__eyebrow .service-card__icon { margin: 0; width: 48px; height: 48px; }
.svc-block__eyebrow .service-card__icon svg { width: 24px; height: 24px; }
.svc-block .section-lead { margin-bottom: 28px; }
.svc-block__label {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cw-text-muted);
}

.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; line-height: 1.5; }
.checklist svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-types__list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-types__list li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Caption card under a project screenshot */
.svc-proof-card {
  position: relative;
  z-index: 2;
  margin: -44px 24px 0;
  padding: 18px 22px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-lg);
  box-shadow: var(--cw-shadow);
}
.svc-proof-card .project__client { margin-bottom: 2px; }
.svc-proof-card__name { font-size: 1.2rem; font-weight: 700; }
.svc-proof-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.svc-proof-card__result { font-size: 0.9rem; color: var(--cw-text-muted); }
.svc-proof-card__result b { font-size: 1.1rem; font-weight: 800; color: var(--cw-primary); }

/* "In development" (e.g. Banahay): drawn phone on a gradient panel */
.svc-building {
  position: relative;
  padding: 40px 32px 0;
  border-radius: 24px;
  background: var(--cw-gradient);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.6);
}
.svc-building::before {
  content: '';
  position: absolute;
  width: 14%;
  height: 140%;
  right: 16%;
  top: -20%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-25deg);
}
.app-mock {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 210px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  padding: 30px 14px 14px;
  background: #FFFFFF;
  border: 7px solid #171A22;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
}
.app-mock__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34%;
  height: 7px;
  border-radius: 6px;
  background: #171A22;
  transform: translateX(-50%);
}
.app-mock__head { width: 55%; height: 8px; border-radius: 4px; background: #171A22; }
.app-mock__card {
  display: grid;
  place-items: center;
  height: 70px;
  border-radius: 12px;
  background: var(--cw-gradient);
}
.app-mock__card svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-mock__row { height: 6px; border-radius: 3px; background: #DCDAF0; }
.app-mock__row--short { width: 60%; }
.app-mock__item { height: 30px; border-radius: 8px; background: #F4F3FC; border: 1px solid #E6E4F5; }
.app-mock__btn { height: 18px; border-radius: 6px; background: #635ACE; }
.svc-building__card { margin: 0 -8px 0; border-radius: var(--cw-radius-lg) var(--cw-radius-lg) 0 0; }
.badge--soon {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--cw-primary);
  background: color-mix(in srgb, var(--cw-primary) 12%, transparent);
}
.svc-building__summary { margin-top: 6px; font-size: 0.9rem; color: var(--cw-text-muted); }

/* Maintenance & Support: list of the projects we look after */
.svc-support {
  padding: 32px;
  border-radius: 24px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  box-shadow: var(--cw-shadow);
}
.svc-support__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cw-gradient);
}
.svc-support__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-support__note { margin: 18px 0 16px; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.svc-support__list { list-style: none; padding: 0; margin: 0; }
.svc-support__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--cw-border);
  line-height: 1.3;
}
.svc-support__list b { display: block; font-size: 0.95rem; }
.svc-support__list small { font-size: 0.78rem; color: var(--cw-text-muted); }
.svc-support__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cw-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cw-primary) 18%, transparent);
}
.svc-support__status {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cw-primary) 10%, transparent);
  color: var(--cw-primary);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Systems we build (first section of the Services page) */
.systems { padding: 90px 0 100px; background: var(--cw-bg-soft); }
.systems .system-card { background: var(--cw-surface); }
.svc-jump__chip--featured { background: var(--cw-gradient); border-color: transparent; color: #FFFFFF; }
.svc-jump__chip--featured svg { stroke: #FFFFFF; }
.svc-jump__chip--featured:hover { color: #FFFFFF; }

/* Home page: strip of the systems under the service cards */
.systems-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
  padding: 20px 26px;
  border-radius: var(--cw-radius-lg);
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
}
.systems-strip__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cw-text-muted); }
.systems-strip__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.systems-strip__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: var(--cw-bg-soft);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.systems-strip__list a:hover { color: var(--cw-primary); box-shadow: var(--cw-shadow-sm); transform: translateY(-2px); }
.systems-strip__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cw-gradient);
}
.systems-strip__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.systems-strip__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--cw-primary); }
.systems-strip__more:hover .btn__arrow { transform: translateX(4px); }
@media (max-width: 860px) {
  .systems-strip__more { margin-left: 0; }
}
.systems__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.system-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  border-radius: var(--cw-radius-lg);
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.system-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--cw-primary) 30%, transparent);
  box-shadow: var(--cw-shadow);
}
.system-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--cw-gradient);
}
.system-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.system-card__short {
  position: absolute;
  top: 26px;
  right: 22px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--cw-primary) 55%, transparent);
}
.system-card__title { font-size: 1rem; line-height: 1.3; margin-bottom: 8px; }
.system-card__text { font-size: 0.87rem; line-height: 1.55; color: var(--cw-text-muted); }
.systems__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 24px 30px;
  border-radius: var(--cw-radius-lg);
  background: var(--cw-bg-soft);
  border: 1px dashed color-mix(in srgb, var(--cw-primary) 40%, transparent);
}
.systems__cta p { color: var(--cw-text-muted); }
.systems__cta strong { color: var(--cw-text); }

/* API Integration: drawn code window ('code' proof) */
.api-visual {
  padding: 32px;
  border-radius: 24px;
  background: var(--cw-gradient);
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.6);
}
.code-window {
  border-radius: var(--cw-radius-lg);
  overflow: hidden;
  background: #171A22;
  box-shadow: 0 24px 50px -20px rgba(23, 26, 34, 0.6);
}
.code-window .browser__bar { background: #20232E; border-bottom-color: #2C3040; }
.code-window .browser__url { background: #171A22; color: #A9ABB8; }
.code-window__body {
  margin: 0;
  padding: 20px 22px;
  font-family: var(--cw-font-code);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #EEEDF2;
  white-space: pre;
  overflow-x: auto;
}
.c-method { color: #A0C9F9; font-weight: 700; }
.c-path { color: #EEEDF2; }
.c-key { color: #B8B3F2; }
.c-str { color: #9FE3C1; }
.c-num { color: #F5C98A; }
.c-ok { color: #9FE3C1; font-weight: 700; }
.api-visual__links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.api-visual__links li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 600;
}
.api-visual__links svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Illustration ('image' proof) */
.svc-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.6);
}

/* No project to show yet: decorative brand panel */
.svc-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: var(--cw-gradient);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.6);
}
.svc-art__slash {
  position: absolute;
  width: 16%;
  height: 130%;
  left: 62%;
  top: -15%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  transform: skewX(-25deg);
}
.svc-art__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.svc-art__icon svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-art__label { position: absolute; left: 26px; bottom: 22px; color: #FFFFFF; font-weight: 700; }
.svc-art .slash { color: #FFFFFF; }

/* FAQ */
.svc-faq { padding: 100px 0; background: var(--cw-bg); border-top: 1px solid var(--cw-border); }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq {
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq[open] { border-color: color-mix(in srgb, var(--cw-primary) 35%, transparent); box-shadow: var(--cw-shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cw-primary); }
.faq__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cw-primary) 10%, transparent);
  transition: transform 0.25s;
}
.faq__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faq[open] .faq__icon { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 20px; color: var(--cw-text-muted); line-height: 1.65; }

/* =========================================================
   About page (about.php)
   ========================================================= */
.about-hero { padding-bottom: 96px; }
.about-hero .hero__lead { margin-bottom: 0; }
.about-numbers { margin-top: 56px; }

/* Story + stacked project screenshots */
.about-story { padding: 110px 0; background: var(--cw-bg-soft); overflow: hidden; }
.about-story__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 72px;
}
.about-story__lead { margin-bottom: 18px; font-size: 1.15rem; font-weight: 700; }
.about-story__text { color: var(--cw-text-muted); font-size: 1.02rem; margin-bottom: 16px; }
.about-story__copy .btn { margin-top: 12px; }

.about-photo { position: relative; }
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.55);
}
.about-photo::before {
  /* brand gradient frame peeking out behind the photo */
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border-radius: 24px;
  background: var(--cw-gradient);
  opacity: 0.9;
}
.about-photo__chip { animation: float 6s ease-in-out infinite; }
.about-photo__chip--1 { left: -22px; bottom: -26px; }
.about-photo__chip--2 { left: -30px; top: -24px; animation-delay: 1.2s; }
.about-photo__chip--3 { right: -26px; bottom: 90px; animation-delay: 0.6s; }
.about-photo__chip .chip__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-story__grid { position: relative; z-index: 0; }

.about-stack { position: relative; height: 440px; }
.about-stack__item { position: absolute; width: 78%; }
.about-stack__item--1 { top: 0; left: 0; z-index: 1; transform: rotate(-3deg); }
.about-stack__item--2 { top: 70px; right: 0; z-index: 2; transform: rotate(2deg); }
.about-stack__item--3 { bottom: 0; left: 10%; z-index: 3; }
.about-stack__shot { aspect-ratio: 16 / 9; overflow: hidden; background: #FFFFFF; }
.about-stack__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Mission & vision */
.about-mv { padding: 100px 0 40px; background: var(--cw-bg); }
.about-mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-mv__card {
  padding: 40px 36px;
  border-radius: 24px;
  background: var(--cw-bg-soft);
  border: 1px solid var(--cw-border);
}
.about-mv__card--vision {
  background: var(--cw-gradient);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 30px 60px -24px rgba(99, 90, 206, 0.6);
}
.about-mv__label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cw-primary);
}
.about-mv__card--vision .about-mv__label,
.about-mv__card--vision .slash { color: rgba(255, 255, 255, 0.85); }
.about-mv__card p { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 700; line-height: 1.35; }

/* Values */
.about-values { padding: 80px 0 100px; background: var(--cw-bg); }
.about-values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.about-value {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--cw-radius-lg);
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.about-value:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cw-primary) 30%, transparent);
  box-shadow: var(--cw-shadow);
}
.about-value .service-card__icon { margin-bottom: 20px; }
.about-value__num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--cw-primary) 40%, transparent);
}
.about-value h3 { font-size: 1.15rem; margin-bottom: 8px; }
.about-value p { font-size: 0.92rem; color: var(--cw-text-muted); }

/* Who we work with */
.about-industries { padding: 100px 0; background: var(--cw-bg-soft); }
.about-industries__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-industry {
  padding: 26px 24px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.about-industry:hover {
  border-color: color-mix(in srgb, var(--cw-primary) 30%, transparent);
  box-shadow: var(--cw-shadow-sm);
  transform: translateY(-3px);
}
.about-industries__sub {
  margin: 44px 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cw-text-muted);
}
/* Specialist work: gradient icon tiles to set them apart from the client types above */
.about-industry--capability .reason__icon { background: var(--cw-gradient); }
.about-industry--capability .reason__icon svg { stroke: #FFFFFF; }

/* =========================================================
   Pricing page (pricing.php)
   ========================================================= */
.pricing-hero { padding-bottom: 40px; }
.pricing-hero .hero__lead { margin-bottom: 0; }
.pricing { padding: 40px 0 100px; background: var(--cw-bg); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 24px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px 32px;
  border-radius: 24px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  box-shadow: var(--cw-shadow-sm);
}
.plan__name { font-size: 1.3rem; margin-bottom: 6px; }
.plan__tagline { font-size: 0.92rem; color: var(--cw-text-muted); min-height: 3em; }
.plan__price {
  margin: 18px 0 24px;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan__price--text { font-size: 2.1rem; }
.plan__cta { justify-content: center; width: 100%; margin-bottom: 28px; }

.plan__features { list-style: none; padding: 22px 0 0; margin: 0; display: grid; gap: 12px; border-top: 1px solid var(--cw-border); }
.plan__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; line-height: 1.45; }
.plan__features svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan__features .is-off { color: var(--cw-text-muted); opacity: 0.6; text-decoration: line-through; }
.plan__dash { flex-shrink: 0; width: 18px; text-align: center; }

/* Most popular: gradient card, slightly raised */
.plan--popular {
  padding: 48px 32px 40px;
  background: var(--cw-gradient);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 40px 80px -30px rgba(99, 90, 206, 0.7);
}
.plan--popular .plan__name { color: #FFFFFF; }
.plan--popular .plan__tagline { color: rgba(255, 255, 255, 0.85); }
.plan--popular .plan__features { border-top-color: rgba(255, 255, 255, 0.25); }
.plan--popular .plan__features svg { stroke: #FFFFFF; }
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--cw-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--cw-shadow-sm);
}

.pricing__note { margin-top: 40px; text-align: center; font-size: 0.9rem; color: var(--cw-text-muted); }

/* =========================================================
   Privacy Policy / Terms of Service (legal.php)
   ========================================================= */
.legal-hero { padding-bottom: 48px; }
.legal-hero__title { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 10px; }
.legal-hero__updated { font-size: 0.9rem; color: var(--cw-text-muted); }

.legal { padding: 24px 0 110px; background: var(--cw-bg); }
.legal__grid { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; max-width: 1080px; }

.legal__toc {
  position: sticky;
  top: 100px;
  padding: 22px 22px 18px;
  border-radius: var(--cw-radius-lg);
  background: var(--cw-bg-soft);
  border: 1px solid var(--cw-border);
}
.legal__toc-title { margin-bottom: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cw-primary); }
.legal__toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: 8px; font-size: 0.86rem; color: var(--cw-text-muted); transition: color 0.2s; }
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: color-mix(in srgb, var(--cw-primary) 50%, transparent); }
.legal__toc a:hover { color: var(--cw-primary); }

.legal__body { max-width: 720px; }
.legal__intro {
  margin-bottom: 36px;
  padding: 20px 24px;
  border-left: 3px solid var(--cw-primary);
  border-radius: 0 var(--cw-radius-md) var(--cw-radius-md) 0;
  background: var(--cw-bg-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}
.legal__section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--cw-border); }
.legal__section:last-child { border-bottom: 0; }
.legal__section h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 1.3rem; }
.legal__num { font-size: 0.85rem; font-weight: 700; color: var(--cw-primary); }
.legal__section p, .legal__section li { color: var(--cw-text-muted); line-height: 1.75; }
.legal__section p + p, .legal__section ul + p, .legal__section p + ul { margin-top: 12px; }
.legal__section ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legal__section li { position: relative; padding-left: 20px; }
.legal__section li::before { content: '/'; position: absolute; left: 0; font-weight: 800; color: var(--cw-primary); }
.legal__section a { font-weight: 600; color: var(--cw-primary); }

@media (max-width: 860px) {
  .legal__grid { grid-template-columns: 1fr; gap: 28px; }
  .legal__toc { position: static; }
}

/* 404 */
.not-found { padding: 110px 0 100px; text-align: center; }
.not-found__inner { max-width: 620px; }
.not-found__code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; margin-bottom: 18px; color: var(--cw-text); }
.not-found .section-lead { margin-bottom: 32px; }
.not-found__buttons { justify-content: center; }

/* Keep section tops clear of the sticky navbar when jumping to an anchor */
section[id] { scroll-margin-top: 90px; }

/* =========================================================
   Footer
   ========================================================= */
/* Same purple→blue gradient as the top bar, with white text. */
.footer {
  --footer-text: rgba(255, 255, 255, 0.85);
  --footer-line: rgba(255, 255, 255, 0.2);
  --footer-tile: rgba(255, 255, 255, 0.14);
  position: relative;
  padding: 80px 0 0;
  background: var(--cw-gradient);
  color: #FFFFFF;
  overflow: hidden;
}
.footer::before {
  /* large soft brand slash in the background */
  content: '';
  position: absolute;
  width: 90px;
  height: 520px;
  right: 18%;
  top: -80px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.06);
  transform: skewX(-25deg);
  pointer-events: none;
}
.footer .container { position: relative; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}

/* The logo isn't readable on the gradient (the _dark version's purple parts vanish too),
   and must not be recolored, so the regular logo sits on a white badge. */
.footer__brand .logo {
  margin-bottom: 22px;
  padding: 10px 16px;
  border-radius: var(--cw-radius-md);
  background: #FFFFFF;
  box-shadow: 0 10px 24px -12px rgba(23, 26, 34, 0.35);
}
.footer__brand .logo__img { height: 34px; }
.footer__about { max-width: 320px; font-size: 0.92rem; color: var(--footer-text); margin-bottom: 14px; }
.footer__tagline { font-weight: 700; font-size: 0.95rem; margin-bottom: 24px; }
.footer .slash { color: #FFFFFF; }

.socials { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.socials svg,
.footer__icon svg,
.to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cw-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}
.socials a:hover { background: var(--cw-primary); border-color: var(--cw-primary); transform: translateY(-3px); }
.socials a:hover svg { stroke: #FFFFFF; }

/* Footer versions: white icons on translucent tiles; hover flips to a white tile */
.footer .socials a,
.footer .to-top { background: var(--footer-tile); border-color: rgba(255, 255, 255, 0.28); }
.footer .socials svg,
.footer .footer__icon svg,
.footer .to-top svg { stroke: #FFFFFF; }
.footer .socials a:hover,
.footer .to-top:hover { background: #FFFFFF; border-color: #FFFFFF; }
.footer .socials a:hover svg,
.footer .to-top:hover svg { stroke: var(--cw-primary); }

.footer__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.75;
  margin-bottom: 20px;
}
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__links a {
  position: relative;
  font-size: 0.92rem;
  color: var(--footer-text);
  transition: color 0.2s, padding 0.2s;
}
.footer__links a::before {
  content: '/';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.2s;
}
.footer__links a:hover { color: #FFFFFF; padding-left: 14px; }
.footer__links a:hover::before { opacity: 1; }

.footer__contact { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; line-height: 1.45; color: var(--footer-text); }
.footer__contact a { word-break: break-word; transition: color 0.2s; }
.footer__contact a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.footer__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -5px;
  border-radius: 8px;
  background: var(--footer-tile);
}
.footer__icon svg { width: 16px; height: 16px; }

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--footer-line);
  font-size: 0.84rem;
  color: var(--footer-text);
}
.footer__legal { list-style: none; padding: 0; margin: 0 0 0 auto; display: flex; gap: 24px; }
.footer__legal a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.to-top {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid;
  transition: background 0.2s, transform 0.2s;
}
.to-top:hover { transform: translateY(-3px); }

/* =========================================================
   Chat bubble (footer.php)
   ========================================================= */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.chat__bubble {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--cw-gradient);
  cursor: pointer;
  box-shadow: 0 14px 30px -8px rgba(99, 90, 206, 0.7);
  transition: transform 0.2s;
}
.chat__bubble:hover { transform: scale(1.07); }
.chat__bubble::after {
  /* gentle pulse ring to draw the eye */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cw-primary);
  animation: chat-pulse 2.4s ease-out infinite;
}
.chat--open .chat__bubble::after { display: none; }
.chat__icon { position: absolute; display: grid; place-items: center; transition: transform 0.25s, opacity 0.25s; }
.chat__icon svg,
.chat__close svg,
.chat__btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat__icon svg { width: 28px; height: 28px; color: #FFFFFF; }
.chat__icon--close { opacity: 0; transform: rotate(-90deg); }
.chat--open .chat__icon--open { opacity: 0; transform: rotate(90deg); }
.chat--open .chat__icon--close { opacity: 1; transform: none; }

.chat__tip {
  position: absolute;
  right: 72px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  box-shadow: var(--cw-shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  animation: chat-tip 0.4s 1.5s both;
}
.chat--open .chat__tip, .chat--seen .chat__tip { display: none; }

.chat__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 340px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  box-shadow: 0 30px 60px -20px rgba(23, 26, 34, 0.35);
  animation: chat-in 0.25s ease both;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--cw-gradient);
  color: #FFFFFF;
  line-height: 1.3;
}
.chat__head b { display: block; font-size: 0.95rem; }
.chat__head small { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; opacity: 0.9; }
.chat__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
}
.chat__avatar img { width: auto; height: 24px; }
.chat__online { width: 8px; height: 8px; border-radius: 50%; background: #6EE7A8; }
.chat__close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  cursor: pointer;
}
.chat__close svg { width: 16px; height: 16px; }
.chat__body { display: grid; gap: 8px; padding: 18px 18px 6px; background: var(--cw-bg-soft); }
.chat__msg {
  justify-self: start;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  font-size: 0.88rem;
  line-height: 1.45;
}
.chat__actions { display: grid; gap: 10px; padding: 16px 18px 18px; background: var(--cw-bg-soft); }

/* Details form before Messenger */
.chat__panel { max-height: calc(100vh - 120px); overflow-y: auto; }
.chat__form { display: grid; gap: 12px; padding: 14px 18px 6px; background: var(--cw-bg-soft); }
.chat__form .field { gap: 5px; }
.chat__form .field label { font-size: 0.8rem; }
.chat__form .field input,
.chat__form .field select { padding: 10px 12px; font-size: 0.9rem; }
.chat__form .field__error { font-size: 0.75rem; }
.chat__alert { font-size: 0.82rem; padding: 10px 12px; }
.chat__submit { margin-top: 4px; }
.chat__submit[disabled] { opacity: 0.7; cursor: wait; }
.chat__msg--ok { display: flex; gap: 8px; align-items: flex-start; max-width: none; }
.chat__msg--ok svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: var(--cw-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chat__alt { padding: 4px 18px 16px; background: var(--cw-bg-soft); font-size: 0.8rem; text-align: center; color: var(--cw-text-muted); }
.chat__alt a { font-weight: 600; color: var(--cw-primary); }
.chat__btn { justify-content: center; width: 100%; padding: 12px 18px; }
.chat__btn svg { width: 18px; height: 18px; }

@keyframes chat-pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.5); opacity: 0; } }
@keyframes chat-tip { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .chat { right: 16px; bottom: 16px; }
  .chat__bubble { width: 56px; height: 56px; }
  .chat__panel { width: calc(100vw - 32px); bottom: 70px; }
  .chat__tip { display: none; }
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Scroll reveal (main.js adds .reveal, then .is-visible when the element scrolls into view).
   Uses `translate` (not `transform`) and an animation (not a transition), so hover effects keep working. */
.reveal:not(.is-visible) { opacity: 0; }
.reveal.is-visible { animation: reveal-up 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes reveal-up {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

/* Page-load entrance for the top section of each page (pure CSS, works without JavaScript).
   Slide/zoom only, no fade: the content is visible from the first frame, so it doesn't delay
   when the page counts as painted (First/Largest Contentful Paint). */
.hero__copy > *,
.svc-hero__inner > *,
.hero__visual,
.hero .stats,
.hero .tech { animation: enter-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__copy > :nth-child(2), .svc-hero__inner > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3), .svc-hero__inner > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4), .svc-hero__inner > :nth-child(4) { animation-delay: 0.24s; }
.hero__copy > :nth-child(5), .svc-hero__inner > :nth-child(5) { animation-delay: 0.32s; }
.hero__copy > :nth-child(n+6), .svc-hero__inner > :nth-child(n+6) { animation-delay: 0.4s; }
.hero__visual { animation-name: enter-zoom; animation-duration: 1s; animation-delay: 0.15s; }
.hero .stats { animation-delay: 0.45s; }
.hero .tech { animation-delay: 0.55s; }
@keyframes enter-up {
  from { translate: 0 18px; }
  to { translate: 0 0; }
}
@keyframes enter-zoom {
  from { scale: 0.96; }
  to { scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal:not(.is-visible) { opacity: 1; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav__menu { gap: 22px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__buttons, .hero__checks { justify-content: center; }
  .orbit { width: min(480px, 92%); }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .why { padding: 90px 0; }
  .why__grid { grid-template-columns: 1fr; gap: 56px; }
  .why__visual { order: 2; max-width: 560px; margin: 0 auto; width: 100%; }

  /* Process becomes a vertical timeline */
  .process { padding: 90px 0; }
  .steps { --marker: 60px; grid-template-columns: 1fr; gap: 20px; max-width: 640px; margin: 0 auto; }
  .steps::before { display: none; }
  /* Connector from each marker down to the next one */
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: var(--marker);
    bottom: -20px;
    left: calc(var(--marker) / 2 - 1px);
    width: 2px;
    background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--cw-primary) 45%, transparent) 0 8px, transparent 8px 16px);
  }
  .step { flex-direction: row; align-items: flex-start; gap: 20px; text-align: left; }
  .step__marker { margin-bottom: 0; flex-shrink: 0; }
  .step__icon svg { width: 24px; height: 24px; }
  .process__footer { flex-direction: column; align-items: flex-start; }

  .work { padding: 90px 0; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid .project:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 14px); justify-self: center; width: 100%; }

  .testimonials { padding: 90px 0; }
  .reviews, .reviews--2 { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; gap: 20px; }

  .cta { padding: 80px 0; }
  .cta__band { grid-template-columns: 1fr; gap: 32px; padding: 52px 40px; }

  .contact { padding: 90px 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; max-width: 680px; margin: 0 auto; }

  .svc-block { padding: 80px 0; }
  .svc-block__grid { grid-template-columns: 1fr; gap: 48px; }
  .svc-block--reverse .svc-block__visual { order: 0; } /* picture always after the text */
  .svc-block__visual { max-width: 600px; }
  .svc-faq { padding: 80px 0; }
  .systems { padding: 80px 0; }
  .systems__grid { grid-template-columns: repeat(2, 1fr); }
  .systems__cta { flex-direction: column; align-items: flex-start; }

  .pricing__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 36px; }
  .pricing { padding: 32px 0 80px; }

  .about-story__grid { grid-template-columns: 1fr; gap: 56px; }
  .about-stack { max-width: 600px; height: 400px; }
  .about-story, .about-industries { padding: 80px 0; }
  .about-values__grid { grid-template-columns: repeat(2, 1fr); }
  .about-industries__grid { grid-template-columns: 1fr; }

  .footer { padding-top: 64px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__actions > .btn { display: none; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--cw-bg);
    border-bottom: 1px solid var(--cw-border);
    box-shadow: var(--cw-shadow-sm);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--cw-border); }
  .nav__menu > a:not(.btn)::after { display: none; }
  .nav__cta-mobile { display: inline-flex !important; justify-content: center; margin-top: 16px; }

  .stats { grid-template-columns: repeat(2, 1fr); border-radius: var(--cw-radius-lg); row-gap: 26px; }
  .stat:nth-child(3) { border-left: 0; }

  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .services { padding: 80px 0; }
  .services__cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
  .logo__img { height: 34px; }
  .hero { padding: 48px 0 60px; }
  .hero__buttons .btn { flex: 1 1 100%; justify-content: center; }
  .chip { padding: 7px 10px; font-size: 0.7rem; gap: 7px; }
  .chip__icon { width: 26px; height: 26px; }
  .chip--stat { right: 0; }
  .orb { width: 36px; height: 36px; }
  .orb svg { width: 15px; height: 15px; }
  .phone { border-radius: 14px; padding: 4px; }
  .phone__screen { border-radius: 10px; padding: 16px 6px 8px; gap: 5px; }
  .mock__links b { width: 10px; }
  .mock__chart { height: 36px; gap: 3px; padding: 4px; }
  .mock__cards span { height: 14px; }
  .tech { gap: 10px 22px; font-size: 0.82rem; }

  .services { padding: 64px 0; }
  .services__grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px 24px; }
  .services__cta { padding: 22px 20px; }
  .services__cta .btn, .section-head__link { width: 100%; justify-content: center; }

  .why { padding: 64px 0; }
  .reasons { grid-template-columns: 1fr; gap: 24px; }
  .why__buttons .btn { flex: 1 1 100%; justify-content: center; }
  .why__visual { padding: 56px 0; }
  .update-card { padding: 20px; }
  .update-card__head { flex-wrap: wrap; }
  .why__visual--photo .why__chip--top { right: 0; }
  .why__visual--photo .why__chip--bottom { left: 0; }
  .why__chip--progress { right: 0; }
  .why__chip--reviews { left: 0; top: 16%; }
  .why__chip--price { display: none; } /* not enough room on small screens */
  .badge { margin-left: 52px; }

  .process { padding: 64px 0; }
  .steps { --marker: 48px; }
  .step { gap: 14px; }
  .step__icon svg { width: 20px; height: 20px; }
  .step__num { min-width: 22px; height: 22px; font-size: 0.62rem; right: -6px; }
  .step__body { padding: 18px 16px 16px; }
  .process__footer { padding: 22px 20px; }
  .promises { flex-direction: column; gap: 8px; }
  .process__footer .btn { width: 100%; justify-content: center; }

  .work { padding: 64px 0; }
  .work__grid { grid-template-columns: 1fr; gap: 20px; }
  .work__grid .project:last-child:nth-child(odd) { max-width: none; }
  .project__body { padding: 20px 20px 18px; }

  .testimonials { padding: 64px 0; }
  .review { padding: 24px 20px 22px; }
  .review__logo { width: 50px; height: 50px; }
  .testimonials__cta a { margin: 6px 0 0; }

  .cta { padding: 56px 0; }
  .cta__band { padding: 40px 22px; border-radius: var(--cw-radius-lg); }
  .cta__actions { padding: 22px 18px; }
  .cta__actions .btn { width: 100%; justify-content: center; }

  .contact { padding: 64px 0; }
  .contact__card { padding: 24px 18px; }

  .svc-hero { padding: 40px 0 72px; }
  .svc-block { padding: 64px 0; }
  .svc-block__cta { width: 100%; justify-content: center; }
  .svc-proof-card { margin: -32px 12px 0; padding: 16px; }
  .svc-support { padding: 22px 18px; }
  .svc-building { padding: 32px 20px 0; }
  .api-visual { padding: 18px; }
  .systems { padding: 64px 0; }
  .systems__grid { grid-template-columns: 1fr; }
  .systems__cta { padding: 20px 18px; }
  .systems__cta .btn { width: 100%; justify-content: center; }
  .code-window__body { font-size: 0.72rem; padding: 16px; }
  .app-mock { width: 180px; }
  .svc-faq { padding: 64px 0; }

  .about-hero { padding-bottom: 64px; }
  .about-stack { height: 280px; }
  .about-photo::before { inset: 10px -8px -10px 10px; }
  .about-photo__chip--1 { left: 8px; bottom: -22px; }
  .about-photo__chip--2 { left: 8px; top: -22px; }
  .about-photo__chip--3 { display: none; } /* not enough room on small screens */
  .about-stack__item { width: 88%; }
  .about-stack__item--2 { top: 50px; }
  .about-story, .about-industries, .about-values { padding: 64px 0; }
  .about-mv { padding: 64px 0 0; }
  .about-mv__grid, .about-values__grid { grid-template-columns: 1fr; }
  .about-mv__card { padding: 28px 22px; }
  .faq summary { padding: 16px 16px; }
  .faq__answer { padding: 0 16px 18px; }
  .form__row { grid-template-columns: 1fr; }

  .footer { padding-top: 52px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer__bottom { flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px 20px; }
  .footer__legal { margin: 0; }
}
