:root {
  --ink: #111827;
  --navy: #121821;
  --muted: #b5c0ce;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --purple: #7b3ff2;
  --amber: #ffb22c;
  --amber-deep: #d97812;
  --steel: #7e8da1;
  --cyan: #28c7d9;
  --cream: #fff2d6;
  --line: rgba(255, 255, 255, 0.18);
  --dark-line: rgba(17, 24, 39, 0.12);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--paper);
  background: #111820;
  overflow-x: hidden;
}

input {
  font: inherit;
}

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

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 15, 24, 0.98) 0%, rgba(14, 23, 36, 0.92) 54%, rgba(39, 22, 72, 0.72) 100%),
    radial-gradient(circle at 86% 18%, rgba(124, 88, 255, 0.32), transparent 17rem),
    radial-gradient(circle at 50% 96%, rgba(40, 199, 217, 0.22), transparent 13rem),
    linear-gradient(135deg, #111a26 0%, #0c121c 48%, #1c1234 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(30deg, rgba(40, 199, 217, 0.075) 12%, transparent 12.5%, transparent 87%, rgba(40, 199, 217, 0.075) 87.5%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.055) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.055) 87.5%);
  background-size: 84px 146px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 9% 18%, rgba(124, 88, 255, 0.18), transparent 1.6rem),
    radial-gradient(circle at 85% 36%, rgba(40, 199, 217, 0.2), transparent 6rem);
  pointer-events: none;
}

.hero-inner {
  width: min(1144px, calc(100% - 42px));
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  padding: clamp(14px, 2.8vw, 26px) 0;
}

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

.hero-brand {
  width: clamp(170px, 17vw, 250px);
  margin-bottom: clamp(20px, 3vw, 34px);
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 178, 44, 0.16);
}

.hero-brand img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
  background: var(--cyan);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3.15rem, 5.45vw, 5.3rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

.lead {
  max-width: 610px;
  margin-bottom: 18px;
  color: #d8e0e9;
  font-size: clamp(1.02rem, 1.55vw, 1.15rem);
  line-height: 1.78;
  font-weight: 500;
}

.construction-card {
  min-height: 390px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(24, 34, 50, 0.98), rgba(53, 31, 104, 0.82));
  border: 1px solid rgba(40, 199, 217, 0.2);
  box-shadow: var(--shadow);
  animation: floatCard 4.8s ease-in-out infinite;
}

.construction-card__top {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(40, 199, 217, 0.18);
  background: rgba(11, 16, 22, 0.48);
}

.construction-card__top span {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(40, 199, 217, 0.12);
}

.upgrade-float-icons {
  position: absolute;
  inset: 50px 0 0;
  z-index: 3;
  pointer-events: none;
}

.upgrade-icon {
  width: 42px;
  height: 42px;
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #bdf7ff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(13, 22, 35, 0.7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  animation: iconDrift 4.4s ease-in-out infinite;
}

.upgrade-icon svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(40, 199, 217, 0.28));
}

.upgrade-icon--code {
  left: 16px;
  top: 18px;
}

.upgrade-icon--arrow {
  right: 18px;
  top: 18px;
  animation-delay: 300ms;
}

.upgrade-icon--shield {
  left: 18px;
  bottom: 52px;
  animation-delay: 650ms;
}

.upgrade-icon--plus {
  right: 18px;
  bottom: 54px;
  animation-delay: 900ms;
}

.upgrade-scene {
  min-height: 286px;
  position: relative;
  margin: 22px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 58%),
    radial-gradient(circle at 16% 24%, rgba(40, 199, 217, 0.22), transparent 8rem),
    radial-gradient(circle at 82% 16%, rgba(123, 63, 242, 0.3), transparent 8rem),
    linear-gradient(135deg, rgba(8, 14, 23, 0.72), rgba(18, 28, 43, 0.94));
}

.browser-upgrade {
  width: min(330px, 72%);
  min-height: 190px;
  position: absolute;
  left: 34px;
  top: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(247, 250, 252, 0.95);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.25);
}

