:root {
  --color-black: #000000;
  --color-darker: #0d0d0d;
  --color-dark: #1a1a1a;
  --color-white: #ffffff;
  --color-silver: #c0c0c0;
  --color-muted: #9a9a9a;
  --color-accent: #8c8cff;
  --font-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --glow:
    radial-gradient(
      circle at 20% 20%,
      rgba(140, 140, 255, 0.45),
      transparent 60%
    ),
    radial-gradient(
      circle at 75% 25%,
      rgba(192, 192, 192, 0.4),
      transparent 55%
    ),
    radial-gradient(circle at 50% 80%, rgba(70, 70, 255, 0.3), transparent 60%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-white);
  background:
    radial-gradient(circle at top, rgba(140, 140, 255, 0.1), transparent 45%),
    radial-gradient(
      circle at bottom,
      rgba(255, 255, 255, 0.04),
      transparent 55%
    ),
    linear-gradient(120deg, var(--color-black), var(--color-dark));
  overflow-x: hidden;
}

.page-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0 3rem;
}

.site-logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0px 12px 40px rgba(192, 192, 192, 0.25));
}

.hero {
  position: relative;
  padding: 2rem 0 5rem;
  min-height: 88vh;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: var(--glow);
  filter: blur(10px);
  opacity: 0.7;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  z-index: 1;
}

.hero__content {
  max-width: 560px;
  display: grid;
  gap: 1.5rem;
}

.hero__eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-silver);
  font-size: 0.8rem;
}

.hero__headline {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0;
}

.hero__subcopy {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

.loops-form {
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.loops-form__form {
  display: grid;
  gap: 0.75rem;
}

.loops-form__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 192, 192, 0.25);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 25px 60px rgba(0, 0, 0, 0.35);
}

.loops-form__input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-white);
  font-size: 1rem;
  min-width: 140px;
}

.loops-form__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.loops-form__input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 192, 192, 0.4);
}

.loops-form__submit,
.loops-form__loading {
  border-radius: 999px;
  padding-inline: 1.75rem;
  min-width: 150px;
}

.loops-form__loading {
  display: none;
  opacity: 0.7;
  cursor: wait;
}

.loops-form__feedback {
  display: none;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: center;
  min-height: 1.5em;
}

.loops-form__feedback[data-visible="true"] {
  display: block;
}

.loops-form__feedback--success {
  color: #9be7c4;
}

.loops-form__feedback--error {
  color: #f5a4b6;
}

.loops-form__reset {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 0.95rem;
  cursor: pointer;
  margin: 0 auto;
}

.loops-form__reset[data-visible="true"] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.loops-form__reset:hover,
.loops-form__reset:focus-visible {
  color: var(--color-white);
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.button--primary {
  background: linear-gradient(
    135deg,
    rgba(192, 192, 192, 0.9),
    rgba(140, 140, 255, 0.8)
  );
  color: var(--color-black);
  box-shadow: 0 10px 35px rgba(192, 192, 192, 0.25);
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(192, 192, 192, 0.3);
}

.button--secondary {
  background: transparent;
  border-color: rgba(192, 192, 192, 0.7);
  color: var(--color-white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding-inline: 2.8rem;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.form-feedback {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: var(--color-silver);
  margin: 0 0 0 1.2rem;
}

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

.hero__visual {
  justify-self: center;
  width: min(100%, 420px);
}

.card-orbit {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(192, 192, 192, 0.06),
    rgba(26, 26, 26, 0.2)
  );
  display: grid;
  place-items: center;
  overflow: visible;
}

.orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: float 14s ease-in-out infinite;
}

.orb--one {
  background: rgba(192, 192, 192, 0.35);
  animation-delay: -4s;
}

.orb--two {
  background: rgba(140, 140, 255, 0.4);
}

.card {
  position: relative;
  width: 78%;
  aspect-ratio: 1.58 / 1;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.6)),
    linear-gradient(45deg, rgba(140, 140, 255, 0.35), rgba(192, 192, 192, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55);
  display: grid;
  align-content: space-between;
  padding: 1.8rem;
}

