:root {
  --bg: #0b1220;
  --card: #111a2b;
  --glass: rgba(255, 255, 255, .06);
  --text: #e9eefb;
  --muted: #9fb0d6;
  --brand: #36c6f4;
  --wa: #25D366;
  --tg: #229ED9;
  --call: #22c55e;
  --dl: #a78bfa;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial
}

body {
  overflow-x: hidden
}

a {
  color: var(--brand);
  text-decoration: none
}

a:hover {
  opacity: .9
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto
}

.center {
  text-align: center
}

.tiny {
  font-size: .85rem;
  color: var(--muted)
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

.section {
  padding: 56px 0
}

.section.alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .02))
}

.grid {
  display: grid;
  gap: 20px
}

.grid.two {
  grid-template-columns: repeat(2, 1fr)
}

.grid.three {
  grid-template-columns: repeat(3, 1fr)
}

.grid.four {
  grid-template-columns: repeat(4, 1fr)
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, .7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

/* Brand block — technical glass card */
.brand {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  min-width: 190px;
  max-width: 240px;
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .18);
}

.brand .brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin-bottom: 6px;
  align-self: flex-start;
}

/* Title with accent underline */
.brand-title {
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--brand);
  font-size: 1.05rem;
}

.brand-title::after {
  content: "";
  display: block;
  height: 2px;
  width: 28px;
  margin-top: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), #1e90ff);
  opacity: .75;
}

/* Subline — compact & readable */
.brand-sub {
  margin-top: 6px;
  font-size: .82rem;
  line-height: 1.2;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap
}

.nav a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text)
}

.nav a.active,
.nav a:hover {
  background: var(--glass)
}

.hero {
  padding: 48px 0 0
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: .2em 0 .2em
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  box-shadow: var(--shadow)
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #1e90ff);
  border: none
}

/* WhatsApp: off by default, brand color on hover */
.btn-call:hover {
  background: linear-gradient(135deg,
      var(--brand), #1e90ff);
  color: #fff;
  transform: translateY(-1px);
}

.btn-wa:hover {
  background: var(--wa);
  color: #fff;
  transform: translateY(-1px);
}

.btn-dl:hover {
  background: var(--dl);
  color: #fff;
  transform: translateY(-1px);
}

/* Facebook button */
.btn-fb {
  background: #1877f2;
  color: #fff !important;
  border-radius: 12px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}

.btn-fb:hover {
  background: #0d65d9;
  transform: translateY(-1px);
}

/* Telegram: off by default, brand color on hover */
.btn-tg {
  border-radius: 12px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}

.btn-tg:hover {
  background: var(--tg);
  color: #fff;
  transform: translateY(-1px);
}

.cta-row {
  display: flex;
  gap: 12px;
  margin: 18px 0 8px
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.card h3 {
  margin: .1em 0 .4em
}

.note {
  margin-top: 16px;
  color: var(--muted)
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow)
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  text-align: left
}

.table thead th {
  background: rgba(255, 255, 255, .03)
}

.toolbar {
  display: flex;
  gap: 10px;
  margin: 12px 0
}

input[type="search"],
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #0f1a2d;
  color: var(--text)
}

.tick-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0
}

.tick-list li {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 10px 12px;
  border-radius: 12px
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, .06)
}

.float-wa {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow)
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  z-index: 2001
}

.lightbox img {
  max-height: 72vh;
  border-radius: 12px
}

.lightbox-caption {
  color: #fff;
  margin-top: 10px
}

.lightbox.show {
  display: flex
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer
}

.small {
  padding: 28px 0
}

/* Uniform gallery/thumb cards */
#recent-proof-grid .card,
#galleryGrid .card {
  padding: 0;
  overflow: hidden;
}

#recent-proof-grid img,
#galleryGrid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Show hero image full (no crop) */
.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 481px) and (max-width: 920px) and (hover: hover) and (pointer: fine) {
  #galleryGrid.grid.four {
    grid-template-columns: 1fr 1fr 1fr !important;
  }

  /* Match desktop hero headline (solid white, not gradient) */
  .hero-copy h1 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
    font-weight: 800;
  }

  /* Match desktop banner spacing */
  .banners .banner-grid {
    gap: 18px;
  }

  /* Ensure the “Recent Proof” grid also goes 3-up here */
  #recent-proof-grid.grid.four {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

/* Nicer image cards for Recent Proof + Gallery */
.proof .card,
#galleryGrid .card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

/* Home: promo banners strip (no crop + premium frame) */
.banners {
  padding-top: 24px;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 800px;
  /* enables 3D hover */
}

.banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .40);
  padding: 10px;
  /* inner white frame around the image */
}

/* glossy rim highlight */
.banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(120% 60% at 10% 0%, rgba(255, 255, 255, .20), transparent 60%),
    radial-gradient(120% 80% at 90% 100%, rgba(255, 255, 255, .10), transparent 60%);
  pointer-events: none;
}

/* IMPORTANT: show full image, never crop */
.banner-card img {
  width: 100%;
  height: auto;
  /* keep natural aspect ratio */
  object-fit: contain;
  /* never crop */
  background: #fff;
  /* banners often have white edges */
  border-radius: 12px;
  display: block;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, .06);
  /* subtle inner rim */
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}

/* 3D hover lift */
.banner-card:hover img {
  transform: translateY(-2px) scale(1.02) rotateX(1deg);
  filter: saturate(1.06) contrast(1.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.proof img,
#galleryGrid img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}

.proof .card:hover img,
#galleryGrid .card:hover img {
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .fab-top {
    transition: none !important;
  }
}

/* High contrast users get a stronger ring */
@media (prefers-contrast: more) {

  .nav a:focus-visible,
  .btn:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1e90ff !important;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .nav a,
  .btn {
    transform: none !important;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta-row .btn-primary {
    animation: none !important;
  }

  .btn .ripple {
    animation: none !important;
    display: none !important;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {

  .banner-card,
  .banner-card img,
  .banner-card::after {
    transition: none !important;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {

  .nav a,
  .btn,
  .card {
    transition: none !important;
  }
}

/* === Buttons: Download & Call — neutral by default, brand on hover === */
/* Base: inherit whatever surface .btn uses; prevent “always-on” brand fills */
.btn.btn-dl,
.btn.btn-download,
.btn-download,
.btn.btn-call,
.btn.btn-phone,
.btn-call {
  /* do not force a brand background in resting state */
  background: inherit !important;
  color: inherit;
}

/* Hover: brand color + slight lift (matches WA/TG behavior) */
.btn.btn-dl:hover,
.btn.btn-download:hover,
.btn-download:hover {
  background: var(--dl) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn.btn-call:hover,
.btn.btn-phone:hover,
.btn-call:hover {
  background: var(--call) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Make any icon inside turn white on hover */
.btn.btn-dl:hover svg,
.btn.btn-download:hover svg,
.btn-download:hover svg,
.btn.btn-call:hover svg,
.btn.btn-phone:hover svg,
.btn-call:hover svg,
.btn.btn-dl:hover i,
.btn.btn-download:hover i,
.btn-download:hover i,
.btn.btn-call:hover i,
.btn.btn-phone:hover i,
.btn-call:hover i {
  fill: #fff;
  color: #fff;
}

/* === Desktop (≥ 920px, desktop-class pointers only) === */
@media (min-width: 920px) and (hover: hover) and (pointer: fine) {

  /* ==== Desktop-only Futuristic UI Layer (>=920px, not phones) ==== */
  /* Subtle globals for glow & edges (keeps your colors vivid, not faded) */
  :root {
    --edge: rgba(255, 255, 255, .14);
    --edge-strong: rgba(255, 255, 255, .22);
    --glow: rgba(80, 170, 255, .55);
    /* ties to brand-blue range */
  }

  /* NAV: 3D glass tabs with premium glow on active */
  .nav {
    gap: 14px;
    perspective: 1000px;
  }

  .nav a {
    position: relative;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    border: 1px solid var(--edge);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 8px 20px rgba(0, 0, 0, .28);
    transform-style: preserve-3d;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, filter .2s ease;
  }

  .nav a::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background:
      radial-gradient(60% 140% at 50% -20%, rgba(255, 255, 255, .18), transparent 60%),
      linear-gradient(90deg, rgba(255, 255, 255, .06), transparent);
    pointer-events: none;
  }

  .nav a:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 28px rgba(0, 0, 0, .34);
  }

  .nav a.active {
    background: linear-gradient(180deg, rgba(80, 170, 255, .22), rgba(80, 170, 255, .10));
    border-color: var(--glow);
    box-shadow: 0 0 0 1px var(--glow) inset, 0 10px 28px rgba(80, 170, 255, .25);
    filter: saturate(1.05);
  }

  /* BUTTONS: neon edge + sweep highlight; keeps your existing brand colors */
  .btn {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--edge);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 10px 28px rgba(0, 0, 0, .35);
    transition: transform .14s ease, box-shadow .2s ease, filter .2s ease;
  }

  .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .18) 40%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .6s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 16px 36px rgba(0, 0, 0, .42);
  }

  .btn:hover::before {
    transform: translateX(100%);
  }

  /* WA/TG: off by default on desktop; color only on hover */
  .btn.btn-wa,
  .btn.btn-tg {
    border: none;
    /* keep default .btn surface */
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  }

  /* Primary keeps strong brand gradient + deeper shadow */
  .btn-primary {
    background: linear-gradient(135deg, var(--brand), #1e90ff);
    border: none;
    box-shadow: 0 10px 30px rgba(30, 144, 255, .35);
  }

  /* Cards: gentle tilt + accent rim on hover */
  .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .40);
    transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease, filter .2s ease;
    transform-style: preserve-3d;
  }

  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(80, 170, 255, .45);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .48), 0 0 0 1px rgba(80, 170, 255, .30) inset;
    filter: saturate(1.05) contrast(1.02);
  }

  /* Headline shimmer (subtle, readable, not “disco”) */
  /* Headline — solid white for maximum readability */
  .hero-copy h1 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
    font-weight: 800;
  }

  /* Tables: elevated surface */
  .table {
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  }

  .table thead th {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  }

  /* Footer links: soft glow on hover */
  .site-footer a:hover {
    text-shadow: 0 0 12px var(--glow);
  }

  /* ==== Step 2: Desktop Banner Parallax + Tab Underline Animation ==== */
  /* Banner card: subtle 3D parallax + light sweep */
  .banners .banner-grid {
    gap: 18px;
  }

  .banner-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .45);
    transform-style: preserve-3d;
    transition: transform .20s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
    will-change: transform, filter;
  }

  .banner-card img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center;
    transition: transform .65s ease, filter .5s ease;
    will-change: transform, filter;
  }

  .banner-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(80% 60% at 50% -10%, rgba(255, 255, 255, .18), transparent 60%);
    pointer-events: none;
  }

  .banner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .10) 40%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .9s ease;
    pointer-events: none;
  }

  .banner-card:hover {
    transform: translateY(-4px) rotateX(.6deg) rotateY(.6deg);
    border-color: rgba(80, 170, 255, .45);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(80, 170, 255, .25) inset;
    filter: saturate(1.05) contrast(1.02);
  }

  .banner-card:hover img {
    transform: scale(1.06);
  }

  .banner-card:hover::after {
    transform: translateX(120%);
  }

  /* Nav tabs: animated neon underline (keeps colors vivid) */
  .nav {
    align-items: center;
  }

  .nav a {
    position: relative;
  }

  .nav a::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), #1e90ff);
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    transition: transform .25s ease, opacity .2s ease;
  }

  .nav a:hover::before,
  .nav a.active::before {
    transform: scaleX(1);
    opacity: .9;
  }
}

