:root {
  color-scheme: dark;
  --bg: #040a12;
  --bg-soft: rgba(7, 17, 30, 0.78);
  --panel: rgba(10, 22, 40, 0.86);
  --panel-strong: rgba(12, 28, 50, 0.96);
  --line: rgba(143, 167, 196, 0.18);
  --line-strong: rgba(93, 205, 255, 0.34);
  --text: #edf5ff;
  --muted: #9db0cc;
  --accent: #7be4ff;
  --accent-strong: #3ec8ff;
  --accent-glow: rgba(62, 200, 255, 0.22);
  --shadow: 0 30px 90px rgba(2, 8, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at 12% 8%, rgba(62, 200, 255, 0.16), transparent 20%),
    radial-gradient(circle at 88% 14%, rgba(67, 107, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #030911 0%, #07101b 46%, #091321 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 1rem;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(6, 14, 25, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent-strong) 75%, rgba(62, 200, 255, 0.3) 100%);
  box-shadow: 0 0 18px var(--accent-glow);
}

.brand-text {
  display: grid;
  gap: 0.12rem;
}

.brand-text strong,
h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.2rem;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  width: 1.55rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4.5rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 86%);
  animation: drift 16s linear infinite;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
}

.hero-glow-one {
  width: 20rem;
  height: 20rem;
  top: -5rem;
  left: -4rem;
  background: rgba(62, 200, 255, 0.18);
}

.hero-glow-two {
  width: 24rem;
  height: 24rem;
  right: -6rem;
  top: 3rem;
  background: rgba(67, 107, 255, 0.14);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy,
.hero-visual,
.service-card,
.about-card,
.contact-card,
.contact-form {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.9), rgba(8, 16, 28, 0.82));
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual,
.about-card,
.contact-card,
.contact-form {
  border-radius: 32px;
}

.hero-copy {
  padding: 4rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

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

h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.9rem, 5vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

.hero-text {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #03131f;
  background: linear-gradient(135deg, var(--accent), #92deff);
  box-shadow: 0 0 28px rgba(123, 228, 255, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 0 34px rgba(123, 228, 255, 0.3);
}

.button-secondary {
  background: rgba(7, 16, 28, 0.56);
  color: var(--text);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--line-strong);
}

.hero-visual {
  position: relative;
  min-height: 430px;
  padding: 1.5rem;
  overflow: hidden;
}

.visual-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 398px;
  border-radius: 26px;
  background:
    radial-gradient(circle at center, rgba(62, 200, 255, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(8, 17, 30, 0.88), rgba(5, 11, 20, 0.96));
  border: 1px solid rgba(92, 173, 224, 0.16);
}

.visual-orbit,
.visual-line {
  position: absolute;
}

.visual-orbit {
  border: 1px solid rgba(98, 188, 255, 0.14);
  border-radius: 999px;
}

.visual-orbit-a {
  inset: 14% 17%;
  animation: spin 18s linear infinite;
}

.visual-orbit-b {
  inset: 24% 28%;
  animation: spinReverse 16s linear infinite;
}

.visual-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 228, 255, 0.6), transparent);
  transform-origin: center;
}

.visual-line-a {
  top: 50%;
  left: 16%;
  width: 68%;
}

.visual-line-b {
  top: 38%;
  left: 22%;
  width: 56%;
  transform: rotate(42deg);
}

.visual-line-c {
  top: 61%;
  left: 22%;
  width: 56%;
  transform: rotate(-42deg);
}

.visual-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(123, 228, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 18, 32, 0.88);
  box-shadow: 0 0 20px rgba(62, 200, 255, 0.08);
  font-size: 0.9rem;
  color: #dbeeff;
  backdrop-filter: blur(12px);
}

.node-core {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 148px;
  font-weight: 700;
}

.node-top {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.node-right {
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
}

.node-bottom {
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.node-left {
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
}

.section {
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-card {
  border-radius: 28px;
  padding: 1.7rem;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 100px rgba(2, 8, 23, 0.56);
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(123, 228, 255, 0.2);
  color: var(--accent);
  background: rgba(11, 24, 42, 0.84);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.28rem;
}

.service-card p,
.about-card p,
.contact-list span,
.contact-form span {
  color: var(--muted);
  line-height: 1.8;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.expertise-chip {
  padding: 1.2rem 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.9), rgba(8, 15, 27, 0.78));
  box-shadow: 0 20px 50px rgba(2, 8, 23, 0.25);
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-card,
.contact-card,
.contact-form {
  padding: 2rem;
}

.about-card p {
  font-size: 1.04rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.28rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  transition: color 180ms ease;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 14, 26, 0.92);
  color: var(--text);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(62, 200, 255, 0.1);
}

.site-footer {
  padding: 1rem 0 2.2rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

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

.reveal-delay {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 260ms;
}

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

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, 8px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@media (max-width: 1040px) {
  .hero-layout,
  .about-layout,
  .contact-layout,
  .services-grid,
  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(6, 14, 25, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-shell {
    position: relative;
  }

  .hero-layout,
  .services-grid,
  .expertise-grid,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-copy,
  .hero-visual,
  .about-card,
  .contact-card,
  .contact-form {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .visual-shell {
    min-height: 308px;
  }

  .node-left,
  .node-right {
    top: auto;
    bottom: 12%;
    transform: none;
  }

  .node-left {
    left: 8%;
  }

  .node-right {
    right: 8%;
  }

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

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

  .hero-grid,
  .visual-orbit-a,
  .visual-orbit-b,
  .reveal,
  .button,
  .service-card,
  .site-nav a::after {
    animation: none;
    transition: none;
  }

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