html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #05060f;
}
* {
  box-sizing: border-box;
}
a {
  color: #f3f4fa;
  text-decoration: none;
}
a:hover {
  color: #ff8a63;
}
h1,
h2,
h3 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  margin: 0;
}
p {
  margin: 0;
}

/* the mind: fixed behind everything */
.mind {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.neural-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 42% 55% at 74% 50%,
    rgba(194, 24, 127, 0.2),
    rgba(58, 123, 255, 0.08) 55%,
    rgba(5, 6, 15, 0) 75%
  );
}
.content {
  position: relative;
  z-index: 1;
}

/* frosted glass */
.glass {
  position: relative;
  border-radius: 32px;
  background: rgba(12, 15, 38, 0.42);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 80px -40px rgba(0, 0, 0, 0.6);
  overflow: clip;
}
.glass-soft {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.panel {
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 0 32px;
}

/* header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 6, 15, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.navlink {
  position: relative;
  color: #c9cce0;
}
.navlink::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: #ff8a63;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.navlink:hover::after {
  transform: scaleX(1);
}
.menu summary {
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  right: 20px;
  top: 72px;
  min-width: 220px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(12, 15, 38, 0.7);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  animation: drop 0.3s ease both;
}
.menu-panel a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
}
.menu-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 40;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #c2187f, #ff4f1f, #ffb08f);
  display: none;
}

/* hero */
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #05060f 0%, rgba(5, 6, 15, 0.78) 28%, rgba(5, 6, 15, 0) 56%);
}
.rise {
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.d1 {
  animation-delay: 0.12s;
}
.d2 {
  animation-delay: 0.26s;
}
.d3 {
  animation-delay: 0.42s;
}
.d4 {
  animation-delay: 0.58s;
}
.grad {
  background: linear-gradient(90deg, #c2187f 0%, #ff4f1f 30%, #ffb08f 50%, #ff4f1f 70%, #c2187f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s linear infinite;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s,
    background 0.3s,
    border-color 0.3s;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn .arr {
  transition: transform 0.3s;
}
.btn:hover .arr {
  transform: translateX(5px);
}
.btn-glow {
  animation: glow 3.2s ease-in-out infinite;
}
.btn-glow:hover {
  color: #05060f;
  box-shadow: 0 12px 40px -6px rgba(255, 106, 61, 0.7);
}
.btn-ghost {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.09);
  color: #f3f4fa;
}

/* cards */
.card {
  position: relative;
  overflow: clip;
  height: 100%;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.45s,
    background 0.45s;
}
.card::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 31, 0.28), rgba(194, 24, 127, 0.12) 45%, transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.5s,
    transform 0.6s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 138, 99, 0.45) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}