/* ==== Step 3: Desktop CTA micro-interactions + Luxe table header ==== */
/* Buttons & CTAs: press, focus ring, and ripple container */
.btn {
  position: relative;
  /* ensures ripple stays clipped */
  isolation: isolate;
  will-change: transform, box-shadow, filter;
}

.btn:active {
  transform: translateY(1px) scale(.99);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .15),
    0 0 0 5px rgba(80, 170, 255, .55);
}

/* Gentle “breathe” for primary CTA in hero */
.cta-row .btn-primary {
  animation: ctaPulse 3.2s ease-in-out infinite;
}

@keyframes ctaPulse {

  0%,
  100% {
    filter: saturate(1.0) brightness(1.0);
    box-shadow: 0 10px 30px rgba(30, 144, 255, .35);
  }

  50% {
    filter: saturate(1.06) brightness(1.03);
    box-shadow: 0 14px 40px rgba(30, 144, 255, .45);
  }
}

/* Ripple element (JS will inject <span class="ripple">) */
.btn .ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  left: 0;
  top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, .25) 40%, transparent 60%);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(24);
    opacity: 0;
  }
}

/* Tables: luxe sticky header with brand glow + soft row hover */
.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)),
    linear-gradient(0deg, rgba(80, 170, 255, .35), transparent 30%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px);
}

.table tbody tr {
  transition: background .18s ease, filter .18s ease;
}

.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  filter: saturate(1.02);
}

/* ==== Step 4: Desktop Magnetic Hover + Hero Depth Layer ==== */
/* Glassy depth glow behind the hero section (no HTML change) */
.hero {
  position: relative;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto -80px;
  /* subtle bleed beyond container */
  height: 320px;
  border-radius: 24px;
  background:
    radial-gradient(55% 70% at 15% 25%, rgba(54, 198, 244, .22), transparent 60%),
    radial-gradient(55% 60% at 85% 10%, rgba(255, 255, 255, .10), transparent 60%);
  filter: blur(24px);
  opacity: .9;
  pointer-events: none;
  z-index: -1;
}

