:root {
  --bg: #050711;
  --bg-2: #080b18;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --cyan: #00e5ff;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --magenta: #ec4899;
  --green: #38f8b4;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --dim: #8a96aa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(0, 229, 255, 0.12), transparent 32rem),
    radial-gradient(circle at 84% 20%, rgba(236, 72, 153, 0.13), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 46%, #03050d);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

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

.section-pad {
  padding: 96px 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 17, 0.78);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.48);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(236, 72, 153, 0.16));
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.18);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(0, 229, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 150px;
}

.hero-bg,
.hero-grid,
.signal {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  z-index: -2;
}

.hero-grid {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.16) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 70%, transparent 100%);
  animation: gridDrift 22s linear infinite;
}

.signal {
  opacity: 0.72;
  filter: blur(28px);
  transform: skewY(-8deg);
}

.signal-one {
  top: 7%;
  left: -18%;
  height: 22%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.42), transparent);
  animation: signalSweep 8s ease-in-out infinite alternate;
}

.signal-two {
  top: 38%;
  right: -24%;
  height: 18%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.42), rgba(236, 72, 153, 0.25), transparent);
  animation: signalSweep 10s ease-in-out infinite alternate-reverse;
}

.signal-three {
  top: 70%;
  left: -14%;
  height: 16%;
  background: linear-gradient(90deg, transparent, rgba(56, 248, 180, 0.28), transparent);
  animation: signalSweep 12s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  max-width: 930px;
  padding-bottom: 70px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 940px;
  margin-bottom: 22px;
  font-size: 4.6rem;
  line-height: 1;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.7rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.22;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue) 48%, var(--violet));
  color: #020617;
  box-shadow: 0 18px 46px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 20px 60px rgba(0, 229, 255, 0.32);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

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

.section-heading p:not(.eyebrow),
.vision-copy p,
.contact-layout p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.glass-card,
.project-card,
.metric-panel,
.process-step,
.contact-layout {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-card,
.project-card,
.process-step {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.glass-card {
  min-height: 230px;
  padding: 24px;
}

.glass-card::before,
.project-card::before,
.process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), transparent 45%, rgba(236, 72, 153, 0.14));
  opacity: 0;
  transition: opacity 220ms ease;
}

.glass-card:hover,
.project-card:hover,
.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

.glass-card:hover::before,
.project-card:hover::before,
.process-step:hover::before {
  opacity: 1;
}

.glass-card > *,
.project-card > *,
.process-step > * {
  position: relative;
}

.icon-box {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(0, 229, 255, 0.09);
  color: var(--cyan);
}

.glass-card p,
.project-card p,
.process-step p {
  color: var(--muted);
}

.concept-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

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

.project-card {
  min-height: 330px;
  padding: 26px;
}

.project-topline,
.footer-layout,
.contact-layout,
.vision-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.status,
.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(56, 248, 180, 0.26);
  border-radius: var(--radius);
  background: rgba(56, 248, 180, 0.08);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.status {
  padding: 4px 10px;
}

.project-code {
  color: rgba(255, 255, 255, 0.22);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.project-card h3 {
  margin-top: 62px;
  font-size: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tags span {
  padding: 3px 9px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.vision-layout {
  align-items: stretch;
}

.vision-copy {
  max-width: 650px;
}

.metric-panel {
  width: min(420px, 100%);
  padding: 28px;
  display: grid;
  gap: 18px;
}

.metric-panel div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric-panel strong,
.metric-panel span {
  display: block;
}

.metric-panel strong {
  margin-bottom: 3px;
  font-size: 1.2rem;
}

.metric-panel span {
  color: var(--muted);
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), rgba(236, 72, 153, 0.32), transparent);
}

.process-step {
  padding: 24px;
}

.process-step span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(0, 229, 255, 0.09);
  color: var(--cyan);
  font-weight: 800;
}

.contact-section {
  padding-bottom: 76px;
}

.contact-layout {
  padding: 34px;
}

.contact-layout h2 {
  max-width: 690px;
  font-size: 2.1rem;
}

.contact-actions {
  justify-content: flex-end;
  min-width: 270px;
}

.email-link {
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 25px 0;
  color: var(--dim);
}

.footer-layout p {
  margin: 0;
}

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

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

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 58px 58px;
  }
}

@keyframes signalSweep {
  from {
    transform: translateX(-2%) skewY(-8deg);
  }
  to {
    transform: translateX(8%) skewY(-8deg);
  }
}

@media (max-width: 920px) {
  .section-pad {
    padding: 78px 0;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.25rem;
  }

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

  .vision-layout,
  .contact-layout {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .process-track::before {
    display: none;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav-shell {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
  }

  .nav-toggle {
    display: grid;
    gap: 6px;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(5, 7, 17, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .nav-links.open {
    display: grid;
    gap: 6px;
  }

  .nav-links a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 94vh;
    padding-top: 128px;
  }

  .hero-content {
    padding-bottom: 44px;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions,
  .contact-actions,
  .btn {
    width: 100%;
  }

  .build-grid,
  .concept-grid,
  .process-track {
    grid-template-columns: 1fr;
  }

  .glass-card,
  .project-card,
  .process-step,
  .contact-layout,
  .metric-panel {
    padding: 22px;
  }

  .project-card {
    min-height: 290px;
  }

  .project-card h3 {
    margin-top: 46px;
  }

  .contact-layout h2 {
    font-size: 1.75rem;
  }

  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .brand-text {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 2.24rem;
  }

  h2 {
    font-size: 1.68rem;
  }

  .hero-copy,
  .section-heading p:not(.eyebrow),
  .vision-copy p,
  .contact-layout p {
    font-size: 0.98rem;
  }
}

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