/* ==========================================================================
   Slake skin — shared modern layer over styles.css (inner pages only).
   Speaks the homepage's language: floating glass chrome, gradient pills,
   blueprint grid, live-dot kickers, soft physics. No scroll machinery.
   Load AFTER styles.css.
   ========================================================================== */

/* ------------------------------------------------------------ palette -- */
:root {
  --sl-sky:    #0EA5E9;
  --sl-indigo: #6366F1;
  --sl-ink:    #0E1626;
  --sl-ink-soft: #55657C;
  --sl-ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------- chrome -- */

/* header → floating glass pill (uses the ID selector: styles.css sets
   #site-header rules that a class alone can't override) */
#site-header {
  top: 12px;
  width: min(1140px, calc(100% - 24px));
  margin-inline: auto;
  border: 1px solid rgb(15 23 42 / 0.09);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.70);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 12px 34px rgb(15 23 42 / 0.10);
}
#site-header.is-scrolled {
  background: rgb(255 255 255 / 0.88);
  box-shadow: 0 14px 40px rgb(15 23 42 / 0.14);
}
#site-header::after { display: none; }
#site-header .header-container { padding: 0.5rem 0.5rem 0.5rem 1.4rem; }
.logo__img { height: 48px; }

/* bigger, bolder nav type */
.nav-link {
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
}

/* nav underline → gradient sweep */
.nav-link::after {
  background: linear-gradient(90deg, var(--sl-sky), var(--sl-indigo));
  height: 2px;
}
.nav-link:hover { background: transparent; }

/* nav CTA → gradient pill */
.nav-link--cta {
  background: linear-gradient(120deg, #0369A1 15%, var(--sl-indigo) 135%);
  box-shadow: 0 6px 18px rgb(14 165 233 / 0.35);
}
.nav-link--cta:hover,
.nav-link--cta:focus {
  background: linear-gradient(120deg, #075985 15%, #4F46E5 135%);
  box-shadow: 0 10px 26px rgb(14 165 233 / 0.45);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------- buttons ---- */

.btn { border-radius: 999px; transition: transform 0.18s var(--sl-ease), box-shadow 0.22s var(--sl-ease), background 0.18s ease, border-color 0.18s ease, color 0.18s ease; }

.btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0369A1 15%, var(--sl-indigo) 135%);
  box-shadow: 0 6px 22px rgb(14 165 233 / 0.35);
}
.btn--primary::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--sl-ease);
  pointer-events: none;
}
.btn--primary:hover::before { left: 135%; }
.btn--primary:hover {
  background: linear-gradient(120deg, #0369A1 5%, var(--sl-indigo) 115%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(14 165 233 / 0.45);
}

.btn--secondary, .btn--ghost {
  background: rgb(255 255 255 / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--secondary:hover, .btn--ghost:hover { transform: translateY(-2px); }

.btn--dark:hover { transform: translateY(-2px); }

/* styles.css lets a lone primary button grow to fill the row — looks broken
   on the new centered heroes */
.hero__ctas .btn--primary { flex: 0 0 auto; }

/* ------------------------------------------------------------- heroes -- */

.page-hero {
  background:
    radial-gradient(55% 60% at 80% 8%, rgb(14 165 233 / 0.12), transparent 70%),
    radial-gradient(45% 55% at 6% 88%, rgb(99 102 241 / 0.10), transparent 70%),
    linear-gradient(180deg, #EDF1F6 0%, #F6F9FC 58%, var(--color-bg) 100%);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(15 23 42 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 23 42 / 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 85% at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 85% at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}
.page-hero h1 { letter-spacing: -0.035em; }

/* deco blobs → soft chromatic glows */
.deco-blob--solid {
  border-radius: 50%;
  background: radial-gradient(circle, rgb(14 165 233 / 0.16), rgb(99 102 241 / 0.07) 55%, transparent 72%);
  filter: blur(24px);
}
.deco-blob--ring {
  border-color: rgb(14 165 233 / 0.22);
}

/* --------------------------------------------------------- typography -- */

.section__title { letter-spacing: -0.03em; font-size: clamp(2rem, 3.8vw, 2.75rem); }

/* the eyebrow pill replaces the old ornament bar */
.section__ornament { display: none; }

/* eyebrow → live-dot mono pill (homepage kicker) */
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sl-ink-soft);
  padding: 0.5em 1em; margin-bottom: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgb(15 23 42 / 0.10);
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section__eyebrow::before {
  content: "";
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--sl-sky);
  box-shadow: 0 0 0 4px rgb(14 165 233 / 0.15);
}

/* ------------------------------------------------------------- cards --- */

.service-card,
.pricing-card,
.client-card,
.calendly-card,
.glow-card,
.cta-card,
.tilt-card,
.faq-item,
.case-card,
.testimonial-card {
  border-radius: 18px;
  border: 1px solid rgb(15 23 42 / 0.08);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.05);
  transition: transform 0.3s var(--sl-ease), box-shadow 0.3s var(--sl-ease), border-color 0.3s ease;
}
.service-card:hover,
.pricing-card:hover,
.client-card:hover,
.tilt-card:hover,
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgb(15 23 42 / 0.11);
  border-color: rgb(14 165 233 / 0.25);
}
.service-card__icon { transition: transform 0.3s var(--sl-ease); }
.service-card:hover .service-card__icon { transform: scale(1.08) rotate(-3deg); }

/* service tabs → ink pill when active */
.service-tab { transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--sl-ease); }
.service-tab:hover { transform: translateY(-1px); }
.service-tab.is-active {
  background: var(--sl-ink);
  border-color: var(--sl-ink);
  color: #fff;
}

