:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-strong: #eef4fb;
  --text: #0d1b2a;
  --muted: #56657a;
  --primary: #1155ee;
  --primary-dark: #0c3fb8;
  --accent: #14b881;
  --accent-soft: #d7f4e8;
  --border: rgba(13, 27, 42, 0.08);
  --shadow-sm: 0 8px 22px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 24px 48px rgba(13, 40, 90, 0.09);
  --shadow-lg: 0 36px 70px rgba(9, 30, 66, 0.14);
  --radius-lg: 1.75rem;
  --radius-md: 1.25rem;
  --font-display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(13, 27, 42, 0.06);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(17, 85, 238, 0.22);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-10deg) scale(1.08);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.site-nav a.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.magnetic {
  transition: transform 0.15s ease-out, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), #3f7dff);
  color: #fff;
  box-shadow: 0 16px 32px rgba(17, 85, 238, 0.24);
}

.btn.primary:hover {
  box-shadow: 0 20px 40px rgba(17, 85, 238, 0.32);
}

.btn.secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  border-color: var(--primary);
}

.btn-sm {
  min-height: 2.6rem;
  padding: 0 1.15rem;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 3.5rem;
  padding: 0 2.1rem;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

/* ---------- Decorative floating shapes ---------- */

.shape-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.shape-field-soft {
  opacity: 0.6;
}

.shape {
  position: absolute;
  display: block;
  will-change: transform;
}

.shape-ring {
  top: 8%;
  right: 8%;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  border: 2px solid rgba(17, 85, 238, 0.22);
  animation: spin-slow 34s linear infinite, float-a 11s ease-in-out infinite;
}

.shape-ring-sm {
  top: 12%;
  left: 4%;
  width: 7rem;
  height: 7rem;
  border-color: rgba(20, 184, 129, 0.25);
}

.shape-blob {
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(2px);
  opacity: 0.5;
  animation: morph 12s ease-in-out infinite, float-b 14s ease-in-out infinite;
}

.shape-blob-a {
  bottom: 6%;
  left: -3%;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle at 30% 30%, rgba(20, 184, 129, 0.28), rgba(20, 184, 129, 0));
}

.shape-blob-b {
  top: 40%;
  right: -4%;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle at 60% 40%, rgba(17, 85, 238, 0.24), rgba(17, 85, 238, 0));
  animation-delay: -4s;
}

.shape-square {
  bottom: 14%;
  right: 18%;
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(17, 85, 238, 0.18), rgba(20, 184, 129, 0.18));
  animation: spin-slow 22s linear infinite reverse, float-a 9s ease-in-out infinite;
}

.shape-triangle {
  top: 18%;
  left: 46%;
  width: 0;
  height: 0;
  border-left: 1.15rem solid transparent;
  border-right: 1.15rem solid transparent;
  border-bottom: 2rem solid rgba(20, 184, 129, 0.24);
  animation: float-b 10s ease-in-out infinite;
}

.shape-plus {
  bottom: 30%;
  left: 12%;
  width: 1.7rem;
  height: 1.7rem;
  animation: float-a 8s ease-in-out infinite;
}

.shape-plus::before,
.shape-plus::after {
  content: "";
  position: absolute;
  background: rgba(17, 85, 238, 0.3);
  border-radius: 2px;
}

.shape-plus::before {
  top: 45%;
  left: 0;
  width: 100%;
  height: 3px;
}

.shape-plus::after {
  left: 45%;
  top: 0;
  height: 100%;
  width: 3px;
}

.shape-plus-b {
  bottom: 20%;
  right: 22%;
}

.shape-plus-b::before,
.shape-plus-b::after {
  background: rgba(20, 184, 129, 0.3);
}

.shape-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--primary);
  animation: float-b 7s ease-in-out infinite;
}

.shape-dot-a {
  top: 26%;
  right: 32%;
}

