:root {
  --bg-a: #f9e6f1;
  --bg-b: #f4cde3;
  --bg-c: #df8db8;
  --ink: #351a2d;
  --ink-soft: #623e57;
  --cta: #ca2f7c;
  --cta-hover: #ac2568;
  --focus: #7f1148;
  --ring: rgba(127, 17, 72, 0.22);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 18% 18%, #fff3fa 0%, transparent 43%),
    radial-gradient(circle at 82% 82%, #efb4d4 0%, transparent 46%),
    linear-gradient(125deg, var(--bg-a), var(--bg-b) 48%, var(--bg-c));
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(105px);
  z-index: -1;
  pointer-events: none;
  animation: floatBackdrop 18s ease-in-out infinite alternate;
}

body::before {
  top: -14rem;
  right: -12rem;
  background: rgba(255, 255, 255, 0.55);
}

body::after {
  bottom: -18rem;
  left: -14rem;
  background: rgba(202, 47, 124, 0.24);
  animation-delay: 2.5s;
}

.hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 2.2rem 1.2rem 2.8rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}

.hero-copy {
  padding: 1.2rem 0.6rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 1.15rem 0 1.5rem;
  max-width: 50ch;
  line-height: 1.7;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.cta-btn,
.secondary-btn {
  border: none;
  border-radius: 0.95rem;
  padding: 0.95rem 1.24rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 170ms ease, background-color 170ms ease;
}

.cta-btn {
  background: var(--cta);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-btn i {
  font-size: 1.1rem;
}

.cta-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
}

.helper {
  margin-top: 0.82rem;
  font-size: 0.92rem;
  color: #6b3d58;
}

.quick-steps {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card {
  padding: 1rem 1rem 0.95rem;
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(79, 24, 56, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.step-one {
  background: rgba(255, 255, 255, 0.48);
  grid-column: 1 / -1;
}

.step-two {
  background: rgba(255, 255, 255, 0.48);
}

.step-three {
  background: rgba(255, 255, 255, 0.48);
}

.step-card i {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.6);
  color: #7f164e;
  font-size: 1.26rem;
}

.step-card h2 {
  margin: 0.7rem 0 0.3rem;
  font-size: 1.08rem;
}

.step-card p {
  margin: 0;
  line-height: 1.5;
  color: #64374f;
  font-size: 0.95rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 8, 28, 0.55);
  z-index: 10;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(820px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 1rem;
  padding: 1.2rem 1.2rem 1.4rem;
  z-index: 11;
  box-shadow: 0 28px 56px rgba(23, 4, 14, 0.4);
}

.modal--simple {
  text-align: center;
}

.modal--simple .modal-intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #72244f;
  cursor: pointer;
}

.modal-intro {
  margin-top: 0.5rem;
  color: #5f2743;
}

.direct-download {
  margin: 1rem 0 0.2rem;
  display: block;
}

.direct-download-text {
  display: inline-block;
  color: #7f164e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.8rem;
  padding: 0.7rem 0.9rem;
}

.direct-download-text:hover {
  background: rgba(255, 255, 255, 0.6);
}

.modal--simple .direct-download {
  text-align: center;
}

.context-message {
  margin: 0.9rem 0 0.2rem;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid #cf216f;
  background: #fff1f8;
  color: #6b1f48;
}

.mac-choice {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0.9rem 0 0.2rem;
}

.secondary-btn {
  background: #ffd3e8;
  color: #5d1740;
}

.secondary-btn:hover {
  background: #ffc2e0;
}

.steps {
  list-style: decimal;
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}

.step {
  margin-bottom: 1.1rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.04rem;
}

.step p {
  margin: 0 0 0.55rem;
  line-height: 1.5;
}

.step img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 0.65rem;
  border: 1px solid #f4c9de;
  background: #fff6fb;
}

.hidden {
  display: none;
}

button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ring);
}

@media (max-width: 920px) {
  .hero {
    padding-top: 1.6rem;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .hero-copy {
    padding: 1rem 0.2rem;
    text-align: left;
  }

  .subtitle {
    font-size: 0.98rem;
  }

  .quick-steps {
    grid-template-columns: 1fr;
  }

  .step-one {
    grid-column: auto;
  }

  .modal {
    width: calc(100vw - 1.2rem);
    padding: 1rem 0.95rem 1.2rem;
  }
}

@keyframes floatBackdrop {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-10px, 10px, 0) scale(0.98);
  }
}
