:root {
  --bg: #05070c;
  --panel: rgba(10, 18, 28, 0.76);
  --panel-strong: rgba(14, 25, 39, 0.94);
  --line: rgba(130, 210, 230, 0.18);
  --line-strong: rgba(45, 214, 210, 0.58);
  --text: #f4fbff;
  --muted: #a7b6c5;
  --muted-2: #718294;
  --cyan: #2dd6d2;
  --blue: #2878ff;
  --lime: #95f25b;
  --amber: #ffca5f;
  --coral: #ff6f61;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --radius-lg: 18px;
  --radius-md: 12px;
  --header-height: 72px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(45, 214, 210, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(40, 120, 255, 0.16), transparent 28%),
    radial-gradient(circle at 74% 84%, rgba(255, 111, 97, 0.13), transparent 30%),
    linear-gradient(135deg, #03060b 0%, #07111d 46%, #090c12 100%);
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 214, 210, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 214, 210, 0.045) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 47%, rgba(149, 242, 91, 0.06) 48% 49%, transparent 50% 100%);
  background-size: 62px 62px, 62px 62px, 220px 220px;
  mask-image: radial-gradient(circle at 50% 20%, black, rgba(0, 0, 0, 0.68) 42%, transparent 86%);
  transform: perspective(900px) rotateX(58deg) translateY(-14%);
  transform-origin: top;
  animation: advancedGrid 18s linear infinite;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -24%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(45, 214, 210, 0.22), transparent 34%),
    radial-gradient(ellipse at 74% 18%, rgba(40, 120, 255, 0.24), transparent 30%),
    radial-gradient(ellipse at 82% 82%, rgba(255, 202, 95, 0.10), transparent 28%),
    conic-gradient(from 130deg at 50% 50%, transparent 0 20%, rgba(45, 214, 210, 0.12), transparent 36% 58%, rgba(255, 111, 97, 0.10), transparent 74% 100%);
  filter: blur(22px) saturate(1.24);
  opacity: 0.72;
  animation: auroraShift 16s ease-in-out infinite alternate;
  z-index: 0;
}

img,
svg {
  max-width: 100%;
}

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

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

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.92;
}

.site-header,
.section,
.site-footer {
  position: relative;
  width: min(calc(100% - 36px), var(--max-width));
  margin-inline: auto;
  z-index: 3;
}

.site-header {
  height: var(--header-height);
  margin-top: 14px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 12px;
  z-index: 50;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 12, 20, 0.78);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
}

.brand-logo {
  width: 150px;
  height: auto;
  filter: brightness(2.55) contrast(1.08) saturate(1.05) drop-shadow(0 0 14px rgba(45, 214, 210, 0.30));
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}

.nav-link {
  position: relative;
  color: rgba(244, 251, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 720;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(45, 214, 210, 0.46);
  border-radius: 999px;
  background: rgba(45, 214, 210, 0.08);
  color: #ffffff;
  font-weight: 820;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 24, 38, 0.86);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--cyan);
  border-radius: 999px;
}

.section {
  position: relative;
  z-index: 3;
  scroll-margin-top: 102px;
}

.hero {
  min-height: clamp(620px, calc(100vh - 104px), 720px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: 26px;
  align-items: center;
  padding: 46px 34px 28px;
  border: 1px solid rgba(130, 210, 230, 0.14);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background:
    linear-gradient(180deg, rgba(9, 18, 30, 0.36), rgba(9, 18, 30, 0.72)),
    radial-gradient(circle at 72% 42%, rgba(40, 120, 255, 0.16), transparent 42%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -180px;
  width: 620px;
  height: 300px;
  border: 1px solid rgba(45, 214, 210, 0.24);
  border-radius: 50%;
  transform: rotate(-8deg);
  box-shadow: 0 0 50px rgba(45, 214, 210, 0.12);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 880;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(149, 242, 91, 0.25);
  border-radius: 999px;
  background: rgba(149, 242, 91, 0.07);
  color: rgba(244, 251, 255, 0.90);
  font-size: 0.8rem;
  font-weight: 760;
}

.partner-badge img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(45, 214, 210, 0.42));
}

.hero h1,
.section-heading h2,
.vectec-copy h2,
.contact-copy h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(2.25rem, 4.1vw, 4.15rem);
  line-height: 1.02;
  font-weight: 920;
}

