:root {
  --bg: #050816;
  --bg-deep: #0a1020;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #0f172a;
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.5);
  --primary: #00f5a0;
  --secondary: #00b8ff;
  --accent: #8b5cf6;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --max-width: 1120px;
  --radius: 28px;
  --radius-sm: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #060914 0%, #050816 100%);
  overflow-x: hidden;
}

body.is-ready .motion-rise {
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 245, 160, 0.16), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(0, 184, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 72px 72px, 72px 72px;
  animation: backgroundDrift 18s ease-in-out infinite alternate;
}

.wrapper {
  width: min(var(--max-width), calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero-card,
.feature,
.newsletter {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  min-height: min(760px, calc(100vh - 4rem));
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -30% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.16), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
  animation: pulseOrb 9s ease-in-out infinite;
}

.hero-card__content,
.hero-card__panel,
.newsletter__copy,
.newsletter__form,
.feature {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.3rem);
  line-height: 0.92;
}

.tagline {
  margin: 1rem 0;
  font-size: clamp(1.12rem, 2.8vw, 1.55rem);
  color: var(--text);
}

.description,
.feature p,
.newsletter p,
.footer__text,
.footer__copy,
.form-message {
  color: var(--muted);
  line-height: 1.75;
}

.description {
  max-width: 60ch;
  margin: 0;
  font-size: 1.02rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

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

.button--primary {
  color: #051018;
  background: linear-gradient(135deg, var(--primary), #89ffd3);
  box-shadow: 0 16px 36px rgba(0, 245, 160, 0.22);
}

.button--secondary {
  background: rgba(0, 184, 255, 0.12);
  border: 1px solid rgba(0, 184, 255, 0.26);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.motion-rise--delay-1 {
  animation-delay: 0.1s;
}

.motion-rise--delay-2 {
  animation-delay: 0.2s;
}

.motion-rise--delay-3 {
  animation-delay: 0.3s;
}

.motion-rise--delay-4 {
  animation-delay: 0.4s;
}

.hero-card__panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(7, 12, 28, 0.9), rgba(12, 18, 38, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.motion-float {
  animation: panelFloat 7s ease-in-out infinite;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.status-badge {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
}

.status-note {
  color: var(--soft);
  font-size: 0.95rem;
}

.mini-terminal {
  margin-top: 0.25rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-terminal p {
  margin: 0.45rem 0;
  color: #d0ffec;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.mini-terminal span {
  color: var(--secondary);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature {
  padding: 1.6rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 184, 255, 0.2);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.feature__number {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.feature h2 {
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.newsletter h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.newsletter__form {
  display: grid;
  gap: 0.9rem;
}

.newsletter__form input {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  outline: none;
}

.newsletter__form input:focus {
  border-color: rgba(0, 245, 160, 0.4);
}

.form-message {
  min-height: 1.5rem;
  margin: 0;
}

.form-message.is-error {
  color: #ff9db8;
}

.form-message.is-success {
  color: #90ffd4;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  margin-top: 1.5rem;
  padding: 0.5rem 0 0;
}

.footer__brand {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer__text {
  margin: 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-end;
}

.footer__copy {
  grid-column: 1 / -1;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@keyframes backgroundDrift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.03) translate3d(0, -1.5%, 0);
  }
}

@keyframes pulseOrb {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes sheen {
  0%,
  100% {
    transform: translateX(-120%);
  }
  45%,
  65% {
    transform: translateX(120%);
  }
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-card,
  .newsletter,
  .footer {
    grid-template-columns: 1fr;
  }

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

  .footer__links {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .wrapper {
    padding: 1rem 0 2rem;
  }

  .hero-card {
    padding: 1.2rem;
    gap: 1.2rem;
  }

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

  .actions {
    flex-direction: column;
  }

  .hero-card__panel,
  .newsletter,
  .feature {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
