/* WFY Tech - Global B2B Stylus Pen Manufacturer */
:root {
  --primary: #1a56db;
  --primary-dark: #1040a0;
  --accent: #f59e0b;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
}

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

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

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

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-300);
  transition: var(--transition);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.logo span { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--gray-700); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav .btn-nav {
  background: var(--primary); color: var(--white) !important; padding: 10px 24px;
  border-radius: var(--radius); font-weight: 600;
}
.nav .btn-nav:hover { background: var(--primary-dark); }

.menu-toggle { display: none; cursor: pointer; font-size: 24px; }

/* ========== HERO ========== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 50%, #f5f3ff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,0.08), transparent 70%);
}
.hero .container { display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-content .badge {
  display: inline-block; background: rgba(26,86,219,0.1); color: var(--primary);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 48px; line-height: 1.15; color: var(--dark); font-weight: 800;
  margin-bottom: 20px; letter-spacing: -1px;
}
.hero-content h1 span { color: var(--primary); }
.hero-content p {
  font-size: 18px; color: var(--gray-500); line-height: 1.7; margin-bottom: 32px;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; transition: var(--transition); cursor: pointer;
  border: none; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.hero-image { flex: 1; text-align: center; }
.hero-image .product-showcase {
  width: 100%; max-width: 480px;
  background: var(--white); border-radius: 16px; padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* ========== SECTIONS ========== */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--gray-100); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 36px; color: var(--dark); font-weight: 800; margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-header p { font-size: 18px; color: var(--gray-500); max-width: 640px; margin: 0 auto; }

/* ========== ADVANTAGES ========== */
.advantages-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.advantage-card {
  background: var(--white); border-radius: 12px; padding: 32px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.advantage-card .icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
  background: rgba(26,86,219,0.08);
}
.advantage-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; font-weight: 700; }
.advantage-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ========== PRODUCTS ========== */
.product-tabs { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.product-tab {
  padding: 10px 24px; border-radius: 24px; font-size: 14px; font-weight: 600;
  border: 2px solid var(--gray-300); color: var(--gray-700); cursor: pointer;
  background: var(--white); transition: var(--transition);
}
.product-tab:hover, .product-tab.active {
  border-color: var(--primary); color: var(--primary); background: rgba(26,86,219,0.05);
}

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .product-img {
  height: 240px; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative;
}
.product-card .product-img img { max-height: 200px; object-fit: contain; }
.product-card .product-img .badge-hot {
  position: absolute; top: 12px; right: 12px;
  background: #ef4444; color: var(--white);
  padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 700;
}
.product-card .product-info { padding: 20px; }
.product-card .product-info h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.product-card .product-info .features {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.product-card .product-info .features span {
  background: var(--gray-100); color: var(--gray-700); padding: 4px 10px;
  border-radius: 4px; font-size: 12px;
}
.product-card .product-info .specs {
  font-size: 13px; color: var(--gray-500); margin-bottom: 16px;
}
.product-card .product-info .btn { width: 100%; padding: 10px; font-size: 14px; }

/* ========== COMPARISON TABLE ========== */
.comparison-table { width: 100%; overflow-x: auto; }
.comparison-table table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.comparison-table th, .comparison-table td {
  padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.comparison-table th {
  background: var(--primary); color: var(--white); font-weight: 600;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.comparison-table td:first-child { text-align: left; font-weight: 600; color: var(--dark); }
.comparison-table tr:hover { background: rgba(26,86,219,0.03); }
.comparison-table .check { color: #10b981; font-weight: 700; }
.comparison-table .cross { color: var(--gray-300); }

/* ========== OEM SECTION ========== */
.oem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.oem-content h3 { font-size: 24px; color: var(--dark); margin-bottom: 16px; font-weight: 700; }
.oem-content ul { list-style: none; }
.oem-content ul li {
  padding: 10px 0; font-size: 15px; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 12px;
}
.oem-content ul li::before { content: '✓'; color: var(--primary); font-weight: 700; }
.oem-visual {
  background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
  border-radius: 16px; padding: 48px; text-align: center;
  min-height: 360px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gray-500);
}

/* ========== STATS ========== */
.stats-bar {
  background: var(--primary); padding: 48px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-item h3 { font-size: 40px; font-weight: 800; color: var(--white); }
.stat-item p { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
  padding: 80px 0; text-align: center;
}
.cta-section h2 { color: var(--white); font-size: 36px; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 18px; margin-bottom: 32px; }
.cta-section .btn-primary { background: var(--accent); }
.cta-section .btn-primary:hover { background: #d97706; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
  margin-bottom: 16px; transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--gray-100); border-radius: 12px; padding: 24px;
  display: flex; align-items: center; gap: 16px;
}
.contact-card .icon { font-size: 24px; width: 48px; text-align: center; }
.contact-card h4 { font-size: 15px; color: var(--dark); font-weight: 700; }
.contact-card p { font-size: 14px; color: var(--gray-500); }

/* ========== FOOTER ========== */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.6); padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.6); font-size: 14px; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--white); }
.footer .brand-desc { font-size: 14px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  text-align: center; font-size: 13px;
}

/* ========== RESPONSIVE ========== */
/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
  position: relative; margin-left: 8px;
}
.lang-switcher button {
  background: var(--gray-100); border: 1px solid var(--gray-300);
  padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; color: var(--gray-700);
}
.lang-switcher button:hover { background: var(--white); border-color: var(--primary); }
.lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--white); border: 1px solid var(--gray-300); border-radius: 8px;
  box-shadow: var(--shadow-lg); z-index: 9999; min-width: 160px; overflow: hidden;
}
.lang-dropdown a {
  display: block; padding: 10px 16px; font-size: 14px; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.lang-dropdown a:hover { background: rgba(26,86,219,0.05); color: var(--primary); }
.lang-dropdown a:last-child { border-bottom: none; }

/* RTL support */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .oem-content ul li { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero .container { flex-direction: column; gap: 40px; }
  .hero-content h1 { font-size: 32px; }
  .hero-image { order: -1; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 24px; box-shadow: var(--shadow); }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .oem-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
}
