/* ==========================================================================
   ARCN Games — Premium Dark Theme & Rich Content System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-darker: #050607;
  --bg-main: #0a0b0d;
  --bg-card: rgba(18, 20, 24, 0.7);
  --bg-card-hover: rgba(26, 29, 36, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 74, 54, 0.4);

  --primary: #e84839;
  --primary-hover: #ff5a4a;
  --primary-glow: rgba(232, 72, 57, 0.2);

  --text-primary: #ffffff;
  --text-secondary: #9aa0b0;
  --text-muted: #5a6070;

  --font-display: 'Anton', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s var(--ease);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(232, 72, 57, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --nav-h: 84px;
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; background: var(--bg-darker); }

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: #1a1c23; border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; font-family: var(--font-heading); font-weight: 600;
  font-size: 0.95rem; border-radius: var(--radius-md); border: none;
  cursor: pointer; transition: var(--transition); gap: 10px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #c0271a);
  color: #fff; box-shadow: 0 4px 18px rgba(232,72,57,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,72,57,0.5), var(--shadow-glow);
}
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ---------- Official Store Badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 22px 10px 16px; border-radius: 12px;
  transition: var(--transition); min-width: 170px;
}
.store-badge:hover {
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.store-badge-icon { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge-label {
  font-family: var(--font-body); font-size: 0.6rem; font-weight: 400;
  color: rgba(255,255,255,0.7); letter-spacing: 0.02em;
}
.store-badge-name {
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600;
  color: #fff; letter-spacing: -0.01em;
}

/* ---------- Navbar & Prominent Company Logo ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--nav-h); z-index: 1000; transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5,6,7,0.92); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}

.logo { display: flex; align-items: center; }
.logo-img {
  height: 60px; width: auto; max-width: 220px; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
  transition: var(--transition);
}
.logo:hover .logo-img { transform: scale(1.05); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
  color: var(--text-secondary); position: relative; padding: 6px 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: #fff; padding: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(232,72,57,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(59,130,246,0.04) 0%, transparent 45%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px; width: 100%;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.hero-eyebrow {
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display); font-size: 4rem; font-weight: 400;
  letter-spacing: 0.01em; line-height: 1.05; margin-bottom: 8px;
}
.hero-title-accent { color: var(--primary); }
.hero-tagline {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 28px;
  max-width: 480px;
}
.hero-desc {
  font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 36px;
  max-width: 480px; line-height: 1.7;
}

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual::before {
  content: ''; position: absolute; width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(232,72,57,0.15) 0%, transparent 65%);
  z-index: 1;
}
.hero-image {
  max-width: 100%; max-height: 520px; width: auto; height: auto; z-index: 2;
  border-radius: var(--radius-lg); object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.7));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Stats Counter Section ---------- */
.stats-bar {
  background: var(--bg-card); border-y: 1px solid var(--border-color);
  padding: 36px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number {
  font-family: var(--font-display); font-size: 2.8rem; color: #fff;
  line-height: 1; margin-bottom: 6px; letter-spacing: 0.02em;
}
.stat-number span { color: var(--primary); }
.stat-label { font-family: var(--font-heading); font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }

/* ---------- FAQ Section ---------- */
.faq-wrap { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden; transition: var(--transition);
}
.faq-item:hover { border-color: rgba(255,255,255,0.15); }
.faq-question {
  width: 100%; padding: 22px 26px; background: none; border: none;
  color: #fff; font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 600; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-icon {
  width: 28px; height: 28px; background: rgba(255,255,255,0.05);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text-secondary); transition: var(--transition); flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); background: rgba(232,72,57,0.15); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease);
  padding: 0 26px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 24px; }

/* ---------- Section ---------- */
.section { padding: 90px 0; position: relative; }
.section-dark { background: var(--bg-darker); }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-label {
  color: var(--primary); font-family: var(--font-heading); font-weight: 600;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 10px; display: block;
}
.section-title { font-size: 2.5rem; margin-bottom: 14px; }
.section-desc { color: var(--text-secondary); font-size: 1rem; }

/* ---------- Games Showcase Grid Layout ---------- */
.featured-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 56px; align-items: center; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 44px; transition: var(--transition);
}
.featured-grid:hover {
  border-color: var(--border-hover); box-shadow: var(--shadow-md);
}
.featured-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-color); background: rgba(0,0,0,0.3);
  padding: 32px; display: flex; justify-content: center; align-items: center;
}
.featured-icon {
  width: 100%; max-width: 240px; aspect-ratio: 1 / 1; border-radius: 22%;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55); transition: var(--transition); object-fit: cover;
}
.featured-visual:hover .featured-icon { transform: scale(1.03) rotate(1deg); }

.featured-name {
  font-family: var(--font-display); font-size: 3rem; margin-bottom: 6px;
  letter-spacing: 0.02em; color: #fff;
}
.featured-sub {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 18px;
}
.featured-list { list-style: none; margin-bottom: 26px; }
.featured-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: var(--text-secondary); font-size: 0.95rem;
}
.featured-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 700;
}

