/* ==========================================================================
   BestieDev — bestiedev.it
   Agenzia digitale a 360°
   Design system: dark premium + aurora gradient · Syne / Manrope
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/*  1. Design tokens                                                          */
/* -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:           #09090F;
  --bg-soft:      #0C0C15;
  --bg-elev:      #13131E;
  --surface:      rgba(255, 255, 255, 0.035);
  --surface-2:    rgba(255, 255, 255, 0.06);
  --border:       rgba(255, 255, 255, 0.09);
  --border-strong:rgba(255, 255, 255, 0.16);

  /* Text */
  --text:         #F4F4F8;
  --text-soft:    #C6C6D4;
  --text-mute:    #9595A8;

  /* Brand — aurora */
  --pink:   #EC4899;
  --violet: #A855F7;
  --cyan:   #22D3EE;
  --grad:        linear-gradient(115deg, #EC4899 0%, #A855F7 52%, #22D3EE 100%);
  --grad-soft:   linear-gradient(115deg, rgba(236,72,153,.16), rgba(168,85,247,.16) 52%, rgba(34,211,238,.16));
  --grad-text:   linear-gradient(110deg, #F9A8D4 0%, #C084FC 45%, #67E8F9 100%);

  /* Typography */
  --font-display: 'Syne', 'Manrope', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-hero:  clamp(2.7rem, 1.3rem + 6.2vw, 6rem);
  --fs-h2:    clamp(2rem, 1.25rem + 3vw, 3.5rem);
  --fs-h3:    clamp(1.2rem, 1rem + 0.9vw, 1.55rem);
  --fs-lead:  clamp(1.05rem, 1rem + 0.45vw, 1.3rem);
  --fs-body:  clamp(1rem, 0.97rem + 0.18vw, 1.075rem);
  --fs-sm:    0.9rem;
  --fs-eyebrow: 0.8rem;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Radii */
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Effects */
  --shadow:      0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 70px -12px rgba(168, 85, 247, 0.45);
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: rgba(236, 72, 153, 0.35); color: #fff; }

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

/* Custom scrollbar (progressive enhancement) */
@supports (scrollbar-color: red blue) {
  html { scrollbar-color: rgba(168,85,247,.45) transparent; scrollbar-width: thin; }
}

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

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

/* Offset anchored sections so the fixed nav doesn't cover their tops */
:where(section[id], [id]) { scroll-margin-top: 92px; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px 1px rgba(236, 72, 153, 0.7);
}

h2.title { font-size: var(--fs-h2); }
.lead {
  font-size: var(--fs-lead);
  color: var(--text-soft);
  margin-top: 1.1rem;
}

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

/* -------------------------------------------------------------------------- */
/*  4. Buttons                                                                */
/* -------------------------------------------------------------------------- */
.btn {
  --btn-py: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-py) 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 16px 40px -10px rgba(236, 72, 153, 0.7);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--text-mute);
}

.btn-sm { --btn-py: 0.7rem; padding-inline: 1.2rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------------- */
/*  5. Navigation                                                             */
/* -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--grad);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 9, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px -24px rgba(0, 0, 0, 0.9);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  flex: none;
  box-shadow: 0 6px 18px -6px rgba(168, 85, 247, 0.7);
}
.logo b { font-weight: 800; }
.logo .dot { color: var(--pink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-soft);
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

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

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--text); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 74px 0 auto 0;
  z-index: 49;
  background: rgba(9, 9, 15, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 1rem var(--gutter) 1.6rem;
  display: grid;
  gap: 0.4rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-menu.open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu .btn { margin-top: 1rem; }

/* -------------------------------------------------------------------------- */
/*  6. Aurora background                                                      */
/* -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.blob-1 { width: 46vw; height: 46vw; max-width:620px; max-height:620px; top: -12%; left: -8%;  background: radial-gradient(circle, rgba(236,72,153,.9), transparent 65%); animation: float1 22s var(--ease) infinite; }
.blob-2 { width: 42vw; height: 42vw; max-width:560px; max-height:560px; top: -4%;  right: -10%; background: radial-gradient(circle, rgba(34,211,238,.75), transparent 65%); animation: float2 26s var(--ease) infinite; }
.blob-3 { width: 50vw; height: 50vw; max-width:680px; max-height:680px; bottom: -28%; left: 25%; background: radial-gradient(circle, rgba(168,85,247,.7), transparent 65%); animation: float3 30s var(--ease) infinite; }

@keyframes float1 { 50% { transform: translate(8%, 12%) scale(1.12); } }
@keyframes float2 { 50% { transform: translate(-10%, 8%) scale(1.08); } }
@keyframes float3 { 50% { transform: translate(6%, -10%) scale(1.14); } }

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------- */
/*  7. Hero                                                                   */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-inner { max-width: 920px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.55rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1.8rem;
}
.hero-badge .tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-pill);
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero p.lead { max-width: 620px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* Stat strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  background: var(--bg-soft);
  padding: 1.5rem 1.4rem;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem);
  color: var(--text);
  line-height: 1;
}
.stat .num span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 0.5rem;
}