/* ------------------------------------------------------------- footer -- */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0E1626 0%, #0A101C 100%);
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sl-sky) 30%, var(--sl-indigo) 70%, transparent);
  opacity: 0.6;
}
.footer__logo {
  background: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  max-height: 52px;
}
.footer__list a { transition: color 0.2s ease, padding-left 0.25s var(--sl-ease); }
.footer__list a:hover { color: var(--sl-sky); padding-left: 4px; }
.footer__heading { color: #fff; letter-spacing: 0.08em; }

/* ------------------------------------------------------------- texture - */

/* same film grain as the homepage world */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 2147483000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* -------------------------------------------------------------- mobile - */

@media (max-width: 768px) {
  #site-header {
    top: 8px;
    width: calc(100% - 20px);
    border-radius: 22px;
    background: rgb(255 255 255 / 0.92);
    /* NO backdrop-filter here: it would create a containing block and trap
       the fixed full-screen .nav-menu inside the pill. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .logo__img { height: 40px; }
  /* the fixed nav-menu (z-45) covers the header's own children — keep the
     logo level with the toggle (z-50) so brand + close stay on the sheet */
  #site-header .logo { position: relative; z-index: 50; }
  /* while the sheet is open, dissolve the pill so logo + X sit directly on it */
  #site-header:has(.nav-menu.is-open) {
    background: transparent; border-color: transparent; box-shadow: none;
  }
  .nav-link { font-size: 1rem; }
  /* same sheet as the homepage menu: slides down over everything, frosted
     glass, big bold links, gradient CTA */
  .nav-menu {
    transform: translateY(-102%);
    padding: 96px 1.5rem 40px;
    gap: 2px;
    background: rgb(237 242 248 / 0.92);
    backdrop-filter: blur(26px) saturate(1.5);
    -webkit-backdrop-filter: blur(26px) saturate(1.5);
    box-shadow: 0 24px 60px rgb(15 23 42 / 0.12);
  }
  .nav-menu.is-open { transform: none; }
  .nav-menu li { transform: translateY(14px); }
  .nav-menu .nav-link,
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link[aria-current="page"] {
    position: relative;
    padding: 15px 4px;
    font-size: 1.4rem; font-weight: 700; letter-spacing: -0.015em;
    color: var(--color-text);
  }
  /* the desktop rules leak onto the sheet: ::before is the current-page dot,
     and ::after is a position:absolute underline bar that strands the mobile
     chevron mid-row. Normalize both to the homepage anatomy. */
  .nav-menu .nav-link::before { display: none; }
  .nav-menu .nav-link::after {
    position: static; inset: auto;
    margin-left: auto;
    width: 8px; height: 8px;
    border: 0; border-radius: 0; background: none;
    border-top: 2px solid rgb(15 23 42 / 0.35);
    border-right: 2px solid rgb(15 23 42 / 0.35);
    transform: rotate(45deg);
  }
  .nav-menu .nav-link:hover::after,
  .nav-menu .nav-link[aria-current="page"]::after {
    border-color: rgb(15 23 42 / 0.35);
  }
  .nav-menu .nav-link--cta,
  .nav-menu .nav-link--cta:hover {
    margin-top: 22px; justify-content: center; border-bottom: none;
    padding: 1.0625rem 1.25rem;
    background: linear-gradient(120deg, #0369A1 15%, var(--sl-indigo) 135%);
    color: var(--color-white);
    border-radius: 999px;
    font-size: 1.05rem;
  }
  .nav-menu .nav-link--cta::after { display: none; }
  .nav-toggle:hover, .nav-toggle:focus-visible { background: transparent; }
}

/* ==========================================================================
   v2 — reference push: tinted stat tiles, dark featured card, callout
   boxes, pill tags, floating chips, bigger editorial type.
   ========================================================================== */

/* ------------------------------------------------------------- type ----- */

.page-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
}
.page-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); }

