:root {
  --bg: #09111f;
  --bg-deep: #050b15;
  --panel: rgba(12, 20, 34, 0.72);
  --panel-strong: rgba(18, 28, 46, 0.86);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f8ff;
  --muted: #a8b6cf;
  --primary: #4d8cff;
  --primary-strong: #2f6fff;
  --teal: #21c7a8;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(77, 140, 255, 0.22), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(33, 199, 168, 0.16), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(77, 140, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #0b1220 0%, #09111f 45%, #060c16 100%);
}

body.is-loading {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 75%);
  pointer-events: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -10px, 0);
  }
}

@keyframes loaderBar {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  55% {
    transform: scaleX(0.72);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(77, 140, 255, 0.24),
      0 18px 40px rgba(0, 0, 0, 0.22);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 18px rgba(77, 140, 255, 0),
      0 22px 46px rgba(0, 0, 0, 0.26);
  }
}

@keyframes loaderSweep {
  0% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(180%);
  }
}

@keyframes loaderFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(77, 140, 255, 0.18), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(33, 199, 168, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(7, 12, 22, 0.96), rgba(5, 10, 18, 0.98));
  transition: opacity 520ms ease, visibility 520ms ease, transform 520ms ease;
}

.page-loader__inner {
  width: min(320px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  animation: loaderFadeUp 560ms ease both;
}

.page-loader__logo-wrap {
  position: relative;
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 247, 255, 0.98)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 40px rgba(0, 0, 0, 0.22);
  animation: loaderPulse 1.8s ease-in-out infinite;
  overflow: hidden;
}

.page-loader__logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 28%, rgba(255, 255, 255, 0.55) 50%, transparent 72%);
  animation: loaderSweep 1.6s ease-in-out infinite;
}

.page-loader__logo {
  width: 66%;
  height: 66%;
  object-fit: contain;
}

.page-loader__text {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.page-loader__label {
  margin: 0;
  color: #e9f0ff;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: loaderFadeUp 620ms ease both;
}

.page-loader__sub {
  margin: 0;
  color: #9fb0ca;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  animation: loaderFadeUp 720ms ease both;
}

.page-loader__bar {
  width: 100%;
  height: 8px;
  padding: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.page-loader__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  animation: loaderBar 1.3s ease forwards;
}

body.is-ready .page-loader {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
}

body.is-loading .viewport {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
}

.viewport {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
  transition: opacity 520ms ease, transform 520ms ease;
}

body.is-ready .viewport {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-shell {
  position: relative;
  width: min(1140px, 100%);
  min-height: min(760px, calc(100dvh - 36px));
  display: grid;
  align-content: center;
  gap: clamp(18px, 2.6vh, 28px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(18, 28, 46, 0.88), rgba(10, 18, 32, 0.78)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: fadeUp 680ms ease both;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mesh {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
  animation: drift 10s ease-in-out infinite;
}

.mesh-one {
  top: -90px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(77, 140, 255, 0.28), transparent 70%);
}

.mesh-two {
  left: -70px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(33, 199, 168, 0.18), transparent 72%);
  animation-duration: 12s;
}

.hero-top,
.hero-main,
.cta-grid {
  position: relative;
  z-index: 1;
  animation: fadeUp 700ms ease both;
}

.hero-main {
  animation-delay: 90ms;
}

.cta-grid {
  animation-delay: 180ms;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-wrap {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 247, 255, 0.98)),
    #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(0, 0, 0, 0.18);
  animation: softFloat 5.5s ease-in-out infinite;
}

.brand-logo {
  width: 64%;
  height: 64%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d6e2ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.install-sticky-button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #e8f0ff);
  color: #08101f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 32px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.install-sticky-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff, #dce9ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 36px rgba(0, 0, 0, 0.24);
}

.install-sticky-button[hidden] {
  display: none;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 24px;
  align-items: end;
}

.hero-copy {
  display: grid;
  gap: 12px;
}

.section-kicker {
  margin: 0;
  color: #80afff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.45rem, 4.4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
}

.hero-text {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.35vw, 1.04rem);
  line-height: 1.72;
}

.hero-side {
  display: flex;
  justify-content: flex-end;
}

.signal-card {
  width: min(100%, 270px);
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeUp 760ms ease both;
  animation-delay: 140ms;
}

.signal-card span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce6fb;
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease;
}

.signal-card span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 0 18px rgba(77, 140, 255, 0.5);
  animation: pulseGlow 3.4s ease-in-out infinite;
}

.signal-card span:hover {
  transform: translateX(4px);
  color: white;
}

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

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 154px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    var(--panel-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: fadeUp 780ms ease both;
  transform-origin: center;
  will-change: transform;
}

.cta-card:nth-child(2) {
  animation-delay: 120ms;
}

.cta-card:hover {
  transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
}

