:root {
  --bg: #08080c;
  --bg-card: #0f0f14;
  --bg-elevated: #16161e;
  --fg: #e8e8ec;
  --fg-muted: #9898a6;
  --accent: #ff9500;
  --accent-light: #ffb340;
  --accent-cyan: #00d4ff;
  --accent-glow: rgba(255, 149, 0, 0.4);
  --gradient-primary: linear-gradient(135deg, #ff9500 0%, #ff6b00 50%, #e55a00 100%);
  --gradient-bg: linear-gradient(180deg, #0a0a10 0%, #0d0d14 35%, #0a0a0f 70%, #08080c 100%);
  --gradient-bg-accent: linear-gradient(135deg, rgba(255, 149, 0, 0.06) 0%, transparent 50%, rgba(255, 149, 0, 0.03) 100%);
  --gradient-section: linear-gradient(180deg, rgba(15, 15, 20, 0.6) 0%, rgba(10, 10, 14, 0.4) 100%);
  --line: rgba(255, 149, 0, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 40px rgba(255, 149, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--gradient-bg-accent), var(--gradient-bg);
  color: var(--fg);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

/* Accessibility: skip link (visible on focus) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Focus visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

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

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (min-width: 1200px) {
  .container {
    padding: 0 4rem;
  }
}

@media (min-width: 1400px) {
  .container {
    padding: 0 5rem;
  }
}

/* Header - stylish gaming navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.97) 0%, rgba(8, 8, 12, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 149, 0, 0.08);
  box-shadow: 0 1px 0 rgba(255, 149, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 149, 0, 0.25) 50%, transparent 100%);
  opacity: 0.8;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  min-height: 80px;
  position: relative;
}

.site-header .container {
  padding-left: 3rem;
  padding-right: 3rem;
}

@media (min-width: 1200px) {
  .site-header .container {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (min-width: 1400px) {
  .site-header .container {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

.logo {
  display: inline-block;
  text-decoration: none;
  padding: 0.35rem 0.5rem 0.35rem 0;
  border-radius: 12px;
  transition: transform 0.2s, opacity 0.2s;
  max-width: 160px;
  width: 100%;
}

.logo:hover {
  text-decoration: none;
  color: #fff;
  opacity: 0.95;
  transform: translateY(-1px);
}

.logo-icon {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 24px rgba(255, 149, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.site-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s, border-color 0.25s;
  border: 1px solid transparent;
  position: relative;
}

.site-nav a:hover {
  color: var(--accent-light);
  background: rgba(255, 149, 0, 0.08);
  border-color: rgba(255, 149, 0, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 149, 0, 0.1);
  text-decoration: none;
}

.site-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.2) 0%, rgba(255, 107, 0, 0.12) 100%);
  border-color: rgba(255, 149, 0, 0.35);
  box-shadow: 0 0 24px rgba(255, 149, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.site-nav a.active:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.28) 0%, rgba(255, 107, 0, 0.16) 100%);
  border-color: rgba(255, 149, 0, 0.45);
}

.nav-toggle {
  display: none;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.2);
  color: var(--fg);
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  width: 46px;
  height: 46px;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 149, 0, 0.15);
  border-color: rgba(255, 149, 0, 0.3);
}

.nav-toggle::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav-wrap {
    padding: 0.85rem 0;
    min-height: 72px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    margin-top: 0.5rem;
    background: linear-gradient(180deg, rgba(18, 18, 24, 0.98) 0%, rgba(12, 12, 18, 0.98) 100%);
    padding: 0.75rem;
    border: 1px solid rgba(255, 149, 0, 0.15);
    border-radius: 16px;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 149, 0, 0.08);
    backdrop-filter: blur(20px);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }
}

/* Main - full width content */
main {
  padding: 2.5rem 0 3.5rem;
}

/* Hero section - modern stylish */
.page-hero {
  width: 100%;
  margin-bottom: 2.5rem;
  padding: 2.5rem 2.25rem;
  background: linear-gradient(145deg, rgba(18, 18, 24, 0.85) 0%, rgba(12, 12, 18, 0.9) 100%);
  border: 1px solid rgba(255, 149, 0, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(255, 149, 0, 0.06), 0 8px 40px rgba(0, 0, 0, 0.25), 0 0 60px rgba(255, 149, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), transparent);
  opacity: 0.7;
}

.page-hero .eyebrow {
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 149, 0, 0.2);
}

.page-hero .section-intro {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

.hero-banner {
  margin: 2rem 0 0;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 149, 0, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 32px rgba(255, 149, 0, 0.08);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.25);
  border-radius: 100px;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--accent-light);
  font-weight: 600;
}

p {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  color: var(--fg);
}

.section-intro {
  width: 100%;
  max-width: 100%;
  font-size: 1.08rem;
  line-height: 1.75;
}

.section {
  padding: 2rem 1.75rem;
  margin-bottom: 1rem;
  background: var(--gradient-section);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.section:first-of-type {
  margin-top: 0;
}

.section:last-of-type {
  margin-bottom: 0;
}

/* Two-column section layout: content left / image right or image left / content right */
.section-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.section-split .section-body {
  flex: 1 1  min(100%, 420px);
  min-width: 0;
}

.section-split .section-figure {
  flex: 0 1 320px;
  margin: 0;
  text-align: center;
}

.section-split .section-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 149, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section--content-right {
  flex-direction: row;
}

.section--image-left {
  flex-direction: row;
}

.section--image-left .section-figure {
  order: -1;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--gradient-primary);
  color: #000;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 149, 0, 0.45);
  text-decoration: none;
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 149, 0, 0.15);
  color: var(--accent-light);
}

/* Layout - full width grids */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.text-block p {
  margin-bottom: 0.55rem;
}

.bullets {
  width: 100%;
  max-width: 100%;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1.25rem;
}

.bullets li {
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.bullets li::marker {
  color: var(--accent);
}

.steps {
  width: 100%;
  max-width: 100%;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1.25rem;
  list-style: decimal;
}

.steps li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
  color: var(--fg);
}

.steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* Table - full width, gaming style */
.simple-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.simple-table th,
.simple-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}

