@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --alimusa-primary: #6048ff;
  --alimusa-secondary: #1f8bff;
  --alimusa-tertiary: #ff67c8;
  --alimusa-warm: #ff9d3f;
  --alimusa-text: #18245f;
  --alimusa-muted: #3f4f84;
  --alimusa-white: #ffffff;
  --alimusa-glass: rgba(255, 255, 255, 0.68);
  --alimusa-border: rgba(255, 255, 255, 0.72);
  --alimusa-shadow: 0 22px 45px rgba(31, 39, 95, 0.22);
  --alimusa-radius-xl: 34px;
  --alimusa-radius-lg: 24px;
  --alimusa-radius-md: 16px;
  --alimusa-transition: 220ms ease;
  --alimusa-surface-blur: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--alimusa-text);
  line-height: 1.45;
  background:
    radial-gradient(circle at 12% 6%, rgba(111, 84, 255, 0.45), transparent 38%),
    radial-gradient(circle at 88% 10%, rgba(255, 127, 198, 0.36), transparent 42%),
    radial-gradient(circle at 80% 84%, rgba(26, 153, 255, 0.34), transparent 40%),
    linear-gradient(140deg, #4a48d8 0%, #6583ff 31%, #df68cb 64%, #49a8ff 100%);
  background-size: 130% 130%;
  animation: alimusaBackgroundFlow 16s ease infinite;
  position: relative;
  overflow-x: hidden;
}

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

.alimusa-bg-shape {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  z-index: -2;
}

.alimusa-bg-shape-a {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle at center, rgba(123, 102, 255, 0.65), transparent 72%);
}

.alimusa-bg-shape-b {
  width: 620px;
  height: 620px;
  bottom: -240px;
  right: -200px;
  background: radial-gradient(circle at center, rgba(48, 177, 255, 0.58), transparent 74%);
}

.alimusa-bg-dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.08;
}

main,
.site-header,
.site-footer {
  width: min(1240px, calc(100% - 28px));
  margin-inline: auto;
}

.site-header {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(236, 244, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--alimusa-shadow);
  backdrop-filter: blur(var(--alimusa-surface-blur));
  position: sticky;
  top: 10px;
  z-index: 60;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--alimusa-primary), var(--alimusa-tertiary));
}

.brand-mark.has-logo {
  background: #fff;
  border: 1px solid #d3dbfa;
  overflow: hidden;
}

.brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-wrap strong {
  display: block;
  color: #102760;
  font-family: "Outfit", sans-serif;
}

.brand-wrap small {
  color: #3f558e;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  color: #1c387b;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  min-height: 44px;
  padding: 11px 14px;
  transition: background var(--alimusa-transition), transform var(--alimusa-transition);
}

.site-nav a:hover {
  background: rgba(87, 105, 255, 0.15);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--alimusa-primary), var(--alimusa-secondary));
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(97, 111, 255, 0.2);
  color: #1f3d80;
  font-weight: 700;
}

.hero-intro {
  margin-top: 34px;
  position: relative;
  text-align: center;
  color: #ffffff;
}

.hero-intro h1 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  text-shadow: 0 4px 20px rgba(34, 31, 84, 0.45);
}

.hero-intro p {
  margin: 18px auto 0;
  max-width: 930px;
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 3px 14px rgba(27, 24, 76, 0.35);
}

.star {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  transform: rotate(45deg);
  opacity: 0.5;
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
}

.star::before {
  width: 2px;
  height: 16px;
  left: 9px;
  top: 2px;
}

.star::after {
  width: 16px;
  height: 2px;
  left: 2px;
  top: 9px;
}

.star-left {
  left: 14%;
  top: 14px;
}

.star-right {
  right: 16%;
  top: 24px;
}

.creator-stage {
  margin-top: 40px;
  border-radius: var(--alimusa-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(140deg, rgba(68, 81, 255, 0.45), rgba(234, 87, 199, 0.38), rgba(77, 181, 255, 0.36));
  padding: 16px;
  box-shadow: var(--alimusa-shadow);
}

.tool-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: fit-content;
  margin: -34px auto 10px;
  background: rgba(232, 239, 255, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  padding: 8px;
  box-shadow: 0 10px 24px rgba(36, 42, 105, 0.2);
}

.tool-tab {
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  padding: 12px 24px;
  min-width: 170px;
  cursor: pointer;
  font-weight: 700;
  color: #3a2f90;
  background: rgba(255, 255, 255, 0.72);
  transition: transform var(--alimusa-transition), box-shadow var(--alimusa-transition), background var(--alimusa-transition);
}

.tool-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #4342c4, #302d9c);
  box-shadow: 0 12px 20px rgba(36, 40, 114, 0.3);
}

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

