/* DEWAY Heavy Machinery — Industrial Design System */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-2: #1c1c21;
  --border: #2a2a30;
  --fg: #f5f5f7;
  --muted: #8a8a93;
  --primary: #FFCB05;     /* DEWAY yellow */
  --primary-fg: #0a0a0b;
  --accent: #2563eb;
  --danger: #ef4444;
  --container: 1200px;
  --display: 'Oswald', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1; text-transform: uppercase; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }

/* Hazard pattern */
.hazard-stripe {
  height: 8px;
  background: repeating-linear-gradient(45deg, var(--primary) 0 18px, var(--primary-fg) 18px 36px);
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--primary); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 38px; width: auto; filter: brightness(0) invert(1); }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.2em; }
.logo-sub { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.25em; display: block; }
.nav { display: none; gap: 4px; }
.nav a { font-family: var(--mono); font-size: 11px; padding: 8px 16px; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-family: var(--mono); font-size: 11px; border: 1px solid var(--border); }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); min-width: 140px; display: none; z-index: 60; }
.lang-menu.open { display: block; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 10px 14px; font-size: 13px; }
.lang-menu button:hover { background: var(--surface-2); color: var(--primary); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-family: var(--mono); font-size: 11px; transition: all .2s; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: var(--primary-fg); font-weight: 600; }
.btn-primary:hover { background: #ffd633; transform: translateY(-1px); }
.btn-outline { border-color: rgba(245,245,247,0.3); color: var(--fg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 26px; font-size: 12px; }
.menu-btn { display: inline-flex; padding: 8px; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 12px 0; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 20px; font-family: var(--mono); font-size: 12px; border-bottom: 1px solid rgba(42,42,48,0.5); }
@media (min-width: 1024px) { .nav { display: flex; } .menu-btn { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 80vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, var(--bg) 30%, rgba(10,10,11,0.4)); }
.hero-content { position: relative; padding: 100px 0; max-width: 720px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(255,203,5,0.4); background: rgba(255,203,5,0.06); margin-bottom: 24px; }
.tag::before { content: ''; width: 6px; height: 6px; background: var(--primary); animation: pulse 2s infinite; }
.tag span { font-family: var(--mono); font-size: 10px; color: var(--primary); }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.hero h1 { font-family: var(--display); font-size: clamp(48px, 8vw, 96px); line-height: 0.95; margin-bottom: 24px; text-transform: uppercase; }
.hero h1 .accent { color: var(--primary); display: block; }
.hero p { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stats-strip { border-top: 1px solid var(--border); background: rgba(28,28,33,0.5); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-v { font-family: var(--display); font-size: 30px; color: var(--primary); font-weight: 700; }
.stat-k { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 6px; }

/* Page hero */
.page-hero { padding: 100px 0 80px; border-bottom: 1px solid var(--border); background: rgba(28,28,33,0.3); }
.page-hero .tag { margin-bottom: 16px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 72px); line-height: 0.95; margin-bottom: 20px; text-transform: uppercase; }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 720px; }

/* Sections */
section { padding: 80px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .mono-tag { font-family: var(--mono); font-size: 11px; color: var(--primary); }
.section-head h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); margin: 12px 0 16px; line-height: 1.05; text-transform: uppercase; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Feature grid */
.feature-grid { display: grid; gap: 1px; background: var(--border); grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4,1fr); } }
.feature { background: var(--bg); padding: 32px; transition: background .2s; }
.feature:hover { background: var(--surface); }
.feature-icon { width: 52px; height: 52px; background: var(--primary); color: var(--primary-fg); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; font-size: 22px; font-weight: 700; }
.feature h3 { font-family: var(--display); font-size: 19px; margin-bottom: 10px; text-transform: uppercase; }
.feature p { color: var(--muted); font-size: 14px; }