.shape-dot-b {
  bottom: 40%;
  left: 30%;
  background: var(--accent);
  width: 0.55rem;
  height: 0.55rem;
  animation-delay: -3s;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -18px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-16px, 14px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { border-radius: 58% 42% 37% 63% / 55% 60% 40% 45%; }
}

@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none !important;
  }
}

/* ---------- Gradient text ---------- */

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 6s ease-in-out infinite;
}

@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text {
    animation: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 3.6vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 40rem;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 1.4rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
}

.hero-stats dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.visual-card {
  width: min(100%, 26rem);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(238,244,251,0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ---------- Tilt effect (JS-driven via inline transform) ---------- */

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  will-change: transform;
}

.visual-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0c8a5e;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}

.visual-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.visual-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.visual-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.visual-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--text);
}

.visual-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Logos strip ---------- */

.logos {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.logos-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logos-inner > span:first-child {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.logos-row span {
  color: var(--muted);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.logos-row span:hover {
  opacity: 1;
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Section header ---------- */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin: 0.5rem auto 0;
  max-width: 42rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- Features ---------- */

.features {
  padding: 5rem 0 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  perspective: 1400px;
}

.feature-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(20, 184, 129, 0.12);
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(-8deg) scale(1.12);
  background: rgba(20, 184, 129, 0.2);
}

.feature-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.feature-link span {
  transition: transform 0.2s ease;
}

.feature-link:hover span {
  transform: translateX(3px);
}

/* ---------- Process ---------- */

.process {
  padding: 5rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.process {
  position: relative;
  overflow: hidden;
}

.process-step {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(17, 85, 238, 0.25);
}

.process-number {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.process-step:hover .process-number {
  color: var(--primary);
}

.process-step h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

/* ---------- Testimonials ---------- */

.testimonial-section {
  padding: 4rem 0 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  perspective: 1400px;
}

.testimonial-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--surface-strong));
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.testimonial-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.85;
  font-size: 1.02rem;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  padding: 2rem 0 5rem;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 3.25rem;
  border-radius: 2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.animated-gradient {
  background: linear-gradient(120deg, #0d1b2a, #123a7a 45%, #0c8a5e, #123a7a 80%, #0d1b2a);
  background-size: 300% 300%;
  animation: gradient-flow 10s ease-in-out infinite;
}

.cta-copy,
.cta-inner > .btn {
  position: relative;
  z-index: 1;
}

.cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cta-shapes .shape-ring-light {
  top: -3rem;
  right: 6rem;
  width: 10rem;
  height: 10rem;
  border-color: rgba(255, 255, 255, 0.18);
  animation: spin-slow 26s linear infinite;
}

.cta-shapes .shape-dot-light {
  bottom: 2rem;
  right: 22%;
  width: 0.9rem;
  height: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
  animation: float-a 8s ease-in-out infinite;
}

.cta-inner .eyebrow {
  color: #8ff0c8;
}

.cta-inner h2 {
  margin: 0.4rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  letter-spacing: -0.02em;
}

.cta-inner p {
  margin: 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.cta-inner .btn.primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .animated-gradient {
    animation: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3.5rem 0 2rem;
  background: #0b1422;
  color: #cbd6ea;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-brand {
  margin-bottom: 1rem;
  gap: 0.7rem;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.1rem;
}

.site-footer > .footer-grid > div > p:not(.footer-title) {
  line-height: 1.85;
  color: #a7b5d1;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #a7b5d1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-note {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #7f90b2;
  font-size: 0.9rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .features-grid,
  .testimonials-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 22rem;
  }

  .site-nav a {
    width: 100%;
    padding: 1rem min(1.25rem, 5%);
    border-bottom: 1px solid var(--border);
  }

  .header-actions .btn.primary.btn-sm {
    display: none;
  }

  .cta-inner {
    padding: 2.25rem;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-stats {
    gap: 1.6rem;
  }

  .feature-card,
  .testimonial-card,
  .visual-card,
  .process-step {
    padding: 1.6rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
