:root {
  --bg: #0b1120;
  --bg-soft: #111827;
  --panel: #162033;
  --panel-border: #24324a;
  --text: #f8fafc;
  --muted: #b6c2d4;
  --accent: #5eead4;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 36rem),
    linear-gradient(180deg, #0b1120 0%, #0f172a 45%, #0b1120 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 17, 32, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: none;
  margin: 0;
  padding: 18px 48px 18px 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #04111f;
  background: linear-gradient(135deg, var(--accent), #a7f3d0);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: transparent;
  padding: 9px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 10px;
}

.hero {
  max-width: none;
  margin: 0;
  padding: 92px 48px 4px 180px;
}

.hero-content {
  max-width: none;
  width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-copy,
.section-heading p,
.contact-box p,
.service-card p {
  color: var(--muted);
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 32px;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary,
.button.small {
  color: #04111f;
  background: var(--accent);
}

.button.primary:hover,
.button.small:hover {
  background: #99f6e4;
}

.button.secondary {
  border: 1px solid var(--panel-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.button.secondary:hover {
  border-color: rgba(94, 234, 212, 0.5);
}

.button.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 76px 24px;
}

.section-alt {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.section-alt > .section-heading,
.section-alt > .card-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.service-card {
  min-height: 255px;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card p {
  flex: 1;
  margin-bottom: 24px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.text-link:hover {
  color: #99f6e4;
}

.contact-section {
  padding-bottom: 92px;
}

.contact-box {
  padding: 34px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.14), transparent),
    var(--panel);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 26px 24px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 79px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: #0f172a;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .hero {
    padding-top: 68px;
  }
}

@media (max-width: 560px) {
  .brand-text {
    display: none;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .service-card,
  .contact-box {
    padding: 22px;
  }
}

@media (max-width: 1200px) {
  .nav {
    padding-left: 48px;
    padding-right: 48px;
  }

  .hero {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 860px) {
  .nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }
}


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

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

@media (max-width: 860px) {
  .hosted-grid {
    grid-template-columns: 1fr;
  }
}

.section-alt > .section-heading,
.section-alt > .hosted-grid {
  max-width: none;
  width: calc(100% - 96px);
  padding-left: 0;
  padding-right: 0;
}

.hosted-grid {
  grid-template-columns: repeat(5, minmax(260px, 1fr));
}


.section > .services-grid {
  max-width: none;
  width: calc(100% - 96px);
}

.services-grid {
  grid-template-columns: repeat(5, minmax(260px, 1fr));
}

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

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* Services section wide layout override */
#services {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

#services > .section-heading,
#services > .services-grid {
  max-width: none;
  width: calc(100% - 96px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

#services .services-grid {
  grid-template-columns: repeat(5, minmax(260px, 1fr));
}

/* Final alignment: nav and hero inline with Services section */
.nav,
.hero {
  max-width: none;
  width: calc(100% - 96px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.hero {
  padding-top: 92px;
  padding-bottom: 4px;
}

@media (max-width: 860px) {
  .nav,
  .hero {
    width: calc(100% - 36px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Final mobile card stacking override */
@media (max-width: 860px) {
  #services > .services-grid,
  .section-alt > .hosted-grid {
    width: calc(100% - 36px);
    grid-template-columns: 1fr !important;
  }

  #services .service-card,
  .hosted-grid .service-card {
    width: 100%;
  }
}

/* Final responsive card grid behavior:
   - Large screens: 5 across
   - Tablet/smaller: cards wrap based on available width
   - Card size is not stretched to full-width mobile blocks
*/
#services > .services-grid,
.section-alt > .hosted-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  gap: 18px;
}

@media (max-width: 1500px) {
  #services > .services-grid,
  .section-alt > .hosted-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 860px) {
  #services > .services-grid,
  .section-alt > .hosted-grid {
    width: calc(100% - 36px);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }

  #services .service-card,
  .hosted-grid .service-card {
    width: auto;
  }
}
