:root {
  --bg: #eef7fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(21, 49, 76, 0.12);
  --text: #102033;
  --muted: #526579;
  --dim: #7b8da0;
  --cyan: #09bfe6;
  --blue: #487bff;
  --green: #10b981;
  --coral: #ff6d78;
  --gold: #d99a10;
  --violet: #7c5cff;
  --shadow: 0 28px 90px rgba(39, 75, 112, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(77, 227, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(72, 123, 255, 0.16), transparent 25rem),
    radial-gradient(circle at 60% 90%, rgba(16, 185, 129, 0.12), transparent 26rem),
    linear-gradient(135deg, #f7fcff 0%, #edf7fb 48%, #f4f7ff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(16, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 58px rgba(39, 75, 112, 0.14);
  backdrop-filter: blur(22px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(77, 227, 255, 0.32);
  background: rgba(255, 255, 255, 0.92);
}

.brand img {
  width: 216px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-color: rgba(77, 227, 255, 0.24);
  background: rgba(77, 227, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 138px 0 72px;
  overflow: hidden;
}

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

.hero-art {
  position: absolute;
  z-index: 3;
  right: max(-80px, -4vw);
  top: 11%;
  width: min(760px, 58vw);
  opacity: 0.92;
  filter: saturate(1.08) drop-shadow(0 34px 70px rgba(39, 75, 112, 0.2));
  transform: rotate(-5deg);
  pointer-events: none;
  animation: artDrift 10s ease-in-out infinite;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(247, 252, 255, 0.94) 0%, rgba(247, 252, 255, 0.72) 45%, rgba(247, 252, 255, 0.12) 100%),
    linear-gradient(0deg, rgba(247, 252, 255, 0.98), transparent 42%);
  pointer-events: none;
}

.hero-glass {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(21, 49, 76, 0.11);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.24));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-glass-one {
  top: 19%;
  right: 11%;
  width: 260px;
  height: 164px;
  animation: floatPanel 8s ease-in-out infinite;
}

.hero-glass-two {
  right: 30%;
  bottom: 18%;
  width: 190px;
  height: 118px;
  border-color: rgba(255, 209, 102, 0.2);
  animation: floatPanel 9s ease-in-out infinite reverse;
}

.hero-inner,
.section {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.7rem, 6.4vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 820px;
  margin-top: 28px;
}

.trust-strip span {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(21, 49, 76, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 36px rgba(39, 75, 112, 0.08);
  backdrop-filter: blur(16px);
}

.trust-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.15;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 42px rgba(9, 191, 230, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(21, 49, 76, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.hero-showcase {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(21, 49, 76, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.showcase-card {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid rgba(21, 49, 76, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 191, 230, 0.12), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.showcase-main {
  min-height: 190px;
  background:
    radial-gradient(circle at 86% 16%, rgba(77, 227, 255, 0.28), transparent 12rem),
    linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(255, 255, 255, 0.74));
}

.showcase-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.showcase-card strong {
  margin-top: 14px;
  font-size: 1.08rem;
  line-height: 1.16;
}

.showcase-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  gap: 0;
  margin-bottom: 34px;
}

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

.application-card {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(21, 49, 76, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 58px rgba(39, 75, 112, 0.12);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.application-card:hover {
  border-color: rgba(77, 227, 255, 0.32);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-8px);
}

.module-visual {
  position: relative;
  min-height: 228px;
  display: grid;
  place-items: center;
  padding: 0;
  border-bottom: 1px solid rgba(21, 49, 76, 0.1);
  background: #f7fcff;
  overflow: hidden;
}

.module-visual img {
  width: 100%;
  height: 100%;
  min-height: 228px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.application-card:hover .module-visual img {
  transform: scale(1.035);
}

.card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.module-label {
  margin-bottom: auto;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-copy p,
.architecture-copy p,
.timeline p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.architecture-copy p {
  max-width: 650px;
  margin-top: 22px;
}

.architecture-flow {
  position: relative;
  min-height: 470px;
  border: 1px solid rgba(21, 49, 76, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(77, 227, 255, 0.26), transparent 16rem),
    rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.architecture-flow::before {
  position: absolute;
  inset: 42px;
  content: "";
  border: 1px solid rgba(77, 227, 255, 0.18);
  border-radius: 50%;
  animation: orbit 12s linear infinite;
}

.flow-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(360px, 70%);
  padding: 24px;
  border: 1px solid rgba(21, 49, 76, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  transform: translate(-50%, -50%);
}

.flow-node {
  position: absolute;
  min-width: 132px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 49, 76, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 900;
  animation: nodeFloat 5s ease-in-out infinite;
}

.flow-node:nth-child(1) { left: 34px; top: 48px; color: var(--cyan); }
.flow-node:nth-child(2) { right: 38px; top: 92px; color: var(--green); animation-delay: -1s; }
.flow-node:nth-child(3) { left: 52px; bottom: 74px; color: var(--gold); animation-delay: -2s; }
.flow-node:nth-child(4) { right: 54px; bottom: 48px; color: var(--coral); animation-delay: -3s; }

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

.timeline div {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(21, 49, 76, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(77, 227, 255, 0.14), transparent 50%),
    rgba(255, 255, 255, 0.76);
}

.timeline span {
  margin-bottom: auto;
  color: var(--gold);
  font-weight: 900;
}

.timeline strong {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(21, 49, 76, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 10%, rgba(49, 230, 161, 0.18), transparent 18rem),
    radial-gradient(circle at 20% 100%, rgba(255, 109, 120, 0.14), transparent 18rem),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.contact-panel p {
  max-width: 650px;
  margin-top: 18px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer img {
  width: 216px;
}

.site-footer a {
  color: var(--cyan);
  font-weight: 900;
}

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 760ms ease, transform 760ms ease;
}

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

@keyframes floatPanel {
  0%,
  100% { transform: translate3d(0, 0, 0) rotate(-8deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(-5deg); }
}

@keyframes artDrift {
  0%,
  100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(-3deg); }
}

@keyframes scan {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes pulseLine {
  0%,
  100% { opacity: 0.35; transform: scaleX(0.72); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes cameraFlicker {
  0%,
  100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes liftNode {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes nodeFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1080px) {
  .hero-inner,
  .architecture,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    max-width: 640px;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 24px, 1240px);
    padding: 12px;
  }

  .brand img {
    width: 174px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(39, 75, 112, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0 12px;
  }

  .hero {
    align-items: center;
    min-height: auto;
    padding: 118px 0 64px;
  }

  .hero-art {
    top: 15%;
    right: -34vw;
    width: 130vw;
    opacity: 0.28;
  }

  .hero-inner,
  .section {
    width: min(100% - 24px, 1240px);
  }

  .showcase-grid,
  .trust-strip,
  .application-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .application-card {
    min-height: 390px;
  }

  .module-visual {
    min-height: 200px;
  }

  .architecture-flow {
    min-height: 420px;
  }

  .flow-core {
    width: min(300px, 72%);
  }

  .flow-node {
    min-width: 112px;
    font-size: 0.86rem;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    width: min(100% - 24px, 1240px);
  }
}

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