:root {
  color-scheme: dark;
  --ink: #f5f7fa;
  --muted: #a9b4c2;
  --dim: #748092;
  --bg: #081116;
  --panel: #101a22;
  --panel-2: #16232d;
  --line: rgba(226, 233, 240, 0.14);
  --cyan: #28d6c4;
  --lime: #1f9cf0;
  --amber: #d9a441;
  --steel: #d7e0e8;
  --danger: #da1e28;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px, 64px 64px, auto;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top left, rgba(40, 214, 196, 0.16), transparent 36rem),
    radial-gradient(ellipse at 78% 12%, rgba(31, 156, 240, 0.12), transparent 30rem),
    linear-gradient(135deg, rgba(217, 164, 65, 0.045), transparent 32rem);
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--cyan);
  color: #061014;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 5vw;
  pointer-events: none;
}

.header-shell {
  position: relative;
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(226, 233, 240, 0.1);
  border-radius: var(--radius);
  background: rgba(8, 17, 22, 0.76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  padding: 0.7rem 0.8rem;
  pointer-events: auto;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled .header-shell {
  background: rgba(8, 17, 22, 0.9);
  border-color: rgba(226, 233, 240, 0.18);
  padding-block: 0.56rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(40, 214, 196, 0.62);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(40, 214, 196, 0.22), rgba(31, 156, 240, 0.16));
  color: var(--cyan);
  font-weight: 900;
  box-shadow: inset 0 0 28px rgba(40, 214, 196, 0.13);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item.has-menu::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  right: -0.6rem;
  top: 100%;
  height: 1rem;
  display: none;
}

.nav-item.has-menu:hover::before,
.nav-item.has-menu:focus-within::before,
.nav-item.has-menu.is-menu-open::before {
  display: block;
}

.site-nav a,
.nav-list a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0.72rem 0.75rem;
  color: var(--steel);
  font-size: 0.94rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-item.has-menu > a::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.45rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.72;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  transform: translateY(-1px);
}

.nav-item:focus-within > a,
.nav-item.is-menu-open > a {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.nav-cta {
  margin-left: 0.4rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 0.72rem);
  left: 50%;
  z-index: 12;
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(226, 233, 240, 0.16);
  border-radius: var(--radius);
  background: rgba(10, 21, 27, 0.97);
  box-shadow: var(--shadow);
  padding: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.has-menu:hover .mega-menu,
.has-menu:focus-within .mega-menu,
.has-menu.is-menu-open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu-wide {
  width: min(860px, calc(100vw - 2rem));
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mega-menu-compact {
  width: min(520px, calc(100vw - 2rem));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-item.has-menu:last-of-type .mega-menu {
  left: auto;
  right: 0;
  transform: translateY(8px);
}

.nav-item.has-menu:last-of-type:hover .mega-menu,
.nav-item.has-menu:last-of-type:focus-within .mega-menu,
.nav-item.has-menu:last-of-type.is-menu-open .mega-menu {
  transform: translateY(0);
}

.mega-card {
  display: grid;
  gap: 0.62rem;
  min-height: 9.8rem;
  align-content: start;
  border: 1px solid rgba(226, 233, 240, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.55rem;
}

.site-nav .mega-card {
  display: grid;
  align-items: start;
  align-content: start;
  justify-content: stretch;
  min-height: 9.8rem;
  padding: 0.55rem;
}

.mega-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--panel);
}

.mega-card span {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
}

.mega-card:hover {
  border-color: rgba(40, 214, 196, 0.38);
  background: rgba(40, 214, 196, 0.09);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 8.5rem 5vw 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.72;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 22, 0.95), rgba(8, 17, 22, 0.62) 46%, rgba(8, 17, 22, 0.88)),
    linear-gradient(180deg, transparent 0, rgba(8, 17, 22, 0.86) 92%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.7fr);
  gap: 4rem;
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.2rem;
  font-weight: 700;
}

.hero-lede {
  max-width: 43rem;
  color: var(--steel);
  font-size: 1.18rem;
}

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

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.82rem 1rem;
  cursor: pointer;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--cyan), #6ee7df);
  color: #061014;
  box-shadow: 0 18px 40px rgba(40, 214, 196, 0.2);
}

.button.secondary {
  border-color: rgba(31, 156, 240, 0.34);
  background: rgba(31, 156, 240, 0.08);
  color: var(--ink);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 42rem;
  margin: 3rem 0 0;
}

.hero-metrics div {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.hero-metrics dt {
  color: var(--lime);
  font-size: 2rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  min-height: 27rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)),
    rgba(16, 26, 34, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 1.2rem;
  overflow: hidden;
}

.panel-topline,
.panel-data {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.panel-topline span:last-child {
  color: var(--cyan);
}

.fan-visual {
  position: relative;
  display: grid;
  min-height: 19rem;
  place-items: center;
}

.fan-ring {
  position: relative;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(40, 214, 196, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(217, 164, 65, 0.12), transparent 28%),
    radial-gradient(circle, rgba(40, 214, 196, 0.16), transparent 55%),
    rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 60px rgba(40, 214, 196, 0.12), 0 0 80px rgba(31, 156, 240, 0.12);
  animation: breathe 3.4s ease-in-out infinite;
}

.fan-blade {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25rem;
  height: 6rem;
  border-radius: 100% 16% 100% 16%;
  background: linear-gradient(180deg, var(--steel), rgba(40, 214, 196, 0.46));
  transform-origin: 50% 0;
  animation: spin 5.5s linear infinite;
}

.fan-blade.b1 { transform: rotate(0deg) translate(-50%, 0); }
.fan-blade.b2 { transform: rotate(120deg) translate(-50%, 0); }
.fan-blade.b3 { transform: rotate(240deg) translate(-50%, 0); }

.fan-hub {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 34px rgba(217, 164, 65, 0.28);
}

.airline {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 214, 196, 0.68), transparent);
  animation: scan 2.8s linear infinite;
}

