:root {
  --bg: #ffffff;
  --mist: #faf7ff;
  --mist-strong: #f0e5ff;
  --fig: #74298a;
  --fig-deep: #210a45;
  --fig-soft: #b780d4;
  --leaf: #5c9b45;
  --leaf-bright: #78b75a;
  --ink: #251334;
  --muted: #695674;
  --line: rgba(116, 41, 138, 0.26);
  --line-soft: rgba(116, 41, 138, 0.1);
  --glass: rgba(255, 255, 255, 0.62);
  --glow: rgba(145, 65, 181, 0.32);
  --shadow: rgba(46, 11, 69, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "Inter", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.tech-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: max(26px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.98) 0 16%, rgba(250, 247, 255, 0.92) 42%, rgba(255, 255, 255, 0.98) 73%),
    radial-gradient(circle at 16% 82%, rgba(120, 183, 90, 0.15), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(183, 128, 212, 0.28), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #fbf8ff 52%, #ffffff 100%);
}

.motion-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.scan {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(116, 41, 138, 0.1) 0,
    rgba(116, 41, 138, 0.1) 1px,
    transparent 1px,
    transparent 8px
  );
  mix-blend-mode: multiply;
}

.grid-plane {
  position: absolute;
  right: -10%;
  bottom: -12%;
  left: -10%;
  height: 42%;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(116, 41, 138, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 41, 138, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(620px) rotateX(63deg);
  transform-origin: center bottom;
  animation: gridFlow 5.8s linear infinite;
}

.light-speed {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), rgba(116, 41, 138, 0.38), transparent);
  box-shadow: 0 0 22px rgba(116, 41, 138, 0.18);
  transform: rotate(-8deg);
}

.light-speed-a {
  top: 26%;
  animation: streak 3.2s ease-in-out infinite;
}

.light-speed-b {
  top: 39%;
  animation: streak 4.1s ease-in-out 0.9s infinite;
  transform: rotate(7deg);
}

.circuit {
  position: absolute;
  width: min(46vw, 620px);
  height: min(22vw, 280px);
  opacity: 0.46;
  background:
    linear-gradient(90deg, transparent 0 10%, var(--line) 10% calc(10% + 1px), transparent calc(10% + 1px)),
    linear-gradient(90deg, transparent 0 30%, var(--line) 30% calc(30% + 1px), transparent calc(30% + 1px)),
    linear-gradient(90deg, transparent 0 54%, var(--line) 54% calc(54% + 1px), transparent calc(54% + 1px)),
    linear-gradient(135deg, transparent 0 38%, var(--line) 38% calc(38% + 1px), transparent calc(38% + 1px)),
    linear-gradient(20deg, transparent 0 46%, var(--line) 46% calc(46% + 1px), transparent calc(46% + 1px));
  filter: drop-shadow(0 0 8px rgba(116, 41, 138, 0.1));
}

.circuit::before,
.circuit::after {
  position: absolute;
  width: 6px;
  height: 6px;
  content: "";
  border: 1px solid rgba(116, 41, 138, 0.58);
  border-radius: 50%;
  background: var(--bg);
}

.circuit::before {
  top: 17%;
  left: 15%;
}

.circuit::after {
  right: 21%;
  bottom: 26%;
}

.circuit-left {
  top: 18%;
  left: -8%;
}

.circuit-right {
  top: 20%;
  right: -8%;
  transform: scaleX(-1);
}

.orbital-shell {
  position: absolute;
  top: 5%;
  left: 50%;
  width: min(72vmin, 720px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  animation: slowTurn 18s linear infinite;
}

.orbital-shell span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(116, 41, 138, 0.18);
  border-radius: 50%;
}

.orbital-shell span:nth-child(1) {
  border-top-color: rgba(116, 41, 138, 0.72);
  border-right-color: rgba(116, 41, 138, 0.36);
}

.orbital-shell span:nth-child(2) {
  inset: 7%;
  border-style: dashed;
  border-color: rgba(116, 41, 138, 0.16);
}

.orbital-shell span:nth-child(3) {
  inset: 15%;
  border-left-color: rgba(120, 183, 90, 0.42);
  border-bottom-color: rgba(116, 41, 138, 0.38);
}

