:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --bg3: #1a1a1a;
  --border: #222;
  --accent: #f97316;
  --accent-dim: rgba(249,115,22,.15);
  --text: #eee;
  --text-muted: #888;
  --text-dim: #555;
  --light-bg: #f5f5f0;
  --light-text: #111;
  --light-border: #e0ddd8;
  --radius: 8px;
  --font: system-ui, 'Inter', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Nav */
.nav { background: #080808; border-bottom: 1px solid var(--border); height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px; position: sticky; top: 0; z-index: 100; }
.nav-logo { font-size: 22px; font-weight: 900; color: #fff; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #000; font-weight: 700; font-size: 13px;
  padding: 9px 20px; border-radius: 4px; transition: opacity .2s; }
.nav-cta:hover { opacity: .9; }

/* Sections */
.section-dark { background: var(--bg2); padding: 64px 32px; }
.section-mid  { background: var(--bg3); padding: 64px 32px; }
.section-light { background: var(--light-bg); padding: 64px 32px; color: var(--light-text); }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; }
.section-title { font-size: 30px; font-weight: 800; margin-bottom: 32px; }
.section-light .section-title { color: var(--light-text); }
.section-dark .section-title, .section-mid .section-title { color: #fff; }
.container { max-width: 1200px; margin: 0 auto; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #000; }
.btn-secondary { border: 1px solid var(--border); color: var(--text-muted); background: transparent; }
.btn-primary:hover { opacity: .9; }

/* Cards */
.card-grid { display: grid; gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Machine card */
.machine-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.machine-card:hover { border-color: var(--accent); }
.machine-card-img { height: 180px; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--border); font-size: 48px; overflow: hidden; }
.machine-card-img img { width: 100%; height: 100%; object-fit: cover; }
.machine-card-body { padding: 16px; }
.machine-card-cat { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.machine-card-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.machine-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.machine-price { font-size: 13px; color: var(--text-muted); }
.machine-price b { color: var(--accent); font-size: 16px; }
.badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 3px; border: 1px solid; }
.badge-op { color: var(--accent); border-color: rgba(249,115,22,.3); background: var(--accent-dim); }
.badge-noop { color: var(--text-dim); border-color: var(--border); background: transparent; }

/* Footer */
.footer { background: #080808; border-top: 1px solid #161616; padding: 48px 32px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid #161616; padding-top: 20px; font-size: 12px; color: #333; text-align: center; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
  padding: 80px 32px; border-bottom: 3px solid var(--accent);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/assets/img/hero-bg.jpg');
  background-size: cover; background-position: center 40%;
  filter: brightness(.35) saturate(.7);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 40%, rgba(0,0,0,.2) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero-tag { display: inline-block; background: var(--accent-dim); border: 1px solid rgba(249,115,22,.4); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: 2px; margin-bottom: 20px; }
.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.05; color: #fff; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero h1 span { color: var(--accent); }
.hero-desc { color: #bbb; font-size: 17px; line-height: 1.6; margin-bottom: 32px; max-width: 500px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15); }
.stat-num { font-size: 32px; font-weight: 900; color: var(--accent); }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* Category grid */
.cat-card { background: #fff; border: 1px solid var(--light-border); border-radius: var(--radius); padding: 24px 20px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.cat-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(249,115,22,.1); }
.cat-icon { font-size: 32px; margin-bottom: 12px; }
.cat-name { font-size: 15px; font-weight: 700; color: var(--light-text); margin-bottom: 4px; }
.cat-count { font-size: 12px; color: #888; }

/* Responsive */
@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}
