:root {
  --ink: #07111f;
  --ink-soft: #203247;
  --muted: #65758b;
  --line: rgba(12, 31, 54, 0.12);
  --surface: #ffffff;
  --surface-alt: #f5f9fc;
  --cyan: #12cde4;
  --blue: #0b6fb1;
  --green: #18c98b;
  --gold: #f4b94d;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(6, 22, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 128px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  pointer-events: none;
  opacity: 0.18;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(18, 205, 228, 0.75), rgba(24, 201, 139, 0.25) 42%, transparent 70%);
  filter: blur(24px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(3, 9, 17, 0.88), rgba(3, 9, 17, 0.48));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-shell {
  width: min(1880px, calc(100% - 40px));
  min-height: 96px;
  padding: 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 270px;
}

.brand img {
  width: 260px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.brand-fallback {
  display: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.25vw, 42px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 900;
  margin-left: auto;
  margin-right: auto;
}

.site-nav a {
  position: relative;
  padding: 36px 0;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover {
  color: #fff;
  background: transparent;
  transform: translateY(-2px);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 176px;
  margin-left: 22px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 18px 36px rgba(18, 205, 228, 0.22);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.header-cta:hover {
  color: #fff;
  filter: saturate(1.08);
  box-shadow: 0 22px 42px rgba(18, 205, 228, 0.32);
  transform: translateY(-2px);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 150px 7vw 76px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 17, 31, 0.95), rgba(9, 42, 64, 0.9)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=80") center/cover;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  content: "";
  background: linear-gradient(transparent, var(--surface));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 930px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius);
  overflow: hidden;
  font-weight: 800;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: translateX(-130%);
  transition: transform 420ms ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::before {
  transform: translateX(130%);
}

.btn.primary {
  color: #03111d;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 16px 38px rgba(18, 205, 228, 0.28);
}

.btn.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats div {
  padding: 20px;
  background: rgba(7, 17, 31, 0.54);
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  text-transform: uppercase;
}

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

.grid-plane {
  position: absolute;
  right: -9vw;
  bottom: -10vw;
  width: 58vw;
  height: 58vw;
  background-image:
    linear-gradient(rgba(18, 205, 228, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 205, 228, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(650px) rotateX(62deg) rotateZ(-21deg);
  animation: gridFloat 10s ease-in-out infinite alternate;
}

.signal-ring {
  position: absolute;
  right: 11vw;
  top: 24vh;
  border: 1px solid rgba(18, 205, 228, 0.32);
  border-radius: 50%;
  animation: pulseRing 4s ease-out infinite;
}

.ring-one {
  width: 160px;
  height: 160px;
}

.ring-two {
  width: 270px;
  height: 270px;
  animation-delay: 650ms;
}

.ring-three {
  width: 390px;
  height: 390px;
  animation-delay: 1200ms;
}

.code-panel {
  position: absolute;
  right: 8vw;
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  animation: floatPanel 5s ease-in-out infinite;
}

.code-panel span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.code-panel strong {
  color: #fff;
  font-size: 1.5rem;
}

.panel-one {
  top: 34vh;
}

.panel-two {
  top: 54vh;
  right: 20vw;
  animation-delay: 900ms;
}

.marquee-section {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface-alt);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee span {
  padding: 20px 32px;
  color: var(--ink-soft);
  font-weight: 800;
  white-space: nowrap;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  padding: 96px 0;
}

.split-intro,
.tech-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 58px;
  align-items: end;
}

.split-intro p:last-child,
.tech-section p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid,
.work-grid {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 96px;
}

.service-card,
.work-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(4, 24, 43, 0.06);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card::before,
.work-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(18, 205, 228, 0.14), transparent 42%, rgba(24, 201, 139, 0.12));
  opacity: 0;
  transition: opacity 220ms ease;
}

.service-card > *,
.work-card > * {
  position: relative;
}

.service-card:hover,
.work-card:hover {
  border-color: rgba(18, 205, 228, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.service-card:hover::before,
.work-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: var(--radius);
  color: #03111d;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 900;
}

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

.service-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.service-card li {
  color: var(--ink-soft);
  font-weight: 700;
}

.service-card li::before {
  content: "+ ";
  color: var(--green);
}

.dark-band {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(6, 50, 78, 0.92)),
    url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=80") center/cover fixed;
}

.band-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.metric {
  padding: 26px;
  background: rgba(7, 17, 31, 0.58);
  transition: background 180ms ease, transform 180ms ease;
}

.metric:hover {
  background: rgba(18, 205, 228, 0.13);
  transform: translateY(-4px);
}

.metric strong {
  display: block;
  margin-bottom: 40px;
  color: var(--cyan);
  font-size: 2.2rem;
}

.metric span {
  color: rgba(255, 255, 255, 0.74);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.work-grid {
  margin-bottom: 0;
}

.work-card {
  min-height: 270px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.62)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=80") center/cover;
}

.work-card:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.62)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80") center/cover;
}

