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

/* Custom font - UKIJ Ekran for Uyghur text */
@font-face {
  font-family: 'UKIJ Ekran';
  src: url('/font/UKIJEkran.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #0ea5e9;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'UKIJ Ekran', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: ltr;
}

html[dir="rtl"] body {
  text-align: right;
  font-family: 'UKIJ Ekran', 'UKIJ Tuz Tom', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

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

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

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

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

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.logo-sub {
  font-size: 12px;
  color: var(--text-muted);
}

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

.nav-links a {
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-alt);
  color: var(--primary);
}

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

.lang-toggle {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  padding: 10px 24px;
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--bg);
}

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

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

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

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

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

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Products Showcase */
.products {
  padding: 80px 0;
  background: var(--bg-alt);
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.product-showcase:nth-child(even) {
  direction: rtl;
}

.product-showcase:nth-child(even) > * {
  direction: ltr;
}

.product-image {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 24px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.product-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.product-info p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.product-list li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Agreements Section */
.agreements {
  padding: 80px 0;
  background: var(--bg);
}

.agreement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.agreement-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  display: block;
}

.agreement-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.agreement-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.agreement-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.agreement-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 24px;
}

.contact-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card a,
.contact-card span {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  word-break: break-all;
}

.contact-card a:hover {
  color: var(--primary);
}

/* Filing Section */
.filing {
  padding: 60px 0;
  background: var(--bg);
}

.filing-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.filing-box h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.filing-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.filing-item {
  padding: 12px 24px;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.filing-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.filing-item a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 60px 0 30px;
}

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

.footer-brand {
  margin-bottom: 20px;
}

.footer-brand .logo-icon {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-bottom a {
  color: #64748b;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  color: white;
  text-align: center;
}

.page-banner h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.9;
}

/* Content Sections */
.content-section {
  padding: 60px 0;
}

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

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

.content-block h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.content-block h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.content-block p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-block ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

html[dir="rtl"] .content-block ul {
  padding-left: 0;
  padding-right: 24px;
}

.content-block ul li {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Bilingual text visibility */
html[lang="zh"] [lang-zh] {
  display: inline;
}
html[lang="zh"] [lang-ug] {
  display: none;
}

html[lang="ug"] [lang-ug] {
  display: inline;
}
html[lang="ug"] [lang-zh] {
  display: none;
}

html[lang="ug"] body {
  direction: rtl;
}

html[dir="rtl"] .nav-wrap,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .product-showcase,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .filing-info {
  direction: rtl;
}

html[dir="rtl"] .product-list {
  padding-right: 0;
  padding-left: 0;
}

html[dir="rtl"] .product-list li::before {
  margin-left: 10px;
  margin-right: 0;
}

html[dir="rtl"] .footer-bottom {
  direction: rtl;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions .lang-toggle {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .hero {
    padding: 48px 0 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .features,
  .products,
  .agreements,
  .contact {
    padding: 48px 0;
  }

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

  .product-showcase:nth-child(even) {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-banner {
    padding: 40px 0;
  }

  .page-banner h1 {
    font-size: 28px;
  }
}

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

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
