:root {
  --bg: #050507;
  --card: rgba(14, 14, 20, 0.62);
  --line: rgba(108, 119, 165, 0.24);
  --text: #f5f7ff;
  --muted: #adb2c8;
  --accent: #39f38b;
  --accent-2: #9f5fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 50% -15%, rgba(119, 72, 255, 0.24), transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(57, 243, 139, 0.24), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(159, 95, 255, 0.24), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(83, 144, 255, 0.14), transparent 34%);
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(57, 243, 139, 0.16) 0%, rgba(159, 95, 255, 0.08) 42%, transparent 70%);
  filter: blur(8px);
  opacity: 0.9;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 7, 0.56);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-text {
  text-shadow: 0 0 14px rgba(57, 243, 139, 0.35);
}

.logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(57, 243, 139, 0.18), rgba(159, 95, 255, 0.2));
  box-shadow: 0 0 26px rgba(57, 243, 139, 0.25), inset 0 0 20px rgba(159, 95, 255, 0.16);
  animation: logoPulse 3.1s ease-in-out infinite;
}

.logo-wrap.no-logo::before {
  content: 'S';
  color: var(--accent);
  font-weight: 800;
}

.logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(57, 243, 139, 0.55));
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  text-shadow: 0 0 12px rgba(159, 95, 255, 0.35);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
}

.main-content {
  position: relative;
  padding: 44px 0 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(18, 20, 26, 0.82), rgba(12, 14, 20, 0.56));
  box-shadow: 0 25px 70px rgba(6, 8, 15, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(57, 243, 139, 0.08), rgba(159, 95, 255, 0.08));
}