.device {
  position: absolute;
  z-index: 1;
  fill: none;
  stroke: var(--fig);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0;
  filter: drop-shadow(0 18px 28px rgba(91, 36, 115, 0.12));
  animation: deviceRise 1.1s ease-out forwards, deviceFloat 4.8s ease-in-out infinite;
}

.device-phone {
  top: 37%;
  left: max(32px, 5vw);
  width: clamp(58px, 7vw, 84px);
  animation-delay: 1.25s, 2.4s;
}

.device-tablet {
  top: 29%;
  left: max(105px, 12vw);
  width: clamp(90px, 10vw, 144px);
  animation-delay: 1.4s, 2.2s;
}

.device-laptop {
  top: 46%;
  right: max(205px, 19vw);
  width: clamp(132px, 14vw, 210px);
  animation-delay: 1.5s, 2.1s;
}

.device-desktop {
  top: 34%;
  right: max(34px, 5vw);
  width: clamp(118px, 13vw, 192px);
  animation-delay: 1.65s, 2.3s;
}

.hero {
  position: relative;
  display: grid;
  width: min(1280px, 100%);
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.logo-stage {
  position: relative;
  display: grid;
  width: min(560px, 86vw);
  min-height: 280px;
  place-items: center;
}

.logo-stage::before {
  position: absolute;
  right: 10%;
  bottom: 13%;
  left: 10%;
  height: 22px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(116, 41, 138, 0.24), transparent 68%);
  filter: blur(4px);
  transform: scaleX(0.18);
  animation: floorHit 1.7s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both;
}

.logo-stage::after {
  position: absolute;
  z-index: 0;
  bottom: 31px;
  left: 50%;
  width: 74%;
  aspect-ratio: 1 / 0.25;
  content: "";
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at center, rgba(116, 41, 138, 0.36) 0 2px, transparent 2px 15px),
    radial-gradient(ellipse at center, rgba(183, 128, 212, 0.2), transparent 66%);
  filter: blur(0.2px);
  opacity: 0;
  transform: translateX(-50%) scale(0.38);
  animation: impactDisc 2.3s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both, impactBreath 3.2s ease-in-out 2.1s infinite;
}

.brand-logo {
  position: relative;
  z-index: 3;
  width: clamp(310px, 38vw, 548px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 26px var(--shadow));
  transform-origin: 50% 82%;
  animation: logoImpact 1.85s cubic-bezier(0.12, 0.95, 0.22, 1) both;
}

.shockwave {
  position: absolute;
  z-index: 1;
  bottom: 40px;
  left: 50%;
  width: 52%;
  aspect-ratio: 1 / 0.26;
  border: 2px solid rgba(116, 41, 138, 0.35);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(0.18);
  animation: wave 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.shockwave-one {
  animation-delay: 0.48s;
}

.shockwave-two {
  animation-delay: 0.72s;
}

.shockwave-three {
  border-color: rgba(120, 183, 90, 0.32);
  animation-delay: 0.96s;
}

.spark-field {
  position: absolute;
  z-index: 2;
  bottom: 52px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
}

.spark-field span {
  position: absolute;
  width: var(--spark-size);
  height: var(--spark-size);
  border-radius: 50%;
  opacity: 0;
  background: var(--spark-color);
  box-shadow: 0 0 14px var(--spark-color);
  transform: rotate(var(--spark-angle)) translateX(0);
  animation: spark 1.35s ease-out var(--spark-delay) both;
}

.copy {
  display: grid;
  gap: 18px;
  opacity: 0;
  transform: translateY(22px);
  animation: copyReveal 0.92s ease-out 0.92s both;
}

h1 {
  max-width: 1240px;
  margin: 0;
  color: var(--fig-deep);
  font-size: 4.25rem;
  font-weight: 850;
  line-height: 0.98;
  text-wrap: balance;
}

h1 span {
  display: block;
}

p {
  margin: 0;
  color: var(--fig-deep);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.4;
}

.tech-line {
  display: grid;
  grid-template-columns: minmax(60px, 150px) 22px minmax(60px, 150px);
  align-items: center;
  gap: 18px;
  width: min(420px, 78vw);
  opacity: 0;
  transform: translateY(10px);
  animation: lineReveal 0.85s ease-out 1.22s both;
}

.tech-line span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fig));
}

.tech-line span:last-child {
  background: linear-gradient(90deg, var(--fig), transparent);
}

