:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --panel: rgba(10, 16, 34, 0.72);
  --panel-strong: rgba(12, 18, 38, 0.92);
  --text: #f4fbff;
  --muted: #98a6c7;
  --line: rgba(124, 246, 196, 0.16);
  --gradient: linear-gradient(135deg, #68f3b2 0%, #35d4ff 52%, #1f68ff 100%);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --radius-sm: 18px;
  --container: calc(100% - 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(53, 212, 255, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(104, 243, 178, 0.12), transparent 26%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-shell {
  position: relative;
  isolation: isolate;
}

.ambient {
  position: fixed;
  inset: auto;
  z-index: -3;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  transition: transform 0.3s ease-out;
}

.ambient-one {
  top: 8%;
  left: 4%;
  width: 28rem;
  height: 28rem;
  background: rgba(56, 222, 181, 0.24);
}

.ambient-two {
  right: 0;
  bottom: 10%;
  width: 32rem;
  height: 32rem;
  background: rgba(53, 132, 255, 0.22);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
}

.section,
.footer {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  width: 100%;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 32px;
  background: rgba(5, 8, 22, 0.68);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand img,
.footer-brand img {
  width: 188px;
  height: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(14, 20, 40, 0.78);
  border: 1px solid rgba(124, 246, 196, 0.18);
  border-radius: 14px;
  color: var(--text);
  font-size: 1.45rem;
  cursor: pointer;
}

.topnav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.topnav a:hover,
.contact-details a:hover,
.footer-meta a:hover {
  color: #7cf6c4;
}

.section {
  padding: 48px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 72px;
  min-height: calc(100vh - 108px);
}

.hero-copy,
.hero-panel,
.service-card,
.benefit-card,
.approach-item,
.contact-card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
  overflow: hidden;
}

.hero-copy {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 640px;
}

.hero-copy::before,
.hero-panel::before,
.service-card::before,
.benefit-card::before,
.approach-item::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(104, 243, 178, 0.4), rgba(53, 212, 255, 0.28), transparent 70%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  transform: scale(1.08);
  filter: blur(3px) saturate(0.85);
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.hero-text,
.hero-message,
.section-heading p,
.service-card p,
.benefit-card p,
.contact-card p,
.footer p {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 12px;
  font-size: 1.12rem;
}

.hero-message {
  max-width: 46ch;
  margin: 0 0 28px;
  font-size: 1rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--gradient);
  color: #041019;
  box-shadow: 0 18px 38px rgba(53, 212, 255, 0.2);
}

.button-secondary,
.button-outline {
  background: rgba(14, 20, 40, 0.78);
  border-color: rgba(124, 246, 196, 0.18);
  color: var(--text);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.button-wide {
  min-width: 250px;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  align-content: center;
}

.panel-card {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: rgba(13, 19, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-card span,
.approach-item span {
  display: block;
  margin-bottom: 6px;
  color: #85f6c5;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-card strong,
.service-card h3,
.benefit-card strong {
  font-size: 1.05rem;
}

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

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.service-grid,
.benefit-grid,
.approach-grid,
.reference-grid {
  display: grid;
  gap: 18px;
}

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

.service-card {
  padding: 24px;
  min-height: 210px;
}

.service-card:nth-child(3n + 1) {
  grid-column: span 4;
}

.service-card:nth-child(3n + 2) {
  grid-column: span 4;
}

.service-card:nth-child(3n + 3) {
  grid-column: span 5;
}

.service-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(104, 243, 178, 0.2), rgba(53, 212, 255, 0.2));
  color: #8ff9cb;
  font-size: 1.4rem;
}

.service-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
}

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

.benefit-card,
.approach-item {
  padding: 24px;
}

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

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

.approach-item {
  min-height: 84px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  padding: 14px 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}

.approach-item::before {
  content: none;
}

.approach-item::after {
  content: none;
}

.approach-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(104, 243, 178, 0.2), rgba(53, 212, 255, 0.2));
  color: #8ff9cb;
  font-size: 1.35rem;
}

.reference-card {
  padding: 24px;
  min-height: 196px;
}

.reference-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(104, 243, 178, 0.2), rgba(53, 212, 255, 0.2));
  color: #8ff9cb;
  font-size: 1.35rem;
}

.reference-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
}

.contact-details p,
.footer-meta p,
.footer-copy p {
  margin: 0 0 8px;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  padding: 32px 0 64px;
  align-items: end;
}

.footer-brand p {
  max-width: 30ch;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .contact-card,
  .footer,
  .benefit-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

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

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

  .service-card,
  .service-card:nth-child(3n + 1),
  .service-card:nth-child(3n + 2),
  .service-card:nth-child(3n + 3) {
    grid-column: span 1;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    min-height: 560px;
  }

  .footer {
    align-items: start;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 18px;
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topnav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
  }

  .topbar.is-menu-open .topnav {
    display: flex;
  }

  .topnav a {
    padding: 12px 14px;
    background: rgba(14, 20, 40, 0.78);
    border: 0;
    border-radius: 14px;
  }

  .topbar > .button {
    display: none;
  }

  .brand img,
  .footer-brand img {
    width: 160px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-copy {
    min-height: 500px;
  }

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

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

  .section {
    padding: 36px 0;
  }
}

@media (max-width: 640px) {
  .section,
  .footer {
    width: calc(100% - 24px);
  }

  .topbar {
    padding: 16px 12px;
  }

  .topnav a {
    font-size: 0.9rem;
  }

  .hero-copy,
  .hero-panel,
  .service-card,
  .benefit-card,
  .approach-item,
  .contact-card {
    border-radius: 20px;
  }

  .hero-copy {
    padding: 24px;
    min-height: 460px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button,
  .button-wide,
  .button-small {
    width: 100%;
  }
}

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

  .reveal,
  .ambient,
  .button {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