.hero .hero-inner {
  perspective: 1000px;
}

/* Magnetic hover variables (used by JS). Kept on nav tabs and buttons only */
.nav a,
.btn {
  transform:
    perspective(900px) rotateX(var(--mag-rx, 0deg)) rotateY(var(--mag-ry, 0deg)) translate3d(var(--mag-tx, 0px), var(--mag-ty, 0px), 0);
  transform-style: preserve-3d;
  will-change: transform;
}

/* ==== Step 5: Desktop Focus Rings + Keyboard Tab Underline + Gradient Border Utility ==== */
/* Strong, accessible focus rings that match your brand */
.nav a:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .15),
    0 0 0 5px rgba(80, 170, 255, .70),
    0 12px 32px rgba(30, 144, 255, .35);
  filter: saturate(1.05) brightness(1.03);
}

/* Keyboard tab underline on nav (reuses the underline from Step 2) */
.nav a:focus-visible::before {
  transform: scaleX(1);
  opacity: .95;
}

/* Primary CTA gets a slightly stronger focus lift */
.btn-primary:focus-visible {
  filter: saturate(1.08) brightness(1.05);
}

/* --- Premium gradient border utility (opt-in via class) --- */
/* Add class="u-gradient-border" to any panel/card when you want luxe edges. */
.u-gradient-border {
  position: relative;
  border: none !important;
  border-radius: var(--radius);
  background-clip: padding-box;
  /* keep inner fill crisp */
}

.u-gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  /* border width */
  background: conic-gradient(from 180deg, var(--brand), #1e90ff, #36c6f4, #1e90ff, var(--brand));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  pointer-events: none;
  z-index: 1;
}

.u-gradient-border::after {
  /* optional subtle inner glass to keep fill consistent sitewide */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  pointer-events: none;
}

/* If used on .card, intensify glow on hover */
.card.u-gradient-border:hover::before {
  filter: brightness(1.1) saturate(1.05);
}

/* Links inside tables also get visible keyboard focus */
.table a:focus-visible {
  outline: 2px solid rgba(80, 170, 255, .80);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ==== Step 6: Desktop Scroll-to-Top FAB ==== */
.fab-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #1e90ff);
  color: #fff;
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 10px 28px rgba(30, 144, 255, .38),
    0 2px 0 rgba(0, 0, 0, .25);
  transform: translateY(12px) scale(.9);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, box-shadow .22s ease, filter .22s ease;
  z-index: 60;
  cursor: pointer;
}

.fab-top::after {
  /* glossy sweep */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .22), transparent 40%);
  mix-blend-mode: screen;
  opacity: .35;
  pointer-events: none;
}

.fab-top svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

.fab-top:hover {
  transform: translateY(6px) scale(.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 16px 36px rgba(30, 144, 255, .48),
    0 2px 0 rgba(0, 0, 0, .25);
  filter: saturate(1.06);
}

.fab-top:active {
  transform: translateY(8px) scale(.97);
}

.fab-top.fab-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-top:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .15),
    0 0 0 6px rgba(80, 170, 255, .70),
    0 14px 40px rgba(30, 144, 255, .45);
}

/* === Responsive (max-width) — keep this order exactly (largest → smallest) === */