.browser-bar {
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #111827;
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9ca3af;
}

.browser-bar span:first-child {
  background: var(--cyan);
}

.browser-content {
  padding: 18px;
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: 16px;
}

.code-column {
  display: grid;
  align-content: start;
  gap: 11px;
}

.code-column span,
.preview-line {
  height: 10px;
  border-radius: 999px;
  background: #d7e1ec;
}

.code-column span:nth-child(1) {
  width: 82%;
  background: linear-gradient(90deg, var(--cyan), #8ee7f2);
}

.code-column span:nth-child(2) {
  width: 58%;
}

.code-column span:nth-child(3) {
  width: 76%;
}

.code-column span:nth-child(4) {
  width: 46%;
  background: #d9d2ff;
}

.preview-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.preview-card {
  height: 70px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 30%, rgba(123, 63, 242, 0.22), transparent 2.4rem),
    linear-gradient(135deg, rgba(40, 199, 217, 0.22), rgba(123, 63, 242, 0.18));
}

.preview-line {
  width: 86%;
}

.preview-line--short {
  width: 58%;
}

.scan-line {
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  top: 34px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scanDown 2.8s ease-in-out infinite;
}

.tool {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.24));
}

.tool--wrench {
  width: 102px;
  height: 22px;
  right: 34px;
  top: 74px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8e0e9, #8797ab);
  transform: rotate(-26deg);
  animation: toolFloat 3.4s ease-in-out infinite;
}

.tool--wrench::before {
  content: "";
  width: 32px;
  height: 32px;
  position: absolute;
  left: -16px;
  top: -5px;
  border: 8px solid #d8e0e9;
  border-right-color: transparent;
  border-radius: 50%;
}

.tool--wrench span {
  width: 16px;
  height: 16px;
  position: absolute;
  right: 8px;
  top: 3px;
  border-radius: 50%;
  background: #293647;
}

.tool--driver {
  width: 112px;
  height: 14px;
  right: 54px;
  bottom: 84px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #c9f8ff 62%, #eef5fb 62%);
  transform: rotate(28deg);
  animation: toolFloat 3.1s ease-in-out infinite reverse;
}

.tool--driver span {
  width: 30px;
  height: 24px;
  position: absolute;
  left: -14px;
  top: -5px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--purple), #a38cff);
}

.gear {
  width: 82px;
  height: 82px;
  position: absolute;
  right: 72px;
  top: 144px;
  display: grid;
  place-items: center;
  border: 10px solid rgba(40, 199, 217, 0.86);
  border-radius: 50%;
  animation: upgradeSpin 8s linear infinite;
}

.gear::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.gear span {
  width: 14px;
  height: 20px;
  position: absolute;
  border-radius: 4px;
  background: rgba(40, 199, 217, 0.86);
}

.gear span:nth-child(1) {
  top: -20px;
}

.gear span:nth-child(2) {
  bottom: -20px;
}

.gear span:nth-child(3) {
  left: -18px;
  transform: rotate(90deg);
}

.gear span:nth-child(4) {
  right: -18px;
  transform: rotate(90deg);
}

.upgrade-badges {
  position: absolute;
  right: 28px;
  bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.upgrade-badges span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #d8fbff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 900;
}

.construction-scene {
  min-height: 286px;
  position: relative;
  margin: 22px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 242, 214, 0.14) 0%, transparent 55%),
    linear-gradient(0deg, rgba(12, 18, 28, 0.72) 0 72px, transparent 72px),
    radial-gradient(circle at 82% 18%, rgba(255, 178, 44, 0.22), transparent 7rem);
}

.sun {
  width: 52px;
  height: 52px;
  position: absolute;
  top: 24px;
  right: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0b5, var(--amber));
  box-shadow: 0 0 36px rgba(255, 178, 44, 0.44);
}

.crane-mast,
.crane-arm,
.crane-cable,
.crane-load,
.crane {
  position: absolute;
}

.crane {
  width: 250px;
  height: 188px;
  left: 34px;
  top: 34px;
}

