:root {
  color-scheme: dark;
  --bg: #05060a;
  --surface: rgba(9, 12, 24, 0.85);
  --surface-alt: rgba(15, 20, 40, 0.85);
  --text: #eff3ff;
  --muted: #a7b0c5;
  --accent: #77f7ff;
  --accent-2: #1c7dff;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: radial-gradient(
      circle at top,
      rgba(119, 247, 255, 0.25),
      transparent 55%
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(28, 125, 255, 0.25),
      transparent 45%
    ),
    #020305;
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--gradient);
  color: var(--text);
  line-height: 1.6;
  padding-top: clamp(5rem, 8vw, 6.5rem);
}

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

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  pointer-events: none;
  animation: drift 10s linear infinite;
  z-index: 0;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-80px);
  }
}

.hero {
  position: relative;
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 3rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  top: -20vw;
  left: -10vw;
  background: radial-gradient(
    circle at center,
    rgba(119, 247, 255, 0.35),
    transparent 60%
  );
  opacity: 0.35;
  filter: blur(80px);
  transform: translate(var(--pointer-x, 0), var(--pointer-y, 0));
  transition: transform 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 2rem));
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: rgba(5, 7, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.nav-toggle.active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
  color: var(--text);
}

.hero-subline {
  display: block;
  font-size: 0.8em;
  font-weight: 500;
  margin-top: 0.35em;
}

.hero-icon {
  width: 72px;
  height: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px rgba(119, 247, 255, 0.35));
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.button.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #05121f;
  box-shadow: 0 0 20px rgba(119, 247, 255, 0.35);
}

.button.secondary,
.button.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

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

.data-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 1.25rem;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.data-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stats article {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.01);
}

.stats strong {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.2rem;
}

.mini-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.mini-list li + li {
  margin-top: 0.25rem;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.services .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.services article {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 1.6rem;
  border-radius: 1.2rem;
  min-height: 230px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.services article:hover {
  border-color: rgba(119, 247, 255, 0.5);
  transform: translateY(-4px);
}

.tag {
  display: inline-flex;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.9rem;
}

.focus-wrap {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(7, 10, 20, 0.75);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pill-list,
.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-list li {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.checklist {
  flex-direction: column;
  gap: 0.4rem;
}

.checklist li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.checklist li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.approach {
  background: rgba(4, 6, 14, 0.85);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.approach-steps article {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.015);
}

.approach-steps span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--muted);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.about-cards article {
  padding: 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.contact {
  background: rgba(3, 6, 12, 0.92);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-info {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info .label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  gap: 0.5rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(2, 4, 10, 0.9);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(119, 247, 255, 0.4);
}

.contact-form button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 1rem;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(2, 3, 8, 0.95);
    flex-direction: column;
    padding: 1rem 2rem;
    border-radius: 0 0 1rem 1rem;
    border: 1px solid var(--border);
    transform-origin: top right;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav .button.ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 5rem;
  }

  .nav {
    width: calc(100% - 1rem);
    padding: 0.65rem 1rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .focus-wrap {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }
}
