:root {
  --primary-color: #f7f1e3;
  --secondary-color: #666;
  --accent-cyan: #ff7f50;
  --accent-pink: #ff4757;
  --accent-purple: #2ed573;
  --bg-color: #fffdf9;
  --bg-card: #ffffff;
  --text-main: #2f3542;
  --text-light: #747d8c;
  --border-color: #1e272e;
  --success-color: #2ed573;
}

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

body {
  font-family: 'Patrick Hand', cursive;
  background-color: var(--bg-color);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' fill='none'/%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1.2rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.header {
  padding: 24px 5%;
  border-bottom: 3px solid var(--border-color);
  border-radius: 0 0 255px 15px / 0 0 15px 255px;
  display: flex;
  justify-content: center;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
}

.logo {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: var(--accent-pink);
  transform: rotate(-2deg);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 5% 60px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 20px;
  position: relative;
}

.hero h1 {
  font-family: 'Caveat', cursive;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--text-main);
}

.subtitle {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 40px;
}

.pricing-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pricing-tier {
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 30px;
  width: 100%;
  max-width: 350px;
  box-shadow: 4px 4px 0px var(--border-color);
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-tier:hover {
  transform: translateY(-5px);
}

.pricing-tier h3 {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  margin-bottom: 5px;
  color: var(--accent-pink);
}

.premium-tier h3 {
  color: var(--accent-purple);
}

.tier-desc {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  min-height: 50px;
}

.pricing {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: auto;
}

.old-price {
  font-size: 1.3rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.new-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.cta-button {
  background: var(--accent-cyan);
  color: #fff;
  border: 3px solid var(--border-color);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 15px 20px;
  font-size: 1.3rem;
  font-family: 'Patrick Hand', cursive;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 4px 4px 0px var(--border-color);
  position: relative;
  z-index: 2;
  width: 100%;
}

.premium-btn {
  background: var(--accent-purple);
}

.premium-btn:hover {
  background: #20bf6b;
}

/* Video Showcase Section */
.video-showcase {
  padding: 80px 5% 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.video-showcase h2 {
  font-family: 'Caveat', cursive;
  font-size: 3.5rem;
  margin-bottom: 10px;
  transform: rotate(1deg);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  border: 4px solid var(--border-color);
  box-shadow: 6px 6px 0px var(--border-color);
  margin-top: 40px;
  background: var(--bg-card);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.cta-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--border-color);
  background: var(--accent-pink);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 20px 10px;
  transition: transform 0.3s ease;
  position: relative;
}

.feature:hover {
  transform: rotate(2deg) scale(1.02);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature h3 {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--secondary-color);
}

.workflow {
  padding: 80px 5%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.workflow h2 {
  font-family: 'Caveat', cursive;
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 50px;
  transform: rotate(-1deg);
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35px;
  width: 4px;
  background: var(--border-color);
  border-radius: 10px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0;
  position: relative;
  z-index: 1;
}

.step-number {
  background: var(--accent-pink);
  color: #fff;
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--border-color);
}

.step-content h4 {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  margin-bottom: 5px;
  color: var(--text-main);
}

.step-content p {
  color: var(--secondary-color);
  line-height: 1.5;
}

/* About Software Section */
.about-software {
  padding: 80px 5%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.about-software h2 {
  font-family: 'Caveat', cursive;
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--accent-pink);
  transform: rotate(-1deg);
}
.about-content > p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--secondary-color);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.about-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  border: 3px solid var(--border-color);
  box-shadow: 4px 4px 0px var(--border-color);
  text-align: left;
}
.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-main);
  font-family: 'Caveat', cursive;
}
.about-card p {
  color: var(--secondary-color);
  font-size: 1rem;
}

/* Footer */
.footer {
  border-top: 4px solid var(--border-color);
  margin-top: 80px;
  padding: 40px 5%;
  text-align: center;
  background: transparent;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-style: wavy;
}
.copyright {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 40px;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 8px 8px 0px rgba(0,0,0,0.8);
  text-align: center;
  border: 4px solid var(--border-color);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  font-family: 'Patrick Hand', cursive;
  cursor: pointer;
  color: var(--text-main);
}

#checkout-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#checkout-form input {
  padding: 15px;
  background: #fff;
  color: var(--text-main);
  border: 3px solid var(--border-color);
  border-radius: 15px 255px 15px 225px / 255px 15px 225px 15px;
  font-size: 1.2rem;
  font-family: 'Patrick Hand', cursive;
}

.submit-order {
  width: 100%;
  border-radius: 12px;
}

#success-state {
  margin-top: 20px;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--success-color);
}

