/* ==========================================================================
   RANK UP WEBS — DESIGN SYSTEM
   Bootstrap 5 handles grid/layout/components. This file only adds the
   brand's visual identity: tokens, type, the signature "interface stack"
   motif, and a small set of custom components Bootstrap can't express.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Color */
  --ink: #10131a;          /* near-black charcoal-navy — primary text / dark sections */
  --ink-soft: #1a1e28;
  --paper: #f5f6f9;        /* cool off-white page background */
  --white: #ffffff;
  --accent: #3355ff;       /* signal blue — the one brand accent */
  --accent-dark: #1f3ad1;
  --accent-soft: #eef1ff;  /* tint for backgrounds/badges */
  --accent-2: #7c5cff;     /* secondary violet — used only in hero glow + gradients, sparingly */
  --amber: #f5a623;        /* rare highlight — used sparingly (ratings, flags) */
  --line: #e3e5ea;         /* hairline borders */
  --line-dark: #2a2f3b;
  --muted: #5b6270;        /* secondary text on light */
  --muted-invert: #9aa0b1; /* secondary text on dark */

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

  /* Rhythm */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 1px 2px rgba(16,19,26,0.04), 0 12px 32px -16px rgba(16,19,26,0.18);
  --shadow-lift: 0 20px 48px -20px rgba(16,19,26,0.35);
}

/* ---- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  /* Reserve room so the fixed mobile CTA bar never permanently covers
     the footer / last section — this is what was breaking mobile scroll. */
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { line-height: 1.04; }
h2 { line-height: 1.1; }
p  { color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent); color: var(--white); }

/* Visible keyboard focus everywhere — accessibility requirement */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.container-narrow { max-width: 720px; }

/* ---- Mono "eyebrow" label — the recurring structural/typographic device -
   Used as a terminal-style prefix before section headings. Ties the visual
   language back to the agency's development craft without being literal. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #dbe0ff;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow--invert {
  color: #c7d0ff;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.eyebrow::before { content: "//"; opacity: .55; }

.section-kicker {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .03em;
}

/* ---- Buttons --------------------------------------------------------------
   Bootstrap's .btn structure/sizing is kept; only color, radius and a
   deliberate hover motion are customized. */
.btn { border-radius: 999px; font-weight: 600; padding: .72rem 1.5rem; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(51,85,255,0.55);
}
.btn-accent-glow { box-shadow: 0 0 0 0 rgba(51,85,255,0.5); animation: pulseGlow 2.6s ease-in-out infinite; }
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(51,85,255,0.38); }
  70% { box-shadow: 0 0 0 14px rgba(51,85,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,85,255,0); }
}
.btn-outline-ink {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-outline-ink:hover, .btn-outline-ink:focus {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-invert {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline-invert:hover, .btn-outline-invert:focus {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.btn-whatsapp {
  background: #1fae5b;
  border-color: #1fae5b;
  color: var(--white);
}
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #17904a; border-color: #17904a; color: var(--white); }
.btn-sm-pill { padding: .5rem 1.1rem; font-size: .9rem; }

/* ---- Header ---------------------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(245,246,249,0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand-mark { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.01em; transition: letter-spacing .25s ease; }
.brand-mark:hover { letter-spacing: 0; }
.brand-mark span { color: var(--accent); }
.nav-link-custom {
  font-weight: 550;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  padding: .5rem .2rem !important;
  margin: 0 .65rem;
  transition: color .2s ease;
}
.nav-link-custom::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.nav-link-custom:hover, .nav-link-custom:focus { color: var(--accent-dark); }
.nav-link-custom:hover::after,
.nav-link-custom:focus::after { transform: scaleX(1); }
.dropdown-menu-custom {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: .5rem;
  animation: dropdownIn .18s ease;
}
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-menu-custom .dropdown-item {
  border-radius: 8px;
  padding: .55rem .75rem;
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.dropdown-menu-custom .dropdown-item:hover { background: var(--accent-soft); color: var(--accent-dark); padding-left: 1rem; }

/* ---- Scroll progress bar -------------------------------------------------*/
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 2000;
  transition: width .1s linear;
}

/* ---- Header (scrolled state) ---------------------------------------------*/
.site-header { transition: box-shadow .25s ease, padding .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(16,19,26,0.25); }
.site-header.is-scrolled .navbar { padding-top: .6rem !important; padding-bottom: .6rem !important; }

/* ---- Hero ------------------------------------------------------------------
   Signature visual: a stack of layered "browser chrome" interface cards,
   offset and slightly rotated, standing in for the multiple product
   surfaces the agency builds (site, store, dashboard). A slow-drifting
   gradient glow and a cursor-reactive spotlight add depth without turning
   the whole page into a gradient wash. */
.hero-section { padding-top: 4.5rem; padding-bottom: 3rem; position: relative; overflow: hidden; }
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(16,19,26,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,19,26,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
.hero-glow--a { width: 420px; height: 420px; background: radial-gradient(circle, rgba(51,85,255,0.35), transparent 70%); top: -120px; right: -60px; animation: driftA 16s ease-in-out infinite; }
.hero-glow--b { width: 320px; height: 320px; background: radial-gradient(circle, rgba(124,92,255,0.28), transparent 70%); bottom: -80px; left: 10%; animation: driftB 20s ease-in-out infinite; }
@keyframes driftA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,26px) scale(1.08); } }
@keyframes driftB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-18px) scale(1.1); } }

