/* ============================================================
   HecatoNet — Company Website Stylesheet
   Dark fantasy aesthetic for Cleavework / HecatoNet
   ============================================================ */

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

/* --- Custom Properties (Color Palette) --- */
:root {
  --bg-primary: #0f0f12;
  --bg-surface: #1a1a20;
  --bg-card: #1e1e26;
  --border-subtle: #2a2a35;
  --border-accent: #3a3a48;
  --text-primary: #e0ddd5;
  --text-muted: #9a978c;
  --text-dim: #6b685e;
  --accent: #c9a96e;
  --accent-hover: #dbc183;
  --accent-dim: #a0804a;
  --cta-bg: #8b3a3a;
  --cta-hover: #a04545;
  --silt-glow: rgba(201, 169, 110, 0.08);
  --font-heading: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 960px;
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover, a:focus {
  color: var(--accent-hover);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo svg {
  width: 28px;
  height: 28px;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 56px; /* header height */
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 18, 0.4) 0%,
    rgba(15, 15, 18, 0.7) 50%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
  max-width: 720px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Hero without image (fallback) */
.hero.no-image {
  background: radial-gradient(ellipse at center, var(--bg-surface) 0%, var(--bg-primary) 70%);
}

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

.section-divider {
  width: 100%;
  height: 4px;
  opacity: 0.5;
  margin: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent-dim);
  margin: 0.75rem auto 0;
}

/* --- About Section --- */
.about-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- Game Card --- */
.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 24px var(--silt-glow);
}

.game-card h3 {
  margin-bottom: 0.75rem;
}

.game-card .game-genre {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.btn-cta {
  background: var(--cta-bg);
  color: var(--text-primary);
}

.btn-cta:hover, .btn-cta:focus {
  background: var(--cta-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.btn-outline:hover, .btn-outline:focus {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-discord img {
  width: 20px;
  height: 20px;
}

/* --- CTA / Discord Section --- */
.cta-section {
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.site-footer .footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer .footer-links a:hover {
  color: var(--accent);
}

/* ================================================================
   GAME PAGE SPECIFIC STYLES
   ================================================================ */

/* --- Game Hero --- */
.game-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 56px;
}

.game-hero .hero-content h1 {
  font-size: 4rem;
  margin-bottom: 0.25rem;
}

.game-hero .hero-content .subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.game-hero .back-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1rem;
}

.game-hero .back-link:hover {
  color: var(--accent);
}

/* --- Lore Section --- */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.lore-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.lore-card:hover {
  border-color: var(--accent-dim);
}

.lore-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.lore-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.lore-card .lore-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Race Table --- */
.race-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.race-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--border-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.race-table td {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.race-table tr:last-child td {
  border-bottom: none;
}

.race-table .race-name {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Feature List --- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-list .feature-icon {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-list li strong {
  color: var(--text-primary);
}

/* --- Tech Stack --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.tech-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
}

.tech-item .tech-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.tech-item .tech-value {
  font-weight: 600;
  color: var(--text-primary);
}

.tech-item .tech-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Status Section --- */
.status-note {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.status-note .status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  border-radius: 3px;
  margin-bottom: 1rem;
}

.status-note p {
  color: var(--text-muted);
}

/* --- Credits --- */
.credits-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.credits-list .credit-item {
  text-align: center;
}

.credits-list .credit-role {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.credits-list .credit-name {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Audio Player --- */
audio {
  filter: invert(0.85) hue-rotate(180deg) saturate(0.5);
}

audio::-webkit-media-controls-panel {
  background-color: var(--bg-surface);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  
  .hero h1 { font-size: 2.5rem; }
  .game-hero .hero-content h1 { font-size: 2.75rem; }
  
  .hero { min-height: 50vh; }
  .game-hero { min-height: 40vh; }
  
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  
  .site-nav {
    gap: 1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .lore-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }
  
  .race-table {
    font-size: 0.75rem;
  }
  
  .race-table th,
  .race-table td {
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .game-hero .hero-content h1 { font-size: 2rem; }
  
  .site-nav a {
    font-size: 0.75rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}
