/* ==========================================================================
   BlankCode — Stylesheet
   1. Tokens          6. Services
   2. Reset / base    7. Work + Reviews
   3. Utilities       8. Why / Process
   4. Header / Nav    9. Contact
   5. Hero            10. Footer / Floating UI / Responsive / Print
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --color-bg: #eef3fa;
  --color-bg-soft: #e4ecf7;
  --color-ink: #0a0f1e;
  --color-ink-soft: #566072;
  --color-ink-faint: #8991a1;
  --color-border: #dbe3f0;
  --color-border-strong: #c7d2e4;
  --color-accent: #06b6d4;
  --color-accent-deep: #0b3d91;
  --color-accent-ink: #063a52;
  --color-accent-tint: #e3fafd;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;
  --color-whatsapp-deep: #1da851;
  --color-star: #f5a623;
  --color-star-empty: #d5dceb;
  --color-danger: #c8352b;
  --color-danger-tint: #fdecea;

  /* Type */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  /* Layout */
  --max-width: 1200px;
  --header-h: 68px;              /* kept in sync by script.js */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 30, 0.05), 0 1px 1px rgba(10, 15, 30, 0.03);
  --shadow-md: 0 8px 24px rgba(10, 15, 30, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 15, 30, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); text-wrap: balance; }