.airline.a1 { top: 24%; }
.airline.a2 { top: 50%; animation-delay: 650ms; }
.airline.a3 { top: 72%; animation-delay: 1.1s; }

.panel-data {
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.panel-data strong {
  color: var(--ink);
  font-size: 1rem;
}

.section {
  padding: 7rem 5vw;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-band {
  padding-block: 2.4rem;
  background: #eef4f7;
  color: #081116;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(8, 17, 22, 0.12);
  border: 1px solid rgba(8, 17, 22, 0.12);
}

.proof-grid p {
  min-height: 8rem;
  margin: 0;
  display: flex;
  align-items: end;
  background: #eef4f7;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 760;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.55fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.product-card {
  min-height: 27rem;
  padding: 1.35rem;
  background: rgba(16, 26, 34, 0.86);
  border-right: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.product-card:last-child {
  border-right: 0;
}

.product-card:hover {
  background: rgba(22, 35, 45, 0.98);
  transform: translateY(-4px);
}

.product-card span {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 4rem 0 1rem;
  font-size: 1.65rem;
}

.product-card p,
.product-card li {
  color: var(--muted);
}

.product-card ul {
  display: grid;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding-left: 1.1rem;
}

.engineering {
  background:
    linear-gradient(135deg, rgba(40, 214, 196, 0.085), transparent 32rem),
    #0a151b;
}

.engineering-grid,
.contact-grid,
.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 1fr);
  gap: 4rem;
}

.engineering .section-heading,
.insights .section-heading {
  display: block;
  margin-bottom: 0;
}

.process {
  display: grid;
  gap: 1rem;
}

.process article {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.process span {
  color: var(--lime);
  font-weight: 900;
}

.process h3 {
  margin-bottom: 0.55rem;
}

.process p {
  color: var(--muted);
}

.industries {
  background: #eef4f7;
  color: #081116;
}

.industries .section-kicker {
  color: #0b766d;
}

.industries .section-heading {
  display: block;
}

.industry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.industry-strip span {
  border: 1px solid rgba(8, 17, 22, 0.16);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #16232d;
  font-weight: 760;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(16, 26, 34, 0.76);
}

.post-list time {
  color: var(--cyan);
  font-size: 0.82rem;
}

.post-list h3 {
  margin: 0.8rem 0;
}

.post-list p {
  color: var(--muted);
}

.contact {
  position: relative;
  background:
    linear-gradient(90deg, rgba(40, 214, 196, 0.085), transparent 42rem),
    #081116;
}

.contact-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
}

.contact-copy p,
.contact-points {
  color: var(--muted);
}

.contact-points {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.1rem;
}

.lead-form,
.admin-shell,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 26, 34, 0.92);
  box-shadow: var(--shadow);
}

.lead-form {
  padding: 1.25rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--steel);
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  color: var(--ink);
  padding: 0.82rem 0.9rem;
  min-height: 3rem;
  transition: border-color 180ms ease, background 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.34);
  outline: none;
}

.error {
  display: block;
  min-height: 1.2rem;
  color: var(--danger);
  font-size: 0.82rem;
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.9rem 0 0;
  color: var(--cyan);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 5vw 1.5rem;
  background: #050b0f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.8fr;
  gap: 2rem;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-grid h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid span,
.footer-grid p {
  display: block;
  color: var(--muted);
  margin: 0.42rem 0;
}

.copyright {
  width: min(1180px, 100%);
  margin: 2rem auto 0;
  color: var(--dim);
  font-size: 0.86rem;
}

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

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

@keyframes spin {
  to { rotate: 360deg; }
}

@keyframes scan {
  0% { transform: translateX(-35%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(35%); opacity: 0; }
}

@keyframes breathe {
  50% { box-shadow: inset 0 0 70px rgba(40, 214, 196, 0.16), 0 0 95px rgba(31, 156, 240, 0.11); }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    gap: 0.18rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    padding: 0.65rem 0.8rem;
  }

  .nav-toggle span {
    width: 1.2rem;
    height: 2px;
    background: currentColor;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.6rem;
    background: rgba(8, 17, 22, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-list {
    display: grid;
    gap: 0.2rem;
  }

  .site-nav a {
    width: 100%;
  }

  .nav-item.has-menu > a::after {
    margin-left: auto;
  }

  .mega-menu,
  .nav-item.has-menu:last-of-type .mega-menu {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.35rem 0 0.7rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.035);
  }

  .site-nav .mega-card {
    min-height: auto;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section-heading,
  .engineering-grid,
  .contact-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.7rem;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2.45rem;
  }

  .product-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 1rem;
  }

  .header-shell {
    padding: 0.62rem;
  }

  .hero,
  .section,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.85rem;
  }

  .hero-actions,
  .hero-metrics,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-panel {
    min-height: 22rem;
  }


  .fan-ring {
    width: 12rem;
    height: 12rem;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2.05rem;
  }

  .mega-menu,
  .nav-item.has-menu:last-of-type .mega-menu {
    grid-template-columns: 1fr;
  }
}

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