.hero-spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx,50%) var(--my,20%), rgba(51,85,255,0.10), transparent 65%);
  pointer-events: none;
  z-index: 1;
  transition: background .08s linear;
}

.hero-copy { position: relative; z-index: 2; }
.hero-kicker-row { display: flex; align-items: center; gap: .6rem; }
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: wordUp .6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes wordUp { to { opacity: 1; transform: translateY(0); } }
.hero-gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientPan 6s ease-in-out infinite;
}
@keyframes gradientPan { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }

.hero-credibility {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .01em;
}
.hero-credibility strong { color: var(--ink); font-weight: 600; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-family: var(--font-mono); font-size: .7rem;
  z-index: 2; opacity: .8;
}
.scroll-cue svg { animation: bounceDown 1.8s ease-in-out infinite; }
@keyframes bounceDown { 0%,100% { transform: translateY(0); opacity:.5; } 50% { transform: translateY(6px); opacity:1; } }

.stack-wrap { position: relative; height: 420px; z-index: 2; perspective: 1200px; }
.browser-card {
  position: absolute;
  width: 82%;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
  will-change: transform;
}
.browser-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.browser-card__dot { width: 8px; height: 8px; border-radius: 50%; background: #d7dae0; }
.browser-card__dot:nth-child(1){ background:#ff6159; }
.browser-card__dot:nth-child(2){ background:#ffbd2e; }
.browser-card__dot:nth-child(3){ background:#28c941; }
.browser-card__body { padding: 16px; }
.browser-card__line { height: 8px; border-radius: 4px; background: #eef0f4; margin-bottom: 8px; position: relative; overflow: hidden; }
.browser-card__line::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(51,85,255,0.14), transparent);
  transform: translateX(-100%);
  animation: shimmer 3.2s ease-in-out infinite;
}
.browser-card__line:nth-child(2)::after { animation-delay: .3s; }
.browser-card__line:nth-child(3)::after { animation-delay: .6s; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(160%); } }
.browser-card__chip { display:inline-block; height:22px; border-radius:6px; background: var(--accent-soft); margin-right:6px; }

.card-1 { top: 0; left: 0; z-index: 3; transform: rotate(-2deg); }
.card-2 { top: 70px; left: 60px; z-index: 2; transform: rotate(3deg); opacity: .92; }
.card-3 { top: 150px; left: 20px; z-index: 1; transform: rotate(-6deg); opacity: .8; }
.stack-wrap.is-tilting .card-1 { transition: transform .12s ease-out; }
.stack-wrap.is-tilting .card-2 { transition: transform .12s ease-out; }
.stack-wrap.is-tilting .card-3 { transition: transform .12s ease-out; }

.stack-metric {
  position: absolute;
  right: 4%;
  bottom: 6%;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow-lift);
  font-family: var(--font-mono);
  font-size: .8rem;
  z-index: 4;
  animation: floatY 4s ease-in-out infinite;
}
.stack-metric .metric-value { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); display:block; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: no-preference) {
  .stack-wrap:hover .card-1 { transform: rotate(-2deg) translateY(-4px); }
  .stack-wrap:hover .card-2 { transform: rotate(3deg) translateY(-2px); }
  .stack-wrap:hover .card-3 { transform: rotate(-6deg) translateY(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .stack-metric, .browser-card__line::after, .scroll-cue svg { animation: none; }
  .hero-word { opacity: 1; transform: none; animation: none; }
}

/* ---- Trust bar ------------------------------------------------------------*/
.trust-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust-item {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.trust-item::before { content: "\2726"; color: var(--accent); font-size: .7rem; }

/* ---- Marquee ticker --------------------------------------------------------
   Continuous horizontal scroll of the service list — a fast, honest way to
   convey range/breadth. Pauses on hover/focus and freezes for
   prefers-reduced-motion. Content is duplicated once in markup for a
   seamless loop, and marked aria-hidden on the duplicate. */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); overflow: hidden; padding: 1.1rem 0; }
.marquee-track { display: flex; width: max-content; gap: 2.5rem; animation: marqueeScroll 32s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .88rem; color: var(--muted-invert); white-space: nowrap; }
.marquee-item::before { content: "\25C6"; color: var(--accent); font-size: .6rem; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- Animated stat strip --------------------------------------------------*/
.stat-strip { background: var(--white); }
.stat-item { text-align: center; padding: .5rem; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--accent-dark); line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-top: .5rem; }

/* ---- Staggered reveal (cascading entrance for grid items) -----------------*/
html.js-reveal-ready .row > .reveal:nth-child(1) { transition-delay: .02s; }
html.js-reveal-ready .row > .reveal:nth-child(2) { transition-delay: .09s; }
html.js-reveal-ready .row > .reveal:nth-child(3) { transition-delay: .16s; }
html.js-reveal-ready .row > .reveal:nth-child(4) { transition-delay: .23s; }
html.js-reveal-ready .row > .reveal:nth-child(5) { transition-delay: .30s; }
html.js-reveal-ready .row > .reveal:nth-child(6) { transition-delay: .37s; }
html.js-reveal-ready .row > .reveal:nth-child(n+7) { transition-delay: .42s; }

/* ---- Problem section --------------------------------------------------- */
.problem-list-item {
  display: flex;
  gap: .8rem;
  padding: .85rem 0;
  border-bottom: 1px dashed var(--line);
}
.problem-list-item:last-child { border-bottom: none; }
.problem-mark {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid #e7b3ad;
  color: #c0392b;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.solution-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 20px;
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(560px 280px at 100% 0%, rgba(51,85,255,0.35), transparent 60%);
  animation: glowShift 9s ease-in-out infinite;
}
@keyframes glowShift {
  0%,100% { background-position: 0 0; opacity: 1; }
  50% { background-position: -20px 12px; opacity: .8; }
}
.solution-card p, .solution-card * { position: relative; }
.solution-card p { color: var(--muted-invert); }

/* ---- Service cards ------------------------------------------------------ */
.service-card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.service-card:hover { box-shadow: var(--shadow-lift); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card--featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.service-card--featured p { color: var(--muted-invert); }
.service-card--featured .service-icon { background: rgba(51,85,255,0.18); color: #b9c4ff; }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-6deg); }
.service-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.service-learn-more {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .35rem;
}
.service-learn-more svg { transition: transform .18s ease; }
.service-card:hover .service-learn-more svg { transform: translateX(4px); }

/* ---- Why choose us ------------------------------------------------------ */
.reason-card { border-left: 2px solid var(--line); padding-left: 1.2rem; height: 100%; transition: border-color .25s ease, transform .25s ease; }
.reason-card:hover { border-left-color: var(--accent); transform: translateX(4px); }
.reason-card .reason-index { font-family: var(--font-mono); color: var(--accent); font-size: .85rem; }

/* ---- Process -------------------------------------------------------------*/
.process-track { position: relative; }
.process-track::before {
  content: "";
  position: absolute;
  top: 26px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.process-step { position: relative; padding-top: 0; }
.process-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-dark);
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s ease, color .3s ease, border-color .3s ease;
}
.process-step:hover .process-num { transform: scale(1.12); background: var(--accent); color: var(--white); border-color: var(--accent); }
@media (max-width: 767.98px) {
  .process-track::before { top: 0; bottom: 0; left: 26px; right: auto; width: 1px; height: auto; }
}

/* ---- Portfolio ------------------------------------------------------------*/
.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
  height: 100%;
  will-change: transform;
}
.portfolio-card:hover { box-shadow: var(--shadow-lift); }
.portfolio-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #eef1ff, #f5f6f9);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.portfolio-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.portfolio-card:hover .portfolio-thumb::after { transform: translateX(120%); }
.portfolio-thumb .browser-card { position: static; width: 80%; transition: transform .35s ease; }
.portfolio-card:hover .portfolio-thumb .browser-card { transform: translateY(-4px) scale(1.02); }
.portfolio-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 6px;
  padding: .2rem .5rem;
}

