:root {
  --bg: #070b16;
  --bg-soft: #0f1630;
  --text: #ecf3ff;
  --muted: #b6c6df;
  --primary: #5b8cff;
  --secondary: #7a5cff;
  --accent: #3fd6c8;
  --card: rgba(20, 31, 62, 0.58);
  --border: rgba(255, 255, 255, 0.13);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 20% 20%, #111f45 0%, var(--bg) 52%);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 2;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 22, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 8px 14px rgba(91, 140, 255, 0.4));
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
  transition: 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
}

.hero {
  padding-top: 6rem;
}

.hero-content {
  max-width: 1000px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
}

.hero-logo {
  flex-shrink: 0;
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(91, 140, 255, 0.4));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin: 0;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.36);
}

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

.card {
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.45rem;
}

.about-grid,
.services-grid,
.tech-grid {
  display: grid;
  gap: 1rem;
}

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

.tech-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-icon {
  font-size: 1.8rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  max-width: 620px;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 16, 34, 0.9);
  color: var(--text);
  padding: 0.75rem;
  font: inherit;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.1rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.neural-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#neuralCanvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.55;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.3;
}

.glow-1 {
  width: 320px;
  height: 320px;
  background: #5b8cff;
  top: -70px;
  right: -90px;
}

.glow-2 {
  width: 260px;
  height: 260px;
  background: #3fd6c8;
  left: -90px;
  bottom: 30%;
}

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

  .nav-links {
    position: absolute;
    top: 74px;
    right: 4%;
    background: rgba(11, 16, 33, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.9rem;
    width: min(220px, 88vw);
    flex-direction: column;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

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

  .about-grid,
  .services-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-logo {
    width: 200px;
  }

  .hero-actions {
    justify-content: center;
  }
}