/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.04;
}

.hero-grid::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(80px, 80px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-description {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--accent-purple);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {

  0%,
  100% {
    top: 8px;
    opacity: 1;
  }

  50% {
    top: 20px;
    opacity: 0.3;
  }
}

@keyframes float {

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

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

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

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

/* ===== About ===== */
.about {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-purple);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}

.about-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.15);
  transform: translateY(-4px);
}

.about-card:hover::before {
  opacity: 1;
}

.about-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.about-icon.green {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-green);
}

.about-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
}

.about-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
}

.about-icon.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ===== Featured Apps ===== */
.featured-app {
  padding: 120px 0;
  position: relative;
  background: var(--bg-secondary);
}

.featured-app::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.featured-app::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg-primary), var(--bg-secondary));
}

/* --- Reusable App Card --- */
.app-cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-card {
  --app-color: #22c55e;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
  position: relative;
}

/* Đường phân cách giữa các card */
.app-card + .app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* Card chẵn đảo ảnh sang phải */
.app-card:nth-child(even) .app-visual {
  order: 2;
}

.app-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.app-visual::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, color-mix(in srgb, var(--app-color) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.app-mockup {
  width: 280px;
  position: relative;
}

.app-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

.app-info {
  position: relative;
}

.app-info .app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: color-mix(in srgb, var(--app-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--app-color) 20%, transparent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--app-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-info h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.app-info .app-tagline {
  font-size: 18px;
  color: var(--app-color);
  font-weight: 500;
  margin-bottom: 20px;
}

.app-info .app-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.feature-list li .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--app-color) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-list li .check svg {
  width: 13px;
  height: 13px;
  color: var(--app-color);
}

/* ===== CTA ===== */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== Floating Particles ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== Home Responsive ===== */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
  }

  .app-visual {
    order: -1 !important;
  }

  .app-mockup {
    width: 260px;
  }

  .app-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-list li {
    justify-content: flex-start;
    text-align: left;
  }

  .app-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.96);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 16px 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .scroll-indicator {
    display: none;
  }

  .about {
    padding: 80px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .about-card {
    padding: 28px 24px;
  }

  .featured-app {
    padding: 80px 0;
  }

  .app-mockup {
    width: 220px;
  }

  .app-info h2 {
    font-size: 28px;
  }

  .app-info .app-tagline {
    font-size: 16px;
  }

  .app-info .app-desc {
    font-size: 14px;
  }

  .feature-list li {
    font-size: 14px;
  }

  .cta {
    padding: 80px 0;
  }

  .cta-box {
    padding: 48px 24px;
  }

  .cta-box h2 {
    font-size: 24px;
  }

  .cta-box p {
    font-size: 15px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
  }

  .app-mockup {
    width: 200px;
  }

  .about-card {
    padding: 24px 20px;
  }

  .cta-box {
    padding: 36px 20px;
  }
}