/* ---- Case study ---------------------------------------------------------*/
.case-block { border-top: 1px solid var(--line); padding: 2rem 0; }
.case-label { font-family: var(--font-mono); font-size: .78rem; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; }

/* ---- Testimonials ---------------------------------------------------------*/
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  height: 100%;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.testimonial-quote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-mono); font-size: .85rem;
}

/* ---- Pricing --------------------------------------------------------------*/
.pricing-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; height: 100%; background: var(--white); }
.pricing-card--highlight { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pricing-badge { font-family: var(--font-mono); font-size: .72rem; background: var(--accent); color:#fff; padding: .25rem .6rem; border-radius: 999px; }

/* ---- FAQ -------------------------------------------------------------------*/
.accordion-custom .accordion-item { border: none; border-bottom: 1px solid var(--line); background: transparent; }
.accordion-custom .accordion-button { font-family: var(--font-display); font-weight: 560; font-size: 1.05rem; background: transparent; padding: 1.2rem 0; color: var(--ink); transition: color .2s ease, padding-left .2s ease; }
.accordion-custom .accordion-button:hover { color: var(--accent-dark); padding-left: .3rem; }
.accordion-custom .accordion-button:not(.collapsed) { color: var(--accent-dark); background: transparent; box-shadow: none; }
.accordion-custom .accordion-button:focus { box-shadow: none; }
.accordion-custom .accordion-button::after { width: 1.1rem; height: 1.1rem; background-size: 1.1rem; transition: transform .3s ease; }
.accordion-custom .accordion-body { padding: 0 0 1.4rem; color: var(--muted); animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- Final CTA ---------------------------------------------------------- */
.final-cta { background: var(--ink); color: var(--white); border-radius: 28px; padding: 3.5rem; position: relative; overflow: hidden; }
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 12% 110%, rgba(51,85,255,0.35), transparent 60%);
  animation: glowShift 10s ease-in-out infinite;
}
.final-cta::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 70% 70% at 80% 20%, black, transparent 70%);
}
.final-cta * { position: relative; }
.final-cta p { color: var(--muted-invert); }