.card:hover::after {
  opacity: 1;
  transform: scale(1);
}
.card svg {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover svg {
  transform: rotate(-8deg) scale(1.12);
}
.feature h3 {
  transition: color 0.3s;
}
.feature:hover h3 {
  color: #ff8a63;
}

/* steps, trust, chips */
.step-line {
  height: 1px;
  background: linear-gradient(90deg, #ff6a3d, rgba(255, 255, 255, 0.25));
  transform-origin: left;
}
.step-num {
  transition: transform 0.4s;
}
.step:hover .step-num {
  transform: translateX(6px);
}
.trust-item {
  transition:
    padding-left 0.35s,
    background 0.35s;
}
.trust-item:hover {
  padding-left: 10px !important;
  background: rgba(255, 255, 255, 0.02);
}
.icon-float {
  animation: float 7s ease-in-out infinite;
}
.halo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 31, 0.35), rgba(194, 24, 127, 0.15) 45%, transparent 70%);
  filter: blur(20px);
  animation: breathe 6s ease-in-out infinite;
}
.marquee {
  overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .track {
  animation-play-state: paused;
}
.chip {
  transition:
    border-color 0.3s,
    background 0.3s;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}
.chip:hover {
  border-color: #ff8a63 !important;
  background: rgba(255, 106, 61, 0.1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.try {
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #dadceb;
  font:
    500 13px Inter,
    sans-serif;
  cursor: pointer;
  transition:
    border-color 0.3s,
    background 0.3s,
    color 0.3s;
}
.try:hover {
  border-color: #ff8a63;
  background: rgba(255, 106, 61, 0.12);
  color: #ffffff;
}
.field-hero {
  font-size: 18px !important;
  padding: 18px 18px !important;
  border-color: rgba(255, 138, 99, 0.4) !important;
}
/* form */
.field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 6, 15, 0.45);
  color: #f3f4fa;
  font:
    400 16px Inter,
    sans-serif;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.field:hover {
  border-color: rgba(255, 255, 255, 0.32);
}
.field:focus {
  outline: none;
  border-color: #ff6a3d;
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.18);
}

/* network of minds inside the how-it-works panel */
.band-par {
  position: absolute;
  inset: -18% 0;
  will-change: transform;
}

@supports (animation-timeline: view()) {
  .progress {
    display: block;
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
  .hero-fade {
    animation: heroOut linear both;
    animation-timeline: scroll(root);
    animation-range: 0 85vh;
  }
  .band-par {
    animation: parBand linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  .drift-up {
    animation: parUp linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  .rv {
    animation: rv linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }
  .rv2 {
    animation: rv linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 32%;
  }
  .rv3 {
    animation: rv linear both;
    animation-timeline: view();
    animation-range: entry 16% cover 38%;
  }
  .rv4 {
    animation: rv linear both;
    animation-timeline: view();
    animation-range: entry 24% cover 44%;
  }
  .rv-side {
    animation: rvSide linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  .step-line {
    animation: draw linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 45%;
  }
}

@keyframes heroOut {
  to {
    transform: translateY(-90px);
    opacity: 0.15;
  }
}
@keyframes parBand {
  from {
    transform: translateY(-10%);
  }
  to {
    transform: translateY(10%);
  }
}
@keyframes parUp {
  from {
    transform: translateY(60px);
  }
  to {
    transform: translateY(-60px);
  }
}
@keyframes rv {
  from {
    opacity: 0;
    transform: translateY(56px) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes rvSide {
  from {
    opacity: 0;
    transform: translateX(-48px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes grow {
  to {
    transform: scaleX(1);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes sheen {
  to {
    background-position: 200% center;
  }
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 61, 0);
  }
  50% {
    box-shadow: 0 0 34px 2px rgba(255, 106, 61, 0.45);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-16px) rotate(2deg);
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .navlinks {
    display: none !important;
  }
  .menu {
    display: block !important;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .panel {
    padding: 0 12px;
    margin-bottom: 20px;
  }
  .glass {
    border-radius: 24px;
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
  }
  .pad {
    padding: 36px 22px !important;
  }
  .hero {
    min-height: auto !important;
  }
  .hero-inner {
    padding: 150px 20px 72px !important;
    gap: 28px !important;
  }
  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(5, 6, 15, 0.1) 0%,
      rgba(5, 6, 15, 0.55) 60%,
      rgba(5, 6, 15, 0.2) 100%
    ) !important;
  }
  .neural-glow {
    background: radial-gradient(
      ellipse 70% 40% at 60% 28%,
      rgba(194, 24, 127, 0.22),
      rgba(58, 123, 255, 0.08) 55%,
      rgba(5, 6, 15, 0) 75%
    );
  }
  .hero-labels {
    display: none !important;
  }
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .strip > div {
    padding: 6px 12px 6px 0 !important;
  }
  .two {
    grid-template-columns: 1fr !important;
  }
  .icon-wrap {
    max-width: 220px !important;
  }
  .map-box {
    height: 400px !important;
  }
  .map-hint {
    display: none;
  }
  .btn-row a {
    flex: 1 1 100%;
    justify-content: center;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* form status */
.form-status {
  min-height: 24px;
  font-size: 15px;
  color: #c9cce0;
}
.form-status[data-state='ok'] {
  color: #9be7b4;
}
.form-status[data-state='error'] {
  color: #ffb08f;
}
button[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
