:root {
  --bg: #050510;
  --bg-soft: #0d1020;
  --panel: rgba(11, 16, 32, 0.6);
  --panel-strong: rgba(12, 18, 35, 0.85);
  --text: #f4f7fb;
  --muted: #b0bdd7;
  --cyan: #00e5ff;
  --violet: #7c3aed;
  --border: rgba(255, 255, 255, 0.12);
  --glow: 0 0 30px rgba(0, 229, 255, 0.22);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.14), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(124, 58, 237, 0.18), transparent 24%),
    linear-gradient(180deg, #04040b 0%, #050510 45%, #090b18 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: -9rem;
  left: -10rem;
  background: rgba(0, 229, 255, 0.18);
  animation: floatPulse 14s ease-in-out infinite;
}

.ambient-two {
  top: 18rem;
  right: -10rem;
  background: rgba(124, 58, 237, 0.18);
  animation: floatPulse 16s ease-in-out infinite reverse;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px, 20px 20px;
  background-position: center center, center center, top left;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 42%, rgba(0, 0, 0, 0.2) 85%);
  opacity: 0.22;
  pointer-events: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 110px 0;
  position: relative;
}

.glass {
  background: linear-gradient(180deg, rgba(18, 24, 46, 0.78), rgba(9, 12, 25, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.section-heading h2,
.hero h1,
.cta-panel h2 {
  font-family: "Syne", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(4, 7, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: var(--glow);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 5;
}

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

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

.nav-links a,
.footer-links a,
.footer-copy,
.hero-subtitle,
.timeline-step p,
.service-card p,
.use-card p,
.cta-panel p,
.stat-item span {
  color: var(--muted);
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #5ef2ff 48%, #98fbff 100%);
  color: #00141c;
  box-shadow: 0 18px 40px rgba(0, 229, 255, 0.28);
}

.btn-secondary,
.btn-outline {
  border-color: rgba(0, 229, 255, 0.48);
  background: rgba(0, 229, 255, 0.05);
  color: var(--text);
  box-shadow: 0 0 0 rgba(0, 229, 255, 0);
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-secondary:focus-visible,
.btn-outline:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.08), 0 0 26px rgba(0, 229, 255, 0.2);
}

.btn-large {
  min-height: 58px;
  padding: 0 32px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.hero {
  padding-top: 64px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 48px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
}

.typewriter-wrap {
  display: block;
  min-height: 1.2em;
  margin-top: 14px;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  vertical-align: -0.08em;
  margin-left: 5px;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
}

.hero-subtitle {
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-pill-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-pill-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #d5e0f5;
  font-size: 0.88rem;
}

.hero-canvas-card {
  position: relative;
  min-height: 540px;
  padding: 26px;
  border-radius: 32px;
  overflow: hidden;
}

.card-topline {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #dce7ff;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.8);
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.signal-box {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 14, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
  max-width: 180px;
  z-index: 2;
}

.signal-box strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fbff;
}

.signal-box span {
  color: #bfd0f3;
  font-size: 0.88rem;
  line-height: 1.45;
}

.signal-primary {
  top: 90px;
  right: 22px;
}

.signal-secondary {
  bottom: 32px;
  left: 28px;
}

.signal-tertiary {
  bottom: 126px;
  right: 38px;
}

.data-stream {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  opacity: 0.7;
}

.data-stream svg {
  width: 100%;
  height: 160px;
}

.data-stream path {
  fill: none;
  stroke: rgba(0, 229, 255, 0.38);
  stroke-width: 2;
  stroke-dasharray: 8 12;
}

.pulse-dot {
  fill: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.8));
  animation: travel 7s linear infinite;
}

.stats {
  padding-top: 20px;
}

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

.stat-item {
  position: relative;
  padding: 24px 16px;
  text-align: center;
}

.stat-item::before,
.stat-item::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.5), transparent);
}

.stat-item::before {
  left: 0;
}

.stat-item::after {
  right: 0;
}

.stat-item:first-child::before,
.stat-item:last-child::after {
  display: none;
}

.counter {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text);
  margin-bottom: 8px;
}

.services-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.use-card,
.timeline-step {
  border-radius: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.use-card::before,
.timeline-step::before,
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 40%, rgba(124, 58, 237, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before,
.use-card:hover::before,
.timeline-step:hover::before,
.cta-panel:hover::before {
  opacity: 1;
}

.service-card:hover,
.use-card:hover,
.timeline-step:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(0, 229, 255, 0.08);
}

.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.service-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.timeline-step h3,
.use-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.service-card p,
.timeline-step p,
.use-card p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.service-card a {
  color: var(--cyan);
  font-weight: 700;
}

.workflow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 53%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), rgba(124, 58, 237, 0.8), transparent);
  z-index: 0;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 52%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.18), rgba(124, 58, 237, 0.18));
  z-index: 0;
}

.timeline::after {
  content: "";
  position: absolute;
  top: 52%;
  left: 6%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.9);
  animation: timelineTravel 8s linear infinite;
  z-index: 1;
}

.timeline-step {
  z-index: 2;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 58px;
  border-radius: 18px;
  margin-bottom: 18px;
  font-family: "Syne", sans-serif;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.14);
}

.marquee {
  overflow: hidden;
  padding: 10px 0 0;
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  padding: 16px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: "Syne", sans-serif;
  letter-spacing: 0.04em;
  color: #dbe7ff;
}

.use-icon {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: #e5dbff;
  font-weight: 700;
}

.mini-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #dfe7f6;
  font-size: 0.9rem;
}

.mini-flow span:not(.arrow) {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.arrow {
  color: var(--cyan);
  font-weight: 700;
}

.final-cta {
  padding-bottom: 130px;
}

.cta-panel {
  position: relative;
  padding: 54px;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.24), transparent 32%),
    radial-gradient(circle at bottom left, rgba(0, 229, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 35, 0.94), rgba(8, 12, 24, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.cta-panel p {
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.7;
}

.cta-actions {
  margin: 28px 0 12px;
}

.cta-note {
  color: #d9e7ff;
  font-weight: 500;
}

.footer {
  padding: 0 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-copy {
  max-width: 38ch;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-social {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-social a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--cyan);
}

.footer-bottom {
  color: #97a7c8;
  font-size: 0.92rem;
}

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

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, 18px, 0) scale(1.08);
  }
}

@keyframes travel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(1440px);
  }
}

@keyframes timelineTravel {
  from {
    left: 6%;
  }
  to {
    left: 94%;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .hero-layout,
  .services-grid,
  .use-case-grid,
  .timeline,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow::after,
  .timeline::before,
  .timeline::after {
    display: none;
  }

  .hero-canvas-card {
    min-height: 480px;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-inner {
    gap: 12px;
  }

  .nav-links.is-open {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(8, 12, 22, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
  }

  .hero-layout,
  .services-grid,
  .use-case-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-canvas-card {
    min-height: 420px;
  }

  .signal-box {
    max-width: 150px;
    font-size: 0.82rem;
  }

  .cta-panel {
    padding: 34px 24px;
    text-align: left;
  }

  .cta-panel p {
    margin-left: 0;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

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

  .btn,
  .btn-large {
    width: 100%;
  }

  .hero-canvas-card {
    min-height: 380px;
    padding: 18px;
  }

  .signal-primary {
    top: 76px;
    right: 12px;
  }

  .signal-secondary {
    left: 14px;
    bottom: 18px;
  }

  .signal-tertiary {
    right: 12px;
    bottom: 98px;
  }
}
