/* =========================================================
   RailKernel Website Style
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #111;
  color: #f0f0f0;
  line-height: 1.6;
}

/* =========================================================
   Layout
   ========================================================= */

.wrap {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   Global Images
   ========================================================= */

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

/* =========================================================
   Header / Navigation
   ========================================================= */

header {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  flex-wrap: wrap;
}

/* =========================================================
   Branding
   ========================================================= */

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: #d4af37;
  opacity: 0.9;
}

/* =========================================================
   Navigation Links
   ========================================================= */

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #d4af37;
}

/* =========================================================
   Hero Section
   ========================================================= */

.hero {
  padding: 80px 0 60px;
  background:
    linear-gradient(to bottom, #1a1a1a, #111);
}

.hero h1 {
  margin-top: 0;
  font-size: 3rem;
  color: #ffffff;
}

.hero p {
  max-width: 800px;
  font-size: 1.15rem;
  color: #cccccc;
}

/* =========================================================
   Sections
   ========================================================= */

section {
  padding: 50px 0;
}

/* =========================================================
   Cards
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: #1d1d1d;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 28px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #d4af37;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.15);
}

.card h2 {
  margin-top: 0;
  color: #ffffff;
}

.card p {
  color: #cccccc;
}

/* =========================================================
   Download Buttons
   ========================================================= */

.download-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 14px 22px;
  background: #d4af37;
  color: #111;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.download-button:hover {
  background: #f0c94d;
  transform: translateY(-1px);
}

/* =========================================================
   Release Info
   ========================================================= */

.release-info {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.release-note {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  margin-top: 60px;
  padding: 28px 0;
  background: #1a1a1a;
  border-top: 1px solid #333;
  text-align: center;
  color: #aaaaaa;
  font-size: 0.95rem;
}

/* =========================================================
   Links
   ========================================================= */

a {
  color: #d4af37;
}

a:hover {
  color: #f0c94d;
}

/* =========================================================
   Code Blocks
   ========================================================= */

code {
  background: #222;
  padding: 2px 6px;
  border-radius: 4px;
  color: #f0c94d;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  .nav-links {
    gap: 16px;
  }
}