.stage-body {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(248, 249, 255, 0.88);
  padding: 16px;
}

.tool-panel {
  display: none;
}

.tool-panel.is-active {
  display: block;
}

.maker-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.maker-copy {
  border-radius: 24px;
  border: 1px solid #d6dcff;
  background: rgba(255, 255, 255, 0.86);
  padding: 22px;
}

.maker-copy h2,
.qr-tool-block h2 {
  margin: 0;
  color: #1b2d72;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.maker-copy p,
.qr-tool-block p {
  margin: 8px 0 18px;
  color: var(--alimusa-muted);
}

.shorten-form,
.result-block,
.qr-tool-block {
  display: grid;
  gap: 12px;
}

.shorten-form label,
.result-block label,
.qr-tool-block label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #3f4f89;
}

input[type="url"],
input[type="text"],
input[type="password"] {
  width: 100%;
  border: 1px solid #b6c3f8;
  border-radius: 14px;
  min-height: 46px;
  padding: 14px 16px;
  background: #ffffff;
  color: #1b2d72;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--alimusa-transition), box-shadow var(--alimusa-transition);
}

input:focus {
  border-color: #6674ff;
  box-shadow: 0 0 0 4px rgba(102, 116, 255, 0.16);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.cta-btn,
.ghost-btn,
.pricing-card button {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform var(--alimusa-transition), box-shadow var(--alimusa-transition);
}

.cta-btn {
  color: #fff;
  background: linear-gradient(132deg, #236bff 0%, #4e54ef 36%, #f04cb8 72%, #ffa23d 100%);
  box-shadow: 0 14px 24px rgba(74, 84, 230, 0.35);
}

.cta-strong {
  justify-self: start;
  min-width: 210px;
}

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

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

.ghost-btn {
  color: #2f3b8f;
  background: #ffffff;
  border: 1px solid #bdc8f6;
}

.customize-box {
  border-radius: 14px;
  border: 1px dashed #acbaf2;
  background: rgba(248, 249, 255, 0.92);
  padding: 11px 12px;
}

.customize-box summary {
  cursor: pointer;
  list-style: none;
  color: #34469f;
  font-weight: 700;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.customize-box summary::-webkit-details-marker {
  display: none;
}

.customize-box[open] summary {
  margin-bottom: 10px;
}

.alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.alert.error {
  background: rgba(255, 113, 136, 0.14);
  color: #982548;
  border: 1px solid rgba(255, 113, 136, 0.35);
}

.result-link {
  color: #3348a7;
  font-weight: 700;
  text-decoration: none;
}

.result-actions {
  margin-top: 6px;
}

.maker-tags {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d9deff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.maker-tags span {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.maker-tags span:nth-child(1) { color: #4027b7; }
.maker-tags span:nth-child(2) { color: #2586e2; }
.maker-tags span:nth-child(3) { color: #b13ab9; }
.maker-tags span:nth-child(4) { color: #f5832e; }

.maker-visual {
  border-radius: 24px;
  border: 1px solid #d6dcff;
  background: linear-gradient(145deg, #ffffff 0%, #f4f2fc 100%);
  padding: 18px;
  display: grid;
  place-items: center;
}

.visual-card {
  width: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid #cad1f5;
  background: linear-gradient(160deg, #f5f7ff, #efecfa);
  overflow: hidden;
}

.visual-qr-box {
  width: 210px;
  max-width: calc(100% - 24px);
  border-radius: 18px;
  border: 1px solid #d6ddff;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(61, 70, 149, 0.25);
  padding: 12px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.visual-qr-box img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  border: 1px solid #cfd6fb;
  background: #ffffff;
  padding: 5px;
}

.visual-qr-box span {
  font-weight: 700;
  color: #2f3f9e;
}

.qr-tool-block {
  border-radius: 20px;
  border: 1px solid #d1d8fa;
  background: rgba(255, 255, 255, 0.85);
  padding: 24px;
}

.landing-qr-wrap {
  margin-top: 6px;
  border-radius: 16px;
  border: 1px dashed #b9c2f0;
  min-height: 280px;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.landing-qr-wrap img {
  width: 220px;
  height: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid #d2daf7;
  border-radius: 14px;
}

.trust-row {
  margin-top: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(245, 249, 255, 0.82);
  box-shadow: var(--alimusa-shadow);
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-row article {
  text-align: center;
  color: #22336f;
  font-weight: 700;
}

section {
  margin-top: 26px;
}

section > header h2 {
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  text-shadow: 0 4px 18px rgba(26, 26, 88, 0.42);
}

section > header p {
  margin: 8px auto 0;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 760px;
}

.glass-card {
  border-radius: var(--alimusa-radius-lg);
  background: rgba(244, 248, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: var(--alimusa-shadow);
}

.feature-grid,
.preview-grid,
.pricing-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.preview-panel,
.pricing-card {
  padding: 18px;
}

.feature-card h3,
.preview-panel h3,
.pricing-card h3 {
  margin-top: 0;
  color: #1f3071;
  font-family: "Outfit", sans-serif;
}

.feature-card p,
.preview-panel p,
.preview-panel li,
.pricing-card li {
  color: #51618f;
}

.preview-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.mini-stats {
  display: grid;
  gap: 8px;
}

.mini-stats div {
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.mini-stats span {
  color: #6672a8;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
}

.mini-stats strong {
  display: block;
  margin-top: 3px;
  color: #1e2f77;
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
}

.preview-panel ul,
.pricing-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.preview-panel li {
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.preview-panel li span {
  color: #6b76a5;
}

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

.price {
  margin: 8px 0 14px;
  color: #1f2f75;
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
}

.price span {
  font-size: 1rem;
  color: #6170a4;
}

.pricing-card.featured {
  background: linear-gradient(155deg, rgba(92, 91, 248, 0.3), rgba(248, 93, 189, 0.22), rgba(95, 172, 255, 0.24));
}

.site-footer {
  margin-top: 24px;
  margin-bottom: 94px;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.site-footer h2 {
  margin: 0;
  color: #1e2f73;
  font-family: "Outfit", sans-serif;
}

.site-footer p {
  margin: 6px 0 0;
  color: #546290;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #2f3e96;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
}

.site-footer small {
  color: #6072a9;
}

.mobile-bottom-nav {
  display: none;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .maker-layout,
  .feature-grid,
  .preview-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .trust-row {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .tool-tab {
    min-width: 145px;
  }
}

@media (max-width: 760px) {
  main,
  .site-header,
  .site-footer {
    width: min(1240px, calc(100% - 18px));
  }

  .site-header {
    border-radius: 16px;
    padding: 10px 12px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 10px;
    border-radius: 14px;
    background: rgba(236, 243, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--alimusa-shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-nav a {
    text-align: center;
  }

  .hero-intro {
    margin-top: 24px;
  }

  .star {
    display: none;
  }

  .creator-stage {
    margin-top: 30px;
    padding: 10px;
    border-radius: 24px;
  }

  .tool-tabs {
    margin-top: -24px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .tool-tab {
    width: calc(50% - 6px);
    min-width: 120px;
    padding: 11px 8px;
  }

  .stage-body,
  .maker-copy,
  .maker-visual,
  .qr-tool-block,
  .feature-card,
  .preview-panel,
  .pricing-card,
  .site-footer {
    padding: 14px;
  }

  .maker-copy h2,
  .qr-tool-block h2 {
    font-size: 1.8rem;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .cta-strong,
  .cta-btn,
  .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .visual-card {
    min-height: 250px;
  }

  .visual-qr-box {
    width: min(210px, calc(100% - 20px));
  }

  .trust-row {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 12px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: rgba(239, 245, 255, 0.96);
    box-shadow: var(--alimusa-shadow);
  }

  .mobile-bottom-nav a {
    text-decoration: none;
    text-align: center;
    display: grid;
    gap: 3px;
    place-items: center;
    color: #243d8d;
    font-weight: 700;
    min-height: 52px;
    padding: 8px 4px;
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.73rem;
  }

  .mobile-bottom-nav a span {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #5063b4;
  }

  .mobile-bottom-nav a.is-active {
    background: linear-gradient(135deg, var(--alimusa-primary), var(--alimusa-secondary));
    color: #fff;
    box-shadow: 0 8px 16px rgba(71, 83, 228, 0.35);
  }

  .mobile-bottom-nav a.is-active span {
    color: rgba(255, 255, 255, 0.85);
  }

  .site-footer {
    margin-bottom: 88px;
  }
}
