/* ==========================================================================
   Rana Tech Ltd — Design System
   Brand palette sampled directly from logo.png (#5C277F → #1CC5D7)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the logo mark */
  --brand-violet: #5c277f;
  --brand-indigo: #514283;
  --brand-steel: #4564a2;
  --brand-teal: #2a9dc0;
  --brand-cyan: #1cc5d7;

  /* Accents tuned for contrast on dark surfaces */
  --accent: #3ad7e8;
  --accent-soft: #8fe9f3;
  --accent-alt: #b07ae0;

  --grad-brand: linear-gradient(135deg, #6e2f92 0%, #4564a2 52%, #1cc5d7 100%);
  --grad-text: linear-gradient(100deg, #b07ae0 0%, #56b6e4 45%, #3ad7e8 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(58, 215, 232, 0.55), transparent);

  /* Surfaces */
  --bg: #08070f;
  --bg-alt: #0c0b16;
  --surface: #12111f;
  --surface-2: #191828;
  --surface-3: #21203400;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f1f0f7;
  --text-muted: #a7a4bd;
  --text-dim: #7d7a95;

  /* Effects */
  --glow: 0 0 0 1px rgba(58, 215, 232, 0.28), 0 12px 40px -12px rgba(28, 197, 215, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.8);

  /* Geometry */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  color-scheme: dark;
}

[data-theme="light"] {
  /* Darkened from #0f7f96, which measured 4.40:1 on --bg — just under the 4.5:1
     AA floor for small text. This lands at 4.87:1. */
  --accent: #0e7888;
  --accent-soft: #12657a;
  --accent-alt: #6d3ba3;

  --grad-text: linear-gradient(100deg, #6d3ba3 0%, #2f6ba8 45%, #0f7f96 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(15, 127, 150, 0.4), transparent);

  --bg: #f7f8fc;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --line: rgba(12, 11, 22, 0.1);
  --line-strong: rgba(12, 11, 22, 0.2);

  --text: #14131f;
  --text-muted: #4e4c63;
  --text-dim: #6b6883;

  --glow: 0 0 0 1px rgba(15, 127, 150, 0.25), 0 12px 40px -14px rgba(15, 127, 150, 0.35);
  --shadow-sm: 0 1px 2px rgba(20, 19, 31, 0.06);
  --shadow-md: 0 14px 32px -16px rgba(20, 19, 31, 0.25);
  --shadow-lg: 0 32px 64px -28px rgba(20, 19, 31, 0.3);

  color-scheme: light;
}

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

* {
  margin: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.22em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:hover {
  text-decoration-color: currentColor;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 700;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

::selection {
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

/* :not(.eyebrow) — the eyebrow is itself a <p>, and this selector outranks
   .eyebrow, which otherwise lost both its accent colour and its 0.75rem size. */
.section-head > p:not(.eyebrow) {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 1.075rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  margin-bottom: 1.15rem;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h2.section-title {
  font-size: clamp(1.95rem, 1.2rem + 2.6vw, 3rem);
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -150%);
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg.arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--grad-brand);
  /* background-clip defaults to border-box but background-origin defaults to
     padding-box, so the gradient was sized to the padding box and the 1px
     transparent border ring got filled by TILING it — wrapping the far end of
     the gradient around and painting a cyan crescent on the left cap and a
     magenta fringe along the bottom. Sizing the gradient to the border box
     makes the ring continue the gradient instead of repeating it. */
  background-origin: border-box;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(28, 197, 215, 0.65);
  position: relative;
  isolation: isolate;
  /* No overflow:hidden — it clips ::after to the padding box, which re-exposed a
     1px rim of the darker base gradient. The overlay is pill-shaped already. */
}

.btn--primary::after {
  content: "";
  position: absolute;
  /* -1px covers the transparent 1px border, and the radius must be inherited:
     a square overlay cut straight across the pill's rounded caps, leaving the
     base gradient showing at both ends on hover. */
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #7f3aa6 0%, #4f74b6 52%, #35dcee 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}

.btn--primary:hover::after {
  opacity: 1;
}

.btn--primary:hover {
  box-shadow: 0 18px 42px -14px rgba(28, 197, 215, 0.8);
  border-color: transparent;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.03rem;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.115rem;
  letter-spacing: -0.03em;
  flex: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(28, 197, 215, 0.35));
  transition: transform 0.4s var(--ease);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.brand span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.nav-links a[aria-current="true"] {
  color: var(--text);
}

.nav-links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.22rem;
  translate: -50% 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .moon {
  display: none;
}

[data-theme="light"] .theme-toggle .moon {
  display: block;
}

[data-theme="light"] .theme-toggle .sun {
  display: none;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-grid;
}

.nav-toggle .bars {
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle .bars::before {
  top: 0;
}

.nav-toggle .bars::after {
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .bars::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 4.5rem 0 auto 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.75rem;
  display: grid;
  gap: 0.25rem;
  transform: translateY(-115%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
}

/* :not(.btn) matters — this selector outranks .btn--primary (0,1,1 vs 0,1,0),
   so without it the drawer CTA inherits --text and renders near-black on the
   gradient in light theme, and its padding/border override the button's. */
.mobile-nav a:not(.btn) {
  padding: 0.8rem 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .nav-toggle,
  .mobile-nav {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
  }
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(7.5rem, 14vw, 10.5rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.hero-bg::before {
  width: 46rem;
  height: 46rem;
  top: -18rem;
  right: -12rem;
  background: radial-gradient(circle, rgba(28, 197, 215, 0.55), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.hero-bg::after {
  width: 40rem;
  height: 40rem;
  bottom: -20rem;
  left: -14rem;
  background: radial-gradient(circle, rgba(110, 47, 146, 0.6), transparent 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

[data-theme="light"] .hero-bg::before,
[data-theme="light"] .hero-bg::after {
  opacity: 0.28;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, #000 20%, transparent 78%);
  opacity: 0.7;
}

@keyframes drift-a {
  to {
    transform: translate3d(-5rem, 4rem, 0) scale(1.12);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(4.5rem, -3.5rem, 0) scale(1.1);
  }
}

.hero-inner {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 1.1rem + 5vw, 4.15rem);
  margin-bottom: 1.35rem;
}

.hero-lede {
  color: var(--text-muted);
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.24rem);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}

.hero-visual {
  position: relative;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  overflow: visible;
}

/* --------------------------------------------------------------------------
   7. Marquee / tech strip
   -------------------------------------------------------------------------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 1.6rem;
  overflow: hidden;
}

.strip-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.15rem;
}

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee ul {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  flex: none;
  min-width: 100%;
  animation: scroll-x 34s linear infinite;
}

.marquee:hover ul {
  animation-play-state: paused;
}

.marquee li {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.marquee li:hover {
  color: var(--accent);
}

@keyframes scroll-x {
  to {
    transform: translateX(-100%);
  }
}

/* --------------------------------------------------------------------------
   8. Service cards
   -------------------------------------------------------------------------- */
/* Explicit column steps rather than auto-fit: with three cards, auto-fit spent a
   wide band at 2 columns and left the third stranded beside a half-empty row. */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* An odd trailing card would sit alone in the left column — centre it. */
  .card-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
  }
}

@media (min-width: 1080px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid > :last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.35rem);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    16rem 16rem at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent) 13%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent);
  margin-bottom: 1.35rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.7rem;
}

.card > p {
  color: var(--text-muted);
  font-size: 0.985rem;
  margin-bottom: 1.35rem;
}

.feature-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.feature-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 0.22em;
  color: var(--accent);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   9. About + stats
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 950px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse > *:first-child {
    order: 2;
  }
}

/* Direct children only — this rule must not reach into .contact-item, whose
   own <p> is meant to stay at full --text contrast. */
.prose > p:not(.eyebrow) {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.prose h2 {
  margin-bottom: 1.35rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.stat:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-3px);
}

.stat dd {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.4rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat dt {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.about-visual svg {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   10. Process
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-4px);
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.step h3 {
  font-size: 1.075rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.quote-card:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: #f5b942;
}

.stars svg {
  width: 17px;
  height: 17px;
}

.quote-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.6;
  flex: 1;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Scoped deliberately: a bare `figcaption span` also matched .avatar and the
   name/role wrapper, which killed the avatar's grid centring and flattened the
   name and job title to the same dim colour. */
.quote-card figcaption > span:not(.avatar) {
  display: block;
  min-width: 0;
}

.quote-card cite {
  display: block;
  font-style: normal;
  font-weight: 650;
  font-size: 0.96rem;
  color: var(--text);
}

.quote-card figcaption cite + span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: 48rem;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.01rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.65;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq .faq-body {
  padding: 0 1.4rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.965rem;
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-item:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  transform: translateX(4px);
}

.contact-item .card-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 11px;
}

.contact-item .card-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item address {
  font-style: normal;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.35rem);
  display: grid;
  gap: 1.15rem;
  box-shadow: var(--shadow-md);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.975rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 1.25rem, calc(100% - 0.95rem) 1.25rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
  cursor: pointer;
}

.field-error {
  font-size: 0.82rem;
  color: #ff8b8b;
  min-height: 0;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #ff6b6b;
}

.form-note {
  font-size: 0.83rem;
  color: var(--text-dim);
  text-align: center;
}

.form-status {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
}

.form-status--success {
  border-color: color-mix(in srgb, #25d366 45%, transparent);
  background: color-mix(in srgb, #25d366 12%, transparent);
}

.form-status--error {
  border-color: color-mix(in srgb, #ff6b6b 45%, transparent);
  background: color-mix(in srgb, #ff6b6b 10%, transparent);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand-violet) 32%, var(--surface)),
    color-mix(in srgb, var(--brand-cyan) 20%, var(--surface))
  );
  /* Same reason as .btn--primary: the border here is only 28% opaque, so a
     gradient tiled into the border ring would show through it. */
  background-origin: border-box;
  padding: clamp(2.25rem, 5vw, 3.75rem);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  margin-bottom: 0.9rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 1.9rem;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  max-width: 22rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-top: 1rem;
}

.footer-col h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.05rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.2s var(--ease);
  /* inline-block + padding, not inline-flex: these links contain <br> (the
     address) which flex layout would collapse. Lifts the hit area from 20px to
     26px, clearing the 24px WCAG 2.2 target-size minimum. */
  display: inline-block;
  padding-block: 3px;
}

.footer-col a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
  display: inline-block;
  padding-block: 4px; /* 18px -> 26px, clearing the 24px minimum */
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   16. Scroll reveal + motion prefs
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger steps live here rather than in style="" attributes, so the Content
   Security Policy can forbid inline styles outright (no 'unsafe-inline'). */
[data-delay="1"] {
  --reveal-delay: 0.08s;
}

[data-delay="2"] {
  --reveal-delay: 0.16s;
}

[data-delay="3"] {
  --reveal-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   16b. Floating actions (WhatsApp + back to top)
   -------------------------------------------------------------------------- */
.fab-stack {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
}

.to-top {
  background: var(--surface);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  box-shadow: var(--shadow-md);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* WhatsApp brand green is fixed by Meta's brand guidelines, so it is a literal
   here rather than a theme token — it must read the same in both themes. */
.fab-whatsapp {
  --wa: #25d366;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.55), var(--shadow-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fab-whatsapp svg {
  width: 30px;
  height: 30px;
}

.fab-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px -6px rgba(37, 211, 102, 0.7), var(--shadow-lg);
}

.fab-whatsapp::after {
  /* Soft attention pulse, once the page has settled. */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: wa-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

.fab-whatsapp {
  position: relative;
  isolation: isolate;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* WhatsApp-green variants of the shared components */
.btn--whatsapp {
  background: #25d366;
  background-origin: border-box;
  border-color: transparent;
  color: #0a2e17;
  font-weight: 650;
}

.btn--whatsapp:hover {
  background: #1fbe5b;
  border-color: transparent;
  color: #072310;
}

.btn--whatsapp svg {
  width: 1.2em;
  height: 1.2em;
}

.contact-item--whatsapp .card-icon {
  color: #1c9e4d;
  background: color-mix(in srgb, #25d366 14%, transparent);
  border-color: color-mix(in srgb, #25d366 32%, transparent);
}

[data-theme="dark"] .contact-item--whatsapp .card-icon,
:root:not([data-theme="light"]) .contact-item--whatsapp .card-icon {
  color: #35e07a;
}

.contact-item--whatsapp:hover {
  border-color: color-mix(in srgb, #25d366 55%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-nav,
  .to-top,
  .hero-bg,
  .hero-grid,
  .strip,
  .form {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
}