.tech-line i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 18px 2px 18px 2px;
  background: linear-gradient(135deg, var(--leaf-bright), var(--leaf));
  transform: rotate(-33deg);
  box-shadow: 0 0 18px rgba(120, 183, 90, 0.46);
}

@keyframes logoImpact {
  0% {
    opacity: 0;
    filter: blur(9px) drop-shadow(0 0 0 rgba(46, 11, 69, 0));
    transform: translateY(-48svh) scale(1.34) rotate(-7deg);
  }

  44% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 36px 22px rgba(46, 11, 69, 0.26));
    transform: translateY(28px) scale(0.88) rotate(1deg);
  }

  56% {
    transform: translateY(-16px) scale(1.05) rotate(-1deg);
  }

  70% {
    transform: translateY(5px) scale(0.985) rotate(0deg);
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 28px 26px var(--shadow));
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes floorHit {
  0% {
    opacity: 0;
    transform: scaleX(0.14);
  }

  48% {
    opacity: 0.88;
    transform: scaleX(1.25);
  }

  100% {
    opacity: 0.58;
    transform: scaleX(1);
  }
}

@keyframes impactDisc {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.24);
  }

  42% {
    opacity: 0.72;
    transform: translateX(-50%) scale(1.1);
  }

  100% {
    opacity: 0.42;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes impactBreath {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(-50%) scale(0.98);
  }

  50% {
    opacity: 0.54;
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes wave {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.2);
  }

  18% {
    opacity: 0.78;
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scale(2.1);
  }
}

@keyframes spark {
  0% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) translateX(0) scale(0.5);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) translateX(var(--spark-distance)) scale(0.2);
  }
}

@keyframes copyReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes deviceRise {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.95);
  }

  to {
    opacity: 0.78;
    transform: translateY(0) scale(1);
  }
}

@keyframes deviceFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -14px;
  }
}

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

@keyframes gridFlow {
  to {
    background-position: 0 48px, 48px 0;
  }
}

@keyframes streak {
  0%,
  100% {
    opacity: 0.06;
    translate: -3% 0;
  }

  45% {
    opacity: 0.58;
    translate: 3% 0;
  }
}

@media (max-width: 1180px) {
  h1 {
    font-size: 3.75rem;
  }

  .device-tablet {
    left: 7%;
  }

  .device-laptop {
    right: 14%;
  }
}

@media (max-width: 900px) {
  .tech-intro {
    padding-inline: 18px;
  }

  .logo-stage {
    min-height: 250px;
  }

  .brand-logo {
    width: min(510px, 80vw);
  }

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

  p {
    font-size: 1.28rem;
  }

  .device-tablet,
  .device-desktop {
    opacity: 0.22;
  }

  .device-phone {
    left: 4%;
  }

  .device-laptop {
    right: 4%;
  }
}

@media (max-width: 640px) {
  .hero {
    gap: 16px;
  }

  .logo-stage {
    width: 100%;
    min-height: 218px;
  }

  .brand-logo {
    width: min(430px, 88vw);
  }

  h1 {
    font-size: 2.32rem;
    line-height: 1.08;
  }

  p {
    font-size: 1.05rem;
  }

  .copy {
    gap: 12px;
  }

  .orbital-shell {
    top: 13%;
    width: 96vmin;
  }

  .device {
    stroke-width: 2.4;
  }

  .device-phone {
    top: 21%;
    left: 3%;
    width: 45px;
  }

  .device-tablet {
    display: none;
  }

  .device-laptop {
    top: 22%;
    right: 3%;
    width: 86px;
  }

  .device-desktop {
    display: none;
  }

  .circuit {
    opacity: 0.27;
  }

  .grid-plane {
    height: 34%;
    background-size: 34px 34px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 2.02rem;
  }

  .brand-logo {
    width: min(370px, 90vw);
  }

  .logo-stage {
    min-height: 190px;
  }

  .tech-line {
    gap: 12px;
  }
}

@media (max-height: 680px) and (orientation: landscape) {
  .tech-intro {
    padding-block: 18px;
  }

  .hero {
    gap: 10px;
  }

  .logo-stage {
    min-height: 184px;
  }

  .brand-logo {
    width: min(360px, 34vw);
  }

  h1 {
    font-size: 2.65rem;
  }

  p {
    font-size: 1.05rem;
  }

  .device-tablet,
  .device-desktop {
    opacity: 0.24;
  }
}

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

}
