/* =========================================================
   VIRAL1S — HOME
   Mobile First
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #070711;
  --card: #10101b;
  --card-2: #151522;

  --text: #ffffff;
  --muted: #9696aa;

  --purple: #7c5cff;
  --purple-light: #aa91ff;
  --blue: #4d82ff;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 50% -8%,
      rgba(124, 92, 255, 0.17),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

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

button {
  font: inherit;
}


/* =========================================================
   LOADER
========================================================= */

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #070711;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  margin-bottom: 20px;

  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.loader-brand span {
  color: var(--purple);
}

.loader-line {
  width: 150px;
  height: 3px;

  overflow: hidden;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.loader-line-fill {
  width: 45%;
  height: 100%;

  border-radius: inherit;

  background: linear-gradient(
    90deg,
    var(--purple),
    var(--blue)
  );

  animation: loaderMove 0.9s ease-in-out infinite alternate;
}

@keyframes loaderMove {
  from {
    transform: translateX(-90%);
  }

  to {
    transform: translateX(210%);
  }
}


/* =========================================================
   PAGE
========================================================= */

.app {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 28px;
}


/* =========================================================
   HEADER
========================================================= */

.topbar {
  position: relative;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 104px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 205px;
  max-width: 55vw;
  height: auto;
}


/* =========================================================
   MENU BUTTON
========================================================= */

.menu-button {
  position: relative;
  z-index: 102;

  width: 48px;
  height: 48px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 5px;

  border: 1px solid var(--border-strong);
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.045);

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.menu-button:active {
  transform: scale(0.94);
}

.menu-button span {
  display: block;

  width: 20px;
  height: 2px;

  border-radius: 999px;

  background: #fff;

  transition:
    transform 0.28s ease,
    opacity 0.22s ease;
}

.menu-button.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   MENU
========================================================= */

.main-menu {
  position: absolute;

  top: 86px;
  right: 0;

  width: min(290px, calc(100vw - 56px));

  display: flex;
  flex-direction: column;

  padding: 10px;

  border: 1px solid var(--border-strong);
  border-radius: 20px;

  background: rgba(15, 15, 27, 0.97);

  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(124, 92, 255, 0.08);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  opacity: 0;
  visibility: hidden;

  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;

  pointer-events: none;

  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.main-menu.open {
  opacity: 1;
  visibility: visible;

  transform: translateY(0) scale(1);

  pointer-events: auto;
}

.main-menu a {
  padding: 15px 16px;

  border-radius: 13px;

  color: #d9d9e7;

  font-size: 15px;
  font-weight: 700;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.main-menu a:active {
  transform: scale(0.98);
  background: rgba(124, 92, 255, 0.12);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  padding: 118px 0 112px;
}

.eyebrow {
  display: flex;
  align-items: center;

  gap: 11px;

  margin-bottom: 30px;

  color: #b8a8ff;

  font-size: 17px;
  font-weight: 800;
}

.eyebrow-dot {
  width: 11px;
  height: 11px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--purple);

  box-shadow:
    0 0 15px rgba(124, 92, 255, 0.7);

  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.65;
  }
}


.hero h1 {
  max-width: 720px;

  font-size: clamp(52px, 9vw, 82px);
  line-height: 0.98;

  letter-spacing: -4px;
  font-weight: 950;
}

.gradient-text {
  display: inline-block;

  color: transparent;

  background:
    linear-gradient(
      110deg,
      #a991ff 0%,
      #765cff 25%,
      #4d8cff 50%,
      #9b7dff 75%,
      #a991ff 100%
    );

  background-size: 300% 300%;

  -webkit-background-clip: text;
  background-clip: text;

  animation: gradientFlow 4s ease-in-out infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.hero-description {
  max-width: 680px;

  margin-top: 34px;

  color: var(--muted);

  font-size: 20px;
  line-height: 1.7;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-button {
  position: relative;

  width: fit-content;
  min-width: 270px;

  margin-top: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 34px;

  overflow: hidden;

  padding: 21px 27px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;

  background:
    linear-gradient(
      120deg,
      #7654ff,
      #4f82ff,
      #7654ff
    );

  background-size: 220% 220%;

  box-shadow:
    0 15px 40px rgba(84, 77, 255, 0.23);

  color: #fff;

  font-size: 19px;
  font-weight: 850;

  transform: translateZ(0);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;

  -webkit-tap-highlight-color: transparent;
}


/* moving light */

.primary-button::before {
  content: "";

  position: absolute;

  top: -100%;
  left: -55%;

  width: 35%;
  height: 300%;

  transform: rotate(24deg);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );

  animation: buttonShine 3.8s ease-in-out infinite;
}

@keyframes buttonShine {
  0%,
  58% {
    left: -55%;
  }

  82%,
  100% {
    left: 130%;
  }
}


/* soft breathing */

.animated-button {
  animation:
    buttonGradient 5s ease infinite,
    buttonPulse 2.8s ease-in-out infinite;
}

@keyframes buttonGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow:
      0 15px 40px rgba(84, 77, 255, 0.20);
  }

  50% {
    box-shadow:
      0 17px 46px rgba(84, 77, 255, 0.38);
  }
}