/* ===== ≤ 920px ===== */
@media (max-width:920px) {
  .grid.four {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid.three {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid.two {
    grid-template-columns: 1fr
  }
}

@media (max-width:920px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:920px) {
  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ≤ 820px ===== */
@media (max-width: 820px) {
  .grid.three {
    grid-template-columns: 1fr;
  }
}

/* Full-bleed hero + banners and proper stacking on mobile */
@media (max-width: 920px) {

  /* pull hero & banners containers to true screen edges */
  .hero>.container,
  .banners>.container {
    width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
  }

  /* stack text over image */
  .hero-inner {
    grid-template-columns: 1fr;
  }

  /* ensure the image is fully fluid, no crop */
  .hero-visual {
    width: 100%;
  }

  .hero-visual img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
  }

  /* let the buttons wrap so they never overflow */
  .cta-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ===== ≤ 720px ===== */
@media (max-width:720px) {
  .tick-list {
    grid-template-columns: 1fr
  }
}

/* ===== ≤ 640px ===== */
@media (max-width: 640px) {
  .brand .brand-logo {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
  }
}

/* Mobile nav: sticky + glass + pill buttons */
@media (max-width: 640px) {
  header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 12, 14, .6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  /* Stack brand above nav on mobile */
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0 6px;
  }

  /* Brand spans full width (compact) */
  .site-header .brand {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
  }

  /* Mobile nav: natural slim pills, one row with scroll */
  header nav {
    display: flex;
    flex-wrap: nowrap;
    /* force one row */
    justify-content: flex-start;
    /* align under brand, left */
    width: 100vw;
    /* true full screen width */
    margin-left: calc(50% - 50vw);
    /* pull to left edge */
    margin-right: calc(50% - 50vw);
    /* pull to right edge */
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px 10px;
    /* small inner gutter */
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  header nav::-webkit-scrollbar-track {
    background: transparent
  }

  header nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 20px
  }

  header nav a {
    display: inline-flex;
    align-items: center;
    /* vertically center text */
    white-space: nowrap;
    scroll-snap-align: start;
    height: 38px;
    /* consistent chip height */
    padding: 0 14px;
    /* slimmer padding */
    border-radius: 9999px;
    font-size: 14px;
    /* smaller, more natural on mobile */
    font-weight: 600;
    letter-spacing: .1px;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 14px rgba(0, 0, 0, .22);
    transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  }

  header nav a:hover,
  header nav a:focus-visible {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 22px rgba(0, 0, 0, .30);
  }

  /* Active tab: subtle glow, no bulky fill */
  header nav a.active {
    background: linear-gradient(180deg, rgba(80, 170, 255, .28), rgba(80, 170, 255, .10));
    border-color: rgba(80, 170, 255, .55);
    box-shadow: 0 6px 18px rgba(80, 170, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
    color: #fff;
  }
}

/* Equal-height service cards on small screens */
@media (max-width: 640px) {
  .grid.three {
    align-items: stretch;
  }

  .grid.three .card {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    /* keeps bottoms aligned */
  }

  .grid.three .card p {
    margin-top: auto;
  }
}

/* Services grid: equal-height cards on mobile with a premium look */
@media (max-width: 640px) {
  .grid.two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .grid.two .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    /* same height for all */
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 28px rgba(0, 0, 0, .30);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .grid.two .card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 36px rgba(0, 0, 0, .36);
    border-color: rgba(30, 144, 255, .45);
  }

  .grid.two .card h3 {
    margin: 0 0 8px;
    line-height: 1.2;
  }

  .grid.two .card p {
    margin-top: auto;
    opacity: .85;
  }
}

/* === Mobile table: full-bleed + fixed layout + wrapping === */
@media (max-width: 640px) {

  /* Escape container gutter: make table span the entire viewport width */
  .table {
    width: 100vw;
    /* true viewport width */
    margin-left: calc(50% - 50vw);
    /* pull left to the edge */
    margin-right: calc(50% - 50vw);
    /* pull right to the edge */
    border-radius: 0;
    /* flush edges look better */
    table-layout: fixed;
    /* prevent content from widening table */
  }

  /* Allow long names like "EVO/CHIMERA/PANDORA TOOL" to wrap nicely */
  .table th,
  .table td {
    padding: 10px 8px;
    /* a bit tighter for phones */
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Search row: remove side margin so it also aligns with table */
  .toolbar {
    margin: 10px 0;
  }
}

/* ===== ≤ 560px ===== */
@media (max-width:560px) {
  .banner-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ≤ 480px ===== */
@media (max-width: 480px) {

  #recent-proof-grid.grid.four,
  #galleryGrid.grid.four {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* === Mid-range non-phone screens (481–920px) get the desktop look === */
/* Keeps mobile (iPhone/Android) untouched because it requires mouse/trackpad */
@media (min-width: 481px) and (max-width: 920px) and (hover: hover) and (pointer: fine) {

  /* Undo the mobile full-bleed for hero & banners; use normal container width */
  .hero>.container,
  .banners>.container {
    width: min(1120px, 92%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  /* Keep two-column hero like desktop */
  .hero-inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
  }

  /* Use desktop gap for banner grid */
  .banners .banner-grid {
    gap: 18px;
  }

  /* Desktop-like grids: 3-up cards on mid-range non-phone screens */
  .grid.four {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .grid.three {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Ensure the gallery uses 3 columns here as well (overrides earlier rules) */
  #galleryGrid.grid.four {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

/* Safety net: large non-phone screens keep desktop grid counts */
@media (min-width: 920px) and (hover: hover) and (pointer: fine) {
  .grid.four {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .grid.three {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}