/* ========================================
   Design B — Modern & Industrial
   Dark navy + copper, bold & technical
   ======================================== */

/* --- Design Tokens --- */
:root {
  --primary: #B45309;
  --primary-light: #D97706;
  --primary-dark: #92400E;
  --primary-glow: rgba(180, 83, 9, 0.1);
  --accent: #38BDF8;
  --accent-light: #7DD3FC;
  --accent-dark: #0284C7;

  --bg: #0B1121;
  --bg-alt: #0F172A;
  --bg-warm: #131C31;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #1E293B;
  --border-light: #1E293B;

  --card-bg: #0F172A;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 8px 30px rgba(180,83,9,0.12);
  --card-radius: 6px;
  --img-bg: #131C31;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: white;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  background: rgba(11, 17, 33, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.logo:hover .logo-text {
  color: var(--primary);
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.15rem;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-glow);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  background:
    radial-gradient(ellipse 80% 50% at 30% 90%, rgba(211, 118, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, #0B1121 0%, #0F172A 40%, #131C31 100%);
  color: var(--text);
  padding: 5rem 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: var(--text);
}

.hero-content .hero-sub {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 480px;
  margin: 0 0 2rem 0;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(180,83,9,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

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

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary);
  margin: 0.6rem auto 0;
}

/* ==========================================
   FEATURES GRID
   ========================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.8rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  border-color: var(--primary);
  background: rgba(180, 83, 9, 0.04);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================
   PRODUCT GRID
   ========================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.product-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.product-card-img {
  background: var(--img-bg);
  padding: 1.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-bottom: 1px solid var(--border);
}

.product-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-card-body {
  padding: 1.2rem;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.product-card-body p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================
   PRODUCT DETAIL PAGE
   ========================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}

.product-detail-img {
  background: var(--img-bg);
  border-radius: var(--card-radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px solid var(--border);
}

.product-detail-img img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.product-detail-body h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.product-detail-body .product-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-detail-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.product-table th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--primary);
}

.product-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.product-table tr:hover td {
  background: rgba(180, 83, 9, 0.03);
}

/* ==========================================
   CONTENT PAGES (About, Contact, Blog)
   ========================================== */
.content-page {
  max-width: 800px;
  margin: 3rem auto;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.content-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.content-page p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.content-page ul, .content-page ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.content-page li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content-page img {
  border-radius: var(--card-radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================
   UTILITY
   ========================================== */
.text-center { text-align: center; }

@media (max-width: 768px) {
  .hero .container,
  .product-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .site-header .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem;
  }

  .main-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }

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

@media (max-width: 480px) {
  .site-header .container {
    flex-direction: column;
    gap: 0.3rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.05rem;
  }

  .main-nav a {
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

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