:root {
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #7c3aed;
  --primary-fade: rgba(139, 92, 246, 0.1);
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-body: #ffffff;
  --bg-alt: #f9fafb;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --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-glow: 0 0 20px rgba(139, 92, 246, 0.3);
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 6px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(139, 92, 246, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-fade);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 100px;
  overflow: hidden;
  background: radial-gradient(circle at top right, #f5f3ff 0%, #ffffff 40%);
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
  animation: pulse 8s infinite ease-in-out;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--primary-fade);
  color: var(--primary-dark);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-light) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #e5e7eb;
}

/* Hero Image / Window */
.hero-image {
  position: relative;
  perspective: 1000px;
}

.window-frame {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  width: fit-content;
  margin: 0 auto;
}

.window-frame:hover {
  transform: rotateY(0) rotateX(0);
}

/* Window Header */
.window-header {
  background: #ffffff;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.app-icon-img {
  height: 20px;
  width: auto;
}

.window-controls {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
}

.control-btn {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
}

.control-btn:hover {
  color: var(--primary);
}

.control-btn.close:hover {
  color: #ef4444;
}

/* App Interface */
.app-interface {
  height: 500px;
  background: #f9fafb;
  display: flex;
  padding: 20px 40px;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

/* Phone Screen */
.phone-container {
  height: 100%;
  aspect-ratio: 9/19.5;
  background: #000;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 4px solid #333;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  height: 24px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: white;
  z-index: 10;
}

.status-icons {
  display: flex;
  gap: 6px;
}

/* Video Player Simulation */
.video-player {
  flex: 1;
  background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  padding-left: 4px; /* Optical center */
}

.video-ui-bottom {
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

.video-progress {
  height: 2px;
  background: rgba(255,255,255,0.3);
  margin-bottom: 10px;
  position: relative;
}

.video-progress::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 30%;
  background: white;
}

.video-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 24px;
  height: 24px;
  background: #666;
  border-radius: 50%;
  border: 1px solid white;
}

.username {
  font-size: 12px;
  font-weight: 600;
}

.follow-btn {
  font-size: 10px;
  background: #ef4444;
  padding: 2px 6px;
  border-radius: 4px;
}

.action-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  font-size: 10px;
}

.phone-nav-indicator {
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
}

.phone-nav-indicator::after {
  content: '';
  width: 40%;
  height: 4px;
  background: #ffffff;
  border-radius: 2px;
}

/* App Sidebar */
.app-sidebar {
  width: 50px;
  background: white;
  border-radius: 25px;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-md);
  height: 90%;
}

.sidebar-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s;
}

