@font-face {
  font-family: YekanBakh;
  src: url("assets/fonts/YekanBakhFaNum-Regular.ttf");
}
@font-face {
  font-family: YekanBakh;
  src: url("assets/fonts/YekanBakhFaNum-SemiBold.ttf");
  font-weight: 600;
}
@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 {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --border: #e2e8f0;
  
  --edu-color: #0b8a83;
  --edu-bg: #e6f6f5;
  
  --ai-color: #7c3aed;
  --ai-bg: #f3e8ff;
}

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

html {
  scroll-behavior: smooth;
  font-family: YekanBakh, system-ui, sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.04), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.04), transparent 50%);
}

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

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

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--text-main);
  border: 1px solid var(--border);
}

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

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary-light);
}

/* Header */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--ai-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
}

.brand-text {
  font-weight: 800;
  font-size: 18px;
}

.brand-text span {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}

.main-nav {
  display: flex;
  gap: 32px;
}

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

.main-nav a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--primary);
}

.hero-title span:last-child {
  color: var(--ai-color);
}

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

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

/* Products */
.products-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

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

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

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

.product-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.product-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.edu-theme {
  background-color: var(--edu-bg);
}

.ai-theme {
  background-color: var(--ai-bg);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: white;
  color: var(--edu-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.badge-ai {
  color: var(--ai-color);
}

.product-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--edu-color);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.ai-theme .product-icon {
  color: var(--ai-color);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.product-body p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  flex: 1;
}

.product-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-page);
  padding: 4px 10px;
  border-radius: 6px;
}

.action-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* About */
.about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.about-card {
  background: var(--bg-surface);
  border-radius: 32px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.about-content {
  padding: 48px;
}

.about-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.job-title {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.about-stats {
  background-color: var(--primary-light);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
}

/* Footer */
.store-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-surface);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }
  .about-card {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px;
  }
  .main-nav {
    display: none;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  /* App Bar Fix for tablets and mobiles */
  .brand-text span { display: none; }
  .brand-logo { width: 36px; height: 36px; font-size: 16px; }
  .brand-text { font-size: 16px; }
  .header-inner { padding: 12px 16px; gap: 8px; }
  .btn-outline-primary { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  .brand-logo { width: 32px; height: 32px; font-size: 14px; }
  .brand-text { font-size: 15px; }
  .btn-outline-primary { padding: 6px 12px; font-size: 12px; }
}
