/* ==========================================================================
   FEXQRAMI.COM — CORE DESIGN SYSTEM (NEON CYBER LOGIC SPECIFICATION)
   Theme: Obsidian / Cyber Charcoal canvas with Electric Cyan & Neon Violet switch
   ========================================================================== */

/* Typography: Local Inter WOFF2 definitions */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fx-bg-main: #0a0914;
  --fx-bg-surface: #121024;
  --fx-bg-card: rgba(22, 19, 42, 0.75);
  --fx-bg-card-hover: rgba(30, 26, 58, 0.9);
  
  --fx-primary: #06b6d4;
  --fx-primary-glow: rgba(6, 182, 212, 0.3);
  --fx-accent: #a855f7;
  --fx-accent-glow: rgba(168, 85, 247, 0.35);
  
  --fx-text-title: #ffffff;
  --fx-text-body: #94a3b8;
  --fx-text-muted: #64748b;
  
  --fx-border: rgba(255, 255, 255, 0.08);
  --fx-border-accent: rgba(168, 85, 247, 0.3);
  
  --fx-radius-sm: 8px;
  --fx-radius-md: 14px;
  --fx-radius-lg: 20px;
  
  --fx-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fx-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

.fx-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.fx-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--fx-radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--fx-transition);
  border: none;
  outline: none;
}

.fx-btn--primary {
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-primary));
  color: #ffffff;
  box-shadow: 0 4px 20px var(--fx-accent-glow);
}

.fx-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--fx-primary-glow);
  color: #fff;
}

.fx-btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fx-text-title);
  border: 1px solid var(--fx-border);
  backdrop-filter: blur(8px);
}

.fx-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--fx-primary);
  color: #fff;
}

/* Header & Nav */
.fx-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 9, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fx-border);
  padding: 16px 0;
}

.fx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fx-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fx-text-title);
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.fx-brand__dot {
  width: 8px;
  height: 8px;
  background: var(--fx-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--fx-primary);
}

.fx-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.fx-nav__link {
  color: var(--fx-text-body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--fx-transition);
}

.fx-nav__link:hover {
  color: var(--fx-primary);
}

.fx-burger {
  display: none;
  background: none;
  border: none;
  color: var(--fx-text-title);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.fx-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background-image: linear-gradient(180deg, rgba(10,9,20,0.4) 0%, var(--fx-bg-main) 100%), url('assets/img/bg/monument-valley-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.fx-hero__content {
  max-width: 780px;
}

.fx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--fx-border-accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fx-accent);
  margin-bottom: 24px;
}

.fx-badge__pulse {
  width: 6px;
  height: 6px;
  background: var(--fx-primary);
  border-radius: 50%;
  animation: fx-pulse 2s infinite;
}

@keyframes fx-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.fx-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--fx-text-title);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.fx-hero__title span {
  background: linear-gradient(135deg, var(--fx-primary), var(--fx-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fx-hero__lead {
  font-size: 1.2rem;
  color: var(--fx-text-body);
  margin-bottom: 36px;
  line-height: 1.7;
}

.fx-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Catalog Grid Section */
.fx-catalog {
  padding: 100px 0;
}

.fx-heading-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.fx-heading {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--fx-text-title);
  margin-bottom: 16px;
}

.fx-subheading {
  font-size: 1.1rem;
  color: var(--fx-text-body);
}

.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.fx-card {
  background: var(--fx-bg-card);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
  transition: var(--fx-transition);
  display: flex;
  flex-direction: column;
}

.fx-card:hover {
  transform: translateY(-6px);
  background: var(--fx-bg-card-hover);
  border-color: var(--fx-border-accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px var(--fx-accent-glow);
}

.fx-card__media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.fx-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fx-card:hover .fx-card__bg {
  transform: scale(1.05);
}

.fx-card__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  background: rgba(10, 9, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--fx-border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fx-primary);
}

.fx-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fx-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.fx-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.fx-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-card__meta {
  display: flex;
  flex-direction: column;
}

.fx-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fx-text-title);
  line-height: 1.2;
}

