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

:root {
  --primary: #ff4ba8;
  --primary-dark: #e6439a;
  --secondary: #764ba2;
  --text: #1a1a1a;
  --text-muted: #666;
  --bg: #fff;
  --bg-secondary: #f8f9fa;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 75, 168, 0.4);
  text-decoration: none;
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo-icon {
  font-size: 28px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

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

.lang-switch {
  background: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* ===== Hero Section ===== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.hero h1 {
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.hero-image {
  margin-top: 60px;
  border-radius: 16px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
}

/* ===== Features Section ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255,75,168,0.1) 0%, rgba(118,75,162,0.1) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

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

/* ===== Pricing Section ===== */
.pricing-card {
  max-width: 420px;
  margin: 60px auto 0;
  background: var(--bg);
  border-radius: 24px;
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 48px rgba(255,75,168,0.15);
}

.pricing-header {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
  color: #fff;
  padding: 32px;
  text-align: center;
}

.pricing-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.pricing-body {
  padding: 32px;
}

.price {
  text-align: center;
  margin-bottom: 32px;
}

.price-original {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 56px;
  font-weight: 700;
}

.price-current .currency {
  font-size: 24px;
  vertical-align: top;
}

.price-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.pricing-features .check {
  color: #22c55e;
  font-weight: bold;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-desc {
  color: #999;
  font-size: 14px;
  line-height: 1.7;
}

.footer h4 {
  margin-bottom: 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #999;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* ===== Docs Page ===== */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-top: 100px;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

@media (max-width: 900px) {
  .docs-sidebar {
    position: static;
  }
}

.docs-nav {
  list-style: none;
}

.docs-nav-section {
  margin-bottom: 24px;
}

.docs-nav-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.docs-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.2s;
}

.docs-nav a:hover,
.docs-nav a.active {
  background: var(--bg-secondary);
  color: var(--primary);
  text-decoration: none;
}

.docs-content {
  max-width: 800px;
  padding-bottom: 100px;
}

.docs-content h1 {
  margin-bottom: 16px;
}

.docs-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.docs-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.docs-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

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

.docs-content li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.docs-content code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.docs-content pre {
  background: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.docs-content pre code {
  background: none;
  padding: 0;
}

/* ===== Utilities ===== */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
