/* === Color Variables === */
:root {
  --dark-grey: #2a2a2a;
  --light-grey: #e8e8e8;
  --accent: #8b3a3a;
  --accent-light: #a84d4d;
  --text-primary: #f5f5f5;
  --text-secondary: #b8b8b8;
  --bg-dark: #1a1a1a;
}

/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--dark-grey);
  line-height: 1.6;
  letter-spacing: 0.3px;
  overflow-x: hidden;
}

/* === Grainy Texture Overlay === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise" /></filter><rect width="100%" height="100%" fill="%23000000" opacity="0.03" /><rect width="100%" height="100%" fill="%23000000" filter="url(%23noise)" opacity="0.08" /></svg>');
  pointer-events: none;
  z-index: 1;
}

main, header, footer, nav {
  position: relative;
  z-index: 2;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  font-family: 'Arial Black', 'Trebuchet MS', sans-serif;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

/* === Header & Navigation === */
header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--dark-grey) 100%);
  padding: 2rem 0;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 3rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* === Main Content Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
}

/* === Hero Section === */
.hero {
  margin-bottom: 4rem;
  padding: 4rem 0;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.4rem;
  max-width: 700px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* === CTA Buttons === */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent);
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
  margin-right: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.cta-button.secondary:hover {
  background-color: var(--accent);
  color: var(--text-primary);
}

/* === Grid Layout === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

.grid-item {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
  padding: 2rem;
  border-left: 4px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 58, 58, 0.2);
}

.grid-item h3 {
  color: var(--accent-light);
  margin-bottom: 1rem;
}

/* === Sections === */
section {
  margin-bottom: 4rem;
}

section h2 {
  color: var(--text-primary);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  display: inline-block;
}

/* === Product Display === */
.product-card {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(232, 232, 232, 0.1);
  border-left: 4px solid var(--accent);
}

.product-card h3 {
  color: var(--accent-light);
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.spec {
  background: rgba(139, 58, 58, 0.1);
  padding: 1rem;
  border-left: 2px solid var(--accent);
}

.spec strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

/* === Footer === */
footer {
  background: var(--bg-dark);
  border-top: 3px solid var(--accent);
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
}

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

.footer-contact {
  margin: 2rem 0;
  font-size: 1.1rem;
}

.footer-contact a {
  color: var(--accent);
  font-weight: 600;
}

.footer-credit {
  color: var(--text-secondary);
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .container {
    padding: 0 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

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

/* === Utility Classes === */
.text-accent {
  color: var(--accent);
}

.text-light {
  color: var(--light-grey);
}

.divider {
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 50%, var(--accent) 100%);
  margin: 2rem 0;
}

.mono {
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-size: 0.9em;
  color: var(--accent);
}

/* === Code/Formula Blocks === */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  overflow-x: auto;
  color: var(--text-secondary);
}

.code-block strong {
  color: var(--accent);
}
