/* ============================================
   WotzOn Landing Page Styles
   Hua Hin Destination Discovery
   ============================================ */

:root {
  /* Brand Colors - Teal from app icon */
  --brand-teal: #00897B;
  --brand-teal-light: #4DB6AC;
  --brand-teal-dark: #00695C;
  --brand-teal-glow: rgba(0, 137, 123, 0.4);
  
  /* Dark theme backgrounds */
  --bg-primary: #0B1215;
  --bg-secondary: #0F1A1D;
  --bg-card: #132428;
  --bg-card-hover: #1A3035;
  
  /* Text colors */
  --text-primary: #FFFFFF;
  --text-secondary: #9CAAAE;
  --text-muted: #5C6B70;
  
  /* Accent colors for audience cards */
  --accent-tourist: #00BFA5;
  --accent-business: #FFB74D;
  --accent-performer: #FF7043;
  
  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-light) 100%);
  --gradient-hero: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(0, 137, 123, 0.15) 0%, transparent 60%);
  
  /* Typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 100px;
  --card-radius: 20px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(11, 18, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 137, 123, 0.1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-cta {
  padding: 10px 22px;
  background: var(--gradient-brand);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 12px var(--brand-teal-glow);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--brand-teal-glow);
}

/* Navigation Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-dropdown {
  position: relative;
}

.lang-switcher {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.lang-switcher .lang-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.lang-flags,
.lang-option-flags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.lang-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 200;
}

.lang-dropdown.open .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.lang-option:hover {
  background: rgba(0, 137, 123, 0.15);
  color: var(--text-primary);
}

.lang-option-name {
  font-weight: 500;
  color: var(--text-primary);
}

.lang-option-flags .lang-flag-img {
  width: 24px;
  height: 16px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    var(--gradient-hero),
    radial-gradient(circle at 80% 80%, rgba(0, 137, 123, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

/* Animated background pattern */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 137, 123, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(0, 137, 123, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 40% 80%, rgba(77, 182, 172, 0.04) 0%, transparent 25%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  z-index: 1;
}

.hero-icon {
  margin-bottom: 32px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.app-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: 
    0 20px 60px rgba(0, 137, 123, 0.3),
    0 0 80px rgba(0, 137, 123, 0.2);
}

.hero-title {
  margin-bottom: 24px;
}

.coming-soon-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  color: white;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  height: 1.5em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.coming-soon-text.visible {
  opacity: 1;
}

.title-location {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.title-location.whizzing {
  animation: whizz 0.15s ease-out;
}

@keyframes whizz {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.title-tagline {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Wave decoration */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  overflow: hidden;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 20px var(--brand-teal-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px var(--brand-teal-glow);
}

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

.btn-large {
  padding: 20px 40px;
  font-size: 18px;
  border-radius: 16px;
}

/* ============================================
   Audience Section
   ============================================ */
.audiences {
  padding: var(--section-padding) 24px;
  background: var(--bg-secondary);
}

/* Featured Quote */
.featured-quote {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 20px 40px;
}

.featured-quote.quote-bottom {
  margin: 60px auto 0;
}

.quote-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

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

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

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--brand-teal));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.audience-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 137, 123, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.audience-tourist { --card-accent: var(--accent-tourist); }
.audience-business { --card-accent: var(--accent-business); }
.audience-performer { --card-accent: var(--accent-performer); }

.card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.15), rgba(0, 137, 123, 0.05));
  border-radius: 18px;
  margin-bottom: 24px;
  color: var(--card-accent, var(--brand-teal));
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.benefits-list {
  list-style: none;
  margin-bottom: 24px;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.benefit-icon {
  color: var(--card-accent, var(--brand-teal));
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.card-tagline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--card-accent, var(--brand-teal));
  letter-spacing: 0.3px;
}

/* ============================================
   Features Section (Tabbed)
   ============================================ */
.features-section {
  padding: 80px 24px 100px;
  background: var(--bg-primary);
}

.features-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

/* Feature Tabs */
.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.feature-tab {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.feature-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.feature-tab.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px var(--brand-teal-glow);
}

/* Feature Panels */
.feature-content {
  position: relative;
}

.feature-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.feature-panel.active {
  display: block;
}

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

/* Screenshot Gallery */
.screenshot-gallery {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.screenshot-frame {
  position: relative;
  width: 370px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Feature CTA Button */
.feature-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.try-now-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--brand-teal) 0%, #00a896 100%);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 206, 201, 0.3);
}

.try-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 206, 201, 0.4);
}

.try-now-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.no-login-text {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding: var(--section-padding) 24px;
  background: var(--bg-secondary);
}

.cta-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 40px;
  background: 
    linear-gradient(135deg, rgba(0, 137, 123, 0.08), rgba(0, 137, 123, 0.02)),
    var(--bg-card);
  border-radius: 28px;
  border: 1px solid rgba(0, 137, 123, 0.15);
}

.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px var(--brand-teal-glow);
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

/* Store Badges */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.store-badge {
  opacity: 0.4;
  transition: opacity var(--transition-fast);
  filter: grayscale(100%);
}

.store-badge:hover {
  opacity: 0.6;
}

.store-badge img {
  height: 42px;
  width: auto;
}

.coming-soon {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 60px 24px 32px;
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

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

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

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

.footer-links a:hover {
  color: var(--brand-teal-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================
   Legal Pages (Privacy, Terms, Support)
   ============================================ */
.legal-page {
  padding: 120px 24px 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.legal-meta {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 14px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--brand-teal-light);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Support Page */
.support-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 24px;
}

.support-card h3 {
  margin-top: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .audiences-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px;
  }
  
  .hero {
    padding: 120px 20px 100px;
    min-height: auto;
  }
  
  .app-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }
  
  .title-location {
    letter-spacing: -2px;
  }
  
  .hero-wave {
    height: 80px;
  }
  
  .featured-quote {
    padding: 20px 20px;
    margin-bottom: 40px;
  }
  
  .featured-quote.quote-bottom {
    margin: 40px auto 0;
  }
  
  .quote-text {
    font-size: 1.25rem;
  }
  
  .feature-tabs {
    gap: 6px;
  }
  
  .feature-tab {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .screenshot-frame {
    width: 320px;
    border-radius: 16px;
  }
  
  .screenshot-frame img {
    border-radius: 16px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 12px 16px;
  }
  
  .nav-right {
    gap: 10px;
  }
  
  .logo-img {
    width: 32px;
    height: 32px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .lang-switcher {
    padding: 6px 10px;
  }
  
  .audience-card {
    padding: 32px 24px;
  }
  
  .cta-content {
    padding: 40px 24px;
  }
  
  .store-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   Animations on scroll (optional enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .audience-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .audience-card:nth-child(1) { animation-delay: 0.1s; }
  .audience-card:nth-child(2) { animation-delay: 0.2s; }
  .audience-card:nth-child(3) { animation-delay: 0.3s; }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}