/* ==========================================================================
   Appix Engine — Design System
   Single stylesheet, no external requests (no CDN fonts/icons) so the page
   never blocks on a third-party host. Keep this file cacheable & versioned.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --brand: #1478f2;
  --brand-dark: #075acb;
  --brand-accent: #38bdf8;

  --brand-050: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;

  /* Neutrals */
  --ink: #0b1220;
  --ink-2: #1c2536;
  --muted: #55607a;
  --muted-2: #7b8499;
  --line: #e4e8f0;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eef3fb;

  --success: #10b981;
  --warn: #f59e0b;

  /* Type — system stack, zero font download, zero CLS from swaps */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid scale */
  --fs-display: clamp(2.25rem, 1.35rem + 3.6vw, 3.9rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem);
  --fs-h3: clamp(1.15rem, 1.03rem + 0.5vw, 1.4rem);
  --fs-lead: clamp(1.03rem, 0.97rem + 0.35vw, 1.2rem);

  /* Space & shape */
  --gutter: clamp(1.1rem, 0.6rem + 2vw, 2.5rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 3px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 6px 18px rgba(11, 18, 32, 0.07), 0 2px 6px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 22px 48px rgba(7, 90, 203, 0.13), 0 6px 16px rgba(11, 18, 32, 0.06);

  --focus: 0 0 0 3px rgba(20, 120, 242, 0.38);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f5fa;
    --ink-2: #dbe2ee;
    --muted: #a3adc2;
    --muted-2: #8a93a8;
    --line: #23304a;
    --surface: #0b1220;
    --surface-2: #101a2c;
    --surface-3: #16233a;
    --brand-050: #101f38;
    --brand-100: #16294a;
    --brand-200: #1d3a63;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; }
p { margin: 0 0 1rem; text-wrap: pretty; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-2); }
.section--band {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-accent) 130%);
  color: #fff;
}
.section--band h2, .section--band h3 { color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section--band .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-accent);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.85rem 1.5rem;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 120, 242, 0.28);
}
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 10px 26px rgba(7, 90, 203, 0.34); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-050); }

.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--brand-050); color: var(--brand-dark); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  color: var(--brand-dark);
  text-decoration: none;
}
.link-arrow svg { transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface); /* fallback: browsers without color-mix get a solid bar */
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand span i { font-style: normal; color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-050); font-weight: 650; }

.nav-cta { flex: none; padding: 0.62rem 1.15rem; font-size: 0.93rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-toggle .bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars i {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars i { top: 6px; }
.nav-toggle .bars::after { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav-links a { padding: 0.8rem 0.9rem; font-size: 1rem; }
  .nav-cta { margin-top: 0.5rem; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) clamp(3rem, 2rem + 5vw, 5.5rem);
  background:
    radial-gradient(1100px 520px at 78% -12%, var(--brand-050), transparent 62%),
    radial-gradient(720px 420px at 6% 8%, rgba(56, 189, 248, 0.14), transparent 60%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
}
.hero h1 { font-size: var(--fs-display); margin-bottom: 0.6rem; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-dark), var(--brand) 45%, var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.hero .btn-row { margin-bottom: 1.6rem; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-row svg { color: var(--success); flex: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card > :last-child { margin-bottom: 0; }

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--brand), var(--brand-accent));
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(20, 120, 242, 0.26);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--muted); }
.check-list svg { flex: none; color: var(--brand); margin-top: 4px; }
.check-list strong { color: var(--ink); font-weight: 650; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1rem; }
.stat {
  text-align: center;
  padding: 1.4rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.stat b { display: block; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; }
.stat span { font-size: 0.875rem; opacity: 0.9; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  position: relative;
  padding-left: 4.25rem;
  min-height: 56px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-dark);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
}
.step h3 { margin-bottom: 0.25rem; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- Portfolio ---------- */
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.work-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand-dark), var(--brand) 60%, var(--brand-accent));
  padding: 1.5rem;
}
.work-thumb svg { width: 100%; height: 100%; max-height: 190px; }
.work-body { padding: clamp(1.25rem, 1rem + 0.8vw, 1.7rem); flex: 1; display: flex; flex-direction: column; }
.work-body p { flex: 1; }
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.work-meta b { color: var(--brand-dark); font-size: 1.05rem; display: block; line-height: 1.3; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--brand-200); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.25rem; font-size: 1.03rem; color: var(--ink-2); }
.quote figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-accent));
}
.quote cite { font-style: normal; font-weight: 650; display: block; line-height: 1.35; }
.quote figcaption small { color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--warn); margin-bottom: 0.85rem; }