.crane-mast {
  width: 12px;
  height: 172px;
  left: 68px;
  bottom: 0;
  background: repeating-linear-gradient(0deg, var(--steel) 0 16px, #526173 16px 28px);
}

.crane-arm {
  width: 190px;
  height: 12px;
  left: 16px;
  top: 20px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 22px, #26313d 22px 36px);
  transform: rotate(-8deg);
  transform-origin: 68px center;
}

.crane-cable {
  width: 2px;
  height: 72px;
  left: 178px;
  top: 30px;
  background: rgba(255, 255, 255, 0.72);
  animation: cableSwing 2.4s ease-in-out infinite;
  transform-origin: top;
}

.crane-load {
  width: 42px;
  height: 34px;
  left: 158px;
  top: 98px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), #a9f3ff);
  animation: loadSwing 2.4s ease-in-out infinite;
}

.building {
  width: 158px;
  height: 132px;
  position: absolute;
  right: 46px;
  bottom: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f7fafc, #dbe3ec);
}

.building span {
  border-radius: 5px;
  background: linear-gradient(135deg, var(--cyan), #d7fbff);
  animation: windowPulse 1.8s ease-in-out infinite;
}

.building span:nth-child(2n) {
  animation-delay: 260ms;
}

.worker-helmet {
  width: 54px;
  height: 28px;
  position: absolute;
  left: 42%;
  bottom: 62px;
  border-radius: 42px 42px 8px 8px;
  background: var(--amber);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}

.worker-helmet::after {
  content: "";
  width: 70px;
  height: 8px;
  position: absolute;
  left: -8px;
  bottom: -4px;
  border-radius: 999px;
  background: var(--amber);
}

.barrier {
  height: 38px;
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.barrier span {
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, var(--amber) 0 18px, #1a2028 18px 34px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.construction-note {
  margin: 0 22px 22px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-align: center;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes cableSwing {
  0%,
  100% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(5deg);
  }
}

@keyframes loadSwing {
  0%,
  100% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(6px);
  }
}

@keyframes windowPulse {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

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

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

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes scanDown {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  18%,
  82% {
    opacity: 1;
  }

  100% {
    transform: translateY(156px);
    opacity: 0;
  }
}

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

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

@keyframes iconDrift {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.82;
  }

  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .construction-card {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    width: min(100% - 28px, 1144px);
    padding: 24px 0 32px;
  }

  .hero-brand {
    width: min(210px, 70vw);
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .construction-card {
    min-height: auto;
  }

  .upgrade-scene {
    min-height: 250px;
    margin: 16px;
  }

  .upgrade-icon {
    width: 34px;
    height: 34px;
  }

  .upgrade-icon--code {
    left: 10px;
    top: 12px;
  }

  .upgrade-icon--arrow {
    right: 10px;
    top: 12px;
  }

  .upgrade-icon--shield {
    left: 10px;
    bottom: 44px;
  }

  .upgrade-icon--plus {
    right: 10px;
    bottom: 44px;
  }

  .browser-upgrade {
    width: 76%;
    left: 14px;
    top: 30px;
  }

  .browser-content {
    padding: 14px;
    gap: 12px;
  }

  .tool--wrench {
    width: 82px;
    right: 18px;
    top: 58px;
  }

  .tool--driver {
    width: 86px;
    right: 24px;
    bottom: 72px;
  }

  .gear {
    width: 60px;
    height: 60px;
    right: 14px;
    top: 138px;
    border-width: 8px;
  }

  .gear span {
    width: 11px;
    height: 16px;
  }

  .gear span:nth-child(1) {
    top: -16px;
  }

  .gear span:nth-child(2) {
    bottom: -16px;
  }

  .gear span:nth-child(3) {
    left: -15px;
  }

  .gear span:nth-child(4) {
    right: -15px;
  }

  .upgrade-badges {
    left: 14px;
    right: 14px;
    bottom: 18px;
    justify-content: center;
  }

  .construction-note {
    margin: 0 16px 18px;
  }
}

@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;
  }
}