/* Marquee */
.marquee {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-block: 1px solid var(--border);
  padding-block: 1.1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll-x 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------------- */
/*  8. Cards / generic surface                                                */
/* -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              background 0.35s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }

.icon-chip {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: #fff;
  margin-bottom: 1.4rem;
}
.icon-chip svg { width: 26px; height: 26px; stroke-width: 1.7; }

/* -------------------------------------------------------------------------- */
/*  9. Services (bento)                                                       */
/* -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento > .card { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-6 { grid-column: span 6; }

.service h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.service p { color: var(--text-soft); }
.service .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}
.service .tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-soft);
}
.span-3 .icon-chip { width: 60px; height: 60px; }
.span-3 .icon-chip svg { width: 30px; height: 30px; }

/* Advertising wide card layout */
.service-wide {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
.service-wide .meter {
  display: grid;
  gap: 0.85rem;
}
.meter-row { display: grid; gap: 0.4rem; }
.meter-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
}
.meter-row .track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden;
}
.meter-row .fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--grad);
  width: 0;
  transition: width 1.1s var(--ease);
}

/* -------------------------------------------------------------------------- */
/* 10. Process / metodo                                                       */
/* -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.step .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.96rem; color: var(--text-soft); }

/* -------------------------------------------------------------------------- */
/* 11. Why us / features                                                      */
/* -------------------------------------------------------------------------- */
.why-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature:hover { border-color: var(--border-strong); background: var(--surface-2); }
.feature .f-icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: #fff;
  flex: none;
}
.feature .f-icon svg { width: 21px; height: 21px; stroke-width: 1.8; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.feature p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.55; }

.why-sticky { position: sticky; top: 110px; }

/* -------------------------------------------------------------------------- */
/* 12. Projects                                                               */
/* -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3.2;
  cursor: pointer;
  isolation: isolate;
}
.project .thumb {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 0.5s var(--ease);
}
.project:hover .thumb { transform: scale(1.06); }
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5,5,10,.92) 8%, rgba(5,5,10,.35) 55%, transparent);
}
.project .p-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease);
}
.project:hover .p-body { transform: translateY(0); }
.project .p-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.8rem;
}
.project h3 { font-size: 1.3rem; color: #fff; }
.project p {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), margin 0.4s var(--ease);
}
.project:hover p { max-height: 80px; opacity: 1; margin-top: 0.4rem; }

/* gradient placeholder thumbs — replace with real <img> screenshots */
.th-1 { background: linear-gradient(135deg, #EC4899, #7C3AED); }
.th-2 { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.th-3 { background: linear-gradient(135deg, #A855F7, #EC4899); }
.th-4 { background: linear-gradient(135deg, #F59E0B, #EC4899); }
.th-5 { background: linear-gradient(135deg, #10B981, #06B6D4); }
.th-6 { background: linear-gradient(135deg, #6366F1, #A855F7); }
.project .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}

/* -------------------------------------------------------------------------- */
/* 13. Testimonials                                                           */
/* -------------------------------------------------------------------------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testi {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.testi .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  height: 1.4rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.testi blockquote { font-size: 1.05rem; color: var(--text); line-height: 1.6; }
.testi .who { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.testi .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  flex: none;
}
.testi .who .name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.testi .who .role { font-size: 0.82rem; color: var(--text-mute); }

/* -------------------------------------------------------------------------- */
/* 14. CTA band                                                               */
/* -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
}
.cta-band .aurora .blob { opacity: 0.45; filter: blur(60px); }
.cta-band h2 { font-size: var(--fs-h2); max-width: 18ch; margin-inline: auto; }
.cta-band p { margin: 1.1rem auto 0; max-width: 52ch; color: var(--text-soft); font-size: var(--fs-lead); }
.cta-band .hero-cta { justify-content: center; }

/* -------------------------------------------------------------------------- */
/* 15. Contact                                                                */
/* -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h2 { font-size: var(--fs-h2); }
.contact-methods { display: grid; gap: 1rem; margin-top: 2.2rem; }
.method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
a.method:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateX(4px); }
.method .m-icon {
  width: 44px; height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: #fff;
}
.method .m-icon svg { width: 21px; height: 21px; }
.method .m-label { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.method .m-value { font-weight: 700; color: var(--text); }

.socials { display: flex; gap: 0.7rem; margin-top: 2rem; }
.social-btn {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.social-btn:hover { transform: translateY(-3px); color: #fff; background: var(--grad); border-color: transparent; }
.social-btn svg { width: 20px; height: 20px; }

/* Form */
.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.5rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.field label .req { color: var(--pink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239595A8' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-bottom: 1.3rem;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.consent a { color: var(--text-soft); text-decoration: underline; }

.form-status {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status.show { display: flex; }
.form-status.ok { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4); color: #6EE7B7; }
.form-status svg { width: 20px; height: 20px; flex: none; }

/* -------------------------------------------------------------------------- */
/* 16. Footer                                                                 */
/* -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: 2.5rem;
  margin-top: var(--section-y);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-brand .logo { margin-bottom: 1.2rem; }
.footer-brand p { color: var(--text-mute); max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: var(--text-soft); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-mute);
}
.footer-bottom .legal { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text-soft); }

/* -------------------------------------------------------------------------- */
/* 17. Scroll reveal                                                          */
/* -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------- */
/* 18. Responsive                                                             */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-desktop { display: none; }
  .why-layout { grid-template-columns: 1fr; }
  .why-sticky { position: static; }
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > .card,
  .bento > .span-3 { grid-column: span 1; }
  .bento > .span-6 { grid-column: span 2; }
  .service-wide { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-grid > :nth-child(3) { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .bento,
  .bento > .span-6 { grid-template-columns: 1fr; }
  .bento > .span-6 { grid-column: span 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* -------------------------------------------------------------------------- */
/* 19. Reduced motion                                                         */
/* -------------------------------------------------------------------------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
  .marquee-track { animation: none; }
}