.primary-button:active {
  transform: scale(0.97);
}

.button-arrow {
  position: relative;
  z-index: 2;

  font-size: 24px;

  transition: transform 0.25s ease;
}

.primary-button > span:first-child {
  position: relative;
  z-index: 2;
}


/* =========================================================
   SHARED SECTION
========================================================= */

.section-heading {
  max-width: 700px;
  margin-bottom: 46px;
}

.section-label {
  display: block;

  margin-bottom: 14px;

  color: #a995ff;

  font-size: 14px;
  font-weight: 900;

  letter-spacing: 1.7px;
}

.section-heading h2,
.final-content h2 {
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.06;

  letter-spacing: -2px;
  font-weight: 900;
}

.section-heading p {
  margin-top: 20px;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.65;
}


/* =========================================================
   DEMO SECTION
========================================================= */

.demo-section {
  padding: 0 0 105px;
}

.demo-area {
  padding: 45px 32px;

  border: 1px solid var(--border);
  border-radius: 32px;

  background:
    linear-gradient(
      145deg,
      rgba(124, 92, 255, 0.035),
      rgba(255, 255, 255, 0.012)
    );
}


/* =========================================================
   PHONE
========================================================= */

.phone-preview {
  width: min(100%, 370px);

  margin: 0 auto 48px;

  padding: 11px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 48px;

  background: #1a1a25;

  box-shadow:
    0 25px 65px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  position: relative;

  aspect-ratio: 9 / 16;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  border-radius: 38px;

  background: #000;
}

.demo-cta {
  height: 14%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 15px;

  color: #fff;

  font-size: 13px;
  font-weight: 900;
}

.demo-top-space {
  height: 3%;
}

.demo-hook {
  min-height: 16%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 17px 25px;

  background: #fff;

  color: #070707;

  text-align: center;

  font-size: 19px;
  line-height: 1.12;

  font-weight: 950;
}

.demo-image {
  position: relative;

  flex: 1;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      rgba(139, 112, 255, 0.35),
      transparent 45%
    ),
    linear-gradient(
      160deg,
      #17132d,
      #292058,
      #151325
    );
}

.demo-image-glow {
  position: absolute;

  width: 70%;
  aspect-ratio: 1;

  border-radius: 50%;

  background: rgba(130, 102, 255, 0.14);

  filter: blur(28px);
}

.demo-image-shape {
  position: relative;

  width: 48%;
  height: 55%;

  border: 1px solid rgba(255, 255, 255, 0.16);

  border-radius: 80px 80px 30px 30px;

  background:
    linear-gradient(
      145deg,
      rgba(174, 151, 255, 0.25),
      rgba(255, 255, 255, 0.03)
    );

  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.04);
}

.demo-image-label {
  position: absolute;

  bottom: 24px;

  color: rgba(255, 255, 255, 0.6);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 2px;
}

.demo-bottom-space {
  height: 13%;
}