p { margin: 0; }
blockquote { margin: 0; }
figure { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

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

/* Icon sprite host — present in the DOM, never painted. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.14em;
  fill: currentColor;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- 3. Utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin: 0 0 var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  margin-right: 0.6rem;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.25;
  max-width: 46rem;
}

.section-head { max-width: 46rem; margin: 0 0 var(--space-5); text-align: left; }

section { padding: var(--space-6) var(--space-4); max-width: var(--max-width); margin: 0 auto; }

/* Anchor targets clear the sticky header. */
#top, #services, #work, #reviews, #about, #contact { scroll-margin-top: calc(var(--header-h) + 16px); }

.text-link {
  color: var(--color-accent-deep);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-bottom-color: currentColor; }

/* Reveal-on-scroll — only armed when JS is running, so a JS failure
   can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered children inside a grid */
.stagger > .reveal:nth-child(2) { transition-delay: 70ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 140ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 210ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 70ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 140ms; }

/* Star rating (built by script.js from data-rating) */
.stars { display: inline-flex; font-size: 0.82rem; line-height: 1; }
.stars-inner { position: relative; display: inline-flex; }
.stars-base, .stars-on { display: inline-flex; gap: 1.5px; }
.stars-base { color: var(--color-star-empty); }
.stars-on {
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
  color: var(--color-star);
  white-space: nowrap;
}
.stars-sm { font-size: 0.68rem; }
.stars-lg { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn .icon { font-size: 1.05em; }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary { background: var(--color-ink); color: var(--color-white); }
.btn-primary:hover { background: var(--color-accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-border-strong); }
.btn-ghost:hover { border-color: var(--color-ink); background: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }

.btn-whatsapp { background: var(--color-whatsapp); color: var(--color-white); }
.btn-whatsapp:hover { background: var(--color-whatsapp-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.84rem; }

/* Nudge trailing arrows on hover — leading icons stay put. */
.icon-end, .work-link .icon, .text-link .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon-end, .work-link:hover .icon, .text-link:hover .icon { transform: translateX(3px); }

/* ---------- 4. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 243, 250, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 24px rgba(10, 15, 30, 0.05);
  background: rgba(238, 243, 250, 0.94);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-4);
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }

.scroll-progress { height: 2px; background: transparent; }
.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent-deep), var(--color-accent));
  transition: width 0.1s linear;
}

.nav-menu { display: flex; align-items: center; gap: var(--space-3); }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--color-ink); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-link[aria-current="true"] { color: var(--color-ink); font-weight: 600; }
.nav-link[aria-current="true"]::after { width: 100%; }

.nav-cta {
  background: var(--color-ink);
  color: var(--color-white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--color-accent-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 var(--space-3);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  max-width: 34rem;
  margin-bottom: var(--space-4);
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.hero-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--color-ink-faint);
}
.note-mark { color: var(--color-accent); font-size: 1.1rem; }
.note-mark-lg { font-size: 2rem; display: block; margin: 0 auto var(--space-2); }

/* Hero visual: code editor mock */
.hero-visual { position: relative; max-width: 100%; padding-top: 2.6rem; }
.editor-window {
  background: #0c1424;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #1c2740;
  max-width: 100%;
}
.editor-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  background: #101a2e;
  border-bottom: 1px solid #1c2740;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-a { background: #ff5f57; }
.dot-b { background: #febc2e; }
.dot-c { background: #28c840; }
.editor-filename {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #6b7a99;
}
.editor-body { padding: 1.4rem 1.3rem 1.6rem; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.9; overflow-x: auto; max-width: 100%; }
.code-line { white-space: pre; color: #c7d2e6; }
.code-line.indent { padding-left: 1.4rem; }
.ln { display: inline-block; width: 1.6rem; color: #3c4a68; user-select: none; }
.tok-kw { color: #7ea6ff; }
.tok-var { color: #e6ecfa; }
.tok-fn { color: #4fd6e8; }
.tok-str { color: #a5e8c4; }
.tok-op { color: #6b7a99; }
.tok-comment { color: #4a5a7a; font-style: italic; }
.cursor-blink {
  display: inline-block;
  color: var(--color-accent);
  animation: blink 1.1s steps(1) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: 46%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  animation: float 5s ease-in-out infinite;
}
.float-card-bar { width: 40%; height: 8px; border-radius: 4px; background: var(--color-accent); margin-bottom: 0.7rem; }
.float-card-row { height: 8px; border-radius: 4px; background: var(--color-bg-soft); margin-bottom: 0.5rem; }
.float-card-row.short { width: 60%; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-tag {
  position: absolute;
  left: -5%;
  top: 0;
  background: var(--color-accent-tint);
  color: var(--color-accent-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #bff1f8;
  box-shadow: var(--shadow-sm);
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.trust-strip li { text-align: center; padding: 0.3rem 0.4rem; min-width: 0; }
.trust-strip li + li { border-left: 1px solid var(--color-border); }
.trust-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1.2;
}
.trust-value-sub { font-size: 0.9rem; font-weight: 600; color: var(--color-ink-faint); }
.trust-value-text { font-size: 1.15rem; }
.trust-value .stars { align-self: center; }
.trust-label { display: block; font-size: 0.8rem; color: var(--color-ink-soft); margin-top: 0.25rem; }

/* ---------- 6. Services ---------- */
.services { padding-top: var(--space-6); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.service-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent-deep);
  background: var(--color-accent-tint);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: var(--space-2);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--color-ink-soft); margin-bottom: var(--space-2); }
.service-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-list li {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.service-card-featured {
  background: linear-gradient(150deg, var(--color-ink) 0%, #14213f 60%, var(--color-accent-deep) 130%);
  border-color: transparent;
  color: var(--color-white);
}
.service-card-featured h3, .service-card-featured p { color: var(--color-white); }
.service-card-featured p { opacity: 0.82; }
.service-card-featured .service-index { background: rgba(255, 255, 255, 0.12); color: #9be8f2; }

.idea-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.idea-flow li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
/* Chevron separator drawn in CSS — no arrow glyph needed. */
.idea-flow li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 0.15rem;
  border-top: 1.5px solid var(--color-accent);
  border-right: 1.5px solid var(--color-accent);
  transform: rotate(45deg);
}

/* ---------- Idea CTA banner ---------- */
.idea-cta {
  max-width: none;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(6, 182, 212, 0.10), transparent 70%),
    var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.idea-cta-inner { max-width: 40rem; margin: 0 auto; }
.idea-cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-2); }
.idea-cta-inner p { color: var(--color-ink-soft); margin-bottom: var(--space-4); }

/* ---------- 7. Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }

.work-card-top {
  position: relative;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 140% at 15% 10%, rgba(6, 182, 212, 0.28), transparent 60%),
    linear-gradient(140deg, #0b2f6d 0%, #123a7a 55%, #0a6f88 130%);
}
.work-card-top::before {
  /* faint grid texture, keeps the tile from reading as flat colour */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
}
.work-card-top-web {
  background:
    radial-gradient(120% 140% at 15% 10%, rgba(6, 182, 212, 0.30), transparent 60%),
    linear-gradient(140deg, #10233f 0%, #0b3d91 60%, #06b6d4 145%);
}
/* Product icon tile. The monogram underneath is the fallback and only shows
   if the image fails to load (script.js flags the parent with .no-logo). */
.work-logo {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 24px rgba(4, 10, 25, 0.3);
  transition: transform 0.3s var(--ease);
}
.work-card:hover .work-logo { transform: translateY(-2px) scale(1.03); }

.work-monogram {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.work-card-top:not(.no-logo) .work-monogram { display: none; }
.work-card-top.no-logo .work-logo { display: none; }
.work-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.work-badge .icon { font-size: 0.8em; }

.work-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.4rem; }
.work-platform {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.work-card-body h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.work-card-body > p { color: var(--color-ink-soft); font-size: 0.92rem; margin-bottom: 0.8rem; }

.work-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.rating-score { font-size: 0.78rem; font-weight: 700; color: var(--color-ink); }
.rating-out { color: var(--color-ink-faint); font-weight: 500; }

.work-review {
  position: relative;
  flex: 1;
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.55;
  padding-left: 0.8rem;
  border-left: 2px solid var(--color-accent-tint);
  margin-bottom: 1rem;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-accent-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.work-link:hover { border-bottom-color: currentColor; }

/* ---------- Reviews ---------- */
.reviews { background: transparent; }
.reviews-summary {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 1fr;
  gap: var(--space-5);
  align-items: center;
  max-width: 46rem;
  margin: 0 auto var(--space-5);
  padding: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.reviews-summary-score { text-align: center; }
.reviews-score {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.reviews-summary-score .stars { margin-top: 0.5rem; }
.reviews-score-note { display: block; font-size: 0.76rem; color: var(--color-ink-faint); margin-top: 0.5rem; }

.reviews-bars { display: flex; flex-direction: column; gap: 0.4rem; }
.reviews-bars li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; color: var(--color-ink-soft); }
.bar-label { width: 0.7rem; text-align: right; font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 7px; background: var(--color-bg-soft); border-radius: 999px; overflow: hidden; }
.bar > i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-star), #ffc95c);
}
.bar-pct { width: 2.2rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--color-ink-faint); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3) var(--space-3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-quote {
  font-size: 1.5rem;
  color: var(--color-accent);
  opacity: 0.35;
}
.review-card blockquote {
  flex: 1;
  color: var(--color-ink);
  font-size: 0.95rem;
  line-height: 1.6;
}
.review-card figcaption { border-top: 1px solid var(--color-border); padding-top: 0.7rem; }
.review-author { display: block; font-size: 0.88rem; font-weight: 700; }
.review-meta { display: block; font-size: 0.78rem; color: var(--color-ink-faint); }

.reviews-foot {
  text-align: center;
  margin-top: var(--space-4);
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}
.reviews-foot .text-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.3rem; }

/* ---------- 8. Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.why-item {
  padding: var(--space-3) 0 0;
  border-top: 2px solid var(--color-ink);
  transition: border-color 0.25s var(--ease);
}
.why-item:hover { border-top-color: var(--color-accent); }
.why-item h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.why-item p { color: var(--color-ink-soft); font-size: 0.92rem; }

/* ---------- Process ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.timeline::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-border-strong), var(--color-accent), var(--color-border-strong));
  opacity: 0.7;
}
.timeline-step { position: relative; padding-top: var(--space-4); }
.timeline-index {
  position: absolute;
  top: 0;
  left: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-accent-deep);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.timeline-step:hover .timeline-index { border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-tint); }
.timeline-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.timeline-step p { color: var(--color-ink-soft); font-size: 0.9rem; }

/* ---------- 9. Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.contact-text { color: var(--color-ink-soft); margin: var(--space-2) 0 var(--space-4); max-width: 30rem; }

.contact-methods { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.contact-method-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.contact-value {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-accent-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
  word-break: break-word;
}
.contact-value:hover { border-bottom-color: currentColor; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  color: var(--color-ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.copy-btn:hover { border-color: var(--color-accent); color: var(--color-accent-deep); }
.copy-btn .check-icon { display: none; }
.copy-btn.is-copied { background: var(--color-accent-tint); border-color: var(--color-accent); color: var(--color-accent-ink); }
.copy-btn.is-copied .copy-icon { display: none; }
.copy-btn.is-copied .check-icon { display: inline-block; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.contact-fallback { margin-top: 0.9rem; font-size: 0.8rem; color: var(--color-ink-faint); }
.contact-fallback a { color: var(--color-accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.contact-form {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.form-title { font-size: 1.15rem; margin-bottom: 0.3rem; }
.form-intro { font-size: 0.86rem; color: var(--color-ink-soft); margin-bottom: var(--space-3); }
.form-row { margin-bottom: var(--space-2); }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-row .optional { font-weight: 400; color: var(--color-ink-faint); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-white);
  font-size: 0.94rem;
  color: var(--color-ink);
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-tint);
  outline: none;
}
.form-row input.has-error, .form-row textarea.has-error {
  border-color: var(--color-danger);
  background: var(--color-danger-tint);
}
.field-error { font-size: 0.78rem; color: var(--color-danger); margin-top: 0.35rem; font-weight: 500; }

.form-submit { width: 100%; margin-top: 0.4rem; }
.form-note { font-size: 0.78rem; color: var(--color-ink-faint); margin-top: 0.7rem; text-align: center; }

.form-status {
  margin-top: var(--space-3);
  padding: var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
}
.form-status-title { font-size: 0.86rem; font-weight: 600; margin-bottom: 0.6rem; }
.form-status-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* ---------- 10. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  padding: var(--space-5) var(--space-4) var(--space-3);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer-brand p { color: var(--color-ink-soft); font-size: 0.88rem; margin-top: 0.6rem; max-width: 20rem; }
.footer-nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-ink-faint); margin-bottom: 0.7rem; font-family: var(--font-mono); font-weight: 500; }
.footer-links { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a { color: var(--color-ink-soft); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--color-accent-deep); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-ink-faint);
}
.footer-bottom a { color: var(--color-ink-faint); }
.footer-bottom a:hover { color: var(--color-accent-deep); }
.footer-contact { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Floating UI ---------- */
.to-top {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease), border-color 0.2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--color-accent); color: var(--color-accent-deep); }

.mobile-bar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .footer-nav { gap: var(--space-4); }
}

@media (max-width: 980px) {
  :root { --space-7: 5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 26rem; margin: 0 auto; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-2); }
  .trust-strip li:nth-child(odd) { border-left: none; }
  .trust-strip li:nth-child(n + 3) { border-top: 1px solid var(--color-border); padding-top: var(--space-2); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; max-width: 34rem; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
  .timeline::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: var(--space-5); }
}

@media (max-width: 720px) {
  /* ------------------------------------------------------------------
     Mobile density. Stacked full-width cards made the page ~11.6 screens
     tall; these rules cut it roughly in half without dropping content.
     ------------------------------------------------------------------ */
  section { padding: 2.4rem var(--space-3); }
  .section-head { margin-bottom: var(--space-3); }
  .section-title { font-size: clamp(1.35rem, 5.6vw, 1.75rem); }

  /* Nav */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--space-3) var(--space-2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-menu li { width: 100%; }
  .nav-menu li + li { border-top: 1px solid var(--color-border); }
  .nav-link { display: block; padding: 0.8rem 0; width: 100%; }
  .nav-link::after { display: none; }
  .nav-cta { display: inline-block; margin: 0.5rem 0; text-align: center; width: 100%; }
  .nav-menu li:has(.nav-cta) { border-top: none; }
  .nav-toggle { display: flex; }

  /* Hero — headline leads, the code mock follows it */
  .hero { padding-top: var(--space-3); padding-bottom: var(--space-4); }
  .hero-inner { gap: var(--space-4); }
  .hero-visual { order: 0; max-width: 19rem; padding-top: 2.1rem; }
  .hero-title { margin-bottom: var(--space-2); }
  .hero-sub { font-size: 1rem; margin-bottom: var(--space-3); }
  .hero-actions { margin-bottom: var(--space-2); gap: 0.6rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-note { font-size: 0.82rem; }
  .float-card { display: none; }
  .float-tag { left: 4%; }
  .editor-body { font-size: 0.68rem; padding: 1rem 0.9rem 1.1rem; line-height: 1.75; }
  .ln { width: 1.3rem; }

  /* Trust strip: one compact row, not three stacked tiles */
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: var(--space-4);
    padding: var(--space-2) 0.5rem;
  }
  .trust-strip li { padding: 0.15rem 0.3rem; }
  /* These need :nth-child specificity to beat the tablet rules above. */
  .trust-strip li:nth-child(odd) { border-left: 1px solid var(--color-border); }
  .trust-strip li:nth-child(n + 3) { border-top: none; padding-top: 0.15rem; }
  .trust-strip li + li { border-left: 1px solid var(--color-border); }
  .trust-strip li:first-child { border-left: none; }
  .trust-value { font-size: 1.2rem; flex-wrap: wrap; }
  .trust-value-text { font-size: 0.78rem; gap: 0.2rem; }
  .trust-value-text .icon { font-size: 0.8em; }
  .trust-label { font-size: 0.68rem; line-height: 1.3; margin-top: 0.1rem; }

  /* Services */
  .service-grid { grid-template-columns: 1fr; gap: var(--space-2); }
  .service-card { padding: 1.25rem var(--space-3); }
  .service-index { margin-bottom: 0.55rem; }
  .service-card h3 { font-size: 1.05rem; }
  .service-card p { font-size: 0.87rem; line-height: 1.5; margin-bottom: 0.6rem; }
  .service-list { gap: 0.3rem; }
  .service-list li { font-size: 0.7rem; padding: 0.18rem 0.45rem; }
  .idea-flow { font-size: 0.73rem; gap: 0.35rem; }
  .idea-flow li { padding: 0.26rem 0.55rem; }

  /* Idea CTA */
  .idea-cta { padding: var(--space-3) var(--space-3); }
  .idea-cta-inner h2 { font-size: 1.4rem; }
  .idea-cta-inner p { font-size: 0.88rem; line-height: 1.5; margin-bottom: var(--space-2); }
  .note-mark-lg { font-size: 1.3rem; margin-bottom: 0.5rem; }

  /* Work — horizontal cards: was ~295px each, now ~110px */
  .work-grid { grid-template-columns: 1fr; gap: var(--space-2); }
  .work-card { flex-direction: row; align-items: stretch; }
  .work-card-top { flex: none; width: 94px; height: auto; }
  .work-logo { width: 56px; height: 56px; border-radius: 14px; }
  .work-badge { display: none; }
  .work-card-body { padding: 0.7rem 0.9rem; }
  .work-platform { font-size: 0.62rem; margin-bottom: 0.1rem; }
  .work-card-body h3 { font-size: 0.98rem; margin-bottom: 0.2rem; }
  .work-card-body > p { font-size: 0.81rem; line-height: 1.4; margin-bottom: 0.35rem; }
  .work-link { font-size: 0.8rem; }

  /* Why + Process stay two-up — the copy is short enough to read at this size */
  .why-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
  .why-item { padding-top: var(--space-2); }
  .why-item h3 { font-size: 0.92rem; margin-bottom: 0.3rem; }
  .why-item p { font-size: 0.81rem; line-height: 1.5; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: var(--space-3); column-gap: var(--space-3); }
  .timeline-step { padding-top: 2.3rem; }
  .timeline-step h3 { font-size: 0.94rem; }
  .timeline-step p { font-size: 0.81rem; line-height: 1.5; }
  .reviews-summary { grid-template-columns: 1fr; gap: var(--space-3); text-align: center; }

  /* Contact */
  .contact-inner { gap: var(--space-4); }
  .contact-text { font-size: 0.92rem; margin: 0.6rem 0 var(--space-3); }
  .contact-methods { gap: 0.7rem; margin-bottom: var(--space-3); }
  .contact-value { font-size: 1rem; }
  .contact-actions { gap: 0.5rem; }
  .contact-actions .btn { flex: 1 1 calc(50% - 0.25rem); padding: 0.85rem 1rem; font-size: 0.92rem; }
  .contact-actions .btn:first-child { flex: 1 1 100%; }
  .contact-form { padding: var(--space-3); }
  .form-title { font-size: 1.05rem; }
  .form-intro { font-size: 0.82rem; margin-bottom: var(--space-2); }
  .form-row { margin-bottom: 0.7rem; }
  .form-row label { font-size: 0.8rem; margin-bottom: 0.25rem; }
  .form-row input, .form-row textarea { padding: 0.6rem 0.75rem; font-size: 0.9rem; }
  .form-row textarea { min-height: 88px; }
  .form-note { font-size: 0.72rem; }

  /* Footer: two-up link columns instead of three stacked */
  .site-footer { padding: var(--space-3) var(--space-3) var(--space-2); }
  .footer-inner { gap: var(--space-3); margin-bottom: var(--space-3); }
  .footer-brand p { font-size: 0.82rem; margin-top: 0.4rem; }
  .footer-nav { gap: var(--space-2) var(--space-4); width: 100%; }
  .footer-col { flex: 1 1 40%; min-width: 7rem; }
  .footer-col h4 { margin-bottom: 0.4rem; }
  .footer-links { gap: 0.25rem; }
  .footer-links a { font-size: 0.83rem; }
  .footer-bottom { font-size: 0.76rem; }

  /* Sticky quick-contact bar takes over from the floating button. */
  .to-top { display: none; }
  body { padding-bottom: 68px; }
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
  }
  .mobile-bar-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .mobile-bar-wa { background: var(--color-whatsapp); color: var(--color-white); }
  .mobile-bar-primary { background: var(--color-ink); color: var(--color-white); }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.95rem; }
  .trust-value { font-size: 1.05rem; }
  .trust-value-text { font-size: 0.72rem; }
  .trust-label { font-size: 0.62rem; }
  .work-card-top { width: 82px; }
  .work-logo { width: 50px; height: 50px; border-radius: 12px; }
  .why-grid { column-gap: var(--space-2); }
  .reviews-score { font-size: 2.4rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .to-top, .mobile-bar, .nav-toggle, .contact-form, .float-card, .float-tag { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  section { padding: 1.2rem 0; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #555; }
}