.sidebar-btn:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.sidebar-divider {
  width: 20px;
  height: 1px;
  background: #e5e7eb;
  margin: 5px 0;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-fade);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--primary-fade);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon {
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Download Section - New Design */
.download {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.download-header {
  text-align: center;
  margin-bottom: 4rem;
}

.download-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.download-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.download-platform {
  background: white;
  border-radius: var(--radius-xl);
  border: 2px solid #f3f4f6;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.download-platform:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
  transform: translateY(-5px);
}

.platform-header {
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.platform-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.platform-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.platform-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.platform-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.platform-feature svg {
  color: var(--primary);
  flex-shrink: 0;
}

.platform-footer {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.platform-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.platform-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.platform-btn svg {
  transition: transform 0.3s ease;
}

.platform-btn:hover svg {
  transform: translateY(2px);
}

.platform-version {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.download-note {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.6;
}

.download-note svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #f59e0b;
}

/* Footer */
.footer {
  background: #f9fafb;
  padding: 80px 0 30px;
  border-top: 1px solid #e5e7eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Responsive */
/* Tablet styles (768px - 992px) */
@media (max-width: 992px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }

  .hero-btns {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
  }

  .window-frame {
    transform: none;
    max-width: 100%;
  }

  .app-interface {
    height: 400px;
    padding: 15px 20px;
  }

  .features {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .download {
    padding: 60px 0;
  }

  .download-header {
    margin-bottom: 3rem;
  }

  .download-title {
    font-size: 2rem;
  }

  .download-grid {
    gap: 1.5rem;
  }

  .platform-header {
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .platform-icon {
    font-size: 2.5rem;
  }

  .platform-header h3 {
    font-size: 1.25rem;
  }

  .platform-body {
    padding: 1.5rem;
  }

  .platform-footer {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .footer {
    padding: 60px 0 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Header */
  .header-container {
    height: 60px;
  }

  .logo-img {
    height: 32px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    flex-direction: column;
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Hero */
  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  .btn-lg {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }

  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .stat-divider {
    display: none;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .hero-image {
    display: none;
  }

  /* Features */
  .features {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  /* Download */
  .download {
    padding: 40px 0;
  }

  .download-header {
    margin-bottom: 2rem;
  }

  .download-title {
    font-size: 1.75rem;
  }

  .download-subtitle {
    font-size: 1rem;
  }

  .download-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .platform-header {
    padding: 1.25rem 1.25rem 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .platform-icon {
    font-size: 2.5rem;
  }

  .platform-header h3 {
    font-size: 1.2rem;
  }

  .platform-body {
    padding: 1.25rem;
    gap: 0.875rem;
  }

  .platform-feature {
    font-size: 0.9rem;
  }

  .platform-footer {
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  .platform-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
  }

  .platform-version {
    text-align: center;
  }

  .download-note {
    font-size: 0.85rem;
    padding: 0.875rem 1rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-links h4 {
    font-size: 0.95rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  /* FAQ Page */
  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }

  .faq-question .icon {
    font-size: 1.25rem;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 1rem;
  }

  /* Guide Page */
  .guide-container {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .markdown-body h1 {
    font-size: 1.75rem;
  }

  .markdown-body h2 {
    font-size: 1.25rem;
  }

  .markdown-body h3 {
    font-size: 1.1rem;
  }

  .markdown-body {
    font-size: 0.95rem;
  }

  /* Modal */
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-content h3 {
    font-size: 1.25rem;
  }

  .qr-code {
    width: 180px;
    height: 180px;
  }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .download-content h2 {
    font-size: 1.5rem;
  }

  .download-options {
    flex-direction: column;
    width: 100%;
  }

  .download-card {
    width: 100%;
    min-width: auto;
  }

  .qr-code {
    width: 150px;
    height: 150px;
  }
}

/* FAQ Page */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-fade);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Guide Page Layout */
.guide-container {
  display: flex;
  gap: 3rem;
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
}

.guide-sidebar {
  width: 250px;
  flex-shrink: 0;
  display: none; /* Hidden on mobile by default */
}

@media (min-width: 992px) {
  .guide-sidebar {
    display: block;
  }
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid transparent;
}

.guide-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.guide-nav a:hover {
  color: var(--primary);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.guide-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-fade);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 600;
}

.guide-content {
  flex: 1;
  min-width: 0; /* Prevent overflow */
}

/* Markdown Body Styles Simulation */
.markdown-body {
  color: var(--text-main);
  line-height: 1.8;
}

.markdown-body section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px; /* Offset for fixed header */
}

.markdown-body h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.markdown-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.markdown-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.markdown-body p {
  margin-bottom: 1rem;
}

.markdown-body ul, 
.markdown-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.markdown-body li {
  margin-bottom: 0.5rem;
}

.markdown-body code {
  background: var(--bg-alt);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: var(--primary-dark);
}

.markdown-body hr {
  height: 1px;
  background: #e5e7eb;
  border: none;
  margin: 3rem 0;
}

.markdown-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.markdown-body a:hover {
  color: var(--primary-dark);
}

/* Responsive adjustments for Guide Page */
@media (max-width: 992px) {
  .guide-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .guide-sidebar {
    width: 100%;
    display: block;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
  }
  
  .sidebar-sticky {
    position: static;
    max-height: none;
  }
  
  .guide-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .guide-nav a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  
  .guide-nav a.active {
    border-left: none;
    border-bottom-color: var(--primary);
  }
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.5); 
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fefefe;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%; 
  max-width: 400px;
  text-align: center;
  position: relative;
  animation: slideUp 0.3s;
}

.close-modal {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--text-main);
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.qr-code-container {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 1rem;
}

.qr-code {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
}

.modal-note {
  font-size: 0.875rem;
  margin-bottom: 0 !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Floating Customer Service Icon */
.floating-cs {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
}

.cs-icon-wrapper svg {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.cs-text {
  font-size: 10px;
  font-weight: 500;
}

.floating-cs:hover {
  transform: translateY(-5px);
}

.floating-cs:hover .cs-icon-wrapper {
  background: var(--primary-dark);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .floating-cs {
    right: 20px;
    bottom: 20px;
  }
  
  .cs-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .cs-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }
  
  .cs-text {
    font-size: 9px;
  }
}