.badge {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

h3 {
  margin-top: 0;
}

.hero p {
  color: var(--muted);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-pills {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pills span {
  font-size: 12px;
  color: #d5cff8;
  border: 1px solid rgba(159, 95, 255, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(159, 95, 255, 0.12);
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, #157a4b, #1f8f5c 35%, #2f7fa8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(31, 143, 92, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: rgba(159, 95, 255, 0.08);
  border-color: rgba(159, 95, 255, 0.28);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(6, 8, 15, 0.5);
}

.page-head {
  margin-bottom: 18px;
}

.page-head p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(2, 4, 12, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 243, 139, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 36px rgba(2, 4, 12, 0.56), 0 0 26px rgba(159, 95, 255, 0.2);
}

.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.package-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.package-list li {
  margin-bottom: 6px;
}

.stats .card {
  text-align: center;
}

.kpi {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
}

.kpi-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.steps li {
  margin-bottom: 8px;
}

.quote p {
  margin-top: 0;
  color: var(--text);
  font-weight: 600;
}

.quote span {
  color: var(--muted);
  font-size: 14px;
}

.price {
  color: var(--accent);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 14px;
  border: 0;
  background: rgba(16, 16, 20, 0.82);
  color: var(--text);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-a {
  display: none;
  color: var(--muted);
  padding: 0 14px 14px;
}

.faq-item.open .faq-a {
  display: block;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  background: #0b0b0f;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.notice {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.success {
  border: 1px solid #226e4f;
  background: rgba(34, 110, 79, 0.2);
}

.error {
  border: 1px solid #7a3654;
  background: rgba(122, 54, 84, 0.24);
  color: #ffd0e0;
}

.pay-form {
  margin-top: 14px;
}

.checkout-briefing {
  margin-top: 14px;
}

.website-packages-grid {
  align-items: start;
}

.website-package-card {
  align-self: start;
  border-color: rgba(57, 243, 139, 0.22);
  background: linear-gradient(160deg, rgba(11, 24, 20, 0.82), rgba(12, 18, 28, 0.72));
}

.white-label-offer-card {
  align-self: start;
  border-color: rgba(159, 95, 255, 0.32);
  background: linear-gradient(160deg, rgba(18, 12, 30, 0.82), rgba(10, 20, 32, 0.72));
}

.white-label-offer-meta {
  color: #d6b8ff;
}

.white-label-open {
  width: 100%;
  margin-top: 14px;
}

.checkout-briefing > summary {
  list-style: none;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.checkout-briefing > summary::-webkit-details-marker {
  display: none;
}

.checkout-briefing[open] > summary {
  margin-bottom: 10px;
  box-shadow: 0 0 18px rgba(57, 243, 139, 0.3);
}

.website-briefing-open {
  width: 100%;
  margin-top: 14px;
}

.website-briefing-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(78px, 10vh, 120px) 14px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.white-label-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(78px, 10vh, 120px) 14px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.website-briefing-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.white-label-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.website-briefing-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.78);
  backdrop-filter: blur(5px);
}

.white-label-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.78);
  backdrop-filter: blur(5px);
}

.website-briefing-content {
  position: relative;
  width: min(760px, 92vw);
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(159, 95, 255, 0.32);
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(57, 243, 139, 0.14), transparent 55%),
    radial-gradient(700px 260px at 100% 0%, rgba(159, 95, 255, 0.2), transparent 62%),
    rgba(9, 11, 18, 0.96);
  padding: 22px;
  box-shadow: 0 30px 80px rgba(2, 6, 18, 0.74), 0 0 36px rgba(57, 243, 139, 0.16);
  max-height: calc(100vh - 140px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(16px) scale(0.985);
  transition: transform 0.26s cubic-bezier(.22,.8,.2,1), opacity 0.22s ease;
  opacity: 0;
}

.white-label-content {
  position: relative;
  width: min(760px, 92vw);
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(159, 95, 255, 0.32);
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(57, 243, 139, 0.14), transparent 55%),
    radial-gradient(700px 260px at 100% 0%, rgba(159, 95, 255, 0.2), transparent 62%),
    rgba(9, 11, 18, 0.96);
  padding: 22px;
  box-shadow: 0 30px 80px rgba(2, 6, 18, 0.74), 0 0 36px rgba(57, 243, 139, 0.16);
  max-height: calc(100vh - 140px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(16px) scale(0.985);
  transition: transform 0.26s cubic-bezier(.22,.8,.2,1), opacity 0.22s ease;
  opacity: 0;
}

.website-briefing-modal.open .website-briefing-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.white-label-modal.open .white-label-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.website-briefing-topline {
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #9f9fc8;
}

.website-briefing-sub {
  margin: 8px 0 0;
  color: #cfd3e9;
}

.website-briefing-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.white-label-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.pay-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.pay-form input,
.pay-form textarea {
  margin-top: 6px;
}

.pay-form .btn {
  width: 100%;
}

.tool-hero {
  margin-bottom: 14px;
}

.tool-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(57, 243, 139, 0.34);
  background: rgba(14, 55, 34, 0.45);
  color: #d3ffe9;
}

.tool-gallery {
  margin-bottom: 12px;
}

.tool-card {
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.tool-card-static {
  cursor: default;
  border-color: rgba(57, 243, 139, 0.35);
  background: linear-gradient(155deg, rgba(8, 46, 30, 0.85), rgba(8, 32, 24, 0.78));
  padding: 0;
  overflow: hidden;
}

.tool-card-static:hover {
  transform: none;
  border-color: rgba(57, 243, 139, 0.35);
}

.tool-thumb {
  height: 240px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #e5dbff;
  background: linear-gradient(120deg, rgba(57, 243, 139, 0.18), rgba(159, 95, 255, 0.25));
  border: 1px solid rgba(159, 95, 255, 0.35);
}

.tool-thumb-license {
  background: linear-gradient(120deg, rgba(57, 243, 139, 0.24), rgba(14, 91, 58, 0.45));
  border-color: rgba(57, 243, 139, 0.4);
  border-radius: 0;
  margin: 0;
  width: 100%;
  height: 200px;
}

.tool-card-body {
  padding: 16px 18px 18px;
}

.tool-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  border-radius: inherit;
  filter: drop-shadow(0 0 12px rgba(57, 243, 139, 0.55));
}

.download-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

#tool-license .card {
  border-color: rgba(57, 243, 139, 0.28);
  background: linear-gradient(155deg, rgba(7, 35, 24, 0.8), rgba(8, 26, 20, 0.7));
}

#tool-license input {
  margin-top: 6px;
  border-color: rgba(57, 243, 139, 0.34);
  background: rgba(5, 25, 16, 0.75);
}

#tool-license label {
  display: block;
  margin-top: 10px;
  color: #bfffe1;
  font-weight: 600;
}

.tool-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.tool-modal.open {
  display: block;
}

.tool-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.76);
}

.tool-modal-content {
  position: relative;
  width: min(820px, 92vw);
  margin: 5vh auto;
  border-radius: 16px;
  border: 1px solid rgba(159, 95, 255, 0.32);
  background: rgba(10, 12, 20, 0.94);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(3, 6, 18, 0.7);
}

.tool-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.tool-modal-content img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.tool-modal-fallback {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, rgba(57, 243, 139, 0.2), rgba(159, 95, 255, 0.24));
  border: 1px solid var(--line);
  color: #efe8ff;
  font-weight: 700;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.36);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 34px 0;
  color: var(--muted);
}

.footer-title {
  color: var(--text);
  font-weight: 600;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    padding-bottom: 10px;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(57, 243, 139, 0.24), inset 0 0 18px rgba(159, 95, 255, 0.16);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 34px rgba(57, 243, 139, 0.45), inset 0 0 20px rgba(159, 95, 255, 0.22);
    transform: translateY(-1px);
  }
}
