:root {
  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --text: #141822;
  --text-muted: #5c6474;
  --border: rgba(20, 24, 34, 0.08);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --ink: #0c1222;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.06);
  --shadow-md: 0 12px 40px rgba(12, 18, 34, 0.08);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  --header-h: 64px;
  /* Main content grows with viewport; cap only on very wide screens */
  --max: min(96vw, 1680px);
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

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

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #1a2235;
  color: #fff !important;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem 0 1.25rem;
}

.nav-drawer nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 0.25rem;
}

.nav-drawer a {
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-drawer a:hover {
  background: var(--bg);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-drawer {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(12, 18, 34, 0.06), transparent 50%),
    linear-gradient(180deg, #eef1f6 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: none;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1.25rem;
  max-width: 22rem;
}

@media (min-width: 900px) {
  .hero-title {
    max-width: min(100%, 36rem);
  }
}

@media (min-width: 1400px) {
  .hero-title {
    max-width: min(100%, 44rem);
  }
}

.hero-lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  max-width: 42rem;
}

@media (min-width: 900px) {
  .hero-lead {
    max-width: min(100%, 48rem);
  }
}

@media (min-width: 1400px) {
  .hero-lead {
    max-width: min(100%, 56rem);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: rgba(20, 24, 34, 0.14);
  color: var(--ink);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-eyebrow {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}

.section-prose {
  margin: 0 auto;
  color: var(--text-muted);
  text-align: center;
  font-size: 1.0625rem;
  max-width: min(100%, 52rem);
}

@media (min-width: 1100px) {
  .section-prose {
    max-width: min(100%, 62rem);
    font-size: 1.125rem;
  }
}

#about .section-prose {
  max-width: min(100%, 58rem);
}

@media (min-width: 1100px) {
  #about .section-prose {
    max-width: min(100%, 72rem);
  }
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 1300px) {
  #services .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.section-alt .card {
  background: var(--bg-elevated);
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.card-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: min(100%, 52rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 800px) {
  .feature-list {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }
}

@media (min-width: 1300px) {
  .feature-list {
    gap: 1.25rem 1.5rem;
  }
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.feature-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.12);
  position: relative;
}

.feature-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Contact */
.section-cta {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.testimonials {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-shell {
  display: grid;
  gap: 1.5rem;
}

.testimonials-title {
  margin-bottom: 0;
}

.testimonial-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(0.75rem, 2vw, 2rem);
  align-items: center;
}

.slider-arrow {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(20, 24, 34, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.slider-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.25);
  background: #fff;
}

.slider-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.testimonial-viewport {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
}

.testimonial-slide {
  width: 100%;
  text-align: center;
  animation: testimonial-fade 0.35s ease;
}

.testimonial-quote {
  margin: 0 auto 2rem;
  max-width: 68rem;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.7;
  color: #707887;
}

.testimonial-name {
  margin: 0;
  font-size: 1.9rem;
  font-family: var(--font-display);
  color: var(--ink);
}

.testimonial-role {
  margin: 0.6rem 0 0;
  color: #8b94a4;
  font-size: 1rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.testimonial-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(20, 24, 34, 0.16);
  cursor: pointer;
}

.testimonial-dot.is-active {
  background: var(--accent);
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 6rem);
}

.contact-section-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 28, 61, 0.76), rgba(12, 28, 61, 0.76)),
    radial-gradient(circle at 15% 20%, rgba(120, 170, 255, 0.2), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(146, 205, 255, 0.14), transparent 22%),
    linear-gradient(135deg, #0d1b3d 0%, #163468 48%, #0f2548 100%);
}

.contact-shell {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  min-height: min(78vh, 860px);
}

@media (min-width: 980px) {
  .contact-shell {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
  }
}

.contact-showcase {
  color: #fff4f2;
  padding: clamp(1rem, 2vw, 2rem) 0;
}

.contact-kicker {
  color: rgba(176, 215, 255, 0.9);
}

.contact-showcase-title {
  margin: 0 0 1.5rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.contact-showcase-text {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.75;
  color: rgba(231, 241, 255, 0.86);
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 28px 70px rgba(24, 9, 10, 0.28);
}

.contact-card-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  text-align: center;
  color: #1e4fa8;
  letter-spacing: -0.03em;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(20, 24, 34, 0.14);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7b8393;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-submit {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.22);
}

.contact-submit:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 979px) {
  .contact-showcase-title {
    max-width: 12ch;
  }
}

.contact-link {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  word-break: break-word;
}

.contact-link:hover {
  color: #bfdbfe;
}

.contact-link-muted {
  font-weight: 500;
  color: rgba(219, 234, 254, 0.82);
}

.contact-link-muted:hover {
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(232, 234, 239, 0.72);
  padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(180px, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.footer-brand-block {
  display: grid;
  gap: 1rem;
}

.footer-logo {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer-logo:hover {
  color: #dbeafe;
}

.footer-tagline {
  margin: 0;
  max-width: 22rem;
  color: rgba(232, 234, 239, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 234, 239, 0.88);
  font-weight: 600;
}

.footer-heading {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.4rem;
  font-family: var(--font-display);
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.footer-nav-column a,
.footer-contact a {
  color: rgba(232, 234, 239, 0.72);
  text-decoration: none;
  font-size: 1.05rem;
}

.footer-nav-column a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.footer-social a:hover {
  background: rgba(37, 99, 235, 0.4);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  margin: 0;
  color: rgba(232, 234, 239, 0.6);
  font-size: 0.95rem;
}

@media (max-width: 899px) {
  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    display: none;
  }
}

@keyframes testimonial-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