.fx-card__dev {
  font-size: 0.85rem;
  color: var(--fx-text-muted);
  margin-top: 2px;
}

.fx-card__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fx-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffc107;
  font-weight: 700;
  font-size: 0.9rem;
}

.fx-card__badge {
  padding: 3px 10px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--fx-primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.fx-card__desc {
  font-size: 0.92rem;
  color: var(--fx-text-body);
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.6;
}

.fx-card__action {
  display: flex;
  gap: 10px;
}

.fx-card__btn {
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-primary));
  color: #ffffff;
  border-radius: var(--fx-radius-md);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--fx-transition);
  box-shadow: 0 4px 14px var(--fx-accent-glow);
}

.fx-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--fx-primary-glow);
  color: #ffffff;
}

/* Matrix Table Section */
.fx-matrix-sec {
  padding: 80px 0;
  background: var(--fx-bg-surface);
  border-top: 1px solid var(--fx-border);
  border-bottom: 1px solid var(--fx-border);
}

.fx-table-wrap {
  overflow-x: auto;
  border-radius: var(--fx-radius-md);
  border: 1px solid var(--fx-border);
}

.fx-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--fx-bg-main);
  min-width: 700px;
}

.fx-table th, .fx-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--fx-border);
}

.fx-table th {
  background: rgba(255,255,255,0.03);
  color: var(--fx-text-title);
  font-weight: 600;
  font-size: 0.95rem;
}

.fx-table td {
  font-size: 0.9rem;
}

/* Contact Section */
.fx-contact-sec {
  padding: 100px 0;
}

.fx-contact-card {
  background: var(--fx-bg-card);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.fx-contact-info p {
  margin-bottom: 16px;
  font-size: 1rem;
}

/* FAQ Accordion */
.fx-faq-sec {
  padding: 100px 0;
  background: var(--fx-bg-surface);
}

.fx-faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fx-faq-item {
  background: var(--fx-bg-card);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-md);
  overflow: hidden;
  transition: var(--fx-transition);
}

.fx-faq-q {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fx-text-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fx-faq-a {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--fx-text-body);
  line-height: 1.7;
}

.fx-faq-item--open .fx-faq-a {
  padding: 0 28px 24px;
  max-height: 300px;
}

.fx-faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  color: var(--fx-primary);
}

.fx-faq-item--open .fx-faq-icon {
  transform: rotate(45deg);
}

/* Footer */
.fx-footer {
  background: #06050b;
  padding: 60px 0 30px;
  border-top: 1px solid var(--fx-border);
}

.fx-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.fx-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.fx-footer__links a {
  color: var(--fx-text-body);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--fx-transition);
}

.fx-footer__links a:hover {
  color: var(--fx-primary);
}

.fx-footer__legal {
  font-size: 0.85rem;
  color: var(--fx-text-muted);
  max-width: 600px;
}

/* Modal for Game Details */
.fx-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  background: rgba(5, 4, 10, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fx-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.fx-modal__content {
  background: var(--fx-bg-surface);
  border: 1px solid var(--fx-border-accent);
  border-radius: var(--fx-radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.7);
}

.fx-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--fx-text-title);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Cookie Banner */
.fx-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(18, 16, 36, 0.95);
  border: 1px solid var(--fx-border-accent);
  border-radius: var(--fx-radius-md);
  padding: 20px 24px;
  z-index: 2000;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fx-cookie-banner--show {
  transform: translateY(0);
}

.fx-cookie-banner__text {
  font-size: 0.85rem;
  color: var(--fx-text-body);
}

.fx-cookie-banner__text a {
  color: var(--fx-primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .fx-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fx-grid {
    grid-template-columns: 1fr;
  }
  .fx-hero__title {
    font-size: 2.4rem;
  }
  .fx-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--fx-bg-surface);
    flex-direction: column;
    padding: 100px 32px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--fx-border);
  }
  .fx-nav--open {
    right: 0;
  }
  .fx-burger {
    display: block;
  }
  .fx-contact-card {
    grid-template-columns: 1fr;
  }
}
