:root {
  --bg-base: #0b0b0d;
  --bg-surface: #16161a;
  --accent: #dc2626;
  --accent-dark: #991b1b;
  --detail: #c0c4cc;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #ffffff;
  margin-top: 0;
  font-weight: normal;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

p {
  margin-bottom: 1.5rem;
}

/* Header & Nav */
header {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  border-bottom: 1px solid #2a2a30;
  background-color: var(--bg-base);
}

.brand {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Typography & Links */
.link-underline {
  position: relative;
  display: inline-block;
  font-weight: 500;
  padding-bottom: 2px;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

.btn-main {
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.btn-main:hover {
  background-color: var(--accent-dark);
}

/* Layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.hero-solid {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 6rem 5%;
  text-align: center;
}

.hero-solid h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-solid p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #fdf2f2;
}

.split-section {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.split-section > div {
  flex: 1 1 50%;
  min-width: 300px;
}

.split-content {
  padding: 4rem 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-image-container {
  position: relative;
  background-color: var(--bg-surface);
}

.split-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-accent-block {
  background-color: var(--accent);
  color: #ffffff;
}

.bg-accent-block h2 {
  color: #ffffff;
}

/* Cards & Badges */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.card {
  background-color: var(--bg-surface);
  position: relative;
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 1/1;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.5rem;
}

/* Horizontal Scroll */
.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 5%;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-surface);
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background-color: var(--accent);
}

.horizontal-scroll .card {
  flex: 0 0 300px;
}

/* Forms & Tools */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--detail);
  font-family: Georgia, serif;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--bg-surface);
  border: 1px solid #3f3f46;
  color: var(--text-main);
  font-family: system-ui, sans-serif;
  border-radius: 0;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.output-panel {
  background-color: var(--bg-surface);
  padding: 2rem;
  height: 100%;
}

.output-panel pre {
  background: #000;
  padding: 1rem;
  overflow-x: auto;
  color: #10b981;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: #050506;
  padding: 3rem 5% 2rem;
  border-top: 1px solid #2a2a30;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Utility */
.section-pad {
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg-base);
    flex-direction: column;
    padding: 1rem 5%;
    border-bottom: 1px solid #2a2a30;
    z-index: 50;
  }
  .nav-links.active {
    display: flex;
  }
  .split-section {
    flex-direction: column !important;
  }
  .split-image-container {
    min-height: 300px;
  }
  .badge {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
