:root {
  color-scheme: dark;
  --bg: #060b14;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7fbff;
  --muted: #a9b5c8;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #33f0cf;
  --accent-2: #6aa8ff;
  --accent-3: #f6c85f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 22% 12%, rgba(51, 240, 207, 0.22), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(106, 168, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 52% 70%, rgba(246, 200, 95, 0.08), transparent 30rem),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto, auto;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(120deg, rgba(51, 240, 207, 0.08), transparent 22%),
    linear-gradient(260deg, rgba(106, 168, 255, 0.08), transparent 24%);
  animation: atmosphere 12s ease-in-out infinite alternate;
}

.background-glow {
  position: fixed;
  inset: auto -18rem -22rem auto;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 240, 207, 0.16), transparent 64%);
  filter: blur(24px);
  animation: floatGlow 9s ease-in-out infinite;
}

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

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(51, 240, 207, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(51, 240, 207, 0.24), rgba(106, 168, 255, 0.22));
  box-shadow: 0 0 30px rgba(51, 240, 207, 0.24), inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.site-nav {
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(51, 240, 207, 0.35);
  border-radius: 8px;
  background: rgba(51, 240, 207, 0.1);
  color: var(--text);
}

.hero {
  padding: 88px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6.2vw, 6.7rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4vw, 4.45rem);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.hero-text,
.section-heading,
.security-panel p,
.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-text {
  max-width: 690px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  border: 1px solid #f7fbff;
  background: #f7fbff;
  color: #07101b;
  box-shadow: 0 16px 44px rgba(255, 255, 255, 0.12);
}

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

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 70px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow), inset 0 0 90px rgba(51, 240, 207, 0.06);
}

.hero-animation {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-animation::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(6, 11, 20, 0.95) 0%, rgba(6, 11, 20, 0.78) 42%, rgba(6, 11, 20, 0.28) 100%);
}

.mesh-grid {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(800px) rotateX(58deg) translateY(80px);
  transform-origin: center bottom;
  animation: gridDrift 14s linear infinite;
}

.mesh-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.mesh-lines path {
  fill: none;
  stroke: rgba(51, 240, 207, 0.34);
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  stroke-linecap: round;
  stroke-width: 2;
  animation: drawLine 8s ease-in-out infinite;
}

.mesh-lines path:nth-child(2),
.mesh-lines path:nth-child(4) {
  stroke: rgba(106, 168, 255, 0.26);
  animation-delay: 1.2s;
}

.mesh-lines path:nth-child(3) {
  animation-delay: 2.1s;
}

.mesh-orb {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.48;
  mix-blend-mode: screen;
}

.orb-one {
  top: -12rem;
  right: 8%;
  background: radial-gradient(circle, rgba(51, 240, 207, 0.34), transparent 66%);
  animation: orbFloatOne 11s ease-in-out infinite;
}

.orb-two {
  right: -10rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(106, 168, 255, 0.34), transparent 68%);
  animation: orbFloatTwo 13s ease-in-out infinite;
}

.orb-three {
  top: 32%;
  right: 28%;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(246, 200, 95, 0.16), transparent 70%);
  animation: orbFloatThree 9s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.metrics div {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.metrics span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section,
.split-section {
  padding: 110px 0 0;
}

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

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.work-item,
.security-panel,
.timeline article,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.service-card,
.work-item {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.service-card::before,
.work-item::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(51, 240, 207, 0.12), transparent 44%);
  opacity: 0;
  transition: opacity 240ms ease;
}

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

.service-card p,
.work-item p,
.timeline p {
  position: relative;
  color: var(--muted);
  line-height: 1.7;
}

.service-card h3,
.work-item h3 {
  position: relative;
}

.card-number {
  position: relative;
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--accent);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: 22px;
}

.security-panel {
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(51, 240, 207, 0.14), transparent 54%),
    var(--panel);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #dbe4f4;
  line-height: 1.5;
}

.check-list li::before {
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 18px;
  height: 18px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(51, 240, 207, 0.45);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  padding: 24px;
}

.timeline span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-section {
  padding-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.82fr);
  gap: 34px;
  align-items: start;
  margin: 110px 0 42px;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(106, 168, 255, 0.16), transparent 54%),
    var(--panel-strong);
}

.contact-copy {
  max-width: 560px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #dce7f7;
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 11, 20, 0.76);
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(51, 240, 207, 0.72);
  box-shadow: 0 0 0 4px rgba(51, 240, 207, 0.12);
}

.full-field,
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@keyframes atmosphere {
  to {
    transform: translate3d(0, -28px, 0) scale(1.04);
  }
}

@keyframes floatGlow {
  50% {
    transform: translate3d(-10rem, -5rem, 0) scale(1.08);
  }
}

@keyframes drawLine {
  0% {
    stroke-dashoffset: 420;
    opacity: 0;
  }

  18%,
  72% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -420;
    opacity: 0;
  }
}

@keyframes gridDrift {
  to {
    background-position: 0 58px, 58px 0;
  }
}

@keyframes orbFloatOne {
  50% {
    transform: translate3d(-5rem, 5rem, 0) scale(1.08);
  }
}

@keyframes orbFloatTwo {
  50% {
    transform: translate3d(-6rem, -4rem, 0) scale(1.12);
  }
}

@keyframes orbFloatThree {
  50% {
    transform: translate3d(4rem, -3rem, 0) scale(0.92);
  }
}

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

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

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 28px, 760px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 18px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .hero {
    padding-top: 54px;
  }

  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 560px;
    padding: 48px;
  }

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

  .metrics div:nth-child(2) {
    border-right: 0;
  }

  .metrics div:nth-child(1),
  .metrics div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 560px);
  }

  .site-nav {
    font-size: 0.84rem;
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 520px;
    padding: 28px;
  }

  .metrics,
  .service-grid,
  .work-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .metrics div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .section,
  .split-section {
    padding-top: 72px;
  }

  .service-card,
  .work-item,
  .security-panel,
  .contact-section {
    padding: 24px;
  }
}

@media (max-width: 460px) {
  .hero-stage {
    min-height: 500px;
  }
}
