/* ============================
   CORE THEME & GLOBALS
   ============================ */

:root {
  --bg: #ffffff;
  --panel: rgba(245, 247, 250, 0.9);
  --panel-2: rgba(238, 240, 244, 0.9);
  --text: #1a1a1a;
  --muted: #5a6475;
  --brand: #3376e6;
  --brand-2: #27a241;
  --card: rgba(255, 255, 255, 0.9);
  --ring: rgba(51, 118, 230, 0.25);
  --shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --maxw: 1100px;
  --anim-fast: 150ms;
  --anim-med: 300ms;
  --anim-slow: 700ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #99a4b6 0%, #ffffff 45%) fixed;
  color: var(--text);
}

/* Soft abstract gray background blobs */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  pointer-events: none;
}

body::before {
  top: -160px;
  left: -180px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, #dfe3ee 0%, transparent 70%);
}

body::after {
  bottom: -200px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at center, #e3e6f0 0%, transparent 70%);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 28px);
}

/* Optional background particles canvas */
#bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Frame around main content on large screens */
main {
  position: relative;
  z-index: 1;
}

main::before {
  content: "";
  position: fixed;
  inset: 90px 0 auto 0;
  margin-inline: auto;
  max-width: var(--maxw);
  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.04);
  z-index: -1;
  pointer-events: none;
}

/* ============================
   HEADER & NAV
   ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background var(--anim-med) ease, box-shadow var(--anim-med) ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand img {
  height: 46px;
  display: block;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.04);
}

.nav-link[aria-current="page"] {
  background: rgba(51, 118, 230, 0.08);
  color: var(--brand);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: right var(--anim-med) ease;
}

.nav-link:hover::after {
  right: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
}

/* ============================
   BUTTONS
   ============================ */

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--anim-fast) ease, border-color var(--anim-fast) ease,
    color var(--anim-fast) ease, transform var(--anim-fast) ease,
    box-shadow var(--anim-fast) ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand), #5aa2ff);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 35%,
    transparent 65%
  );
  transform: translateX(-120%) skewX(-14deg);
  transition: transform var(--anim-slow) ease;
}

.btn-primary:hover::after {
  transform: translateX(120%) skewX(-14deg);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand);
}

.btn-ghost:hover {
  background: rgba(51, 118, 230, 0.06);
  border-color: rgba(51, 118, 230, 0.25);
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

/* ============================
   TRUST BAR
   ============================ */

.trustbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 900;
}

.trustbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(51, 118, 230, 0.06),
    rgba(39, 162, 65, 0.02)
  );
  opacity: 0.8;
  pointer-events: none;
}

.trustbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-points {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-cta {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.trust-link:hover {
  text-decoration: underline;
}

/* ============================
   HERO
   ============================ */

.hero {
  position: relative;
  padding: clamp(34px, 6vw, 60px) 0;
  z-index: 1;
}

/* Subtle colored band behind hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    rgba(51, 118, 230, 0.08),
    rgba(39, 162, 65, 0.05)
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9),
    transparent 85%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9),
    transparent 85%
  );
  border-radius: 0 0 40px 40px;
}

.hero-inner,
.hero-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 4vw, 32px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 0.4em;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-art,
.hero-visual {
  display: grid;
  place-items: center;
}

.hero-art img,
.hero-visual img,
.hero-visual svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(15, 23, 42, 0.16));
  border-radius: 12px;
}

/* ============================
   SECTIONS & LAYOUT
   ============================ */

.section {
  position: relative;
  padding: clamp(28px, 4vw, 54px) 0;
}

/* Light striping / background on alt sections */
.section.alt {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.02),
    rgba(15, 23, 42, 0.02)
  );
}

/* Accent top line on sections (can be limited using .section.accent instead) */
.section::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: min(180px, 40vw);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0.18;
}

.page-hero {
  background: var(--panel-2);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.page-hero h1 {
  margin: 0 0 0.4em;
}

.page-hero p {
  color: var(--muted);
  margin: 0;
}

/* Grids */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ============================
   CARDS & CONTENT MODULES
   ============================ */

.cards {
  display: grid;
  gap: 14px;
}

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform var(--anim-med) ease,
    box-shadow var(--anim-med) ease,
    border-color var(--anim-med) ease;
}

/* Colored top edge on cards */
.card::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0.55;
  transition: opacity var(--anim-fast) ease, transform var(--anim-fast) ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  border-color: rgba(51, 118, 230, 0.25);
  background: rgba(255, 255, 255, 0.98);
}

.card:hover::before {
  opacity: 0.9;
  transform: translateY(-1px);
}

.card .byline {
  color: var(--muted);
  margin-top: 0.6rem;
}

/* Hook for JS tilt */
[data-tilt] {
  will-change: transform, box-shadow;
}

/* Steps list */
.steps {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
}

.steps li {
  margin-left: 12px;
  color: var(--text);
}

/* ============================
   SERVICES
   ============================ */

.svc-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--brand), #5aa2ff);
  border-radius: 10px;
}

.svc-icon img {
  width: 20px;
  height: 20px;
}

.svc-bullets {
  margin: 0.5rem 0 0 1rem;
  color: var(--muted);
  line-height: 1.35;
}

.svc-bullets li {
  margin: 0.25rem 0;
}

/* ============================
   LOGO STRIP / TRUSTED BY
   ============================ */

.subtle {
  font-weight: 600;
  opacity: 0.9;
  margin: 0 0 8px;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.logo-strip img {
  max-height: 40px;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.logo-strip img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

/* ============================
   FORMS
   ============================ */

.form-wrap {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea,
select {
  background: rgba(248, 249, 252, 0.9);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
  transition: border-color var(--anim-fast) ease,
    box-shadow var(--anim-fast) ease,
    background var(--anim-fast) ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--ring);
  background: #ffffff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.note,
.small {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================
   FOOTER
   ============================ */

.site-footer {
  background: #f5f6f8;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 1;
}

.site-footer .grid-3 {
  align-items: flex-start;
}

.site-footer h4 {
  margin: 0.2rem 0 0.4rem;
}

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

.site-footer a:hover {
  text-decoration: underline;
}

.footer-logo {
  height: 34px;
  margin-bottom: 8px;
}

.tag {
  color: var(--muted);
}

.site-footer .small {
  color: #6b7280;
}

/* ============================
   ANIMATIONS / REVEAL
   ============================ */

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: transform var(--anim-slow) cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity var(--anim-slow) ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: none;
}

[data-animate="fade-up"] {
  transform: translateY(22px);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 980px) {
  .hero-inner,
  .hero-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  main::before {
    inset: 80px 0 auto 0;
    max-width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 880px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    position: fixed;
    inset: 64px 12px auto 12px;
    background: #ffffff;
    padding: 12px;
    border-radius: 14px;
    display: none;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

