/* Responsive layout tweaks for NuLane Systems site */

:root {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f8fbff;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #f8fbff;
  font-family: inherit;
}

body {
  line-height: 1.5;
}

main {
  margin: 0;
  padding: 0;
}

section {
  margin: 0;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(9, 126, 216, 0.18);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  backdrop-filter: blur(12px);
}

.site-header > .section-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.site-header .header-inner {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 84px;
  padding: 0 1rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.logo-mark {
  width: clamp(60px, 6vw, 88px);
  border-radius: 0;
}

.logo-label {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #074f99;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-weight: 700;
}

.nav-links a {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  color: #4a5d7a;
  transition: color 0.2s ease;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #0a7ed8;
}

.header-cta {
  padding: 0.7rem 1.85rem;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(120deg, #44c7ff 15%, #0b4fb5 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(7, 63, 116, 0.25);
  text-decoration: none;
}

.header-portal-cta {
  padding: 0.8rem 2.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(120deg, #3bddff 15%, #0c4fb8 100%);
  color: #fff;
  box-shadow: 0 20px 52px rgba(6, 42, 98, 0.35);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.header-portal-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(6, 42, 98, 0.45);
}

@media (max-width: 1024px) {
  .hero {
    padding: 1.4rem 0 1.1rem;
  }

  main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  main > section + section {
    margin-top: 2.4rem;
  }

  .section-shell:not(.header-inner) {
    width: min(1100px, 96vw);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .intro {
    padding-top: 2.5rem;
  }

  .app-section {
    padding: 2.4rem 1.25rem;
  }

  .whatwedo .section-shell {
    padding: 2.6rem 1.4rem 2.3rem;
  }

  .solutions,
  .services {
    padding: 2.6rem 1.2rem 2rem;
  }

  .insights {
    padding: 2.6rem 1rem 2rem;
  }

  .cards-grid {
    gap: 1.5rem;
  }

  .cards-grid > * {
    max-width: 100%;
  }

  .app-card,
  .solution-card,
  .service-card,
  .insight-card {
    padding: 1.5rem;
  }

  .hero-copy,
  .constrained-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 84px;
    padding: 0 1rem;
    flex-wrap: nowrap;
  }

  .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .nav-links {
    display: flex;
    gap: 1.4rem;
    font-weight: 700;
  }

  .nav-links a {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.13em;
    color: #4a5d7a;
    transition: color 0.2s ease;
    font-weight: 700;
    white-space: nowrap;
  }

  .header-portal-cta {
    padding: 0.8rem 2.2rem;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.6rem 1rem 0.4rem;
  }

  .header-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 1.2rem 0 0.9rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-pill,
  .nav-links a,
  .feature-badge,
  .panel-label,
  .feature-click-hint {
    letter-spacing: 0.18em;
  }

  .hero-headline {
    font-size: clamp(2rem, 5vw, 3.1rem);
  }

  section h2,
  .visual-divider h2,
  .solutions h2,
  .services h2,
  .insights h2,
  .app-section h2,
  .intro h2,
  .whatwedo h2 {
    font-size: clamp(1.8rem, 3vw, 2rem);
  }

  .hero-copy,
  .constrained-copy,
  .solution-card p,
  .service-card p,
  .insight-card p,
  .intro p,
  .app-section p,
  .whatwedo p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .app-grid,
  .solution-grid,
  .feature-grid,
  .insight-list,
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem 0 0.8rem;
  }

  main > section + section {
    margin-top: 2rem;
  }

  .section-shell:not(.header-inner) {
    width: min(96vw, 420px);
  }

  .hero-headline {
    font-size: 1.85rem;
  }

  .cards-grid {
    gap: 1rem;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero-cta {
    letter-spacing: 0.12em;
    padding: 0.85rem 2rem;
  }

  .hero-pill,
  .nav-links a,
  .feature-badge,
  .panel-label,
  .feature-click-hint {
    letter-spacing: 0.16em;
  }

  .app-card,
  .solution-card,
  .service-card,
  .insight-card {
    border-width: 1px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 6;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(9, 126, 216, 0.18);
  width: 100%;
}

.site-header .section-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.site-header .header-inner {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

.site-header .header-subline {
  width: 100%;
  text-align: center;
}

.main-shell {
  width: 100%;
}

.service-grid {
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.service-card a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin: 1.5rem auto 0;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.service-card a:visited {
  color: inherit;
}

.service-card a,
.service-card a:visited {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto 0;
  padding: 0.35rem 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
