/* Modern Premium Design System for 99bar.my */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #070913;
  --bg-secondary: #0c0f24;
  --bg-tertiary: #121836;
  --accent-blue: #00f2fe;
  --accent-cyan: #4facfe;
  --accent-purple: #7f00ff;
  --accent-pink: #e100ff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

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

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 19, 0.7);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-speed) ease;
}

header.scrolled {
  padding: 0.5rem 0;
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-cyan);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(79, 172, 254, 0.6);
}

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

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

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(127, 0, 255, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(79, 172, 254, 0.15) 0%, transparent 40%);
  padding-top: 120px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 0%, rgba(127, 0, 255, 0.2) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  position: absolute;
  z-index: 1;
  animation: pulse 8s infinite alternate;
}

.hero-visual {
  z-index: 2;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px var(--glass-shadow);
}

.dashboard-mockup {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.speed-meter {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

/* Features Section */
.section-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 5rem auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all var(--transition-speed) ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(79, 172, 254, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(127, 0, 255, 0.1) 100%);
  border: 1px solid rgba(79, 172, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-speed) ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pricing-card.featured {
  background: radial-gradient(circle at 50% 0%, rgba(79, 172, 254, 0.12) 0%, rgba(12, 15, 36, 0.6) 80%);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(79, 172, 254, 0.15);
}

.pricing-card.featured::after {
  content: '推荐';
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plan-price {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
}

.plan-price .currency {
  font-size: 1.5rem;
  font-weight: 700;
}

.plan-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.plan-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.plan-features {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plan-features li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

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

/* Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed) ease;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 172, 254, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.article-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.article-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-secondary));
}

.article-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.article-tag {
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.article-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.article-title:hover {
  color: var(--accent-cyan);
}

.article-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.article-link {
  margin-top: auto;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-speed) ease;
}

.article-link:hover {
  gap: 0.6rem;
}

/* User Reviews (Testimonials) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-rating {
  color: #ffb800;
  display: flex;
  gap: 0.2rem;
}

.review-text {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-cyan);
  border: 1px solid rgba(79, 172, 254, 0.2);
}

.user-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.user-info span {
  font-size: 0.8rem;
  color: var(--text-dark);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.faq-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed) ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease, padding var(--transition-speed) ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: rgba(79, 172, 254, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-content {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* Article Page Layout (Detailed View) */
.article-page {
  padding-top: 140px;
  padding-bottom: 8rem;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.article-header-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  margin-bottom: 4rem;
  border: 1px solid var(--glass-border);
}

.article-body-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 1.8rem;
}

.article-body h2 {
  font-size: 1.8rem;
  margin: 3rem 0 1.5rem 0;
  color: var(--text-main);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.article-body h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  color: var(--text-main);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.8rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  background: var(--glass-bg);
  border-left: 4px solid var(--accent-cyan);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Call to Action Inside Article */
.article-cta {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin: 4rem 0;
}

.article-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.article-cta p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 3rem 0;
  margin-top: 8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-column h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-speed) ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dark);
}

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

.footer-bottom-links a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.8; }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-cta {
    flex-direction: column;
  }
  .nav-links {
    display: none;
  }
  .section {
    padding: 5rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .article-header h1 {
    font-size: 2rem;
  }
}
