@font-face {
  font-family: YekanBakh;
  src: url("assets/fonts/YekanBakhFaNum-Regular.ttf");
}
@font-face {
  font-family: YekanBakh;
  src: url("assets/fonts/YekanBakhFaNum-Bold.ttf");
  font-weight: 700;
}
@font-face {
  font-family: YekanBakh;
  src: url("assets/fonts/YekanBakhFaNum-ExtraBold.ttf");
  font-weight: 800;
}

:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --accent: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
}

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

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: YekanBakh, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 12px; font-weight: 700;
  transition: all 0.3s; cursor: pointer; border: none;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-outline {
  background: transparent; color: white; border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-glow {
  background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3);
}
.btn-glow:hover { background: rgba(139, 92, 246, 0.25); }

/* Nav */
.ai-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center; height: 80px;
}
.brand { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ai-icon { color: var(--primary); }
.back-link { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.back-link:hover { color: white; }

/* Hero */
.hero-ai { position: relative; padding: 100px 0 60px; text-align: center; overflow: hidden; }
.bg-glow {
  position: absolute; border-radius: 50%; filter: blur(100px); z-index: -1;
}
.glow-1 { width: 400px; height: 400px; background: rgba(139, 92, 246, 0.15); top: -100px; left: -100px; }
.glow-2 { width: 500px; height: 500px; background: rgba(16, 185, 129, 0.1); top: 200px; right: -100px; }

.badge-ai {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: rgba(139, 92, 246, 0.1); color: #c4b5fd; font-size: 13px; font-weight: 700;
  border: 1px solid rgba(139, 92, 246, 0.2); margin-bottom: 24px;
}
.hero-content h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.3; margin-bottom: 24px; }
.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 18px; color: var(--text-muted); max-width: 650px; margin: 0 auto 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 80px; }

/* Mockup */
.app-showcase { perspective: 1000px; }
.app-frame {
  max-width: 380px; margin: 0 auto; background: var(--bg-card);
  border-radius: 32px; padding: 24px; border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 8px rgba(255,255,255,0.02);
  transform: rotateX(5deg); transition: transform 0.4s; text-align: right;
}
.app-frame:hover { transform: rotateX(0); }
.app-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-weight: 700; }
.coin-balance { color: #fbbf24; background: rgba(251, 191, 36, 0.1); padding: 4px 12px; border-radius: 8px; font-size: 14px; }
.app-status {
  background: rgba(16, 185, 129, 0.1); color: var(--accent);
  padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 700; margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }

.app-tabs { display: flex; flex-wrap: wrap; background: rgba(0,0,0,0.3); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.tab { flex: 1; min-width: 80px; padding: 8px; text-align: center; font-size: 13px; font-weight: 700; border-radius: 8px; color: var(--text-muted); cursor: pointer; }
.tab.active { background: var(--primary); color: white; }

.app-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 20px; border-radius: 20px; text-align: right; }
.app-card h4 { font-size: 16px; margin-bottom: 12px; }
.app-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.fake-input {
  background: rgba(0,0,0,0.3); padding: 12px; border-radius: 12px; margin-bottom: 16px;
  color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); font-family: monospace; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fake-btn { background: var(--primary); padding: 12px; border-radius: 8px; text-align: center; font-size: 13px; font-weight: 700; }

/* How it Works */
.how-it-works { padding: 80px 0; }
.steps-container {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step-card {
  background: var(--bg-card); padding: 40px 32px; border-radius: 24px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.step-number {
  font-size: 80px; font-weight: 800; color: rgba(139, 92, 246, 0.1);
  position: absolute; top: 10px; left: 20px; line-height: 1;
}
.step-card h3 { font-size: 20px; margin-bottom: 16px; color: var(--text-main); font-weight: 800; }
.step-card p { color: var(--text-muted); font-size: 15px; line-height: 1.8; position: relative; z-index: 2; }

/* Features */
.features-section { padding: 80px 0 100px; }
.section-title { margin-bottom: 60px; }
.section-title h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.section-title p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); padding: 32px; border-radius: 24px;
  border: 1px solid var(--border); transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.f-icon { font-size: 40px; margin-bottom: 24px; display: inline-block; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; font-weight: 800; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* FAQ */
.faq-section { padding: 40px 0 100px; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq-item summary { padding: 24px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 24px; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--text-muted); line-height: 1.8; font-size: 15px; }

/* Testimonials */
.testimonials-section { padding: 80px 0 20px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--bg-card); padding: 32px; border-radius: 24px;
  border: 1px solid var(--border); display: flex; flex-direction: column;
  transition: transform 0.3s;
}
.review-card.featured-review {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.05));
  border-color: rgba(139, 92, 246, 0.3);
}
.review-card:hover { transform: translateY(-5px); }
.review-stars { font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.review-card p { color: var(--text-main); font-size: 15px; line-height: 1.8; flex: 1; margin-bottom: 24px; font-style: italic; }
.review-author strong { display: block; font-size: 16px; font-weight: 800; color: var(--primary); }
.review-author span { font-size: 13px; color: var(--text-muted); }

/* Download */
.download-section { padding: 100px 0; background: linear-gradient(to bottom, var(--bg-dark), #000); }
.download-section h2 { font-size: 36px; margin-bottom: 20px; font-weight: 800; }
.download-section p { color: var(--text-muted); margin-bottom: 40px; font-size: 18px; }
.download-buttons { display: flex; gap: 16px; justify-content: center; }

/* Footer */
.ai-footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; background: #000; }

@media (max-width: 768px) {
  .hero-actions, .download-buttons { flex-direction: column; }
  .features-grid, .steps-container, .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav-inner .back-link { display: none; }
  .brand { font-size: 16px; }
  .btn-glow { padding: 8px 12px; font-size: 12px; }
  .hero-content h1 { font-size: 28px; }
  .app-frame { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,0.3); padding: 16px; margin: 0; max-width: 100%; box-sizing: border-box; }
}