.work-card:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.62)),
    url("https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?auto=format&fit=crop&w=900&q=80") center/cover;
}

.work-card:nth-child(4) {
  background:
    linear-gradient(145deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.62)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=900&q=80") center/cover;
}

.work-card span {
  display: inline-flex;
  margin-bottom: 78px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.work-card p {
  color: rgba(255, 255, 255, 0.72);
}

.process {
  padding-top: 116px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 30px 24px 0 0;
}

.timeline-item::before {
  position: absolute;
  top: -7px;
  left: 0;
  width: 13px;
  height: 13px;
  content: "";
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 9px rgba(18, 205, 228, 0.12);
}

.timeline-item span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.timeline-item p {
  color: var(--muted);
}

.tech-section {
  align-items: center;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-cloud span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-weight: 800;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.tech-cloud span:hover {
  color: #03111d;
  background: linear-gradient(135deg, rgba(18, 205, 228, 0.38), rgba(24, 201, 139, 0.32));
  transform: translateY(-4px) rotate(-1deg);
}

.contact-section {
  padding: 0 18px 96px;
}

.contact-panel {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin-inline: auto;
  padding: 42px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(9, 84, 122, 0.86)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 760px;
}

.contact-panel p:last-child {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(140deg, rgba(7, 17, 31, 0.98), rgba(7, 32, 52, 0.96)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.footer-main {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 0.95fr 1.05fr;
  gap: 38px;
  margin-inline: auto;
  padding: 72px 0 44px;
}

.footer-brand,
.footer-col {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-brand img {
  width: 270px;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p,
.footer-address p {
  margin: 0;
}

.footer-col h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
}

.footer-col a,
.footer-email {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-col a:hover,
.footer-email:hover,
.footer-bottom a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-address strong {
  color: #fff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-inline: auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom a {
  color: #fff;
  font-weight: 900;
  transition: color 180ms ease, transform 180ms ease;
}

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

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

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes gridFloat {
  from {
    transform: perspective(650px) rotateX(62deg) rotateZ(-21deg) translateY(0);
  }
  to {
    transform: perspective(650px) rotateX(62deg) rotateZ(-21deg) translateY(-34px);
  }
}

@keyframes pulseRing {
  0% {
    opacity: 0.8;
    transform: scale(0.72);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@media (max-width: 980px) {
  .site-header {
    top: 0;
    width: 100%;
  }

  .nav-shell {
    width: calc(100% - 28px);
    min-height: 74px;
    padding: 0 2px;
  }

  .brand img {
    width: 210px;
  }

  .brand-fallback {
    color: var(--blue);
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(7, 17, 31, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: 0 22px 46px rgba(7, 17, 31, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav a {
    padding: 15px 10px;
  }

  .site-nav a:hover {
    color: var(--green);
    background: rgba(24, 201, 139, 0.08);
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .split-intro,
  .band-inner,
  .tech-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

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

@media (max-width: 680px) {
  .site-header {
    top: 0;
    width: 100%;
  }

  .nav-shell {
    width: calc(100% - 20px);
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 188px;
  }

  .hero {
    min-height: 88vh;
    padding: 122px 20px 54px;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.2rem);
  }

  .hero-stats,
  .service-grid,
  .work-grid,
  .metric-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 16px;
  }

  .section {
    padding: 68px 0;
  }

  .service-grid {
    margin-bottom: 68px;
  }

  .service-card,
  .work-card {
    min-height: auto;
    padding: 24px;
  }

  .work-card span {
    margin-bottom: 46px;
  }

  .code-panel,
  .signal-ring {
    display: none;
  }

  .grid-plane {
    width: 112vw;
    height: 112vw;
    opacity: 0.38;
  }

  .contact-panel {
    padding: 28px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .site-footer {
    display: block;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 54px;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-brand img {
    width: 230px;
  }
}

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