/* ---------- Form Controls in Dark Theme ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-family: var(--font-heading); font-size: 0.84rem;
  font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em;
}
.form-input {
  width: 100%; background: #121418 !important; border: 1px solid rgba(255,255,255,0.12) !important;
  padding: 13px 16px; color: #ffffff !important; font-family: var(--font-body); font-size: 0.95rem;
  border-radius: var(--radius-md); transition: var(--transition);
}
.form-input::placeholder { color: #5a6070; }
.form-input:focus {
  outline: none; background: #181a20 !important;
  border-color: var(--primary) !important; box-shadow: 0 0 14px var(--primary-glow) !important;
}
select.form-input option { background: #0a0b0d; color: #fff; }

input[type="file"].form-input { padding: 9px 14px; cursor: pointer; color: var(--text-secondary); }
input[type="file"].form-input::file-selector-button {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; padding: 6px 14px; border-radius: 8px; font-family: var(--font-heading);
  font-weight: 600; margin-right: 12px; cursor: pointer; transition: var(--transition);
}
input[type="file"].form-input::file-selector-button:hover { background: var(--primary); border-color: var(--primary); }

/* ---------- Blog Grid ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-5px); border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.blog-card-image {
  height: 200px; background: linear-gradient(135deg, #14161c, #22252f);
  display: flex; align-items: center; justify-content: center; position: relative;
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.75));
}
.blog-card-body { padding: 22px; }
.blog-meta {
  display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px;
}
.blog-title { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; color: #fff; }
.blog-excerpt { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 18px; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-family: var(--font-heading); font-weight: 600;
  font-size: 0.88rem;
}
.read-more:hover { color: var(--primary-hover); }
.read-more svg { transition: transform 0.2s ease; }
.read-more:hover svg { transform: translateX(4px); }

/* ---------- Compact Minimal 2-Card Contact Section ---------- */
.contact-cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 620px; margin: 0 auto;
}
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-sm);
}
.contact-card-icon {
  width: 44px; height: 44px; background: rgba(232,72,57,0.12);
  border-radius: 50%; color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-title { font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.contact-card-sub { color: var(--text-secondary); font-size: 0.84rem; margin-bottom: 16px; line-height: 1.4; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-family: var(--font-heading); font-weight: 600;
  font-size: 0.82rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; transition: var(--transition);
}
.contact-btn:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-darker); border-top: 1px solid var(--border-color); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; margin-bottom: 52px; }
.footer-desc { color: var(--text-secondary); font-size: 0.9rem; margin-top: 14px; margin-bottom: 22px; max-width: 300px; }

.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: var(--transition);
}
.social-btn svg { width: 17px; height: 17px; fill: currentColor; }
.social-btn.ig:hover { background: radial-gradient(circle at 30% 107%,#fdf497 0%,#fd5949 45%,#d6249f 60%,#285aeb 90%); color:#fff; border-color:transparent; }
.social-btn.fb:hover { background:#1877f2; color:#fff; border-color:transparent; }
.social-btn.li:hover { background:#0a66c2; color:#fff; border-color:transparent; }
.social-btn.yt:hover { background:#ff0000; color:#fff; border-color:transparent; }

.footer-col-title {
  font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700;
  color: #fff; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); padding-left: 3px; }

.footer-bottom {
  border-top: 1px solid var(--border-color); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.copyright { color: var(--text-muted); font-size: 0.82rem; }
.legal-links { display: flex; gap: 22px; }
.legal-links a { color: var(--text-muted); font-size: 0.82rem; }
.legal-links a:hover { color: #fff; }

/* ---------- Subpages ---------- */
.page-header {
  padding: 120px 0 52px; text-align: center;
  background: radial-gradient(circle at 50% 100%, rgba(232,72,57,0.04) 0%, transparent 60%);
}
.page-title { font-family: var(--font-display); font-size: 3rem; margin-bottom: 12px; letter-spacing: 0.02em; }
.page-desc { color: var(--text-secondary); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.article-wrap { max-width: 780px; margin: 0 auto; padding: 56px 24px 100px; }
.article-header { margin-bottom: 36px; text-align: center; }
.article-meta { display: flex; justify-content: center; gap: 20px; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.article-title { font-family: var(--font-display); font-size: 2.6rem; line-height: 1.15; margin-bottom: 22px; letter-spacing: 0.01em; }
.article-body { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.8; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { color: #fff; font-size: 1.7rem; margin: 44px 0 18px; }
.article-body h3 { color: #fff; font-size: 1.3rem; margin: 30px 0 14px; }
.article-body ul, .article-body ol { margin-bottom: 22px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--primary); background: rgba(232,72,57,0.04);
  padding: 18px 26px; margin: 28px 0; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic; color: #fff;
}
.article-foot { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }

.legal-wrap { max-width: 780px; margin: 0 auto; padding: 56px 24px 100px; color: var(--text-secondary); }
.legal-wrap h2 { color: #fff; font-size: 1.4rem; margin: 30px 0 14px; }
.legal-wrap p { margin-bottom: 18px; }
.legal-wrap ul { margin-bottom: 18px; padding-left: 20px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--primary); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.2rem; }
  .featured-grid { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .featured-visual { max-width: 420px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .contact-cards-grid { max-width: 580px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  .logo-img { height: 48px; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(10,11,13,0.98); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px 24px; border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md); gap: 18px;
  }
  .mobile-menu-btn { display: block; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-content { align-items: center; }
  .hero-desc, .hero-tagline { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; }
  .hero-image { max-width: 80%; max-height: 380px; margin: 0 auto; }

  .section-title { font-size: 2rem; }
  .featured-name { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column-reverse; text-align: center; }
  .legal-links { justify-content: center; }
  .page-title { font-size: 2.2rem; }
  .article-title { font-size: 2rem; }
  .contact-cards-grid { grid-template-columns: 1fr; max-width: 380px; }
}

@media (max-width: 480px) {
  .logo-img { height: 42px; }
  .hero-title { font-size: 2.4rem; }
  .store-badges { flex-direction: column; width: 100%; }
  .store-badge { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .featured-name { font-size: 2rem; }
  .blog-grid { grid-template-columns: 1fr; }
}
