/* Faral - Clean & Minimal Design */

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

:root {
  --bg: #ffffff;
  --bg-secondary: #fafafa;
  --text: #171717;
  --text-secondary: #737373;
  --border: #e5e5e5;
  --purple: #7c3aed;
  --purple-hover: #6d28d9;
  --header-blur: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-secondary: #171717;
  --text: #ededed;
  --text-secondary: #a3a3a3;
  --border: #262626;
  --purple: #8b5cf6;
  --purple-hover: #7c3aed;
  --header-blur: rgba(10, 10, 10, 0.8);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: var(--header-blur);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
}

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

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

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

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

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s;
  border-radius: 4px;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon,
:root:not([data-theme]) .moon-icon {
  display: none;
}

/* Buttons */
.btn-primary {
  background: var(--purple);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--purple-hover);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 50px;
  text-align: center;
  overflow: hidden;
}

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

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

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

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 16px;
  padding: 5px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.hero-label:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

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

.hero-actions .btn-primary {
  font-size: 15px;
  padding: 12px 32px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.hero-actions .btn-primary:hover::before {
  opacity: 1;
}

/* Features Preview */
.features-preview {
  padding: 60px 0 80px;
  background: var(--bg);
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .feature-card {
  background: rgba(23, 23, 23, 0.4);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(139, 92, 246, 0.2);
  background: rgba(23, 23, 23, 0.6);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--purple);
  transition: all 0.3s ease;
}

[data-theme="dark"] .feature-icon {
  background: rgba(10, 10, 10, 0.6);
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

/* Credit */
.credit {
  padding: 40px 0;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.credit p {
  font-size: 14px;
  color: var(--text-secondary);
}

.credit a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

.credit a:hover {
  text-decoration: underline;
}

/* Features */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

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

/* CTA */
.cta {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: var(--text);
}

/* Pricing Hero */
.pricing-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.pricing-hero p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Pricing Content */
.pricing-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 60px;
}

.pricing-header {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.pricing-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price .amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
}

.price .period {
  font-size: 16px;
  color: var(--text-secondary);
}

.pricing-features {
  margin-bottom: 32px;
}

.feature-group h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pricing-features ul {
  list-style: none;
}

.pricing-features li {
  padding: 12px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 600;
}

/* Pricing FAQ */
.pricing-faq {
  text-align: center;
}

.pricing-faq h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--text);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.faq h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

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

/* Error Page */
.error-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

.error-page h1 {
  font-size: 96px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 100px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.footer-logo img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* Changelog */
.changelog-content {
  padding: 60px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.changelog-entry {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-date {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple);
  margin-bottom: 12px;
}

.changelog-entry h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.changelog-section {
  margin-bottom: 24px;
}

.changelog-section h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.changelog-section ul {
  list-style: none;
  padding-left: 0;
}

.changelog-section li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
  font-size: 15px;
}

.changelog-section li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--purple);
  font-weight: 600;
}

/* Docs */
.docs-content {
  padding: 60px 0 100px;
}

.docs-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
}

.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-link {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.docs-nav-link:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.docs-nav-link.active {
  color: var(--purple);
  background: var(--bg-secondary);
  font-weight: 500;
}

.docs-main {
  max-width: 700px;
}

.docs-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

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

.docs-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.docs-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.docs-section > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.docs-section ul,
.docs-section ol {
  margin: 16px 0;
  padding-left: 24px;
}

.docs-section li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.docs-section ul li {
  list-style: none;
  position: relative;
  padding-left: 8px;
}

.docs-section ul li::before {
  content: "•";
  position: absolute;
  left: -16px;
  color: var(--purple);
  font-weight: 600;
}

.docs-section ol li {
  padding-left: 8px;
}

/* Responsive */
@media (max-width: 968px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero-label {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-actions .btn-primary {
    padding: 11px 28px;
    font-size: 14px;
  }

  .features-preview {
    padding: 40px 0 60px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .feature-icon svg {
    width: 22px;
    height: 22px;
  }

  .feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .feature-card p {
    font-size: 14px;
  }
}

  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .error-page h1 {
    font-size: 64px;
  }

  .docs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .docs-nav-link {
    white-space: nowrap;
  }
}
