:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Smooth scrolling for in-page links */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sticky header & nav */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

/* Remove old uppercase-only styling if you’re keeping text */
.logo-text {
  margin-left: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Ensure logo image scales well */
.logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.nav a {
  margin-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--primary);
}

/* Active nav link */

.nav a.nav-active {
  color: var(--primary);
  font-weight: 600;
}

/* Sections offset for sticky header */

section[id] {
  scroll-margin-top: 80px;
}

/* Hero */

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-media img {
  border-radius: 1.1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.3);
  object-fit: cover;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-color: var(--border);
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* Highlights */

.highlights {
  padding: 2rem 0 3rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.card h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Solutions */

.solution {
  margin-bottom: 2.75rem;
}

.solution h3 {
  margin-bottom: 0.5rem;
}

.solution p {
  color: var(--muted);
  max-width: 40rem;
}

.solution ul {
  padding-left: 1.1rem;
  margin-top: 0.75rem;
}

.solution li {
  margin-bottom: 0.25rem;
}

/* Split layout (image + text) */

.solution-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.solution-media img {
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  object-fit: cover;
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  max-width: 40rem;
}

.about-media img {
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  object-fit: cover;
}

/* Clients & logos */

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

.logo-row img {
  max-height: 60px;
  width: auto;
  filter: grayscale(0.1);
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-info p {
  margin: 0 0 0.5rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

/* Visually-hidden labels */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  background-color: #f9fafb;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .solution-split {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}