/* ==========================================================================
   Clever Solutions — Shared Stylesheet
   Used by: index.html and all 5 service pages
   Page-specific styles live inline in each page's <style> block.
   ========================================================================== */

/* ===== Variables ===== */
:root {
  --navy: #0a1a3a;
  --navy2: #0f2555;
  --navy3: #1e3a8a;
  --royal: #1e40af;
  --blue: #2563eb;
  --blue2: #3b82f6;
  --blue-light: #60a5fa;
  --gold: #d4af37;
  --gold-rgb: 212 175 55;
  --gold2: #f4d03f;
  --gold-light: #e8c86a;

  --ink: #0f172a;
  --muted: #64748b;
  --light: #f8fafc;
  --line: #e2e8f0;
  --white: #fff;
}

/* ===== Reset / base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
body {
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 320px;
}
h1,
h2,
h3,
h4 {
  font-family: Sora, Inter, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--gold2);
  outline-offset: 3px;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
section {
  padding: 78px 0;
  position: relative;
  isolation: isolate;
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 2000;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* ===== Header / navigation ===== */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(10, 26, 58, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
@supports not (backdrop-filter: blur(16px)) {
  header {
    background: rgba(10, 26, 58, 0.98);
  }
}
.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font: 700 1.18rem Sora;
}
.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.logo:hover .logo-mark {
  transform: scale(1.06);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  transition: 0.2s;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:not(.nav-cta):after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width 0.3s ease;
}
.nav-links a:not(.nav-cta):hover:after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--gold2);
}
.nav-links a[aria-current="page"] {
  color: var(--gold2);
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy) !important;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgb(var(--gold-rgb) / 0.35);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  font-weight: 700;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.55);
}
.mobile-toggle {
  display: none;
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: 0.25s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 44px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  box-shadow: 0 8px 24px rgb(var(--gold-rgb) / 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.55);
}
.btn-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold2);
  background: rgba(212, 175, 55, 0.08);
}
.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}
.actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

/* ===== Section heads, eyebrow ===== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 13px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* ===== Service hero (used by all 5 service pages) ===== */
.service-hero {
  padding: 150px 0 78px;
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(212, 175, 55, 0.14),
      transparent 40%
    ),
    radial-gradient(circle at 20% 70%, rgba(37, 99, 235, 0.2), transparent 45%),
    linear-gradient(135deg, var(--navy), var(--navy2));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.service-hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--gold-rgb) / 0.25),
    transparent
  );
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: #94a3b8;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--gold2);
}
.breadcrumb span[aria-hidden] {
  color: #475569;
}
.service-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1),
    rgba(37, 99, 235, 0.1)
  );
  color: var(--gold2);
  padding: 8px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.service-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  margin-bottom: 22px;
  color: #fff;
  max-width: 20ch;
}
.service-hero h1 span {
  background: linear-gradient(
    135deg,
    var(--gold2),
    var(--gold),
    var(--gold-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.service-hero .lead {
  max-width: 640px;
  color: #b8c5e0;
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 30px;
}
.service-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
  color: #94a3b8;
  font-size: 0.78rem;
}
.service-hero-trust span:before {
  content: "✓";
  color: var(--gold2);
  font-weight: 800;
  margin-right: 7px;
}

/* ===== Value grid (used by service pages) ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  transition: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.value-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width 0.4s ease;
}
.value-card:hover:before {
  width: 100%;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.12),
    rgba(212, 175, 55, 0.1)
  );
  border: 1px solid rgb(var(--gold-rgb) / 0.25);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.value-icon svg {
  width: 22px;
  height: 22px;
}
.value-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.value-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== Includes / includes-grid (used by all service pages) ===== */
.includes {
  background:
    radial-gradient(
      circle at 8% 18%,
      rgba(37, 99, 235, 0.045),
      transparent 32%
    ),
    radial-gradient(
      circle at 92% 82%,
      rgba(212, 175, 55, 0.045),
      transparent 30%
    ),
    #f6f8fc;
}
.includes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* The custom software page uses 3 columns */
.includes-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.include-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
  transition: 0.3s;
  position: relative;
}
.include-item:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.1);
}
.include-item h3 {
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.include-item h3 svg {
  width: 18px;
  height: 18px;
  color: #b8941f;
  flex-shrink: 0;
}
.include-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== Process section (shared across all pages) ===== */
.process {
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.2), transparent 45%),
    radial-gradient(
      circle at 70% 80%,
      rgba(212, 175, 55, 0.12),
      transparent 45%
    ),
    linear-gradient(145deg, var(--navy), var(--navy2));
  color: #fff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 18px 55px rgba(10, 26, 58, 0.1);
}
.process:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    #000 20%,
    transparent 80%
  );
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}
.process .section-head h2 {
  color: #fff;
}
.process .section-head p {
  color: #94a3b8;
}
.process .eyebrow {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
/* Custom software uses 5 steps */
.process-grid.cols-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.process-step {
  position: relative;
  text-align: center;
  padding: 0 10px;
}
.process-step:not(:last-child):after {
  content: "";
  position: absolute;
  right: -18px;
  top: 26px;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.process-grid.cols-5 .process-step:not(:last-child):after {
  right: -14px;
  width: 28px;
}
.process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--navy);
  font: 800 0.95rem Sora;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 8px 24px rgb(var(--gold-rgb) / 0.5);
  position: relative;
  transition: transform 0.3s ease;
}
.process-number:before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgb(var(--gold-rgb) / 0.5);
  animation: ringPulse 3s ease-in-out infinite;
}
.process-step:hover .process-number {
  transform: scale(1.08);
}
.process-step h3 {
  font-size: 1rem;
  margin-bottom: 9px;
  color: #fff;
}
.process-step p {
  font-size: 0.83rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.faq {
  background: #fff;
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06);
}
.faq-item[open] {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.08);
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: Sora, Inter, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
  position: relative;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-item summary:hover {
  color: var(--royal);
}
.faq-answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}
.faq-answer p {
  margin: 0;
}
.faq-answer p + p {
  margin-top: 12px;
}
.faq-answer strong {
  color: var(--ink);
  font-weight: 700;
}

