/* ========================================
   MarkaJiap Landing Page - Purple & Gold Theme
   Based on Thai Astrology Lucky Colors
   ======================================== */

/* Prompt Font for Thai */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  /* Primary Colors - Thai Astrology */
  --purple: #7B2D8E;
  --purple-light: #9B4DAE;
  --purple-dark: #5B1D6E;
  --gold: #D4A634;
  --gold-light: #E4B644;
  --gold-dark: #B48624;
  
  /* Neutrals */
  --bg-primary: #0D0A12;
  --bg-secondary: #1A1625;
  --bg-tertiary: #241F30;
  --text-primary: #F0EDF5;
  --text-secondary: #A09AAD;
  --border-color: #2A243A;
  
  /* Gradients */
  --gradient-purple: linear-gradient(135deg, #7B2D8E 0%, #5B1D6E 100%);
  --gradient-gold: linear-gradient(135deg, #D4A634 0%, #E4B644 100%);
  --gradient-hero: linear-gradient(135deg, #7B2D8E 0%, #D4A634 50%, #7B2D8E 100%);
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 100px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Prompt', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-hero);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #1A1625;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 166, 52, 0.4);
  color: #1A1625;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #1A1625;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 10, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(123, 45, 142, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  background: rgba(212, 166, 52, 0.1);
  border: 1px solid rgba(212, 166, 52, 0.3);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Browser Frame */
.hero-preview {
  position: relative;
}

.browser-frame {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #FF5F56; }
.browser-dots span:nth-child(2) { background: #FFBD2E; }
.browser-dots span:nth-child(3) { background: #27C93F; }

.browser-url {
  flex: 1;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 6px;
}

.browser-content {
  width: 100%;
  display: block;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--purple-light);
  background: rgba(123, 45, 142, 0.1);
  border: 1px solid rgba(123, 45, 142, 0.3);
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* Features */
.features {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

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

.feature-card {
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 16px 48px rgba(123, 45, 142, 0.2);
}

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

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

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Screenshots */
.screenshots {
  padding: var(--section-padding) 0;
}

.gallery {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-main {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.gallery-main img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumb:hover {
  border-color: var(--purple-light);
}

.thumb.active {
  border-color: var(--gold);
}

.thumb img {
  width: 100%;
  display: block;
}

.gallery-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Privacy */
.privacy {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.privacy-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.privacy-icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.privacy-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.privacy-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* CTA Section */
.cta {
  padding: var(--section-padding) 0;
  text-align: center;
}

.cta h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-copyright {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 44px;
  }
  
  .hero-preview {
    order: -1;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    gap: 32px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .cta h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}
