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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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


.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-emerald) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary-emerald);
  color: var(--primary-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #D97706 100%);
  color: var(--bg-dark);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}


.stack-builder-section {
  padding: 5rem 0;
}

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

.stack-slot {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-slot.filled {
  border-style: solid;
  border-color: var(--primary-emerald);
  background: rgba(16, 185, 129, 0.05);
}


.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary-emerald);
  color: white;
  border-color: var(--primary-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}


.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-emerald);
}


@media (max-width: 992px) {
  .hero-grid, .stack-builder-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}