/* =========================================================
   DEMO FEATURES
========================================================= */

.demo-info {
  display: grid;
  gap: 18px;
}

.feature {
  display: flex;
  align-items: flex-start;

  gap: 18px;

  padding: 22px;

  border: 1px solid var(--border);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.018);
}

.feature-icon {
  width: 58px;
  height: 58px;

  flex: 0 0 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 15px;

  background: rgba(124, 92, 255, 0.09);

  color: #b6a5ff;

  font-size: 13px;
  font-weight: 900;
}

.feature h3 {
  margin-bottom: 8px;

  font-size: 18px;
  font-weight: 850;
}

.feature p {
  color: var(--muted);

  font-size: 15px;
  line-height: 1.55;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how-section {
  padding: 90px 0 110px;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  padding: 30px;

  border: 1px solid var(--border);
  border-radius: 25px;

  background: rgba(255, 255, 255, 0.018);
}

.step-number {
  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 25px;

  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 15px;

  background: rgba(124, 92, 255, 0.09);

  color: #b8a9ff;

  font-size: 16px;
  font-weight: 900;
}

.step h3 {
  margin-bottom: 12px;

  font-size: 22px;
  font-weight: 900;
}

.step p {
  color: var(--muted);

  font-size: 16px;
  line-height: 1.6;
}


/* =========================================================
   FREE RESOURCES
========================================================= */

.resources-section {
  padding: 20px 0 95px;
}

.resources-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(220px, 1fr)
    );

  gap: 14px;
}