.card__chip {
  width: 46px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(
    120deg,
    rgba(192, 192, 192, 0.85),
    rgba(140, 140, 255, 0.4)
  );
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.card__brand {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: right;
}

.card__wave {
  width: 60%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(192, 192, 192, 0.6)
  );
  justify-self: end;
  border-radius: 999px;
}

.card__label {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.6;
  text-align: right;
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.features {
  padding: 4rem 0 5rem;
}

.features__layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: 20px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(192, 192, 192, 0.15);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(192, 192, 192, 0.4);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.55);
}

.feature-icon {
  font-size: 1.45rem;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(192, 192, 192, 0.08);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.feature-preview {
  display: flex;
  justify-content: center;
}

.preview-surface {
  width: min(100%, 360px);
  padding: 1.2rem;
  border-radius: 26px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.55)
  );
  border: 1px solid rgba(192, 192, 192, 0.15);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.56);
}

.preview-screen {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 22px;
  padding: 1.8rem;
  display: grid;
  gap: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-status {
  display: inline-flex;
  gap: 0.25rem;
}

.signal {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(140, 140, 255, 0.5);
}

.signal:nth-child(2) {
  opacity: 0.7;
}

.signal:nth-child(3) {
  opacity: 0.45;
}

.preview-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-balance .label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.6);
}

.preview-balance .amount {
  font-size: 1.5rem;
}

.preview-command {
  font-size: 1.05rem;
  color: var(--color-silver);
}

.preview-response {
  font-size: 0.95rem;
  color: rgba(140, 140, 255, 0.9);
}

.preview-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(192, 192, 192, 0.4),
    rgba(255, 255, 255, 0)
  );
}

.preview-actions {
  display: flex;
  gap: 0.75rem;
}

.pill {
  flex: 1;
  padding: 0.65rem 0;
  border-radius: 999px;
  border: 1px solid rgba(192, 192, 192, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.9rem;
}

.cta {
  position: relative;
  padding: 4rem 1.5rem;
  border-radius: 28px;
  margin: 4rem 0 3rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(0, 0, 0, 0.7)
  );
  border: 1px solid rgba(192, 192, 192, 0.2);
  text-align: center;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.4;
  pointer-events: none;
}

.cta::before {
  width: 240px;
  height: 240px;
  background: rgba(140, 140, 255, 0.4);
  top: -120px;
  right: 10%;
}

.cta::after {
  width: 200px;
  height: 200px;
  background: rgba(192, 192, 192, 0.35);
  bottom: -90px;
  left: 8%;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0;
}

.cta p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.site-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.48);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
}

.ambient-lines {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size:
    220px 220px,
    200px 200px;
  opacity: 0.25;
  z-index: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: linesShift 24s linear infinite;
}

.ambient-dots {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px
  );
  background-size: 90px 90px;
  opacity: 0.18;
  z-index: 0;
  mix-blend-mode: lighten;
  pointer-events: none;
  animation: dotsPulse 18s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(-6%, -4%, 0);
  }
  50% {
    transform: translate3d(4%, 6%, 0);
  }
}

@keyframes linesShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-120px, -120px, 0);
  }
}

@keyframes dotsPulse {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.24;
  }
}

@media (max-width: 980px) {
  .page-wrapper {
    padding-inline: 1.25rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .loops-form__field {
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem;
  }

  .loops-form__submit,
  .loops-form__loading {
    width: 100%;
  }

  .hero__visual {
    width: min(100%, 340px);
  }

  .card-orbit {
    aspect-ratio: 4 / 5;
    border-radius: 32px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-bottom: 2rem;
  }

  .hero__eyebrow {
    font-size: 0.72rem;
  }

  .hero__headline {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .feature-grid {
    gap: 1rem;
  }

  .features {
    padding-top: 3rem;
  }

  .feature-preview {
    order: -1;
  }

  .cta {
    margin-top: 3rem;
  }
}

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