.cta-card:active {
  transform: translateY(-1px) scale(0.985) rotateX(0deg) rotateY(0deg);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.cta-primary:hover {
  border-color: rgba(77, 140, 255, 0.34);
}

.cta-secondary:hover {
  border-color: rgba(33, 199, 168, 0.28);
}

.cta-glow {
  position: absolute;
  inset: auto -48px -70px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 140, 255, 0.16), transparent 70%);
  transition: transform 220ms ease, opacity 220ms ease, left 120ms ease, top 120ms ease;
  pointer-events: none;
}

.cta-secondary .cta-glow {
  background: radial-gradient(circle, rgba(33, 199, 168, 0.14), transparent 70%);
}

.cta-card:hover .cta-glow {
  transform: scale(1.08);
}

.cta-card.is-tilting .cta-glow {
  left: var(--glow-x, auto);
  top: var(--glow-y, auto);
  inset: unset;
  transform: translate(-50%, -50%) scale(1.02);
}

.cta-card:active .cta-glow {
  transform: scale(0.96);
}

.cta-icon,
.cta-copy,
.cta-arrow {
  position: relative;
  z-index: 1;
}

.cta-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #91b7ff;
  transition: transform 180ms ease, color 180ms ease;
}

.cta-primary .cta-icon {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cta-secondary .cta-icon {
  color: #6ee7cf;
}

.cta-icon--light {
  background: #05070b;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cta-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.cta-icon-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.cta-card:hover .cta-icon {
  transform: translate3d(var(--ix, 0px), var(--iy, 0px), 0) scale(1.06);
}

.cta-card:active .cta-icon {
  transform: scale(0.96);
}

.cta-copy {
  display: grid;
  gap: 6px;
}

.cta-copy small {
  color: #80afff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-secondary .cta-copy small {
  color: #70dcca;
}

.cta-copy strong {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.cta-copy span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.cta-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8e4ff;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.cta-card.is-tilting .cta-arrow {
  transform: translate3d(var(--ax, 0px), 0, 0);
}

.cta-arrow svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cta-primary:hover .cta-arrow {
  transform: translateX(4px);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
}

.cta-secondary:hover .cta-arrow {
  transform: translateX(4px);
  background: linear-gradient(135deg, var(--teal), #0ea88d);
  color: white;
}

.cta-card:active .cta-arrow {
  transform: translateX(1px) scale(0.94);
}

.cta-card:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(77, 140, 255, 0.18),
    0 24px 52px rgba(0, 0, 0, 0.26);
}

.cta-secondary:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(33, 199, 168, 0.18),
    0 24px 52px rgba(0, 0, 0, 0.26);
}

.cta-card:focus-visible .cta-arrow {
  background: rgba(255, 255, 255, 0.14);
}

.hint {
  position: relative;
}

.hint::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px);
  min-width: max-content;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 12, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  color: #eef4ff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 20;
}

.hint::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 10px;
  height: 10px;
  background: rgba(7, 12, 22, 0.94);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateX(-50%) rotate(45deg) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 19;
}

.hint:hover::after,
.hint:hover::before {
  opacity: 1;
  visibility: visible;
}

.hint:hover::after {
  transform: translateX(-50%) translateY(0);
}

.hint:hover::before {
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.cta-card.hint::after,
.cta-card.hint::before {
  left: 28px;
  transform: translateX(0) translateY(8px);
}

.cta-card.hint::before {
  transform: translateX(0) rotate(45deg) translateY(8px);
}

.cta-card.hint:hover::after {
  transform: translateX(0) translateY(0);
}

.cta-card.hint:hover::before {
  transform: translateX(0) rotate(45deg) translateY(0);
}

@media (hover: none) {
  .cta-card:hover {
    transform: none;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  }

  .cta-card:hover .cta-arrow,
  .cta-card:hover .cta-icon,
  .cta-card:hover .cta-glow {
    transform: none;
  }
}

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

  .page-loader {
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-side {
    justify-content: flex-start;
  }

  .signal-card {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .signal-card span {
    font-size: 0.88rem;
  }
}

@media (max-width: 860px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    min-height: 132px;
  }
}

@media (max-width: 640px) {
  .viewport {
    padding: 12px;
  }

  .hero-shell {
    min-height: min(760px, calc(100dvh - 24px));
    padding: 20px 18px;
    border-radius: 28px;
  }

  .hero-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-mark {
    gap: 12px;
  }

  .brand-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .hero-pill {
    min-height: 38px;
    font-size: 0.74rem;
  }

  .install-sticky-button {
    top: 12px;
    right: 12px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-text {
    font-size: 0.93rem;
    line-height: 1.68;
  }

  .signal-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cta-card {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    min-height: 116px;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .cta-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .cta-icon svg {
    width: 30px;
    height: 30px;
  }

  .cta-icon-image {
    width: 46px;
    height: 46px;
  }

  .cta-copy span {
    font-size: 0.88rem;
    line-height: 1.52;
  }

  .cta-arrow {
    width: 42px;
    height: 42px;
  }

  .cta-arrow svg {
    width: 20px;
    height: 20px;
  }

  .hint::after,
  .hint::before {
    display: none;
  }
}
