:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-light: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #38bdf8;
  --brand-dark: #0284c7;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  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(56, 189, 248, 0.22), transparent 34rem),
    linear-gradient(135deg, #020617 0%, var(--bg) 55%, #111827 100%);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
  font-size: 1.3rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.menu a:hover,
.menu a.active {
  color: white;
  background: rgba(56, 189, 248, 0.16);
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.25rem 3rem;
}

.page {
  display: none;
  min-height: 58vh;
  animation: fadeIn 180ms ease-out;
}

.page.active {
  display: grid;
  place-items: center;
}

.hero,
.content-card {
  width: min(100%, 1200px);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.92), rgba(17, 24, 39, 0.92));
  box-shadow: var(--shadow);
}

.service-detail-hero {
  position: relative;
  margin: calc(-1 * clamp(2rem, 5vw, 4rem)) calc(-1 * clamp(2rem, 5vw, 4rem)) 1.5rem;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
  max-height: 460px;
}

.service-detail-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.2) 75%, rgba(15, 23, 42, 0.6) 90%, rgba(15, 23, 42, 0.92) 100%);
  pointer-events: none;
}

.wide-card { width: min(100%, 1040px); }

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

h2 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 720px;
  margin: 1.4rem 0 2rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.lead-small,
.section-intro {
  max-width: 720px;
  margin: 1.25rem 0 1.5rem;
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  color: #00111c;
  background: var(--brand);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.22);
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.service-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgba(2, 6, 23, 0.35);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 116, 144, 0.16);
  box-shadow: 0 18px 48px rgba(56, 189, 248, 0.12);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(56, 189, 248, 0.14);
  font-size: 1.55rem;
}
.service-card {
  overflow: hidden;
}

.service-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.service-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem 1.35rem 1.85rem;
}
.card-link {
  margin-top: 1rem;
  color: var(--brand);
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
}

.back-link:hover { text-decoration: underline; }

.feature-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--text);
  background: rgba(2, 6, 23, 0.32);
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  color: #bae6fd;
  background: rgba(2, 6, 23, 0.7);
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  color: var(--muted);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle { display: inline-flex; }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .menu.open { display: flex; }

  .menu a { justify-content: center; }
}
