:root {
  --ink: #eef7ff;
  --muted: #9fb1c6;
  --deep: #030811;
  --navy: #09172a;
  --panel: #0d2037;
  --line: rgba(183, 217, 232, 0.18);
  --cyan: #11cbd7;
  --cyan-strong: #08aebc;
  --gold: #d89a16;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--deep);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
  z-index: 10;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--cyan);
  background: var(--deep);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 8, 17, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(3, 8, 17, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 138px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: #d8e7f4;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.header-cta {
  padding: 10px 16px;
  background: rgba(17, 203, 215, 0.12);
  color: var(--cyan);
}

.btn {
  padding: 13px 18px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn svg,
.header-cta svg,
.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #1d8fca);
  color: #001015;
  box-shadow: 0 16px 36px rgba(17, 203, 215, 0.2);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

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

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px 20px 72px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/hero-tech-workstation.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 8, 17, 0.88) 0%, rgba(3, 8, 17, 0.56) 44%, rgba(3, 8, 17, 0.24) 100%),
    linear-gradient(180deg, rgba(3, 8, 17, 0.1) 0%, var(--deep) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: 5.9rem;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero h1 span {
  display: inline;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: #d7e3ee;
  font-size: 1.14rem;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 46px;
}

.hero-stats span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(8, 20, 34, 0.7);
  color: #cfdeeb;
  transition: transform 180ms ease, border-color 180ms ease;
}

.hero-stats span:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 203, 215, 0.55);
}

.hero-stats strong {
  color: var(--white);
}

.section {
  padding: 92px 20px;
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-width: 0;
}

.intro-band {
  padding: 42px 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(17, 203, 215, 0.2), transparent 28%),
    linear-gradient(90deg, #07111e, #0a2435 50%, #07111e);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.split-heading,
.process-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.process-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: 3.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.intro-grid p,
.split-heading > p,
.process-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.home-panel {
  display: grid;
  gap: 22px;
}

.home-panel p {
  margin: 0;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-stack span {
  border: 1px solid rgba(17, 203, 215, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #dff7fb;
  padding: 9px 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.project-card,
.process-list li,
.contact-form {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 37, 63, 0.84), rgba(7, 15, 26, 0.92));
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 274px;
  padding: 26px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(17, 203, 215, 0.48);
}

.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--cyan);
}

.service-card h3,
.project-body h3,
.process-list h3 {
  margin: 22px 0 10px;
  color: var(--white);
  font-size: 1.24rem;
}

.service-card p,
.project-body span,
.process-list p,
.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.work {
  background:
    linear-gradient(180deg, var(--deep), #08192b 48%, var(--deep));
}

.split-heading {
  max-width: none;
  align-items: end;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.project-card {
  overflow: hidden;
}

.project-card {
  transition: transform 220ms ease, border-color 220ms ease;
}

.project-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 420ms ease;
}

.project-image-contain {
  object-fit: contain;
  padding: 16px;
  background:
    radial-gradient(circle at 70% 24%, rgba(17, 203, 215, 0.12), transparent 32%),
    #eef4f7;
}

.project-card:hover .project-image {
  transform: scale(1.04);
}

.project-body {
  padding: 22px;
}

.project-body p {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.testimonials {
  background:
    radial-gradient(circle at 80% 20%, rgba(216, 154, 22, 0.16), transparent 30%),
    linear-gradient(180deg, #06111f, #08192b);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 44px;
  align-items: center;
}

.testimonial-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.carousel {
  position: relative;
}

.testimonial-track {
  position: relative;
  min-height: 320px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17, 203, 215, 0.13), transparent 38%),
    rgba(7, 15, 26, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}

.testimonial-card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.testimonial-card figcaption {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.testimonial-card strong {
  color: var(--cyan);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.carousel-controls button,
.carousel-dots button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
}

.carousel-controls > button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 32px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
}

.carousel-dots button.is-active {
  background: var(--cyan);
}

.process-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px;
}

.process-list span {
  color: var(--gold);
  font-weight: 900;
  font-size: 0.9rem;
}

.process-list h3 {
  margin-top: 0;
}

.contact {
  background:
    linear-gradient(180deg, rgba(8, 20, 34, 0.82), rgba(3, 8, 17, 1)),
    url("assets/maximusweb-logo-full.png") center / 760px no-repeat;
}

.contact-copy img {
  width: 170px;
  margin-bottom: 22px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a,
.contact-links span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #dbeaf5;
  font-weight: 700;
}

.contact-links svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(4, 11, 20, 0.78);
  color: var(--white);
  padding: 13px 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(17, 203, 215, 0.16);
}

.contact-form textarea {
  resize: vertical;
}

.hidden-field {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px;
  background: #02060c;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(3, 8, 17, 0.9), rgba(3, 8, 17, 0.64)),
    url("assets/hero-tech-workstation.jpg") center / cover;
}

.thank-you-card {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  background: rgba(3, 8, 17, 0.86);
  box-shadow: var(--shadow);
  padding: 38px;
}

.thank-you-card img {
  width: 170px;
  margin-bottom: 22px;
}

.thank-you-card h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.thank-you-card p:not(.section-kicker) {
  margin: 18px 0 26px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}

.footer-inner a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--cyan);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: riseIn 620ms ease both;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-18px, -10px, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 3px solid rgba(17, 203, 215, 0.5);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
    order: 3;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(3, 8, 17, 0.96);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .header-cta {
    justify-self: end;
    order: 2;
  }

  .intro-grid,
  .split-heading,
  .process-grid,
  .contact-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .hero h1 {
    max-width: 680px;
    font-size: 4.35rem;
  }

  .intro-grid h2,
  .section-heading h2,
  .process-copy h2,
  .contact-copy h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 640px) {
  body {
    width: 100%;
  }

  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 8px;
    gap: 8px;
  }

  .brand img {
    width: 132px;
    height: 44px;
  }

  .header-cta span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 112px 16px 54px;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 1.88rem;
    line-height: 0.98;
  }

  .hero h1 span {
    display: block;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 1rem;
  }

  .hero-actions,
  .hero-stats {
    max-width: 340px;
  }

  .intro-grid h2,
  .section-heading h2,
  .process-copy h2,
  .contact-copy h2 {
    max-width: 100%;
    font-size: 1.88rem;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 8, 17, 0.96), rgba(3, 8, 17, 0.62)),
      linear-gradient(180deg, rgba(3, 8, 17, 0.32), var(--deep));
  }

  .hero-actions,
  .hero-stats {
    display: grid;
  }

  .section {
    padding: 68px 16px;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    width: 100%;
    max-width: 340px;
    margin-left: 0;
    margin-right: 0;
  }

  .btn,
  .hero-stats span,
  .service-card,
  .project-card,
  .process-list li,
  .contact-form,
  .testimonial-card {
    max-width: 340px;
  }

  .intro-band {
    padding: 34px 16px;
  }

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

  .project-image {
    height: 210px;
  }

  .testimonial-track {
    min-height: 390px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-card blockquote {
    font-size: 1.35rem;
  }

  .contact-form {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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