/* ============================================
   Mining Machinery - Deep Industrial Style
   ============================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/inter-latin-900.woff2') format('woff2');
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0D0D0D;
  --bg-secondary: #1A1A1A;
  --bg-tertiary: #141414;
  --accent: #F5A623;
  --accent-hover: #E87A00;
  --text-primary: #F2F2F2;
  --text-secondary: #9A9A9A;
  --border: #2A2A2A;
  --border-hover: #F5A623;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 8px;
  --border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Typography --- */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img { height: 36px; flex-shrink: 0; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.02em;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-lang {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-lang:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  background: var(--accent);
  color: #0D0D0D;
  border-radius: 6px;
  transition: background var(--transition);
}

.nav-cta:hover { background: var(--accent-hover); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 320px; height: 100vh;
  background: var(--bg-secondary);
  padding: 80px 40px 40px;
  z-index: 1001;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu.open { right: 0; }

.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--text-primary); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 28px;
  background: none; border: none;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    linear-gradient(to bottom, 
      transparent 70%,
      rgba(20,20,20,0.6) 88%,
      rgba(20,20,20,1) 100%
    ),
    linear-gradient(to right, 
      rgba(0,0,0,0.65) 0%, 
      rgba(0,0,0,0.45) 30%, 
      rgba(0,0,0,0.20) 60%, 
      rgba(0,0,0,0.02) 100%
    ),
    url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245,166,35,0.3);
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0D0D0D;
}

.btn-primary:hover { background: var(--accent-hover); }

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

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.hero-stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.section {
  padding: 120px 0;
}

.section-dark { background: var(--bg-primary); }
.section-darker { background: var(--bg-tertiary); }

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

.section-header .section-title { max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.product-card-img {
  width: 100%;
  height: 260px;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.product-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--border);
  background: linear-gradient(135deg, #1A1A1A 0%, #222 100%);
  transition: transform var(--transition);
}

.product-card-img-placeholder::before {
  content: '星擎';
  font-size: 18px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: 0.1em;
}

.product-card:hover .product-card-img-placeholder {
  transform: scale(1.05);
}

.product-card-body {
  padding: 24px;
}

.product-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card-count {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.product-card-arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all var(--transition);
  opacity: 0;
  transform: translateX(-8px);
}

.product-card:hover .product-card-arrow {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.trust-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.trust-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.trust-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
}

.project-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card-img { transform: scale(1.05); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.project-card-country {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.project-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card-info {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   WHY US
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 20px;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,166,35,0.1);
  border-radius: 8px;
  color: var(--accent);
}

.feature-icon::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 2px;
}

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

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

/* ============================================
   PARTNERS
   ============================================ */
.partners-scroll {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
}

.partner-logo {
  height: 96px;
  width: auto;
  opacity: 0.5;
  transition: opacity var(--transition);
  filter: grayscale(1) brightness(1.2);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 70%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-info h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-info h2 span { color: var(--accent); }

.cta-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-secondary);
}

.cta-contact-item .icon {
  font-size: 18px;
  color: var(--accent);
}

.cta-contact-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* CTA Form */
.cta-form {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}

.cta-form h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

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

.footer-brand .nav-logo { margin-bottom: 16px; display: block; }

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--accent); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .container { padding: 0 32px; }
  .hero-title { font-size: 52px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .products-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-info h2 { font-size: 32px; }
  .section-title { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS (triggered by JS)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* Number counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.count-up {
  animation: countUp 600ms ease forwards;
}

/* Form validation */
.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444 !important;
}
