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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

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

/* ─── Floating Particles ─── */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: float linear infinite;
}

.particles span:nth-child(1)  { left: 5%;  width: 14px; height: 14px; animation-duration: 18s; animation-delay: 0s; }
.particles span:nth-child(2)  { left: 15%; width: 8px;  height: 8px;  animation-duration: 22s; animation-delay: 2s; }
.particles span:nth-child(3)  { left: 30%; width: 12px; height: 12px; animation-duration: 16s; animation-delay: 4s; }
.particles span:nth-child(4)  { left: 45%; width: 6px;  height: 6px;  animation-duration: 25s; animation-delay: 1s; }
.particles span:nth-child(5)  { left: 55%; width: 16px; height: 16px; animation-duration: 20s; animation-delay: 3s; }
.particles span:nth-child(6)  { left: 65%; width: 9px;  height: 9px;  animation-duration: 19s; animation-delay: 5s; }
.particles span:nth-child(7)  { left: 75%; width: 11px; height: 11px; animation-duration: 23s; animation-delay: 0s; }
.particles span:nth-child(8)  { left: 82%; width: 7px;  height: 7px;  animation-duration: 17s; animation-delay: 2s; }
.particles span:nth-child(9)  { left: 90%; width: 13px; height: 13px; animation-duration: 21s; animation-delay: 4s; }
.particles span:nth-child(10) { left: 50%; width: 10px; height: 10px; animation-duration: 24s; animation-delay: 6s; }

@keyframes float {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ─── Header ─── */
.app-header {
  width: 100%;
  max-width: 1100px;
  margin-top: 20px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.app-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.nav-btn {
  padding: 8px 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-btn.primary {
  background: #fff;
  color: #5a4fcf;
  border-color: #fff;
  font-weight: 700;
}

.nav-btn.primary:hover {
  background: #f0eeff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ─── Main Container ─── */
.home-container {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

/* ─── Hero Card ─── */
.hero-card {
  margin-top: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 3.5rem 3rem;
  text-align: center;
  max-width: 800px;
  width: 100%;
  animation: heroFadeIn 0.7s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffd700, #ff8c00, #ff6347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.primary-btn {
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #5a4fcf;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.primary-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ─── Feature Cards ─── */
.info-section {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: cardFadeIn 0.6s ease-out backwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.25s; }
.info-card:nth-child(3) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.16);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.info-card h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ─── How It Works ─── */
.how-section {
  margin-top: 60px;
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  flex: 1;
  min-width: 160px;
  max-width: 220px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
}

.step p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.step-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  font-weight: 300;
}

/* ─── Footer ─── */
.footer {
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-align: center;
  z-index: 5;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .app-header {
    margin-top: 10px;
    padding: 12px 18px;
  }

  .hero-card {
    margin-top: 30px;
    padding: 2.5rem 1.5rem;
  }

  .hero-card h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .info-section {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-top: 40px;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .step {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .app-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-card h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn, .secondary-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
