:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-soft: #10141c;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #aab3c2;
  --light-text: #111827;
  --light-muted: #536071;
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(16, 24, 40, 0.12);
  --cyan: #39d8ff;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --green: #42e8b4;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(57, 216, 255, 0.18), transparent 28%),
    radial-gradient(circle at 15% 38%, rgba(139, 92, 246, 0.14), transparent 26%),
    #080a0f;
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

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

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 15, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 15, 0.92);
  border-color: rgba(57, 216, 255, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border: 1px solid rgba(57, 216, 255, 0.45);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(57, 216, 255, 0.18), rgba(139, 92, 246, 0.16));
  color: #ffffff;
  font-size: 0.78rem;
  box-shadow: 0 0 28px rgba(57, 216, 255, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: #071016;
  background: #ffffff;
  font-weight: 750;
}

.site-nav .nav-cta:hover {
  color: #071016;
  background: var(--cyan);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 48px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 134px 0 72px;
}

.hero-copy,
.hero-visual,
.section-heading,
.about-panel,
.cta-panel {
  min-width: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 216, 255, 0.5), transparent);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-description,
.section-heading p,
.about-panel p,
.cta-panel p,
.site-footer p {
  color: var(--muted);
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.button-row.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  max-width: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #071016;
  box-shadow: 0 16px 46px rgba(57, 216, 255, 0.22);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.hero-stats div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual img {
  width: 100%;
  max-width: 100%;
  min-height: 520px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.floating-panel {
  position: absolute;
  width: min(230px, 48%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 10, 17, 0.76);
  backdrop-filter: blur(18px);
}

.floating-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.floating-panel strong {
  color: #ffffff;
  font-size: 0.96rem;
}

.panel-a {
  top: 9%;
  left: -22px;
}

.panel-b {
  right: -18px;
  bottom: 12%;
}

.section {
  padding: 104px max(20px, calc((100% - var(--max)) / 2));
}

.section-dark {
  background: transparent;
}

.section-light {
  background: #f5f7fb;
  color: var(--light-text);
}

.section-light .eyebrow {
  color: #006c7e;
}

.section-light .section-heading p,
.section-light .process-list p {
  color: var(--light-muted);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.services-grid,
.projects-grid,
.differentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.service-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 216, 255, 0.42);
  background: linear-gradient(180deg, rgba(57, 216, 255, 0.11), rgba(255, 255, 255, 0.04));
}

.service-card p,
.project-card p {
  color: var(--muted);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border: 1px solid rgba(57, 216, 255, 0.26);
  border-radius: 6px;
  background: rgba(57, 216, 255, 0.08);
  color: var(--cyan);
}

.icon-box svg,
.project-thumb svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 72px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  min-height: 74px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #ffffff;
}

.process-list span {
  display: grid;
  place-items: center;
  height: 100%;
  border-right: 1px solid var(--line-dark);
  color: #006c7e;
  font-weight: 850;
}

.process-list p {
  margin: 0;
  padding: 16px 20px;
  font-weight: 700;
}

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

.project-card {
  overflow: hidden;
}

.project-thumb {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 172px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(57, 216, 255, 0.22), rgba(139, 92, 246, 0.17)),
    linear-gradient(180deg, #141923, #0b0f16);
  color: rgba(255, 255, 255, 0.76);
}

.project-thumb span {
  font-size: 2.4rem;
  font-weight: 900;
}

.project-thumb svg {
  width: 42px;
  height: 42px;
}

.project-body {
  padding: 20px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-card button {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: not-allowed;
}

.differentials-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.differential {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #ffffff;
}

.differential span {
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.differential p {
  margin: 0;
  color: var(--light-text);
  font-weight: 750;
  line-height: 1.35;
}

.about-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.about-panel,
.cta-panel {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.about-panel {
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 216, 255, 0.1), transparent 38%),
    linear-gradient(225deg, rgba(139, 92, 246, 0.13), transparent 40%),
    rgba(255, 255, 255, 0.04);
}

.cta-section {
  padding-top: 0;
}

.cta-panel {
  padding: 78px 24px 96px;
}

.site-footer {
  padding: 56px max(20px, calc((100% - var(--max)) / 2)) 28px;
  border-top: 1px solid var(--line);
  background: #05070b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 38px;
}

.footer-brand {
  margin-bottom: 18px;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.site-footer nav {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 10, 15, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .site-nav .nav-cta {
    justify-content: center;
    margin: 0;
  }

  .hero,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 124px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    min-height: 380px;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
    min-height: 58px;
  }

  .hero {
    width: min(calc(100% - 28px), var(--max));
    min-height: auto;
    gap: 28px;
    padding: 104px 0 52px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .button-row,
  .button-row.center {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-stats,
  .services-grid,
  .projects-grid,
  .differentials-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    min-height: 320px;
  }

  .floating-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .section {
    padding: 72px 14px;
  }

  .section-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .process-list li {
    grid-template-columns: 56px 1fr;
  }

  .about-panel {
    padding: 30px 18px;
    text-align: left;
  }

  .cta-panel {
    padding: 54px 0 64px;
    text-align: left;
  }

  .footer-bottom {
    display: grid;
  }
}
