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

:root {
  --bg: hsl(160, 20%, 4%);
  --fg: hsl(140, 10%, 95%);
  --card: hsl(160, 15%, 8%);
  --primary: hsl(145, 80%, 42%);
  --primary-fg: hsl(160, 20%, 4%);
  --secondary: hsl(160, 15%, 12%);
  --muted: hsl(150, 8%, 55%);
  --border: hsl(160, 12%, 16%);
  --surface: hsl(160, 12%, 10%);
  --glow-shadow: 0 0 40px hsla(145, 80%, 42%, 0.3);
  --glow-shadow-sm: 0 0 20px hsla(145, 80%, 42%, 0.15);
  --gradient: linear-gradient(135deg, hsl(145, 80%, 42%), hsl(160, 70%, 35%));
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.font-hand {
  font-family: 'Caveat', cursive;
}

.text-glow {
  text-shadow: 0 0 30px hsla(145, 80%, 42%, 0.5);
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted);
}

.text-fg {
  color: var(--fg);
}

.bg-surface {
  background: var(--surface);
}

.gradient-bg {
  background: var(--gradient);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  z-index: 50;
  background: hsla(160, 20%, 4%, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.navbar-inner {
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient);
  color: var(--primary-fg);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
}

.hamburger {
  display: none;
  background: none;
  color: var(--fg);
  font-size: 1.5rem;
}

.mobile-menu {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  margin: 0.5rem 1.5rem;
  padding: 1rem 1.5rem;
  position: fixed;
  top: 5.5rem;
  left: 0;
  right: 0;
  z-index: 49;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.mobile-menu .nav-cta {
  justify-content: center;
  margin-top: 0.75rem;
}

@media (max-width: 768px) {

  .nav-links,
  .navbar .nav-cta {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, hsla(145, 80%, 42%, 0.08) 0%, transparent 70%), var(--bg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(160, 20%, 4%, 0.3), transparent, var(--bg));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 900px;
}

.hero-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero h1 .hand {
  font-family: 'Caveat', cursive;
  color: var(--primary);
  font-size: clamp(3rem, 9vw, 7rem);
}

.hero-desc {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  background: var(--gradient);
  color: var(--primary-fg);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: var(--glow-shadow);
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 1.125rem;
  background: transparent;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--secondary);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseGlow 3s ease-in-out infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float 6s ease-in-out infinite;
  color: var(--primary);
  font-size: 1.25rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 1.5rem;
}

.section-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: hsla(145, 80%, 42%, 0.5);
  box-shadow: var(--glow-shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-fg);
  font-size: 1.25rem;
}

.feature-card h3 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== SHOWCASE ===== */
.showcase-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.showcase-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}

.showcase-card:hover {
  border-color: hsla(145, 80%, 42%, 0.5);
  box-shadow: var(--glow-shadow-sm);
}

.showcase-card h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.showcase-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.steps-line {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .steps-line {
    left: 50%;
  }
}

.step {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-num {
  position: absolute;
  left: 2rem;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-fg);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10;
  box-shadow: var(--glow-shadow-sm);
}

@media (min-width: 768px) {
  .step-num {
    left: 50%;
  }
}

.step-content {
  margin-left: 4.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.step-content:hover {
  border-color: hsla(145, 80%, 42%, 0.3);
}

@media (min-width: 768px) {
  .step-content {
    margin-left: 0;
    width: calc(50% - 3rem);
  }

  .step-left .step-content {
    margin-left: auto;
    margin-right: calc(50% + 1.5rem);
    text-align: right;
  }

  .step-right .step-content {
    margin-left: calc(50% + 1.5rem);
  }
}

.step-content h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== VERSION ===== */
.version-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .version-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.version-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.version-card.latest {
  border: 2px solid var(--primary);
}

.version-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gradient);
  color: var(--primary-fg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 0 0 0 12px;
}

.version-card h3 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.version-card .date {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.version-list {
  list-style: none;
}

.version-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.version-list .icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1rem;
}

.version-list .icon.check {
  color: var(--primary);
}

.version-list .icon.x {
  color: var(--muted);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s;
}

.testimonial-card:hover {
  border-color: hsla(145, 80%, 42%, 0.5);
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1rem;
}

.testimonial-card blockquote {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-fg);
  font-weight: 700;
  font-size: 0.75rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.author-course {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ===== DOWNLOAD ===== */
.download-section {
  position: relative;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: hsla(145, 80%, 42%, 0.05);
  filter: blur(60px);
}

.download-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.3s;
  cursor: pointer;
}

.download-card:hover {
  border-color: hsla(145, 80%, 42%, 0.5);
  box-shadow: var(--glow-shadow-sm);
}

.download-card .icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.download-card h3 {
  font-weight: 700;
  font-size: 1.125rem;
}

.download-card .ver {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.download-card .badge {
  display: inline-block;
  background: var(--gradient);
  color: var(--primary-fg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.download-footer {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* ===== FOOTER ===== */
footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ===== TOASTS ===== */
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-top: 0.5rem;
  box-shadow: var(--glow-shadow-sm);
  animation: slideIn 0.3s ease-out;
}

.toast-success {
  border-left: 4px solid var(--primary);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.toast p {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===== ANIMATIONS ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px hsla(145, 80%, 42%, 0.2);
  }

  50% {
    box-shadow: 0 0 40px hsla(145, 80%, 42%, 0.5);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

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

::-webkit-scrollbar-track {
  background: var(--bg);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Loader */
.loader {
  width: 20px;
  height: 20px;
  border: 2px solid hsla(160, 20%, 4%, 0.1);
  border-top: 2px solid var(--primary-fg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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