:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg2: #0d0d14;
  --card: rgba(16, 16, 24, 0.72);
  --card2: rgba(18, 18, 28, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.52);
  --accent: #e50914;
  --accent2: #ff3b30;
  --gold: #d6a84a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --radius2: 16px;
  --max: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
  --fontTitle: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #000;
  overflow-x: hidden;
}

body.home {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62) 55%, rgba(0, 0, 0, 0.3)),
    url("assets/moo-sender-cover.webp") center/cover no-repeat fixed,
    #000;
  overflow: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
  z-index: 1;
}

.aurora {
  display: none;
}

@keyframes drift {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(-2deg);
  }
  100% {
    transform: translate3d(2%, 1%, 0) rotate(2deg);
  }
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.wrap.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(12, 12, 18, 0.56);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

body.home .topbar {
  position: relative;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.brand-title {
  font-family: var(--fontTitle);
  font-size: 22px;
  letter-spacing: 0.5px;
  line-height: 1.05;
}

.brand-sub {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav a.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav a.link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(120deg, #ff3b30, #e50914);
  box-shadow: 0 18px 40px rgba(229, 9, 20, 0.28);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn.outline {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn.full {
  width: 100%;
}

.hero {
  margin-top: 22px;
  padding: 34px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(10, 10, 10, 0.82), rgba(0, 0, 0, 0.52));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 10, 0.85), rgba(7, 7, 10, 0.25));
}

body.home .hero {
  flex: 1;
  display: flex;
  align-items: center;
  margin-top: 18px;
  padding: 44px 40px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.title {
  font-family: var(--fontTitle);
  font-size: 52px;
  margin: 12px 0 10px;
  letter-spacing: 0.6px;
}

.lead {
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 16, 0.55);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.card {
  background: rgba(10, 10, 16, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--fontTitle);
  letter-spacing: 0.4px;
}

.list {
  margin: 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 8px;
}

.section {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--fontTitle);
  font-size: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step {
  position: relative;
  overflow: hidden;
}

.step .num {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.step .label {
  margin-top: 8px;
  font-weight: 800;
}

.step .desc {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.step::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step:hover::before {
  opacity: 1;
}

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.price-card .price {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.4px;
  margin: 10px 0;
}

.price-card .sub {
  color: var(--muted);
  font-size: 13px;
}

.kv {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.footer {
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted2);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.home .footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Forms */

.shell {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  margin-top: 22px;
}

.shell.single {
  grid-template-columns: 1fr;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 18, 0.62);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.panel h1,
.panel h2 {
  margin: 0 0 14px;
  font-family: var(--fontTitle);
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

input,
select {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 16, 0.66);
  padding: 12px 12px;
  color: var(--text);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.18);
}

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

.segmented {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 16, 0.55);
}

.segmented button {
  border: none;
  border-radius: 999px;
  padding: 9px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.segmented button.active {
  background: linear-gradient(120deg, rgba(229, 9, 20, 0.35), rgba(255, 59, 48, 0.22));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.billing {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 16, 0.52);
}

.billing .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.billing .row strong {
  color: rgba(255, 255, 255, 0.92);
}

.support {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 50;
}

.modal.show {
  display: grid;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 18, 0.8);
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(16px);
}

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

.x {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.qr {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius2);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 16, 0.5);
}

.qr img {
  width: 210px;
  height: 210px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-btn {
    display: grid;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 12, 18, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav.open {
    display: flex;
  }

  .nav .btn {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
  .title {
    font-size: 42px;
  }
  body.home {
    overflow: auto;
  }
  body.home .hero {
    padding: 28px 20px;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora {
    animation: none;
  }
  .btn {
    transition: none;
  }
  .reveal {
    transition: none;
  }
}
