:root {
  --ink: #12151c;
  --muted: #5f6978;
  --line: rgba(18, 21, 28, 0.12);
  --paper: #f7f8f4;
  --panel: rgba(255, 255, 255, 0.76);
  --cyan: #2ca6a4;
  --lime: #9dcc4a;
  --coral: #ef745d;
  --violet: #6f63d9;
  --shadow: 0 24px 70px rgba(22, 31, 49, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 24%, rgba(44, 166, 164, 0.14), transparent 30rem),
    radial-gradient(circle at 84% 8%, rgba(239, 116, 93, 0.13), transparent 26rem),
    linear-gradient(135deg, #fbfbf7 0%, #eef2f0 54%, #f7f8f4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 64px);
  background: rgba(247, 248, 244, 0.72);
  border-bottom: 1px solid rgba(18, 21, 28, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  width: 158px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(34px, 5vw, 86px);
  min-height: 94vh;
  padding: 118px clamp(20px, 5vw, 82px) 64px;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 26px;
  font-size: clamp(3.3rem, 7.6vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.65vw, 1.28rem);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 16px 34px rgba(18, 21, 28, 0.18);
}

.button.primary:hover {
  box-shadow: 0 20px 46px rgba(18, 21, 28, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.device-stage {
  position: relative;
  min-height: 620px;
}

.device {
  position: absolute;
  overflow: hidden;
  background: #151922;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.device::before {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  pointer-events: none;
}

.device-main {
  right: 12%;
  top: 4%;
  width: min(58vw, 330px);
  height: 610px;
  transform: rotate(2deg);
  animation: floatMain 7s ease-in-out infinite;
}

.device-small {
  left: 0;
  bottom: 4%;
  width: min(42vw, 230px);
  height: 430px;
  transform: rotate(-7deg);
  animation: floatSmall 8s ease-in-out infinite;
}

.device-top {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 78px;
  height: 22px;
  background: #090b10;
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
  z-index: 3;
}

.app-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 22px;
  padding: 58px 22px 24px;
  background:
    linear-gradient(160deg, rgba(44, 166, 164, 0.42), transparent 38%),
    linear-gradient(20deg, rgba(157, 204, 74, 0.2), transparent 46%),
    #f8faf5;
}

.app-screen.alt {
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(150deg, rgba(239, 116, 93, 0.4), transparent 44%),
    linear-gradient(20deg, rgba(111, 99, 217, 0.2), transparent 48%),
    #f9faf7;
}

.status-row,
.dock,
.metric-grid {
  display: grid;
  gap: 10px;
}

.status-row {
  grid-template-columns: 1fr 56px;
}

.status-row span,
.app-title,
.activity-line,
.dock span,
.metric-grid span,
.stack-bars span {
  display: block;
  background: rgba(18, 21, 28, 0.12);
  border-radius: 8px;
}

.status-row span {
  height: 18px;
}

.app-title {
  width: 68%;
  height: 52px;
  background: rgba(18, 21, 28, 0.82);
}

.metric-grid {
  grid-template-columns: 1fr 1fr;
}

.metric-grid span {
  height: 96px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(18, 21, 28, 0.09);
}

.activity-line {
  width: 100%;
  height: 18px;
}

.activity-line.short {
  width: 74%;
}

.dock {
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
}

.dock span {
  height: 54px;
  background: rgba(18, 21, 28, 0.84);
}

.pulse-ring {
  width: 128px;
  height: 128px;
  border: 20px solid rgba(44, 166, 164, 0.2);
  border-top-color: var(--cyan);
  border-right-color: var(--coral);
  border-radius: 50%;
  animation: spin 9s linear infinite;
}

.stack-bars {
  display: grid;
  width: 72%;
  gap: 12px;
  margin-top: 38px;
}

.stack-bars span {
  height: 18px;
}

.stack-bars span:nth-child(2) {
  width: 76%;
}

.stack-bars span:nth-child(3) {
  width: 52%;
}

@keyframes floatMain {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

@keyframes floatSmall {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    transform: translateY(14px) rotate(-5deg);
  }
}

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

@media (max-width: 920px) {
  .site-header {
    position: sticky;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  h1 {
    max-width: 11ch;
  }

  .device-stage {
    min-height: 540px;
  }

  .device-main {
    right: 8%;
    width: 300px;
    height: 550px;
  }

  .device-small {
    left: 4%;
    width: 200px;
    height: 370px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 20px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .device-stage {
    min-height: 470px;
  }

  .device-main {
    right: 0;
    width: 245px;
    height: 455px;
  }

  .device-small {
    left: 0;
    width: 165px;
    height: 310px;
  }

  .app-screen {
    gap: 15px;
    padding: 50px 16px 18px;
  }

  .metric-grid span {
    height: 72px;
  }

  .dock span {
    height: 42px;
  }
}

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