/* ===== Related services ===== */
.related {
  background:
    radial-gradient(
      circle at 8% 18%,
      rgba(37, 99, 235, 0.045),
      transparent 32%
    ),
    radial-gradient(
      circle at 92% 82%,
      rgba(212, 175, 55, 0.045),
      transparent 30%
    ),
    #f6f8fc;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.1);
}
.related-card h3 {
  font-size: 1rem;
  color: var(--ink);
}
.related-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.related-card span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--royal);
}

/* ===== CTA section ===== */
.cta {
  background:
    linear-gradient(135deg, rgba(10, 26, 58, 0.94), rgba(30, 58, 138, 0.92)),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.cta:before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 65%);
  animation: ctaPulse 6s ease-in-out infinite;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto;
}
.cta h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  margin-bottom: 15px;
  color: #fff;
}
.cta p {
  color: #cbd5e1;
  margin-bottom: 28px;
}

/* ===== Floating CTA button ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: grid;
  place-items: center;
  color: var(--navy);
  box-shadow: 0 12px 32px rgb(var(--gold-rgb) / 0.5);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: floatPulse 3s infinite;
}
.floating-cta:hover {
  transform: scale(1.1);
}
.floating-cta svg {
  width: 26px;
  height: 26px;
}

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 64px 0 28px;
  font-family: Inter, Arial, sans-serif;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}
footer .container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-grid::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  grid-column: 1 / -1;
  margin-bottom: 8px;
}
.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font: 700 1.18rem Sora;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-brand .logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.footer-brand p {
  max-width: 320px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
}
.footer-col h4 {
  font:
    700 0.78rem Inter,
    sans-serif;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin: 10px 0;
}
footer .footer-col ul li a,
footer .footer-col ul li a:link,
footer .footer-col ul li a:visited,
footer .footer-col ul li a:hover,
footer .footer-col ul li a:active,
footer a {
  color: #94a3b8 !important;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s ease;
  display: inline-block;
  font-family: Inter, Arial, sans-serif;
}
footer .footer-col ul li a:hover,
footer a:hover {
  color: var(--gold2) !important;
}
.footer-plain {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-block;
}
.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 26px;
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom span {
  color: #64748b;
  overflow-wrap: anywhere;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ===== Shared keyframes ===== */
@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}
@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, 20px) scale(1.08);
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes ctaPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}
@keyframes floatPulse {
  0%,
  100% {
    box-shadow: 0 12px 32px rgb(var(--gold-rgb) / 0.5);
  }
  50% {
    box-shadow: 0 12px 42px rgba(212, 175, 55, 0.85);
  }
}
@keyframes dashboardFloatMobile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes dashboardFloat {
  0%,
  100% {
    transform: perspective(1000px) rotateY(-6deg) translateY(0);
  }
  50% {
    transform: perspective(1000px) rotateY(-4deg) translateY(-8px);
  }
}