/* Lineup cards */
.lineup-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 768px) { .lineup-grid { grid-template-columns: repeat(2,1fr); } }
.lineup-card { position: relative; padding: 40px; background: var(--bg); border: 1px solid var(--border); transition: border-color .2s; display: block; }
.lineup-card:hover { border-color: rgba(255,203,5,0.5); }
.lineup-card-count { position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.lineup-card-icon { font-size: 40px; margin-bottom: 20px; }
.lineup-card h3 { font-family: var(--display); font-size: 30px; margin-bottom: 8px; text-transform: uppercase; }
.lineup-card p { color: var(--muted); margin-bottom: 24px; max-width: 400px; }
.lineup-card .arrow { font-family: var(--mono); font-size: 11px; color: var(--primary); }

/* Product cards */
.product-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3,1fr); } }
.product-grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .product-grid.cols-4 { grid-template-columns: repeat(4,1fr); } }
.product-card { position: relative; background: var(--surface); border: 1px solid var(--border); transition: all .3s; overflow: hidden; }
.product-card:hover { border-color: rgba(255,203,5,0.6); transform: translateY(-4px); }
.product-card .badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 10px; font-family: var(--mono); font-size: 10px; background: var(--primary); color: var(--primary-fg); font-weight: 700; }
.product-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-tag { position: absolute; bottom: 10px; right: 10px; padding: 4px 8px; font-family: var(--mono); font-size: 10px; color: var(--primary); background: rgba(10,10,11,0.8); }
.product-card-body { padding: 22px; }
.product-card-body h3 { font-family: var(--display); font-size: 24px; margin-bottom: 10px; }
.product-card-body .desc { color: var(--muted); font-size: 14px; min-height: 56px; margin-bottom: 18px; }
.specs { list-style: none; border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 18px; }
.specs li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12px; }
.specs li dt { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.specs li dd { font-weight: 500; }
.product-card-cta { font-family: var(--mono); font-size: 11px; color: var(--primary); }

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .story-grid { grid-template-columns: 4fr 8fr; gap: 60px; } }
.story-grid h2 { font-family: var(--display); font-size: clamp(36px, 4vw, 48px); text-transform: uppercase; line-height: 1.05; }
.story-content p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.story-content p:first-child { color: var(--fg); font-size: 19px; }

/* Contact info cards */
.info-grid { display: grid; gap: 1px; background: var(--border); grid-template-columns: 1fr; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .info-grid { grid-template-columns: repeat(4,1fr); } }
.info-card { background: var(--bg); padding: 30px; transition: background .2s; }
.info-card:hover { background: var(--surface); }
.info-icon { width: 46px; height: 46px; background: rgba(255,203,5,0.1); border: 1px solid rgba(255,203,5,0.3); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 18px; }
.info-label { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.info-value { font-size: 15px; line-height: 1.5; word-wrap: break-word; }

.shipping-note { margin-top: 36px; border: 1px solid var(--border); background: var(--surface); padding: 28px; position: relative; }
.shipping-note .hazard-stripe { height: 4px; margin: -28px -28px 22px; }

/* CTA */
.cta-box { position: relative; padding: 70px 30px; background: linear-gradient(135deg, var(--surface), rgba(28,28,33,0.4)); border: 1px solid var(--border); text-align: center; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--primary); }
.cta-box h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); margin-bottom: 18px; text-transform: uppercase; line-height: 1.05; }
.cta-box p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid var(--border); background: rgba(28,28,33,0.4); }
.footer-grid { display: grid; gap: 40px; padding: 60px 0 30px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; } }
.footer h3 { font-family: var(--mono); font-size: 11px; color: var(--primary); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { padding: 5px 0; font-size: 14px; color: var(--muted); }
.footer ul li a:hover { color: var(--fg); }
.footer-tag { color: var(--muted); font-size: 14px; max-width: 280px; margin-top: 16px; }
.footer-bottom { padding: 20px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 10px; color: var(--muted); }

/* Cookie modal */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 880px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  display: none;
}
.cookie.show { display: block; animation: slideup .4s ease; }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-body { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; }
@media (max-width: 700px) { .cookie-body { grid-template-columns: 1fr; } }
.cookie-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: rgba(255,203,5,0.1); border: 1px solid rgba(255,203,5,0.3); color: var(--primary); font-size: 22px; }
.cookie h3 { font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.cookie p { font-size: 13px; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-langs { display: inline-flex; gap: 4px; margin-bottom: 8px; }
.cookie-langs button { padding: 2px 8px; font-family: var(--mono); font-size: 10px; border: 1px solid var(--border); color: var(--muted); }
.cookie-langs button.active { border-color: var(--primary); color: var(--primary); }
