:root {
  /* Logo-aligned: black + orange/gold + luminous outline */
  --bg: #000000;
  --bg-soft: #0d0d0d;
  --panel: #141414;
  --text: #ffffff;
  --muted: #b8b8b8;
  --accent: #ff8c00;
  --accent-2: #ffb347;
  --accent-glow: rgba(255, 179, 71, 0.4);
  --logo-gold: #ffa726;
  --line: #2a2a2a;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

/* Accessibility: skip link (visible on focus) */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

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

/* Accessibility: visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.menu a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 140, 0, 0.1), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 179, 71, 0.06), transparent 40%),
    linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo-icon {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.brand-x {
  color: var(--accent-2);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.menu a:hover,
.menu a.active {
  border-color: var(--accent);
  background: rgba(255, 140, 0, 0.15);
  color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--accent-glow);
}

.menu a.nav-download {
  color: #000;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--logo-gold));
  box-shadow: 0 0 20px var(--accent-glow);
}

.menu a.nav-download:hover,
.menu a.nav-download.active {
  color: #000;
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--logo-gold));
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero {
  padding: 0 0 60px;
}

.hero-banner-wrap {
  position: relative;
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  margin-bottom: 32px;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: rise 0.6s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.08), rgba(255, 179, 71, 0.05));
  box-shadow: var(--shadow), 0 0 40px rgba(255, 167, 38, 0.08);
  animation: rise 0.7s ease 0.15s both;
}

.hero-card h1 {
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section h2,
.card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--line);
  position: relative;
}

.section h2::after,
.card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--logo-gold));
  box-shadow: 0 0 14px var(--accent-glow);
}

.section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--logo-gold);
  margin-top: 20px;
  margin-bottom: 8px;
}

p,
li {
  color: var(--muted);
  line-height: 1.65;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent), var(--logo-gold));
  box-shadow: 0 0 20px var(--accent-glow);
  transition: 0.25s ease;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

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

.btn-outline:hover {
  background: rgba(255, 140, 0, 0.12);
  box-shadow: 0 0 16px var(--accent-glow);
  filter: none;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.section {
  padding: 28px 0 56px;
}

.section-what-tc {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 28px;
  align-items: start;
}

.section-what-tc-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.section-what-tc-img img {
  width: 100%;
  height: auto;
  display: block;
}

.section-what-tc-content {
  padding: 24px;
}

/* Login, Register, Download app sections */
.app-section {
  scroll-margin-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(255, 140, 0, 0.03) 50%, transparent);
  padding: 48px 0;
}

.section-app {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.section-app-reverse {
  direction: rtl;
}

.section-app-reverse > * {
  direction: ltr;
}

.section-app-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.section-app-content {
  padding: clamp(20px, 3vw, 32px);
}

.section-app-reverse .section-app-img {
  margin-left: 0;
  margin-right: auto;
}

/* Tablet: app sections stay two-column but tighter */
@media (max-width: 900px) {
  .section-app {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .section-what-tc {
    grid-template-columns: 1fr;
  }

  .section-what-tc-img {
    max-width: 100%;
  }

  .section-app,
  .section-app-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 20px;
  }

  .app-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .section-app-img {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-app-img img {
    max-width: 100%;
  }

  .section-app-content {
    padding: 20px;
  }

  .section h2::after,
  .card h2::after {
    width: 48px;
  }

  .site-footer {
    margin-top: 16px;
    padding-left: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 24px 0;
    gap: 20px;
  }

  .footer-title {
    font-size: 0.95rem;
  }

  .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.card ul,
.card ol {
  margin: 12px 0;
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 6px;
}

.blog-hero {
  background:
    linear-gradient(180deg, rgba(2, 4, 9, 0.22), rgba(2, 4, 9, 0.75)),
    url("images/gaming-blog.svg") center/cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 78px 30px;
}

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

.article {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.article img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.article-body {
  padding: 14px;
}

.article h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.article p {
  font-size: 0.9rem;
  margin-top: 0;
}

.article .btn {
  margin-top: 6px;
  font-size: 0.85rem;
  padding: 8px 13px;
}

.form-wrap {
  max-width: 620px;
}

form {
  display: grid;
  gap: 12px;
}

form label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: -4px;
}

input,
textarea,
select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px 14px 14px 52px;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: absolute;
  top: 14px;
  left: 14px;
  color: #000;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--logo-gold));
  box-shadow: 0 0 12px var(--accent-glow);
}

.metric {
  font-size: 1.6rem;
  margin: 0;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.content-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  margin: 0;
}

.content-table th,
.content-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

.content-table th {
  background: rgba(255, 140, 0, 0.18);
  color: var(--text);
  font-weight: 700;
}

.content-table td {
  color: var(--muted);
}

.content-table tbody tr:hover {
  background: rgba(255, 140, 0, 0.06);
}

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  margin-top: 24px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

.footer-grid {
  padding: 28px 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  padding: 12px 10px max(18px, env(safe-area-inset-bottom, 0));
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop: slightly taller hero banner */
@media (min-width: 1200px) {
  .hero-banner-wrap {
    max-height: 440px;
  }

  .hero-banner-img {
    max-height: 440px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 0;
    padding-bottom: 40px;
  }

  .hero-banner-wrap {
    max-height: 240px;
    margin-bottom: 20px;
  }

  .hero-banner-img {
    max-height: 240px;
  }

  .hero-card,
  .blog-hero {
    padding: 20px;
  }

  .hero-quick-links {
    gap: 10px;
    margin-top: 16px;
  }

  .menu {
    justify-content: center;
  }

  .nav-wrap {
    flex-direction: column;
    padding: 12px 0;
  }

  .section {
    padding: 20px 0 40px;
  }

  .card {
    padding: 20px;
  }
}
