:root {
  --bg: #0a0e1a;
  --card: #161b33;
  --card-border: rgba(100, 180, 255, 0.35);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.88);
  --yellow: #ffeb3b;
  --yellow-text: #1a1030;
  --green: #4caf50;
  --radius: 18px;
  --column: min(100%, 520px);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

/* Starfield */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(88, 28, 135, 0.25), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(30, 64, 175, 0.12), transparent 45%),
    var(--bg);
  overflow: hidden;
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 73% 8%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 42% 65%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 88% 42%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 25% 88%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 55% 35%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 15% 50%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 92% 78%, rgba(255, 255, 255, 0.4), transparent);
  background-size: 100% 100%;
  opacity: 0.85;
}

.stars::after {
  transform: translate(37px, 23px);
  opacity: 0.55;
}

.wrap {
  position: relative;
  z-index: 1;
  width: var(--column);
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 1.75rem;
}

/* Hero & footer gradient cards */
.hero,
.footer-cta {
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem 1.15rem;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(124, 58, 237, 0.35);
  background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 45%, #4c1d95 100%);
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.08rem, 4.2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 0.9rem;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
}

.footer-cta {
  margin-top: 0.1rem;
}

.footer-cta p {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--yellow-text);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 235, 59, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn-yellow:hover {
  filter: brightness(1.05);
}

.btn-yellow:active {
  transform: scale(0.98);
}

.section-title {
  margin: 1rem 0 0.55rem;
  font-size: 0.94rem;
  font-weight: 700;
}

/* Step cards */
.card {
  position: relative;
  border-radius: var(--radius);
  padding: 0.95rem 1rem 1rem;
  margin-bottom: 0.65rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.card-num {
  position: absolute;
  top: 0.75rem;
  left: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.95;
}

.card-body {
  padding-top: 0.1rem;
  padding-left: 1.35rem;
}

.card p {
  margin: 0 0 0.8rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.42;
}

.card p strong {
  color: var(--text);
  font-weight: 700;
}

.btn-sky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.68rem 0.95rem;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
  transition: filter 0.12s ease, transform 0.12s ease;
}

.btn-sky:hover {
  filter: brightness(1.06);
}

.btn-sky:active {
  transform: scale(0.99);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
}

.status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.url-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  align-items: stretch;
}

.url-row input {
  flex: 1;
  min-width: 0;
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.76rem;
}

.url-row input:focus {
  outline: 2px solid rgba(56, 189, 248, 0.5);
  outline-offset: 1px;
}

.icon-btn {
  flex-shrink: 0;
  width: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.landing-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  background: rgba(22, 27, 51, 0.95);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.landing-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 479px) {
  .wrap {
    padding: 0.8rem 0.9rem 1.4rem;
  }

  .hero,
  .footer-cta {
    padding: 0.9rem 0.95rem 1rem;
  }

  .hero h1 {
    margin-bottom: 0.3rem;
    font-size: 1.02rem;
  }

  .hero p {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
  }

  .btn-yellow {
    padding: 0.74rem 0.9rem;
    font-size: 0.71rem;
  }

  .section-title {
    margin: 0.85rem 0 0.5rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 0.85rem 0.9rem 0.9rem;
    margin-bottom: 0.55rem;
  }

  .card-num {
    top: 0.68rem;
    left: 0.82rem;
    font-size: 0.96rem;
  }

  .card-body {
    padding-left: 1.25rem;
  }

  .card p {
    margin-bottom: 0.72rem;
    font-size: 0.81rem;
    line-height: 1.38;
  }

  .btn-sky {
    padding: 0.64rem 0.85rem;
    font-size: 0.81rem;
  }

  .status {
    margin-top: 0.48rem;
    font-size: 0.71rem;
  }

  .url-row {
    gap: 0.4rem;
    margin-bottom: 0.48rem;
  }

  .url-row input {
    padding: 0.54rem 0.68rem;
    font-size: 0.74rem;
  }

  .icon-btn {
    width: 38px;
  }

  .footer-cta p {
    margin-bottom: 0.65rem;
    font-size: 0.73rem;
  }
}

@media (min-width: 480px) {
  .wrap {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }
}
