/**
 * ============================================================================
 * TaijiFlow AI - Landing Page Styles
 * ============================================================================
 *
 * Stylesheet สำหรับ Landing Page (index.html)
 * Imports base.css for shared styles
 *
 * ============================================================================
 */

/* Import base styles */
@import url("base.css");

/* =============================================================================
   LANDING PAGE SPECIFIC STYLES
   ============================================================================= */

/* Override body for landing class */
body.landing {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
}

/* =============================================================================
   2. NAVIGATION
   ============================================================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.logo::before {
  content: "☯️";
  font-size: 24px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-search:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Navigation Primary Button (purple gradient) */
.nav-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn-primary:hover {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}

/* =============================================================================
   2.1 HAMBURGER MENU & MOBILE NAV
   ============================================================================= */

/* Nav Actions (Mobile: Start + Hamburger) */
.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.nav-actions .nav-btn-primary {
  padding: 8px 16px;
  font-size: 12px;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 2px 0;
  transition: all 0.3s ease;
}

/* Hamburger Animation when open */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Desktop: Show Start in menu, hide nav-actions */
.nav-start-desktop {
  display: block;
}

/* =============================================================================
   2.2 RESPONSIVE NAV STYLES
   ============================================================================= */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  /* Show mobile actions (Start + Hamburger) */
  .nav-actions {
    display: flex;
  }

  /* Hide hamburger button initially visible */
  .hamburger {
    display: flex;
  }

  /* Hide desktop Start button in menu */
  .nav-start-desktop {
    display: none;
  }

  /* Nav Links - Dropdown style */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
  }

  .nav-links.active {
    max-height: 300px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li {
    text-align: center;
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links li a:hover {
    background: rgba(168, 85, 247, 0.2);
  }
}

/* =============================================================================
   3. HERO SECTION
   ============================================================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Canvas for Silk Reeling Animation */
#silk-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  padding: 0 20px;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  margin-bottom: 30px;
  animation: fadeIn 0.8s ease-out;
}

h1 {
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(168, 85, 247, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  animation: fadeIn 1s ease-out 0.6s both;
  z-index: 10;
}

.scroll-indicator::before {
  content: "";
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scroll 2s ease-in-out infinite;
}

/* =============================================================================
   4. ABOUT SECTION
   ============================================================================= */
.about-section {
  padding: 100px 40px;
  background: linear-gradient(180deg, #000 0%, #1a1a2e 100%);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 48px;
  text-align: center;
  margin-bottom: 60px;
  color: #fff;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.about-card {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 30px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.about-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #a855f7;
}

.about-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.about-card ul {
  list-style: none;
  padding: 0;
}

.about-card ul li {
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-card ul li:last-child {
  border-bottom: none;
}

/* =============================================================================
   5. GUIDE SECTION
   ============================================================================= */
.guide-section {
  padding: 100px 40px;
  background: #0a0a15;
  text-align: center;
}

.guide-container {
  max-width: 1000px;
  margin: 0 auto;
}

.guide-section h2 {
  font-size: 48px;
  margin-bottom: 40px;
  color: #fff;
}

/* Quickstart Box */
.guide-quickstart {
  max-width: 500px;
  margin: 0 auto 20px;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  text-align: center;
}

.guide-quickstart h4 {
  color: var(--color-accent);
  font-size: 24px;
  margin-bottom: 12px;
}

.guide-quickstart p {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.guide-quickstart small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Divider */
.guide-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  margin-bottom: 30px;
  text-align: center;
}

.guide-steps {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 50px;
}

.guide-step {
  flex: 1;
  max-width: 280px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.guide-step h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.guide-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.guide-cta {
  margin-top: 40px;
}

/* Guide Extras (Tips & Warnings) */
.guide-extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 30px auto 0;
  text-align: left;
}

.guide-extra-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-extra-card.warning {
  background: rgba(255, 87, 87, 0.08);
  border: 1px solid rgba(255, 87, 87, 0.2);
}

.guide-extra-card h4 {
  margin-bottom: 15px;
  color: var(--color-text-highlight);
  font-size: 1rem;
}

.guide-extra-card.warning h4 {
  color: #ff6b6b;
}

.guide-extra-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* =============================================================================
   6. REFERENCE SECTION
   ============================================================================= */
.reference-section {
  padding: 100px 40px;
  background: linear-gradient(180deg, #0a0a15 0%, #1a1a2e 100%);
}

.reference-container {
  max-width: 1200px;
  margin: 0 auto;
}

.reference-section h2 {
  font-size: 48px;
  text-align: center;
  margin-bottom: 60px;
  color: #fff;
}

.reference-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.reference-card {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 30px;
}

.reference-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #a855f7;
}

.reference-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  line-height: 1.6;
}

.reference-card ul {
  list-style: none;
  padding: 0;
}

.reference-card ul li {
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 0;
  font-size: 14px;
}

.ref-link {
  display: inline-block;
  margin-top: 10px;
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ref-link:hover {
  color: #c084fc;
}

/* =============================================================================
   7. STATS SECTION
   ============================================================================= */
.stats-section {
  padding: 60px 40px;
  background: rgba(168, 85, 247, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: #a855f7;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 500;
}

.stats-ref {
  margin-top: 30px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* =============================================================================
   7.5 MOTIVATIONAL QUOTE SECTION
   ============================================================================= */
.quote-section {
  padding: 60px 40px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.1),
    rgba(99, 102, 241, 0.1)
  );
  text-align: center;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
}

.quote-text {
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-weight: 500;
}

@media (max-width: 768px) {
  .quote-section {
    padding: 40px 20px;
  }

  .quote-text {
    font-size: 1.1rem;
  }
}

/* =============================================================================
   8. FOOTER
   ============================================================================= */
.footer {
  padding: 40px;
  text-align: center;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* =============================================================================
   8. ANIMATIONS
   ============================================================================= */
@keyframes scroll {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(12px);
    opacity: 0.3;
  }
}

/* fadeIn and fadeInUp are now in base.css */

/* =============================================================================
   9. RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  h1 {
    font-size: 48px;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .guide-steps {
    flex-direction: column;
    align-items: center;
  }

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

  .reference-content {
    grid-template-columns: 1fr;
  }

  .guide-extras-grid {
    grid-template-columns: 1fr;
  }
}
