:root {
  --ink: #171720;
  --text: #29293a;
  --muted: #6c6f83;
  --soft: #f8f5ff;
  --white: #fff;
  --purple: #7350e6;
  --purple-deep: #5832d8;
  --pink: #d97cf0;
  --yellow: #ffcf5a;
  --orange: #ff8a2a;
  --lime: #c7f84d;
  --green: #28c76f;
  --line: rgba(115, 80, 230, 0.14);
  --line-strong: rgba(115, 80, 230, 0.24);
  --shadow-sm: 0 14px 36px rgba(52, 36, 112, 0.08);
  --shadow-md: 0 24px 64px rgba(52, 36, 112, 0.14);
  --shadow-lg: 0 34px 100px rgba(52, 36, 112, 0.2);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
body.mirl-v7-homepage {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 207, 90, 0.32), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(217, 124, 240, 0.28), transparent 30%),
    linear-gradient(180deg, #fffdfa 0%, #f7f3ff 42%, #fff 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before,
body.mirl-v7-homepage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(115, 80, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 80, 230, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

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

.wrap {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--purple-deep);
  color: #fff;
  border-radius: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 10px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 45px rgba(52, 36, 112, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: conic-gradient(from 140deg, var(--yellow), var(--pink), var(--purple), var(--yellow));
  box-shadow: 0 12px 28px rgba(115, 80, 230, 0.22);
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  color: #5c5f73;
  font-size: 14px;
  font-weight: 800;
}

.nav a:not(.nav-cta):hover {
  color: var(--purple-deep);
}

.nav .menu,
.nav > ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-cta {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  color: #fff;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 14px 26px rgba(88, 50, 216, 0.24);
}

.v7-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(115, 80, 230, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--purple-deep);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

body.v7-nav-open {
  overflow: hidden;
}

.hero {
  padding: 78px 0 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 46px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(115, 80, 230, 0.16);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 26px rgba(52, 36, 112, 0.06);
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(40, 199, 111, 0.14);
}

h1 {
  margin: 24px 0 18px;
  color: var(--ink);
  font-size: clamp(48px, 7.8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-wrap: balance;
}

.grad {
  color: transparent;
  background: linear-gradient(100deg, #191923 8%, var(--purple-deep) 42%, #f76a0c 76%, #191923 98%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 17px;
  font-weight: 900;
  font-size: 15px;
  transition: 0.22s ease;
}

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

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 18px 34px rgba(88, 50, 216, 0.28);
}

.secondary {
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(115, 80, 230, 0.18);
  box-shadow: 0 14px 30px rgba(52, 36, 112, 0.08);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: #5f6176;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.share-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.share-card {
  width: min(380px, 88vw);
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.share-card img {
  display: block;
  width: 100%;
  height: auto;
}

.float-chip {
  position: absolute;
  z-index: 4;
  padding: 13px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  font-weight: 900;
  color: var(--ink);
  animation: float 6s ease-in-out infinite;
}

.float-chip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chip-one {
  top: 176px;
  left: 0;
}

.chip-two {
  right: 12px;
  top: 142px;
  animation-delay: -1s;
}

.chip-three {
  bottom: 78px;
  left: 14px;
  animation-delay: -2s;
}

.chip-four {
  right: 26px;
  bottom: 38px;
  background: rgba(31, 20, 62, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.chip-four span {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 76px 0;
}

.section-head {
  text-align: center;
  max-width: 790px;
  margin: 0 auto 36px;
}

.section-head--tight {
  margin-bottom: 0;
}

.section-label {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--purple-deep);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.section-label--on-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

h2 {
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-wrap: balance;
}

.section-head p {
  margin: 0 auto;
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  right: -110px;
  top: -130px;
  background: radial-gradient(circle, rgba(217, 124, 240, 0.24), transparent 68%);
}

.card > * {
  position: relative;
}

.icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(115, 80, 230, 0.13), rgba(255, 207, 90, 0.26));
  font-size: 28px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.highlight {
  color: var(--purple-deep);
  font-weight: 900;
}

.story {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 26px;
  align-items: center;
  padding: 34px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.story-visual {
  position: relative;
  min-height: 500px;
}

.story-visual img {
  position: absolute;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
}

.spark {
  width: 330px;
  right: 0;
  bottom: 8px;
  transform: rotate(4deg);
  z-index: 3;
}

.connect-card {
  width: 330px;
  left: 0;
  top: 28px;
  transform: rotate(-3deg);
  z-index: 2;
  opacity: 0.96;
}

.story-copy .section-label {
  box-shadow: none;
}

.story-copy h2 {
  text-align: left;
}

.story-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.timeline {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.time-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 20px;
  background: #fbf8ff;
  border: 1px solid var(--line);
}

.num {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff3bf, var(--yellow));
  color: #6a4300;
  font-weight: 900;
}

.time-item b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.time-item span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.calc-card {
  padding: 44px;
  border-radius: 34px;
  background: #171225;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  top: -180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(115, 80, 230, 0.9), transparent 66%);
}

.calc-card > * {
  position: relative;
}

.calc-card h3 {
  font-size: 36px;
  line-height: 1.05;
  margin: 18px 0 16px;
  letter-spacing: -0.045em;
}

.calc-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.big-number {
  font-size: clamp(58px, 9vw, 108px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.9;
  margin: 34px 0 18px;
  background: linear-gradient(100deg, #fff, var(--yellow), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.small-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58) !important;
}

.example-grid {
  display: grid;
  gap: 12px;
}

.example {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.example b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 6px;
}

.example span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.circle-panel {
  padding: 40px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 243, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}

.avatars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.avatar {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--yellow), var(--pink), var(--purple));
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(52, 36, 112, 0.12);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-card {
  padding: 16px 12px 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.avatar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.avatar-card b {
  font-size: 13px;
  color: var(--ink);
}

.avatar-card span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.faq {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.faq h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.025em;
}

.faq p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.footer {
  padding: 26px 0 50px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid rgba(115, 80, 230, 0.12);
  padding-top: 24px;
}

.footer .brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo .custom-logo-link,
.brand-logo--footer .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo--footer .custom-logo {
  max-width: 96px !important;
  max-height: 24px !important;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 1020px) {
  .v7-nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 30;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.nav-cta) {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
  }

  .nav a:not(.nav-cta):hover {
    background: rgba(115, 80, 230, 0.08);
  }

  .nav .nav-cta {
    width: 100%;
    margin-top: 4px;
  }

  .hero-grid,
  .story,
  .calculator {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 620px;
  }

  .cards,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .story-visual {
    min-height: 580px;
  }

  .avatars {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .topbar {
    padding-top: 10px;
  }

  .topbar-inner,
  .nav {
    border-radius: 24px;
  }

  .topbar-inner {
    gap: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    padding: 48px 0 46px;
  }

  .actions .btn,
  .finale-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 560px;
  }

  .share-card {
    width: min(330px, 92vw);
  }

  .float-chip {
    font-size: 13px;
    padding: 11px 13px;
  }

  .chip-one {
    top: 142px;
    left: 2px;
  }

  .chip-two {
    right: 0;
    top: 120px;
  }

  .chip-three {
    left: 0;
    bottom: 70px;
  }

  .chip-four {
    right: 0;
    bottom: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .story {
    padding: 22px;
    border-radius: 32px;
  }

  .story-visual {
    min-height: 520px;
  }

  .spark {
    width: 285px;
    right: -8px;
    left: auto;
  }

  .connect-card {
    width: 285px;
    left: -8px;
    right: auto;
  }

  .avatars {
    grid-template-columns: repeat(2, 1fr);
  }

  .circle-panel {
    padding: 24px;
    border-radius: 32px;
  }

  .footer-inner {
    display: grid;
  }
}
