/* ===== Variables ===== */
:root {
  --bg-dark: #121225;
  --bg-card: #1c1c35;
  --bg-card-hover: #232345;
  --bg-header: rgba(18, 18, 37, 0.92);
  --text-primary: #f0f0f8;
  --text-secondary: #a0a0bc;
  --text-muted: #6c6c8a;
  --gradient-start: #e84393;
  --gradient-end: #f39c12;
  --gradient: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  --gradient-btn: linear-gradient(135deg, #e84393, #fd79a8, #f39c12);
  --border-card: rgba(255,255,255,0.06);
  --border-featured: rgba(232,67,147,0.5);
  --green-badge: #00b894;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: 1rem;
}
.logo-text {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Nav */
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}
.nav-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color .2s;
}
.nav-list a:hover { color: var(--text-primary); }
.btn-header { flex-shrink: 0; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  padding: 3px;
  cursor: pointer;
  font-family: inherit;
  gap: 0;
  flex-shrink: 0;
}
.lang-toggle span {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  color: var(--text-muted);
  transition: all .2s;
  letter-spacing: 0.03em;
}
.lang-toggle span.active {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 1px 6px rgba(232,67,147,0.25);
}

/* Menu mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background .2s;
}
.nav-mobile {
  display: none;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-card);
  padding: 1rem 1.25rem 1.5rem;
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li { margin-bottom: 0.25rem; }
.nav-mobile a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.nav-mobile a:hover { color: var(--text-primary); }
.nav-mobile.is-open { display: block; }
.btn-mobile-cta {
  margin-top: 0.5rem;
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .nav { display: none; }
  .btn-header { display: none; }
  .menu-toggle { display: flex; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }

.btn-gradient {
  background: var(--gradient-btn);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 67, 147, 0.3);
}
.btn-gradient:hover {
  background-position: right center;
  box-shadow: 0 6px 28px rgba(232, 67, 147, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.04);
}

.btn-coming-soon {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1.5px solid var(--border-card);
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-coming-soon:hover { transform: none; }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,67,147,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(243,156,18,0.06) 0%, transparent 50%),
    var(--bg-dark);
}
.hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gradient-start);
  background: rgba(232,67,147,0.1);
  border: 1px solid rgba(232,67,147,0.2);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}
.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-lead strong { color: var(--text-primary); font-weight: 600; }
.hero-sub {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-card);
}

/* ===== Section titles ===== */
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
}
.section-subtitle {
  margin: 0 0 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Pricing ===== */
.pricing {
  padding: 4rem 0 5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.pricing-card-featured {
  border-color: var(--border-featured);
  box-shadow: 0 4px 30px rgba(232,67,147,0.12);
  transform: scale(1.03);
}
.pricing-card-featured:hover {
  transform: scale(1.03) translateY(-4px);
}
.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
}

.pricing-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.badge-free {
  background: rgba(0,184,148,0.15);
  color: var(--green-badge);
}
.badge-pro {
  background: rgba(232,67,147,0.15);
  color: var(--gradient-start);
}
.badge-elite {
  background: rgba(243,156,18,0.15);
  color: var(--gradient-end);
}

.pricing-name {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.pricing-desc {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pricing-price {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-price span {
  font-size: 0.9rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-badge);
  font-weight: 700;
  font-size: 0.85rem;
}
.pricing-features li strong { color: var(--text-primary); }
.pricing-features .feature-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.pricing-features .feature-note::before {
  content: "ℹ";
  color: var(--text-muted);
}
.pricing-card .btn { margin-top: auto; }

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .pricing-card-featured { transform: none; }
  .pricing-card-featured:hover { transform: translateY(-4px); }
}

/* ===== Why ===== */
.why {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232,67,147,0.04) 0%, transparent 60%),
    var(--bg-dark);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.why-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(232,67,147,0.1);
  margin-bottom: 1rem;
}
.why-icon {
  font-size: 1.5rem;
}
.why-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-stats {
    flex-direction: row;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
  }
  .hero-stats .stat-divider { height: 24px; }
}

/* ===== FAQ on homepage ===== */
.faq-home {
  padding: 4rem 0 5rem;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 0;
  background: rgba(12,12,24,0.6);
  border-top: 1px solid var(--border-card);
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  border-radius: 8px;
}
.footer-links { margin: 0 0 0.5rem; }
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gradient-start); }
.footer-sep {
  margin: 0 0.5rem;
  color: var(--text-muted);
}
.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Support page ===== */
.support-page {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - 200px);
}
.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
}
.page-subtitle {
  margin: 0 0 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-active {
  color: var(--text-primary) !important;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border-radius: 50px;
  padding: 4px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.tab-btn {
  flex: 1;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 2px 12px rgba(232,67,147,0.3);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FAQ */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.faq-heading {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}
details[open] .faq-q::after {
  content: "−";
  color: var(--gradient-start);
}
.faq-a {
  padding: 0 1.25rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.faq-a p { margin: 0 0 0.5rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.faq-a li { margin-bottom: 0.35rem; }
.faq-a strong { color: var(--text-primary); }

/* Contact card */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 5rem;
}
.contact-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.contact-card p {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.contact-card .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
  .contact-card { position: static; }
}

/* Feedback */
.feedback-content {
  max-width: 600px;
  margin: 0 auto;
}
.feedback-intro {
  text-align: center;
  margin-bottom: 2rem;
}
.feedback-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.feedback-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.feedback-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feedback-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-dark);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gradient-start);
}
.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c6c8a' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group textarea { resize: vertical; min-height: 100px; }

.feedback-success {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,184,148,0.15);
  color: var(--green-badge);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.feedback-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.feedback-success p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Policy page ===== */
.policy-page {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - 200px);
}
.policy-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 2.5rem;
}
.policy-content {
  max-width: 760px;
  margin: 0 auto;
}
.policy-section {
  margin-bottom: 2rem;
}
.policy-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-card);
}
.policy-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1rem 0 0.5rem;
}
.policy-section p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.policy-section ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.5rem;
}
.policy-section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.35rem;
}
.policy-section strong {
  color: var(--text-primary);
}
.policy-section a {
  color: var(--gradient-start);
  text-decoration: none;
}
.policy-section a:hover {
  text-decoration: underline;
}
