/* Modern Premium Dark Mode Design System for Chanh Phan Labs */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #090a0f;
  --bg-card: rgba(18, 20, 29, 0.6);
  --bg-card-hover: rgba(26, 29, 41, 0.8);
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.15);
  --secondary: #06b6d4; /* Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.15);
  --accent: #a855f7; /* Purple */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --success: #10b981;
  --warning: #f59e0b;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients */
.bg-gradient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(9, 10, 15, 0) 70%);
  top: -100px;
  right: -100px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.bg-gradient-glow-left {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(9, 10, 15, 0) 70%);
  bottom: 20%;
  left: -200px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Shared Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Glassmorphism Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(9, 10, 15, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(9, 10, 15, 0.9);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

nav ul a:hover {
  color: var(--text-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  padding: calc(var(--header-height) + 4rem) 0 6rem 0;
  position: relative;
  text-align: center;
}

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

.hero h1 {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Products Section */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.products {
  padding: 6rem 0;
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Featured Product Card */
.featured-product-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.featured-product-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 50px rgba(99, 102, 241, 0.05);
}

.product-image {
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.product-info {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-info h3 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.product-tagline {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.product-features-list {
  list-style: none;
  margin: 1.5rem 0 2.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.product-features-list li svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Upcoming Products Grid */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.upcoming-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.upcoming-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.upcoming-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.upcoming-card:hover .upcoming-icon {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.upcoming-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.upcoming-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.status-badge {
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbd38d;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem;
  border-radius: 100px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
}

.pricing-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pricing-tab.active {
  background: var(--primary);
  color: white;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(9, 10, 15, 0) 100%), var(--bg-card);
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
}

.pricing-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-card .price span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
  display: grid;
  gap: 0.75rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  color: var(--success);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Founder & Guarantee section */
.about-founder {
  padding: 6rem 0;
}

.founder-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem;
  backdrop-filter: blur(10px);
}

.founder-avatar {
  width: 100%;
  max-width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto;
}

.founder-bio h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.founder-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.founder-bio p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Policy/Guarantee Highlights */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.guarantee-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
}

.guarantee-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}

.guarantee-box h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.guarantee-box p {
  font-size: 0.9rem;
}

/* Contact / Support Section */
.contact {
  padding: 6rem 0;
  text-align: center;
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3.5rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.contact h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contact p {
  margin-bottom: 2rem;
}

.support-email {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 0.8rem 2rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.support-email:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: scale(1.02);
}

.response-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legal Pages Styling */
.policy-page {
  padding: calc(var(--header-height) + 3rem) 0 6rem 0;
}

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

.policy-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.policy-header h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem 0;
}

.policy-content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.policy-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Footer styling */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  background: rgba(9, 10, 15, 0.95);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand .logo {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
}

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

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem !important;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(9, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .hamburger {
    display: flex;
  }

  .featured-product-card {
    grid-template-columns: 1fr;
  }

  .product-image {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem;
  }

  .product-info {
    padding: 2rem;
  }

  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .founder-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .guarantee-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}
