/* Super8Trends - Professional Award-Winning Design */
:root {
  --primary-color: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --text-color: #334155;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-thai: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-color);
  font-size: 16px;
  overflow-x: hidden;
}

.thai-text {
  font-family: var(--font-thai);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.025em;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white !important;
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  min-height: 56px;
  border-radius: var(--border-radius-lg);
}

/* Compliance Banner */
.compliance-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-bottom: 3px solid var(--warning-color);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
  z-index: 1001;
}

.compliance-banner:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.notice-icon {
  font-size: 2rem;
  min-width: 40px;
}

.notice-text h3 {
  color: var(--dark-color);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.notice-text p {
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
}

.notice-actions {
  text-align: center;
}

.obfuscated-email {
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition);
}

.obfuscated-email:hover {
  color: var(--primary-dark);
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo h1 {
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.logo small {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  margin-top: -5px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
  align-items: center;
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

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

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  color: white;
  background: none;
  -webkit-text-fill-color: white;
}

.hero-content h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.6;
}

.beta-notice {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 30px 0;
}

.beta-notice p {
  margin: 0;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-image {
  text-align: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  animation: float 6s ease-in-out infinite;
}

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

/* Features Section */
.features {
  padding: 100px 0;
  background: white;
  position: relative;
}

.features:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, var(--light-color), white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover:before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: var(--light-color);
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.step-number:before {
  content: '';
  position: absolute;
  inset: -10px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

.step h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

.step p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: var(--dark-color);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  opacity: 0.1;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: white;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.beta-requirements {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  margin: 40px auto;
  max-width: 600px;
  text-align: left;
}

.beta-requirements h3 {
  color: white;
  margin-bottom: 20px;
  text-align: center;
}

.beta-requirements ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.beta-requirements li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 30px;
}

.beta-requirements li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.beta-requirements li:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background: var(--dark-color);
  color: white;
  padding: 80px 0 40px;
  position: relative;
}

.site-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 400;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-company p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-company strong {
  color: white;
}

/* Legal Disclaimers */
.footer-disclaimers {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer-section {
  margin-bottom: 40px;
}

.disclaimer-section h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.disclaimer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.9rem;
}

/* Legal Pages Styles */
.page-header {
  background: linear-gradient(135deg, var(--dark-color), #1f2937);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: white;
  background: none;
  -webkit-text-fill-color: white;
}

.page-header p {
  font-size: 1.2rem;
  color: #D1D5DB;
  margin-bottom: 5px;
}

.last-updated {
  font-size: 0.9rem;
  color: #9CA3AF;
}

.legal-content {
  padding: 60px 0;
  background: #f9fafb;
}

.legal-document {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-document .section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e7eb;
}

.legal-document .section:last-child {
  border-bottom: none;
}

.legal-document h2 {
  color: var(--dark-color);
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.legal-document h3 {
  color: var(--dark-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
  margin-top: 25px;
}

.legal-document p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-color);
}

.legal-document ul,
.legal-document ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.legal-document li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.table-of-contents {
  background: #f8f9fa;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
}

.table-of-contents h3 {
  margin: 0 0 15px 0;
  color: var(--dark-color);
  font-size: 1.2rem;
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 8px;
}

.table-of-contents a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--dark-color);
  text-decoration: underline;
}

/* Contact Page Styles */
.contact-section {
  padding: 60px 0;
  background: #f9fafb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.contact-info h2,
.beta-application h2 {
  color: var(--dark-color);
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.contact-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  border-left: 4px solid var(--primary-color);
}

.contact-card h3 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.beta-info-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary-color);
}

/* Navigation active state */
.main-nav a.active {
  background: var(--primary-color);
  color: white !important;
  border-radius: 6px;
  padding: 8px 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .legal-document {
    padding: 20px;
    margin: 0 10px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
    min-height: 60vh;
  }
  
  .features,
  .how-it-works,
  .cta {
    padding: 60px 0;
  }
  
  .site-header .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .main-nav ul {
    justify-content: center;
  }
  
  .container {
    padding: 0 15px;
  }
}
