/* ===== CSS VARIABLES ===== */
:root {
  --bg-dark: #0a0c12;
  --bg-card: #141821;
  --bg-input: #1e2430;
  --accent: #ff6b35;
  --accent-hover: #e85a2a;
  --text-primary: #f0f2f5;
  --text-secondary: #b0b8c5;
  --text-muted: #6a7282;
  --border-color: #2a3040;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  --transition: 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  padding-top: 70px; /* space for fixed header */
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--accent);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo a:hover {
  text-decoration: none;
  color: var(--text-primary);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.burger-line {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 4px;
  transition: var(--transition);
  transform-origin: center;
}
.burger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.burger.active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition);
}
.nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-meta {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.hero-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.hero-content strong {
  color: var(--text-primary);
}

.hero-image {
  display: flex;
  justify-content: center;
}
.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #1e2430, #0f131c);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}
.hero-img-placeholder small {
  font-size: 0.8rem;
  margin-top: 8px;
  color: var(--text-muted);
}

/* ===== IMAGE PLACEHOLDER (general) ===== */
.img-placeholder {
  background: linear-gradient(145deg, #1e2430, #0f131c);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 100px;
  padding: 16px;
  text-align: center;
}
.small-img {
  min-height: 80px;
  aspect-ratio: 16/9;
  width: 100%;
}

/* ===== NEWS SECTION ===== */
.news,
.roadmap,
.events,
.community {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
}
.news h2,
.roadmap h2,
.events h2,
.community h2 {
  font-size: 2.2rem;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.news-body {
  padding: 16px 18px 20px;
}
.news-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.news-body time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}
.news-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== ROADMAP ===== */
.roadmap-content {
  background: var(--bg-card);
  padding: 36px 40px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.roadmap-content p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}
.roadmap-content blockquote {
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--text-primary);
  background: rgba(255, 107, 53, 0.06);
  padding: 16px 24px;
  border-radius: 6px;
}
.roadmap-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.roadmap-content ul li {
  padding: 10px 0 10px 28px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23ff6b35" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg>')
    left center no-repeat;
  background-size: 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== EVENTS TABLE ===== */
.events-intro,
.events-footnote {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
.event-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.event-table th {
  background: rgba(255, 107, 53, 0.12);
  color: var(--text-primary);
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid var(--accent);
}
.event-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.event-table tr:last-child td {
  border-bottom: none;
}
.event-table td strong {
  color: var(--text-primary);
}
.events-footnote {
  margin-top: 16px;
  font-size: 0.9rem;
}

/* ===== COMMUNITY ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.community-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition);
}
.community-card:hover {
  border-color: var(--accent);
}
.community-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.community-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.community-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand p {
  font-size: 1.2rem;
  font-weight: 600;
}
.footer-brand small {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
  margin-top: 4px;
}
.footer-links {
  display: flex;
  list-style: none;
  gap: 24px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* ===== TERMS & PRIVACY PAGES ===== */
.page-content {
  padding: 40px 0 60px;
}
.page-content h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.page-content .subhead {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.page-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  border-left: 3px solid var(--accent);
}
.page-section h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.page-section p,
.page-section li {
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.page-section ul {
  padding-left: 24px;
  margin: 12px 0;
}
.page-section ul li {
  margin-bottom: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }
  .burger {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    padding: 80px 32px 40px;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  .nav.open {
    right: 0;
  }
  .nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .nav a {
    font-size: 1.1rem;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .community-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
  .roadmap-content {
    padding: 24px 20px;
  }
  .page-section {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 16px;
  }
  .event-table th,
  .event-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}