.resource-card {
  min-height: 190px;

  display: flex;
  flex-direction: column;

  padding: 25px;

  border: 1px solid var(--border);
  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(124, 92, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.resource-card strong {
  font-size: 19px;
  line-height: 1.35;
}

.resource-card span {
  margin-top: 11px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.6;
}

.resource-card b {
  margin-top: auto;
  padding-top: 22px;

  color: #aa91ff;

  font-size: 14px;
}

@media (min-width: 950px) {

  .resource-card:hover {
    transform: translateY(-4px);

    border-color:
      rgba(124, 92, 255, 0.30);

    background:
      rgba(124, 92, 255, 0.065);
  }

}



/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
  position: relative;

  overflow: hidden;

  margin: 35px 0 95px;

  padding: 48px 34px;

  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 30px;

  background:
    linear-gradient(
      135deg,
      rgba(124, 92, 255, 0.12),
      rgba(12, 12, 24, 0.8)
    );
}

.final-glow {
  position: absolute;

  width: 300px;
  height: 300px;

  top: -190px;
  right: -100px;

  border-radius: 50%;

  background: rgba(100, 80, 255, 0.23);

  filter: blur(55px);

  pointer-events: none;
}

.final-content {
  position: relative;
  z-index: 2;
}

.final-content p {
  max-width: 580px;

  margin-top: 20px;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.65;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 42px 0 55px;

  border-top: 1px solid rgba(255, 255, 255, 0.06);

  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 25px;

  margin-bottom: 30px;
}

.footer-links a {
  color: #9898aa;

  font-size: 15px;
  font-weight: 750;

  transition: color 0.2s ease;
}

.footer-brand a {
  color: #606071;

  font-size: 15px;
}


/* =========================================================
   DESKTOP / TABLET
========================================================= */

@media (min-width: 760px) {

  .app {
    padding: 0 48px;
  }

  .topbar {
    min-height: 120px;
  }

  .hero {
    padding: 130px 0 140px;
  }

  .demo-area {
    display: grid;

    grid-template-columns:
      minmax(300px, 0.85fr)
      minmax(300px, 1fr);

    align-items: center;

    gap: 65px;

    padding: 60px;
  }

  .phone-preview {
    margin: 0 auto;
  }

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

  .step {
    min-height: 280px;
  }

  .final-cta {
    padding: 65px;
  }

}


@media (min-width: 950px) {

  .menu-button {
    display: none;
  }

  .main-menu {
    position: static;

    width: auto;

    flex-direction: row;

    gap: 5px;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;
    backdrop-filter: none;

    opacity: 1;
    visibility: visible;

    transform: none;

    pointer-events: auto;
  }

  .main-menu a {
    padding: 10px 13px;

    font-size: 14px;
  }

  .main-menu a:hover {
    color: #fff;

    background: rgba(255, 255, 255, 0.055);
  }

  .primary-button:hover {
    transform: translateY(-4px);

    box-shadow:
      0 20px 55px rgba(84, 77, 255, 0.42);
  }

  .primary-button:hover .button-arrow {
    transform: translateX(6px);
  }

  .footer-links a:hover {
    color: #fff;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

  .app {
    padding: 0 28px;
  }

  .topbar {
    min-height: 100px;
  }

  .brand-logo {
    width: 205px;
  }

  .hero {
    padding: 105px 0 100px;
  }

  .hero h1 {
    font-size: 52px;
    letter-spacing: -3px;
  }

  .hero-description {
    font-size: 18px;
  }

  .primary-button {
    min-width: 0;
    width: 100%;

    padding: 20px 25px;
  }

  .demo-area {
    padding: 34px 18px;
  }

  .phone-preview {
    width: min(100%, 315px);

    border-radius: 40px;
  }

  .phone-screen {
    border-radius: 31px;
  }

  .feature {
    padding: 19px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;

    flex-basis: 52px;
  }

  .how-section {
    padding: 75px 0 90px;
  }

  .step {
    padding: 27px;
  }

  .final-cta {
    padding: 40px 32px;
  }

}


/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}



/* =========================================================
   MOBILE — COMPACT HOME
========================================================= */

@media (max-width: 759px) {

  .app {
    padding-left: 22px;
    padding-right: 22px;
  }

  /* Header */
  .topbar {
    min-height: 82px;
  }

  .brand-logo {
    width: 165px;
  }

  .menu-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  /* Hero */
  .hero {
    padding: 68px 0 72px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 58px);
    line-height: 0.98;
    letter-spacing: -3px;
  }

  .hero-description {
    margin-top: 26px;
    font-size: 17px;
    line-height: 1.6;
  }

  .primary-button {
    width: 100%;
    min-width: 0;
    margin-top: 32px;
    padding: 18px 22px;
    border-radius: 18px;
    font-size: 17px;
  }

  /* Shared headings */
  .section-heading {
    margin-bottom: 30px;
  }

  .section-label {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .section-heading h2,
  .final-content h2 {
    font-size: 36px;
    line-height: 1.07;
    letter-spacing: -1.5px;
  }

  .section-heading p {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.55;
  }

  /* Demo */
  .demo-section {
    padding-bottom: 55px;
  }

  .demo-area {
    padding: 28px 16px;
    border-radius: 26px;
  }

  .phone-preview {
    width: min(100%, 300px);
    margin-bottom: 30px;
    padding: 9px;
    border-radius: 38px;
  }

  .phone-screen {
    border-radius: 30px;
  }

  .demo-hook {
    padding: 13px 18px;
    font-size: 16px;
  }

  .demo-info {
    gap: 12px;
  }

  .feature {
    gap: 14px;
    padding: 17px;
    border-radius: 17px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 13px;
  }

  .feature h3 {
    margin-bottom: 5px;
    font-size: 16px;
  }

  .feature p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* How it works */
  .how-section {
    padding: 55px 0 65px;
  }

  .steps {
    gap: 13px;
  }

  .step {
    padding: 22px;
    border-radius: 21px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 13px;
    font-size: 14px;
  }

  .step h3 {
    margin-bottom: 8px;
    font-size: 19px;
  }

  .step p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Final CTA */
  .final-cta {
    margin: 20px 0 60px;
    padding: 32px 24px;
    border-radius: 25px;
  }

  .final-content p {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.55;
  }

  .final-cta .primary-button {
    margin-top: 28px;
  }

  /* Footer */
  footer {
    padding: 32px 0 38px;
  }

  .footer-links {
    gap: 20px;
    margin-bottom: 22px;
  }

  .footer-links a,
  .footer-brand a {
    font-size: 14px;
  }
}