.section__title { font-size: clamp(2.15rem, 4.4vw, 3.2rem); }
.section__subtitle { font-size: 1.06rem; max-width: 62ch; }

main h2, main h3 { letter-spacing: -0.025em; }

/* ------------------------------------------------------ stat tiles ------ */

/* number+label pairs → soft tinted tiles (sky / mint / amber rotation),
   the shared grammar in the refs */
.hero-stats .stat,
.stats .stat,
.stat {
  padding: 1.05rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgb(15 23 42 / 0.07);
  background: rgb(14 165 233 / 0.08);
  box-shadow: 0 10px 26px rgb(15 23 42 / 0.05);
}
.hero-stats .stat:nth-child(3n+2), .stats .stat:nth-child(3n+2), .stat:nth-child(3n+2) {
  background: rgb(14 159 110 / 0.09);
}
.hero-stats .stat:nth-child(3n), .stats .stat:nth-child(3n), .stat:nth-child(3n) {
  background: rgb(217 119 6 / 0.08);
}
.stat-number {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--sl-ink);
  line-height: 1.05;
}
.stat-label {
  margin-top: 0.3rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sl-ink-soft);
}

/* ------------------------------------------------------------ cards ----- */

.service-card, .pricing-card, .client-card, .glow-card,
.case-card, .testimonial-card, .cta-card, .calendly-card {
  border-radius: 24px;
}

.service-card__icon {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5), 0 6px 14px rgb(15 23 42 / 0.07);
}
.service-card__title { letter-spacing: -0.015em; }