/* ===== Contact Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(10, 26, 58, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
@supports not (backdrop-filter: blur(8px)) {
  .modal-backdrop {
    background: rgba(10, 26, 58, 0.92);
  }
}
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}
.modal-backdrop.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow:
    0 24px 60px rgba(10, 26, 58, 0.35),
    0 8px 20px rgba(10, 26, 58, 0.15);
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.28s ease;
}
.modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 16px 16px 0 0;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, 0.055);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.25s;
  z-index: 2;
}
.modal-close:hover {
  background: rgba(15, 23, 42, 0.11);
  color: var(--ink);
  transform: rotate(90deg);
}
.modal-close svg {
  width: 15px;
  height: 15px;
}
.modal-header {
  padding: 26px 26px 16px;
  padding-right: 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  border-radius: 16px 16px 0 0;
}
.modal-header .eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.modal-header h2 {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.modal-header p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0;
}
.modal-panel form {
  padding: 20px 26px 22px;
}
.modal-panel .field {
  margin-bottom: 14px;
  min-width: 0;
}
.modal-panel .field label {
  display: block;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: 0.005em;
}
.modal-panel .field input,
.modal-panel .field select,
.modal-panel .field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe2ec;
  border-radius: 9px;
  background: #fbfcfe;
  padding: 11px 13px;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition:
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
  line-height: 1.4;
}
.modal-panel .field input::placeholder,
.modal-panel .field textarea::placeholder {
  color: #a2adbd;
}
.modal-panel .field input:hover,
.modal-panel .field select:hover,
.modal-panel .field textarea:hover {
  border-color: #c3cddb;
  background: #fff;
}
.modal-panel .field textarea {
  min-height: 96px;
  resize: vertical;
  padding-top: 11px;
  padding-bottom: 11px;
}
.modal-panel .field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
  padding-right: 40px;
  cursor: pointer;
}
.modal-panel .field input:focus,
.modal-panel .field select:focus,
.modal-panel .field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.modal-panel .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 480px) {
  .modal-panel .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
}
.modal-panel .form-submit {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  padding: 13px 18px;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  box-shadow:
    0 4px 14px rgba(212, 175, 55, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.modal-panel .form-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px rgba(212, 175, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.modal-panel .form-submit:active {
  transform: translateY(0);
}
.modal-panel .form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.modal-panel .form-note {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}
.modal-panel .form-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  display: none;
  line-height: 1.5;
}
.modal-panel .form-status.success {
  display: block;
  background: rgba(37, 99, 235, 0.07);
  color: #1e40af;
  border: 1px solid rgba(37, 99, 235, 0.28);
}
.modal-panel .form-status.error {
  display: block;
  background: rgba(220, 53, 69, 0.07);
  color: #b02a37;
  border: 1px solid rgba(220, 53, 69, 0.24);
}
.modal-panel .form-status a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.modal-panel .honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.modal-open {
  overflow: hidden;
}
.modal-panel::-webkit-scrollbar {
  width: 8px;
}
.modal-panel::-webkit-scrollbar-track {
  background: transparent;
}
.modal-panel::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.14);
  border-radius: 4px;
}
.modal-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.24);
}
@media (max-width: 520px) {
  .modal-backdrop {
    padding: 12px;
  }
  .modal-panel {
    border-radius: 14px;
    max-height: calc(100vh - 24px);
  }
  .modal-header {
    padding: 22px 20px 14px;
    padding-right: 52px;
  }
  .modal-header h2 {
    font-size: 1.2rem;
  }
  .modal-panel form {
    padding: 18px 20px 20px;
  }
  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}

/* ===== Reduced motion (applies globally) ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .dashboard {
    animation: none !important;
  }
  .cta {
    background-attachment: scroll;
  }
  .scroll-progress {
    transition: none;
  }
  .hero-orb,
  .logo-mark {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  section {
    scroll-margin-top: 82px;
  }
}

/* ===== Base responsive (shared components) ===== */
@media (max-width: 1000px) {
  .container {
    width: min(100% - 32px, 1180px);
  }
  section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .includes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .includes-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px;
  }
  .process-grid.cols-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
  }
  .process-step:nth-child(2):after {
    display: none;
  }
  .process-grid.cols-5 .process-step:nth-child(3):after {
    display: none;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 28px);
  }
  section {
    padding: 58px 0;
  }
  .section-head {
    margin-bottom: 34px;
  }
  .nav {
    height: 68px;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-links.active {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    max-height: calc(100vh - 68px);
    overflow: auto;
  }
  .nav-links.active a {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 11px;
  }
  .nav-cta {
    justify-content: center;
    margin-top: 6px;
  }
  .service-hero {
    padding: 110px 0 58px;
  }
  .service-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }
  .service-hero .lead {
    font-size: 1rem;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 48px;
  }
  .service-hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .section-head h2 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }
  .section-head p {
    font-size: 0.94rem;
  }
  .value-grid,
  .includes-grid,
  .includes-grid.cols-3,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .process-grid,
  .process-grid.cols-5 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .process-step:not(:last-child):after,
  .process-grid.cols-5 .process-step:not(:last-child):after {
    content: "";
    right: auto;
    top: auto;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, var(--gold), transparent);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  footer {
    padding: 48px 0 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .floating-cta {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .cta {
    background-attachment: scroll;
  }
  .faq-item summary {
    padding: 18px 20px;
    font-size: 0.94rem;
  }
  .faq-answer {
    padding: 0 20px 20px;
    font-size: 0.88rem;
  }
}

body.menu-open {
  overflow: hidden;
}