.download-button {
  display: inline-block;
  margin-top: 24px;
  background: var(--accent-purple);
  color: #fff;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  border: 3px solid var(--border-color);
  font-family: 'Patrick Hand', cursive;
  font-size: 1.4rem;
  box-shadow: 4px 4px 0px var(--border-color);
  transition: transform 0.2s ease;
}

.download-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--border-color);
}

.hidden {
  display: none !important;
}

/* =========================================
   STICK FIGURES & ANIMATIONS 
   ========================================= */

.stick-figure {
  position: absolute;
  color: var(--text-main);
  z-index: 0;
  pointer-events: none;
}

/* 1. Wave (Hero) */
.stick-hero-wave {
  top: -20px;
  right: -120px;
  transform: rotate(10deg);
}
.wave-arm {
  transform-origin: 50px 60px;
  animation: wave 1.2s infinite alternate ease-in-out;
}
@keyframes wave {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(40deg); }
}

/* 2. Run (Hero Background) */
.stick-run {
  top: -80px;
  left: -150px;
  opacity: 0.5;
  animation: runAcross 10s infinite linear;
}
.run-leg-1 { transform-origin: 50px 100px; animation: legRun 0.2s infinite alternate; }
.run-leg-2 { transform-origin: 50px 100px; animation: legRun 0.2s infinite alternate-reverse; }
.run-arm-1 { transform-origin: 50px 60px; animation: armRun 0.2s infinite alternate; }
.run-arm-2 { transform-origin: 50px 60px; animation: armRun 0.2s infinite alternate-reverse; }
@keyframes runAcross {
  0% { transform: translateX(0); }
  100% { transform: translateX(120vw); }
}
@keyframes legRun { 0% { transform: rotate(-30deg); } 100% { transform: rotate(40deg); } }
@keyframes armRun { 0% { transform: rotate(-40deg); } 100% { transform: rotate(30deg); } }

/* 3. Pointing (CTA Button) */
.stick-point {
  right: -90px;
  bottom: 25px;
  position: absolute;
  animation: pointExcited 0.8s infinite alternate ease-in-out;
  transform-origin: center bottom;
}
@keyframes pointExcited {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-8deg); }
}

/* 4. Sit (Feature Box) */
.stick-sit {
  top: -85px;
  right: -30px;
}
.sit-leg-1 { transform-origin: 50px 100px; animation: kick 1s infinite alternate ease-in-out; }
.sit-leg-2 { transform-origin: 50px 100px; animation: kick 1s infinite alternate-reverse ease-in-out; }
@keyframes kick { 0% { transform: rotate(0deg); } 100% { transform: rotate(-35deg); } }

/* 5. Paint (Feature Box) */
.stick-feature-paint {
  bottom: 0px;
  left: -80px;
  transform: rotate(-15deg);
  animation: hoverFloat 3s infinite alternate ease-in-out;
}
.paint-arm {
  transform-origin: 60px 60px;
  animation: paintStroke 1.5s infinite alternate ease-in-out;
}
@keyframes hoverFloat {
  0% { transform: translateY(0) rotate(-15deg); }
  100% { transform: translateY(-10px) rotate(-10deg); }
}
@keyframes paintStroke {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(20deg); }
}

/* 6. Climb (Workflow line) */
.stick-climb {
  top: 0px;
  left: -5px;
}
.stick-climb-group {
  animation: climbingDown 10s infinite linear;
}
.climb-arm-1 { transform-origin: 40px 60px; animation: climbLimb 0.6s infinite alternate; }
.climb-arm-2 { transform-origin: 40px 60px; animation: climbLimb 0.6s infinite alternate-reverse; }
.climb-leg-1 { transform-origin: 40px 100px; animation: climbLimb 0.6s infinite alternate; }
.climb-leg-2 { transform-origin: 40px 100px; animation: climbLimb 0.6s infinite alternate-reverse; }
@keyframes climbLimb { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }
@keyframes climbingDown {
  0% { transform: translateY(0); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translateY(800px); opacity: 0; }
}

/* 7. Dangle (Header) */
.stick-dangle {
  top: 0;
  left: 5%;
  transform-origin: top center;
  animation: swing 3s infinite alternate ease-in-out;
}
@keyframes swing {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

/* 8. Jump (Workflow Bottom) */
.stick-workflow-jump {
  bottom: -30px;
  right: -130px;
  animation: jumpHigh 1.5s infinite ease-in-out;
}
.jump-legs {
  animation: tuckLegs 1.5s infinite ease-in-out;
  transform-origin: 60px 100px;
}
@keyframes jumpHigh {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-50px); }
}
@keyframes tuckLegs {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.6); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .subtitle { font-size: 1.2rem; }
  .new-price { font-size: 2rem; }
  .hero-content { margin-bottom: 40px; }
  .features { padding: 60px 5%; }
  .stick-figure { display: none; }
}