.simple-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 700;
  background: rgba(255, 149, 0, 0.1);
}

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

.simple-table tbody tr {
  transition: background 0.2s;
}

.simple-table tbody tr:hover {
  background: rgba(255, 149, 0, 0.04);
}

/* Form */
.simple-form {
  width: 100%;
  max-width: 560px;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.simple-form label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
}

.simple-form input,
.simple-form textarea,
.simple-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  color: var(--fg);
  background: var(--bg-elevated);
  font: inherit;
}

.simple-form input:focus,
.simple-form textarea:focus,
.simple-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.simple-form input::placeholder,
.simple-form textarea::placeholder {
  color: var(--fg-muted);
}

/* FAQ */
.faq-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: none;
  padding-top: 0;
}

.faq-item h3 {
  margin-bottom: 0.4rem;
}

/* Footer - gaming style */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--fg);
  padding: 2rem 0 2rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.site-footer h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.site-footer p {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .columns-3,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-split {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section-split .section-body,
  .section-split .section-figure {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .section--image-left .section-figure {
    order: 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .site-header .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .page-hero {
    padding: 1.5rem 1.25rem;
  }

  .page-hero .section-intro {
    padding-left: 0.85rem;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  main {
    padding: 1.5rem 0 2rem;
  }
}

/* Blog */
.blog-status {
  margin-bottom: 1rem;
  color: var(--fg-muted);
}

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

.blog-post-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
}

.blog-post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-post-body {
  padding: 1rem;
}

.blog-meta {
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.blog-post-card__excerpt {
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.blog-post-card__readmore {
  color: var(--accent);
  font-weight: 600;
}

.blog-pagination {
  margin-top: 1.25rem;
}

.pager-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pager-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.pager-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pager-status {
  color: var(--fg-muted);
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.blog-detail-main {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.blog-detail-hero img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.blog-detail-body img {
  max-width: 100%;
  height: auto;
}

.blog-recent-list--sidebar {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.blog-sidebar-item__link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.blog-sidebar-item__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.blog-sidebar-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-sidebar-item__title {
  color: var(--fg);
  font-size: 0.92rem;
  display: block;
}

.blog-sidebar-item__date {
  color: var(--fg-muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }
}