.hero-text {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(234, 244, 252, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.64;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 840;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(100deg, #19b8d2, #2878ff 54%, #ff6f61 120%);
  box-shadow: 0 16px 32px rgba(40, 120, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(130, 210, 230, 0.22);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-proof span {
  padding: 7px 10px;
  border: 1px solid rgba(130, 210, 230, 0.16);
  border-radius: 999px;
  color: #dbeaf4;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.79rem;
  font-weight: 720;
}

.hero-console {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(130, 210, 230, 0.20);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 31, 48, 0.86), rgba(7, 13, 23, 0.92)),
    radial-gradient(circle at 16% 18%, rgba(45, 214, 210, 0.18), transparent 36%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(130, 210, 230, 0.15);
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.console-top span:nth-child(2) {
  background: var(--amber);
}

.console-top span:nth-child(3) {
  background: var(--lime);
}

.console-top strong {
  margin-left: auto;
  color: #d9edf8;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.message-stream {
  min-height: 232px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 20px 0;
}

.type-message {
  min-height: 58px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(45, 214, 210, 0.18);
  border-radius: 14px;
  color: #eaf8ff;
  background: rgba(255, 255, 255, 0.055);
  line-height: 1.52;
  box-shadow: inset 0 0 24px rgba(45, 214, 210, 0.045);
}

.type-message::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--lime);
  vertical-align: -0.18em;
  animation: caretBlink 0.8s steps(1) infinite;
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.console-metrics article {
  padding: 13px;
  border: 1px solid rgba(130, 210, 230, 0.14);
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.48);
}

.console-metrics span,
.console-metrics small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.console-metrics strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 1.45rem;
  line-height: 1;
}

.solutions,
.projects,
.vectec,
.contact {
  margin-top: 18px;
  padding: 32px;
  border: 1px solid rgba(130, 210, 230, 0.14);
  border-radius: 22px;
  background: rgba(7, 14, 24, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2,
.vectec-copy h2,
.contact-copy h2 {
  max-width: 780px;
  font-size: clamp(1.75rem, 3.1vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
}

.solutions-grid,
.projects-grid {
  display: grid;
  gap: 14px;
}

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

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

.solution-card,
.project-card,
.vectec-card,
.contact-form {
  position: relative;
  border: 1px solid rgba(130, 210, 230, 0.15);
  background:
    linear-gradient(180deg, rgba(20, 36, 55, 0.58), rgba(8, 15, 25, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.solution-card::after,
.project-card::after,
.vectec-card::after,
.contact-form::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(45, 214, 210, 0.14), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.solution-card:hover::after,
.project-card:hover::after,
.vectec-card:hover::after,
.contact-form:hover::after {
  opacity: 1;
}

.solution-card {
  min-height: 218px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.solution-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(45, 214, 210, 0.34);
  border-radius: 16px;
  color: #dffeff;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(45, 214, 210, 0.30), rgba(149, 242, 91, 0.20));
  box-shadow: 0 0 26px rgba(45, 214, 210, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.solution-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(45, 214, 210, 0.44));
}

.solution-card h3,
.project-card h3,
.vectec-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.solution-card p,
.project-card p,
.vectec-copy p,
.contact-copy p,
.form-note {
  color: var(--muted);
  line-height: 1.6;
}

.project-card {
  min-height: 330px;
  padding: 22px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.project-head small,
.vectec-card span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(45, 214, 210, 0.22);
  border-radius: 999px;
  color: #dffbff;
  background: rgba(45, 214, 210, 0.07);
  font-size: 0.74rem;
  font-weight: 820;
}

.project-head strong {
  color: var(--lime);
  font-size: 1.2rem;
}

.project-card p {
  margin: 0 0 18px;
}

.stacked-progress {
  display: grid;
  gap: 15px;
  margin-top: auto;
}

.progress-row {
  margin-top: auto;
}

.progress-row span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #e7f8ff;
  font-size: 0.86rem;
  font-weight: 760;
}

.progress-row em {
  color: var(--lime);
  font-style: normal;
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress b {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
  box-shadow: 0 0 18px rgba(45, 214, 210, 0.32);
  transform-origin: left;
}

.vectec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 20px;
  align-items: stretch;
}

.vectec-copy,
.contact-copy {
  align-self: center;
}

.vectec-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.vectec-card h3 {
  font-size: 1.7rem;
}

.vectec-card a {
  color: #f8fdff;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.72fr);
  gap: 24px;
  margin-bottom: 18px;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  color: var(--cyan);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 860;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(130, 210, 230, 0.16);
  color: #ffffff;
  background: rgba(4, 9, 16, 0.70);
  border-radius: 10px;
  outline: 0;
  padding: 12px 13px;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(45, 214, 210, 0.72);
  box-shadow: 0 0 0 4px rgba(45, 214, 210, 0.10);
  background: rgba(8, 16, 27, 0.94);
}

.contact-form .btn {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
}

.site-footer {
  min-height: 76px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(130, 210, 230, 0.14);
  border-radius: 16px;
  background: rgba(6, 12, 20, 0.78);
}

.site-footer img {
  width: 146px;
  filter: brightness(2.55) contrast(1.08) saturate(1.05) drop-shadow(0 0 14px rgba(45, 214, 210, 0.22));
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

@keyframes caretBlink {
  0%,
  48% { opacity: 1; }
  49%,
  100% { opacity: 0; }
}

@keyframes advancedGrid {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 62px 124px, 62px 124px, 220px 440px;
  }
}

@keyframes auroraShift {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
    opacity: 0.58;
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) rotate(8deg) scale(1.04);
    opacity: 0.78;
  }
  100% {
    transform: translate3d(1%, -2%, 0) rotate(-5deg) scale(1.08);
    opacity: 0.66;
  }
}

@media (max-width: 1060px) {
  .hero,
  .vectec,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: auto;
  }

  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
  }

  .brand-logo {
    width: 136px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .site-header.nav-open .main-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding: 10px 0 2px;
  }

  .site-header.nav-open .nav-link {
    padding: 11px 4px;
  }

  .site-header.nav-open .header-cta {
    display: inline-flex;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
  }

  .nav-link::after {
    bottom: 4px;
  }

  .hero,
  .solutions,
  .projects,
  .vectec,
  .contact {
    padding: 24px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .section-heading {
    display: block;
  }

  .solutions-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .console-metrics {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer a {
    justify-self: center;
  }

  .site-footer div {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .message-stream {
    min-height: 300px;
  }
}

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

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