/* pricing: featured card goes dark ink — the contrast move */
.pricing-card--featured {
  background: linear-gradient(165deg, #111C31 0%, #0B1220 100%);
  border-color: rgb(14 165 233 / 0.35);
  box-shadow: 0 24px 60px rgb(11 18 32 / 0.30), 0 0 0 1px rgb(99 102 241 / 0.12);
  color: #E7EDF6;
}
.pricing-card--featured h3 { color: #fff; }
.pricing-card--featured p { color: #9DB0C9; }
.pricing-card--featured .pricing-card__price {
  background: linear-gradient(100deg, #7DD3FC, #A5B4FC);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pricing-card--featured .pricing-card__features li { color: #C6D3E4; }
.pricing-card--featured .pricing-card__features svg { color: #38BDF8; }
.pricing-card__badge {
  background: linear-gradient(120deg, var(--sl-sky), var(--sl-indigo));
  border-radius: 999px;
  padding: 0.35em 1em;
  box-shadow: 0 6px 16px rgb(14 165 233 / 0.4);
}
.pricing-card__price { letter-spacing: -0.03em; }

/* ------------------------------------------------- callout story boxes -- */

.problem-box, .solution-box, .results-box {
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  border-left-width: 3px;
}
.problem-box  { background: rgb(214 69 61 / 0.07);  border-color: rgb(214 69 61 / 0.28); }
.solution-box { background: rgb(14 165 233 / 0.07); border-color: rgb(14 165 233 / 0.30); }
.results-box  { background: rgb(14 159 110 / 0.08); border-color: rgb(14 159 110 / 0.30); }

/* -------------------------------------------------------- tags / tabs --- */

.tag, .tag--primary, .tag-commerce, .tag-speed, .tag-security, .tag-conflict {
  border-radius: 999px;
  padding: 0.4em 0.95em;
  font-weight: 600;
}

.service-tab {
  border-radius: 999px;
  padding: 0.55em 1.2em;
  background: rgb(255 255 255 / 0.75);
  border: 1px solid rgb(15 23 42 / 0.10);
}
.service-tab.is-active { box-shadow: 0 8px 20px rgb(14 22 38 / 0.25); }

/* --------------------------------------------------- case-study chrome -- */

.case-study__img { border-radius: 20px; box-shadow: 0 16px 44px rgb(15 23 42 / 0.12); }

.read-time {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sl-ink-soft);
  background: rgb(255 255 255 / 0.7);
  border: 1px solid rgb(15 23 42 / 0.08);
  border-radius: 999px; padding: 0.4em 0.9em;
}

.case-study-sidebar .client-card {
  border-radius: 20px;
  box-shadow: 0 18px 46px rgb(15 23 42 / 0.13);
}

/* testimonials → quote cards with a big sky mark */
.case-study-sidebar .testimonial,
.testimonial {
  position: relative;
  background: #fff;
  border: 1px solid rgb(15 23 42 / 0.08);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 12px 34px rgb(15 23 42 / 0.07);
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: 0.1em; left: 0.35em;
  font-size: 3.2rem; font-weight: 800; line-height: 1;
  color: rgb(14 165 233 / 0.30);
  pointer-events: none;
}

/* ------------------------------------------------------------- faq ------ */

.faq-item { border-radius: 18px; }
.faq-item.is-open, .faq-item[open], .faq-item.active {
  border-color: rgb(14 165 233 / 0.35);
  background: rgb(14 165 233 / 0.04);
}

/* ------------------------------------------------------------ forms ----- */

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="number"], select, textarea {
  border-radius: 14px;
  border: 1px solid rgb(15 23 42 / 0.12);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sl-sky);
  box-shadow: 0 0 0 4px rgb(14 165 233 / 0.16);
  outline: none;
}

/* --------------------------------------------------------- progress ----- */

.scroll-progress, .reading-progress-bar {
  background: linear-gradient(90deg, var(--sl-sky), var(--sl-indigo));
}

/* ------------------------------------------------------------ section --- */

.section { padding-block: clamp(3.2rem, 6vw, 5rem); }
.section__header { margin-bottom: 2.4rem; }

/* ----------------------------------------------------------- mobile ----- */

@media (max-width: 768px) {
  .page-hero h1 { font-size: clamp(2.1rem, 8.5vw, 2.8rem); }
  .section { padding-block: 2.6rem; }
  .stat { padding: 0.85rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .service-card, .pricing-card, .client-card, .tilt-card,
  .service-card__icon, .footer__list a { transition: none; }
}
