@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --surface: #111111;
  --surface-light: #1a1a1a;
  --border: #222222;
  --text: #ffffff;
  --text-dim: #999999;
  --text-muted: #666666;
  --purple: #A020F0;
  --purple-light: #b94dff;
  --purple-dark: #7a10c0;
  --glow-sm: 0 0 10px rgba(160, 32, 240, 0.4);
  --glow-md: 0 0 20px rgba(160, 32, 240, 0.5), 0 0 40px rgba(160, 32, 240, 0.2);
  --glow-lg: 0 0 30px rgba(160, 32, 240, 0.6), 0 0 60px rgba(160, 32, 240, 0.3), 0 0 100px rgba(160, 32, 240, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(160, 32, 240, 0.08);
  transition: background var(--transition), box-shadow var(--transition)
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(160, 32, 240, 0.1)
}

.header__logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none
}

.header__logo span {
  color: var(--purple);
  text-shadow: var(--glow-sm)
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--purple);
  color: var(--text);
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--glow-md);
  overflow: hidden
}

.header__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-lg)
}

.header__cta:active {
  transform: translateY(0)
}

.header__cta-text {
  display: inline
}

.header__cta-icon {
  display: none;
  width: 20px;
  height: 20px
}

@media(max-width:767px) {
  .header__cta {
    padding: 10px;
    border-radius: 50%;
    min-width: 42px;
    min-height: 42px;
    justify-content: center
  }

  .header__cta-text {
    display: none
  }

  .header__cta-icon {
    display: block
  }
}

/* Hero */
.hero {
  position: relative;
  height: 500vh
}

.hero__canvas-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.hero__canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

/* Sections */
.section {
  position: relative;
  padding: 120px clamp(20px, 6vw, 80px)
}

.section__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(160, 32, 240, 0.1);
  border: 1px solid rgba(160, 32, 240, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7
}

/* Pricing */
.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--black)
}

.pricing__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-top: 56px;
  padding: 48px 40px;
  background: var(--surface);
  border: 1px solid rgba(160, 32, 240, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition)
}

.pricing__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(160deg, rgba(160, 32, 240, 0.4) 0%, transparent 40%, transparent 60%, rgba(160, 32, 240, 0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none
}

.pricing__card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(160, 32, 240, 0.08) 0%, transparent 70%);
  pointer-events: none
}

.pricing__card:hover {
  border-color: rgba(160, 32, 240, 0.3);
  box-shadow: var(--glow-md)
}

.pricing__product-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
  position: relative;
  z-index: 1
}

.pricing__product-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  position: relative;
  z-index: 1
}

.pricing__features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
  position: relative;
  z-index: 1
}

.pricing__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border)
}

.pricing__features li:last-child {
  border-bottom: none
}

.pricing__features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--purple)
}

.pricing__price-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 32px
}

.pricing__price {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--white);
  text-shadow: var(--glow-sm);
  line-height: 1
}

.pricing__price-unit {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 4px
}

.pricing__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  background: var(--purple);
  color: var(--text);
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--glow-md)
}

.pricing__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-lg);
  background: var(--purple-light)
}

.pricing__cta:active {
  transform: translateY(0)
}

/* FAQ */
.faq {
  background: var(--black);
  max-width: 800px;
  margin: 0 auto
}

.faq__list {
  margin-top: 56px
}

.faq__item {
  border-bottom: 1px solid var(--border)
}

.faq__item:first-child {
  border-top: 1px solid var(--border)
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition)
}

.faq__question:hover {
  color: var(--purple-light)
}

.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(160, 32, 240, 0.1);
  border: 1px solid rgba(160, 32, 240, 0.2);
  transition: all var(--transition)
}

.faq__icon svg {
  width: 14px;
  height: 14px;
  color: var(--purple);
  transition: transform var(--transition)
}

.faq__item.active .faq__question {
  color: var(--purple-light)
}

.faq__item.active .faq__icon {
  background: var(--purple);
  border-color: var(--purple)
}

.faq__item.active .faq__icon svg {
  color: var(--text);
  transform: rotate(45deg)
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1)
}

.faq__answer-inner {
  padding: 0 0 24px 0;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75
}

/* Footer */
.footer {
  padding: 40px clamp(20px, 6vw, 80px);
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem
}

.footer a {
  color: var(--purple);
  text-decoration: none
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible
}

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid rgba(160, 32, 240, 0.15);
  border-radius: var(--radius);
  padding: 40px 32px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), var(--glow-md)
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1)
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition)
}

.modal__close:hover {
  background: rgba(160, 32, 240, 0.15);
  color: var(--text);
  border-color: rgba(160, 32, 240, 0.3)
}

.modal__close svg {
  width: 16px;
  height: 16px
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px
}

.modal__desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 32px
}

.form__group {
  margin-bottom: 20px
}

.form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition)
}

.form__input::placeholder {
  color: var(--text-muted)
}

.form__input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(160, 32, 240, 0.15)
}

.form__submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: var(--purple);
  color: var(--text);
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--glow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.form__submit:hover {
  box-shadow: var(--glow-lg);
  background: var(--purple-light);
  transform: translateY(-1px)
}

.form__submit:active {
  transform: translateY(0)
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite
}

.form__submit.loading .spinner {
  display: block
}

.form__submit.loading .btn-label {
  display: none
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0
}

.form__success.show {
  display: flex
}

.form__success svg {
  width: 56px;
  height: 56px;
  color: var(--purple);
  filter: drop-shadow(var(--glow-sm))
}

.form__success p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.6
}

.form.hidden {
  display: none
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px
}

::-webkit-scrollbar-track {
  background: var(--black)
}

::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: 3px
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-dark)
}

::selection {
  background: rgba(160, 32, 240, 0.35);
  color: #fff
}

/* --- SCROLL GUIDE (Visual prompt for user interaction) --- */
.scroll-guide {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
  text-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
  animation: guideBounce 2.5s infinite ease-in-out;
}

/* Floating animation for the guide */
@keyframes guideBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
    opacity: 1;
  }
}

/* --- DYNAMIC FEATURE TEXT (Triggered by scroll/frame index) --- */
.feature-text {
  position: fixed;
  top: 50%;
  left: 8%;
  transform: translate(-50%, -50%);
  z-index: 90;
  pointer-events: none;
  width: 95%;
  text-align: center;
}

#dynamic-text {
  color: #ffffff;
  font-size: clamp(2.5rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
}

/* --- SCROLL GUIDE (Visual prompt for user interaction) --- */
.scroll-guide {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  animation: guideBounce 2.5s infinite ease-in-out;
}

/* Floating animation for the guide */
@keyframes guideBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
    opacity: 1;
  }
}

/* --- DYNAMIC FEATURE TEXT (Triggered by scroll/frame index) --- */
.feature-text {
  position: fixed;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 90;
  pointer-events: none;
  width: 80%;
}

#dynamic-text {
  color: #ffffff;
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}