/* ---------- Team ---------- */
.member { text-align: center; }
.member .avatar { width: 76px; height: 76px; font-size: 1.5rem; margin: 0 auto 0.9rem; }
.member h3 { margin-bottom: 0.15rem; font-size: 1.08rem; }
.member .role { color: var(--brand-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.member p { font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  padding: 1.1rem 2.25rem 1.1rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.faq .faq-body { padding: 0 0 1.15rem; color: var(--muted); }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: 0.9rem; }
.field .hint { font-size: 0.82rem; color: var(--muted-2); font-weight: 400; }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.8rem 0.95rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #dc2626; }
.error-msg { font-size: 0.82rem; color: #dc2626; min-height: 1.1em; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--brand); }

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.is-err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Contact info ---------- */
.info-item { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.5rem; }
.info-item:last-child { margin-bottom: 0; }
.info-item .card-icon { width: 42px; height: 42px; margin-bottom: 0; border-radius: 11px; }
.info-item h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.info-item p, .info-item a { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band p { max-width: 60ch; margin-inline: auto; opacity: 0.95; font-size: var(--fs-lead); margin-bottom: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { color: var(--muted); font-size: 0.92rem; max-width: 38ch; margin-top: 0.9rem; }
.site-footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted-2);
  margin-bottom: 0.9rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-list a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.footer-list a:hover { color: var(--brand-dark); text-decoration: underline; }
.social { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: all 0.16s ease;
}
.social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.87rem;
  color: var(--muted-2);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--muted-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--brand-dark); }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-block: 1rem 0; font-size: 0.86rem; color: var(--muted-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--line); }

/* ---------- Page header ---------- */
.page-head {
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  background: radial-gradient(900px 400px at 80% -30%, var(--brand-050), transparent 65%);
  border-bottom: 1px solid var(--line);
}
.page-head .section-head { margin-bottom: 0; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-lead); color: var(--muted); }

/* Reveal on scroll — opt-in, safe if JS never runs */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Visual polish layer
   Everything here is decorative and costs no extra network request: pure
   gradients, pseudo-elements and transform/opacity animation (compositor-only,
   so it can't trigger layout thrash). The global prefers-reduced-motion rule
   above neutralises every animation declared below.
   ========================================================================== */

::selection { background: var(--brand); color: #fff; }

@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--brand-200) transparent; scrollbar-width: thin; }
}

/* ---------- Hero: dot grid + drifting colour orbs ---------- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 120, 242, 0.16) 1px, transparent 0);
  background-size: 26px 26px;
  /* Fade the grid out before it reaches the edges */
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  width: min(560px, 70vw);
  aspect-ratio: 1;
  right: -12%;
  top: -32%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32), transparent 66%);
  animation: orb-drift 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

@keyframes orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-30px, 28px, 0) scale(1.06); }
}

/* Slow sheen across the gradient headline */
.hero h1 .grad {
  background-size: 220% auto;
  animation: text-sheen 7s linear infinite;
}
@keyframes text-sheen { to { background-position: 220% center; } }

/* ---------- Header ---------- */
.site-header { transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.site-header.is-stuck {
  box-shadow: 0 6px 22px rgba(11, 18, 32, 0.09);
  border-bottom-color: transparent;
}

/* ---------- Buttons: gradient fill + sheen sweep ---------- */
.btn--primary {
  background-image: linear-gradient(135deg, var(--brand) 0%, #2f8ef7 52%, var(--brand-accent) 130%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.4) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: -1;
}
.btn--primary:hover::after { transform: translateX(130%); }
.btn--primary:hover { background-image: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--brand-accent) 140%); }

.btn--ghost:hover { transform: translateY(-1px); }

/* ---------- Cards: accent rule that draws in on hover ---------- */
.card--hover { position: relative; overflow: hidden; }
.card--hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.card--hover:hover::before { transform: scaleX(1); }

.card-icon { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease; }
.card--hover:hover .card-icon {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 22px rgba(20, 120, 242, 0.34);
}

/* ---------- Centred section headings get a gradient rule ---------- */
.section-head--center h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin: 1.1rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
}
.section--band .section-head--center h2::after {
  background: rgba(255, 255, 255, 0.75);
}

/* ---------- Coloured bands get depth ---------- */
.section--band { position: relative; overflow: hidden; }
.section--band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 12% 8%, rgba(255, 255, 255, 0.17), transparent 62%),
    radial-gradient(720px 360px at 88% 92%, rgba(56, 189, 248, 0.3), transparent 66%);
  pointer-events: none;
}
.section--band > .wrap { position: relative; z-index: 1; }

.stat { transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease; }
.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
}
.stat b { font-variant-numeric: tabular-nums; }

/* ---------- Tech strip ---------- */
.tech-strip {
  padding-block: clamp(2rem, 1.2rem + 2vw, 3rem);
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}
.tech-strip p {
  text-align: center;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.5rem;
}
.tech-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tech-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tech-strip li:hover { transform: translateY(-2px); border-color: var(--brand-200); color: var(--brand-dark); }
.tech-strip li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-accent));
  flex: none;
}

/* ---------- Portfolio ---------- */
.work-thumb { overflow: hidden; }
.work-thumb svg { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.work-card:hover .work-thumb svg { transform: scale(1.06); }
.filter-btn[aria-pressed="true"] {
  background-image: linear-gradient(135deg, var(--brand), var(--brand-accent));
  box-shadow: 0 6px 16px rgba(20, 120, 242, 0.28);
}

/* ---------- FAQ ---------- */
.faq details:hover { border-color: var(--brand-200); }
.faq details[open] { background: var(--surface); }

/* ---------- Steps ---------- */
.step::before { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.step:hover::before {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(20, 120, 242, 0.18);
}

/* ---------- Footer ---------- */
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand) 45%, var(--brand-accent));
}
.social a:hover { transform: translateY(-2px); }
.social a { transition: all 0.16s ease; }

/* ---------- Page header ---------- */
.page-head { position: relative; overflow: hidden; }
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 120, 242, 0.13) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 85% 0%, #000 20%, transparent 72%);
  pointer-events: none;
}
.page-head > .wrap { position: relative; z-index: 1; }