/* ---- Footer ---------------------------------------------------------------*/
.site-footer { background: var(--ink); color: var(--muted-invert); }
.site-footer a { color: var(--muted-invert); transition: color .15s ease, padding-left .15s ease; }
.site-footer a:hover { color: var(--white); padding-left: 3px; }
.footer-heading { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: #7a81a0; margin-bottom: 1rem; }

/* ---- Floating actions (WhatsApp + mobile sticky CTA) ---------------------*/
.whatsapp-float {
  position: fixed;
  right: 20px; bottom: 84px;
  z-index: 1040;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #1fae5b;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(31,174,91,0.55);
  transition: transform .18s ease;
  animation: whatsPulse 2.8s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; animation-play-state: paused; }
@keyframes whatsPulse {
  0%,100% { box-shadow: 0 12px 28px -8px rgba(31,174,91,0.55), 0 0 0 0 rgba(31,174,91,0.4); }
  60% { box-shadow: 0 12px 28px -8px rgba(31,174,91,0.55), 0 0 0 12px rgba(31,174,91,0); }
}
@media (min-width: 768px) { .whatsapp-float { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float, .final-cta::before { animation: none; } }

.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1035;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(16,19,26,0.18);
  padding: .55rem .7rem;
  padding-bottom: calc(.55rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { .mobile-cta-bar { display: none; } }
.mobile-cta-bar .btn { padding: .6rem .5rem; font-size: .85rem; }

/* ---- Brand mark (logo mark + wordmark lockup) -----------------------------*/
.brand-mark { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark-icon { display: block; height: 26px; width: auto; flex-shrink: 0; }
.brand-mark-text { line-height: 1; }
#mobileNavLabel.brand-mark { color: var(--ink); }
#mobileNavLabel .brand-mark-icon { height: 24px; }
.site-footer .brand-mark-icon { height: 26px; }

/* ---- Breadcrumb ------------------------------------------------------------*/
.breadcrumb-custom { font-family: var(--font-mono); font-size: .82rem; }
.breadcrumb-custom a { color: var(--muted); }
.breadcrumb-custom a:hover { color: var(--accent); }

/* ---- Utilities ---------------------------------------------------------- */
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); }
.text-accent { color: var(--accent); }
.section-pad { padding-top: clamp(3.5rem, 6vw, 6rem); padding-bottom: clamp(3.5rem, 6vw, 6rem); }
.divider { height: 1px; background: var(--line); border: none; }
/* Reveal-on-scroll is a progressive enhancement only.
   Content is visible by default; JS (when it runs) adds a brief fade-in.
   This rule only takes effect once main.js confirms it has loaded and
   attached its observer by adding "js-reveal-ready" to <html> — so if the
   script fails to load, errors, or JS is disabled, every section stays
   visible instead of getting stuck at opacity:0. See main.js and the
   <noscript> fallback in includes/header.php for the rest of the safety net. */
html.js-reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
html.js-reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
