/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Color Variables & Style Tokens - Light & Dark Modes */
:root {
  --bg-primary: #f2f4f7;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --border-glass: rgba(15, 23, 42, 0.06);
  --border-glow: rgba(124, 58, 237, 0.35);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-purple: #7c3aed;
  --accent-pink: #db2777;
  --accent-green: #10b981;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.02);
  --glow-purple: 0 0 25px rgba(124, 58, 237, 0.12);
  --radial-bg: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.07) 0%, transparent 40%),
               radial-gradient(circle at 90% 80%, rgba(219, 39, 119, 0.05) 0%, transparent 40%);
  --bg-navbar: rgba(242, 244, 247, 0.75);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.9);
  --showcase-glow: rgba(15, 23, 42, 0.12);
  --dot-color: rgba(15, 23, 42, 0.15);
  --card-hover-bg: rgba(255, 255, 255, 0.85);
  --shadow-card-hover: 0 15px 30px -10px rgba(15, 23, 42, 0.12);
  --border-step-card: rgba(255, 255, 255, 0.7);
  --bg-step-img: rgba(15, 23, 42, 0.02);
}

body.dark-theme {
  --bg-primary: #090d16;
  --bg-secondary: #121824;
  --bg-glass: rgba(18, 24, 36, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --shadow-premium: 0 15px 35px -10px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.15);
  --glow-purple: 0 0 25px rgba(139, 92, 246, 0.2);
  --radial-bg: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
               radial-gradient(circle at 90% 80%, rgba(236, 48, 153, 0.08) 0%, transparent 45%);
  --bg-navbar: rgba(9, 13, 22, 0.75);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.15);
  --showcase-glow: rgba(0, 0, 0, 0.4);
  --dot-color: rgba(255, 255, 255, 0.2);
  --card-hover-bg: rgba(18, 24, 36, 0.85);
  --shadow-card-hover: 0 15px 35px -10px rgba(0, 0, 0, 0.45);
  --border-step-card: rgba(255, 255, 255, 0.12);
  --bg-step-img: rgba(255, 255, 255, 0.02);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: var(--radial-bg);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Utility Containers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.navbar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: var(--bg-navbar);
  border-bottom: 1px solid var(--border-glass);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  border-radius: 8px;
  width: 34px;
  height: 34px;
  box-shadow: var(--glow-purple);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-pink) 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Premium Buttons */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4), var(--glow-purple);
}

.btn-secondary {
  background-color: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover-bg);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-premium);
  margin-right: 8px;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-purple);
  transform: scale(1.08) rotate(15deg);
  box-shadow: var(--glow-purple);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Toggle icon display rules */
.theme-toggle-btn .sun-icon {
  display: none;
  color: #fbbf24; /* Warm yellow for sun */
}

.theme-toggle-btn .moon-icon {
  display: block;
  color: #6366f1; /* Cool purple-blue for moon */
}

body.dark-theme .theme-toggle-btn .sun-icon {
  display: block;
}

body.dark-theme .theme-toggle-btn .moon-icon {
  display: none;
}

/* Hero Section */
.hero {
  padding-top: 170px;
  padding-bottom: 90px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.badge-tag {
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent-purple);
  border: 1px solid rgba(124, 58, 237, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
}

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

/* Preview UI Showcase */
.showcase-container {
  background: var(--bg-glass);
  border: 1px solid var(--border-step-card);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 40px -15px var(--showcase-glow), var(--shadow-premium);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.showcase-header {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--dot-color);
}

.showcase-dot:nth-child(1) { background-color: #ff5f56; }
.showcase-dot:nth-child(2) { background-color: #ffbd2e; }
.showcase-dot:nth-child(3) { background-color: #27c93f; }

.showcase-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--border-glass);
}

/* Features Grid Section */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-glass);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
  font-size: 16px;
}

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

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-premium);
}

.feature-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-4px);
  background-color: var(--card-hover-bg);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Guide Section */
.guide-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-glass);
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
}

.guide-steps {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-step-card);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px var(--showcase-glow);
  border-color: var(--accent-purple);
}

.step-image-container {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-step-img);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-image {
  transform: scale(1.06);
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-purple);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 58, 237, 0.15);
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.step-desc code {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-pink);
  font-size: 13px;
  font-family: monospace;
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-glass);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
  box-shadow: var(--shadow-premium);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.faq-question:hover {
  background-color: var(--border-glass);
}

.faq-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent-pink);
}

/* Smooth Accordion using CSS Grid */
.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.faq-item.active .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-answer {
  min-height: 0;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.25s ease-out, padding-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active FAQ Class */
.faq-item.active {
  border-color: var(--border-glow);
}

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

.faq-item.active .faq-answer {
  opacity: 1;
  padding-bottom: 20px;
}

/* Footer Section */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 48px 0;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 450px;
  margin: 0 auto 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.25s ease;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 11px;
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
  }
  
  .hero-desc {
    font-size: 15px;
  }
  
  .navbar {
    padding: 0 16px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-link {
    font-size: 13px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .step-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
