:root {
  --bg: #0f0c07;
  --bg-alt: #18120b;
  --accent: #f5c676;
  --accent-strong: #ffd88f;
  --text: #f9f0e3;
  --muted: #d7c7b4;
  --card: rgba(33, 24, 16, 0.85);
  --border: rgba(255, 235, 205, 0.15);
  --white: #ffffff;
  --max-width: 1200px;
  font-size: 16px;
}

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

body {
  font-family: 'Noto Sans SC', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #2d1b0f 0%, #0b0704 55%, #050302 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Cg fill="none" fill-opacity="0.12"%3E%3Cpath d="M0 0h40v40H0z" fill="%23ffffff"/%3E%3Cpath d="M40 40h40v40H40z" fill="%23ffffff"/%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.15;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero {
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 180, 80, 0.35), transparent 60%);
  pointer-events: none;
}

.site-header {
  width: 100%;
  background: rgba(10, 7, 4, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  gap: 2rem;
  min-height: 68px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.nav-links a.active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

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

.hero-cta {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
}

.tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero-list {
  list-style: none;
  margin-top: 1rem;
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.hero-card ul {
  list-style: none;
  margin-top: 1rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #2d1f12;
  box-shadow: 0 15px 25px rgba(245, 198, 118, 0.2);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
  color: var(--white);
}

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

main {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
}

main > .section:first-of-type {
  margin-top: 3.5rem;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin: 0.75rem 0;
}

.section-heading p {
  color: var(--muted);
}

.section-heading .subtitle {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.simple-list {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading .meta {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  color: var(--muted);
}

.section-heading .meta li strong {
  color: var(--accent-strong);
  margin-right: 0.25rem;
}

.current-features {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.current-features article {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.current-features ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--muted);
}

.feature-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-grid article {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  min-height: 160px;
}

.playable .iframe-wrapper {
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.playable iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.trailer-block {
  margin-top: 2.5rem;
}

.subheading {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  color: var(--accent-strong);
}

.video-wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35);
}

.video-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}

.video-note {
  margin-top: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.core-systems-heading {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.core-systems-heading h3 {
  font-size: 1.15rem;
  color: var(--accent-strong);
}

.timeline-list {
  list-style: none;
  border-left: 2px solid rgba(245, 198, 118, 0.25);
  padding-left: 1.5rem;
}

.timeline-list li {
  margin-bottom: 1.75rem;
  position: relative;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(245, 198, 118, 0.4);
}

.timeline-list .time {
  color: var(--accent-strong);
  font-weight: 600;
}

.devlog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.devlog-cards article {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.media-grid .placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
}

.community-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--text);
  font-size: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

.faq-item p {
  grid-column: 1 / -1;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  margin-top: 0.25rem;
  transition: max-height 0.2s ease;
}

.faq-item.open {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 198, 118, 0.4);
}

.faq-item.open p {
  max-height: 200px;
}

.faq-item .icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-strong);
}

.about-dev p {
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }
}
