/* Mainra Games visual system
   Brand direction: dynamic, geometric, angular, futuristic, professional.
   Navy is structural; orange is a controlled action accent. */
:root {
  --mainra-navy: #222d40;
  --mainra-navy-deep: #111927;
  --mainra-navy-dark: #0b111c;
  --mainra-orange: #f56b43;
  --mainra-orange-deep: #c94d2f;
  --mainra-accent-hover: #ff8a63;
  --mainra-white: #ffffff;
  --mainra-ink: #e9edf3;
  --mainra-muted: #9eabbc;
  --mainra-line: rgba(233, 237, 243, .14);
  --mainra-line-strong: rgba(245, 107, 67, .45);
  --mainra-panel: rgba(34, 45, 64, .72);
  --mainra-panel-solid: #1b2637;
  --mainra-success: #7fd1a1;
  --mainra-gold: #efbd63;
  --mainra-danger: #f87171;
  --content-width: 1180px;
  --header-height: 78px;
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --display: 'Segoe UI', Arial, sans-serif;
  --body: 'Segoe UI', Arial, sans-serif;
  --logo-h: 48px;
  --page-accent: var(--mainra-orange);
  --page-glow: rgba(245, 107, 67, .15);
  --page-line: rgba(245, 107, 67, .35);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--mainra-navy-dark);
  color: var(--mainra-ink);
  font-family: var(--body);
  line-height: 1.65;
  padding-left: max(env(safe-area-inset-left), 0px);
  padding-right: max(env(safe-area-inset-right), 0px);
  padding-bottom: max(env(safe-area-inset-bottom), 0px);
}
.page-services { --page-accent: var(--mainra-gold); --page-glow: rgba(239, 189, 99, .13); --page-line: rgba(239, 189, 99, .32); }
.page-learning { --page-accent: #9caaff; --page-glow: rgba(138, 156, 255, .14); --page-line: rgba(138, 156, 255, .32); }
.page-legal { --page-accent: var(--mainra-muted); --page-glow: rgba(158, 171, 188, .09); --page-line: rgba(158, 171, 188, .24); }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(245, 107, 67, .9); color: var(--mainra-navy-dark); }
@supports (animation-timeline: scroll()) {
  body::before {
    content: '';
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 2000;
    width: 100%;
    height: 2px;
    pointer-events: none;
    background: var(--page-accent);
    box-shadow: 0 0 12px var(--page-accent);
    transform: scaleX(0);
    transform-origin: left;
    animation: scroll-progress linear both;
    animation-timeline: scroll();
  }
}
.container {
  width: min(92%, var(--content-width));
  margin: 0 auto;
  padding-left: max(env(safe-area-inset-left), 0px);
  padding-right: max(env(safe-area-inset-right), 0px);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lightweight system icons replace the two external Font Awesome font files. */
.fas, .fab {
  display: inline-block;
  min-width: 1em;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.fa-times::before { content: '×'; }
.fa-chevron-left::before { content: '‹'; }
.fa-chevron-right::before { content: '›'; }
.fa-chevron-down::before { content: '⌄'; }
.fa-pause::before { content: '‖'; }
.fa-play::before, .fa-google-play::before { content: '▶'; }
.fa-check::before { content: '✓'; }
.fa-spinner::before { content: '◌'; }
.fa-crown::before { content: '♛'; }
.fa-exclamation-triangle::before { content: '!'; }
.fa-envelope::before { content: '✉'; }
.fa-phone::before, .fa-whatsapp::before { content: '☎'; }
.fa-gamepad::before { content: '◈'; }
.fa-mobile-alt::before { content: '▯'; }
.fa-paint-brush::before { content: '✦'; }
.fa-cube::before { content: '◇'; }
.fa-trophy::before { content: '★'; }
.fa-vr-cardboard::before { content: '▣'; }
.fa-users::before, .fa-hands-helping::before { content: '◉'; }
.fa-graduation-cap::before, .fa-chalkboard-teacher::before { content: '△'; }
.fa-podcast::before { content: '◎'; }
.fa-discord::before { content: 'D'; }
.fa-facebook-f::before { content: 'f'; }
.fa-twitter::before { content: 'X'; }
.fa-instagram::before { content: '◎'; }
.fa-linkedin-in::before { content: 'in'; font-size: .72em; }
.fa-github::before { content: '<>'; font-size: .68em; }
.fa-itch-io::before { content: '◆'; }
.fa-youtube::before { content: '▶'; }
.fa-spin { animation: spin 1s linear infinite; }

/* Shared type */
h1, h2, h3, h4, .logo-wordmark, .footer-logo, .popular-badge, .process-number {
  font-family: var(--display);
}
h1, h2, h3, h4, p { margin-top: 0; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .85rem 1.35rem;
  overflow: hidden;
  border: 1px solid var(--mainra-orange);
  border-radius: var(--radius-sm);
  background: var(--mainra-orange);
  color: var(--mainra-navy-dark);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(245, 107, 67, .22);
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .14);
  transform: translateX(-110%) skewX(-18deg);
  transition: transform .4s ease;
}
.btn:hover::after { transform: translateX(110%) skewX(-18deg); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(245, 107, 67, .22); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 rgba(245, 107, 67, .22); }
.btn i { transition: transform .25s ease; }
.btn:hover i { transform: translateX(2px); }
.btn:focus-visible, .nav-links a:focus-visible, .social-links a:focus-visible,
.hamburger:focus-visible, .close-nav:focus-visible, .carousel-btn:focus-visible,
.carousel-toggle:focus-visible, .dot:focus-visible, .faq-question:focus-visible,
.mobile-nav-links a:focus-visible, .game-item[tabindex]:focus-visible, .platform-card:focus-visible,
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 2px solid var(--page-accent);
  outline-offset: 4px;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.btn-secondary, .btn-details {
  background: transparent;
  color: var(--page-accent);
  box-shadow: none;
}
.btn-secondary:hover, .btn-details:hover { background: var(--page-accent); color: var(--mainra-navy-dark); box-shadow: 4px 4px 0 var(--page-glow); }
.btn-play { background: var(--mainra-orange); color: var(--mainra-navy-dark); }
.btn-full { width: 100%; }
.btn-small { padding: .65rem 1rem; font-size: .9rem; }

/* Header */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: var(--header-height);
  padding: .9rem 0;
  background: linear-gradient(180deg, rgba(11, 17, 28, .92), rgba(11, 17, 28, .72));
  border-bottom: 1px solid rgba(233, 237, 243, .1);
  backdrop-filter: blur(18px) saturate(130%);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
header.is-scrolled {
  padding: .6rem 0;
  background: rgba(11, 17, 28, .9);
  border-color: rgba(245, 107, 67, .2);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .32);
}
header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  color: var(--mainra-white);
  text-decoration: none;
}
.logo img {
  width: var(--logo-h);
  height: var(--logo-h);
  flex: 0 0 var(--logo-h);
  margin-right: .75rem;
  object-fit: contain;
  border-radius: 0;
  filter: none;
  transition: transform .3s ease;
}
.logo:hover img { transform: translateY(-1px) scale(1.04); }
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: .9;
  color: var(--mainra-white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.logo-wordmark b { color: var(--mainra-orange); font-size: .58em; letter-spacing: .28em; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mainra-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--mainra-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--mainra-white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .65rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.hamburger span { width: 25px; height: 2px; background: var(--mainra-orange); transition: transform .25s ease, opacity .25s ease; }
.hamburger.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(5, 9, 16, .78);
  backdrop-filter: blur(8px);
  isolation: isolate;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-nav.active { visibility: visible; opacity: 1; pointer-events: auto; }
.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 380px);
  min-height: 100%;
  max-height: 100dvh;
  padding: calc(1.5rem + env(safe-area-inset-top)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  padding-right: calc(1.5rem + env(safe-area-inset-right));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--mainra-navy-deep);
  border-left: 1px solid var(--mainra-line-strong);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .45);
  transform: translate3d(100%, 0, 0);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.mobile-nav.active .mobile-nav-content { transform: translate3d(0, 0, 0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.2rem; border-bottom: 1px solid var(--mainra-line); }
.close-nav { padding: .55rem; border: 1px solid var(--mainra-line); border-radius: var(--radius-sm); background: transparent; color: var(--mainra-white); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.close-nav:hover { color: var(--mainra-orange); border-color: var(--mainra-orange); }
.mobile-nav-links { flex: 1; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.mobile-nav-links li { margin-bottom: .5rem; }
.mobile-nav-links a { display: block; padding: .9rem 1rem; border-left: 2px solid transparent; color: var(--mainra-muted); text-decoration: none; font-family: var(--display); font-weight: 600; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { border-color: var(--mainra-orange); background: rgba(245, 107, 67, .08); color: var(--mainra-white); }
.mobile-nav-footer { padding-top: 1.25rem; border-top: 1px solid var(--mainra-line); }
html.nav-open, body.nav-open { overflow: hidden; }
@media (min-width: 769px) {
  .mobile-nav { display: none; }
}

/* Section rhythm and titles */
.section-title { position: relative; z-index: 1; margin-bottom: 3.2rem; text-align: left; }
.section-title::before {
  content: 'MAINRA /';
  display: block;
  margin-bottom: .8rem;
  color: var(--page-accent);
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
}
.section-title h2 { margin-bottom: .8rem; color: var(--mainra-white); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.045em; }
.section-title h2::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 1.1rem; background: var(--page-accent); box-shadow: 18px 0 0 rgba(245, 107, 67, .2); transform-origin: left; transition: transform .55s cubic-bezier(.2, .75, .25, 1); }
.section-title p { max-width: 650px; margin: 0; color: var(--mainra-muted); font-size: 1.05rem; }

/* Hero and page headers */
.hero, .page-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--mainra-navy-dark);
}
.hero::before, .page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 36%, var(--page-glow), transparent 28%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(125deg, rgba(34, 45, 64, .95) 0%, rgba(11, 17, 28, .98) 62%);
  background-size: auto, 56px 56px, 56px 56px, auto;
}
.hero::after, .page-header::after {
  content: '';
  position: absolute;
  top: -25%;
  right: -12%;
  z-index: -1;
  width: min(58vw, 720px);
  height: 150%;
  border: 1px solid var(--page-line);
  background: linear-gradient(140deg, var(--page-glow), transparent 45%);
  transform: skewX(-18deg) rotate(8deg);
  box-shadow: inset 0 0 0 18px rgba(245, 107, 67, .025), inset 0 0 0 19px rgba(245, 107, 67, .12);
  animation: ambient-drift 14s ease-in-out infinite alternate;
}
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-height) + 4rem) 0 5rem; }
.hero .container { position: relative; z-index: 2; }
.hero > .container:not(.hero-content) { text-align: center; }
.hero-content { max-width: 720px; }
.hero h1 { max-width: 720px; margin-bottom: 1.5rem; color: var(--mainra-white); font-size: clamp(3rem, 8vw, 6.3rem); line-height: .94; letter-spacing: -.075em; }
.hero h1 span { display: block; color: var(--page-accent); }
.hero p { max-width: 630px; margin-bottom: 2.25rem; color: var(--mainra-muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-btns { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero h1, .page-header h1 { animation: cinematic-rise .7s cubic-bezier(.2, .75, .25, 1) both; }
.hero p, .page-header p, .page-header .subtitle { animation: cinematic-rise .7s .1s cubic-bezier(.2, .75, .25, 1) both; }
.hero-btns { animation: cinematic-rise .7s .2s cubic-bezier(.2, .75, .25, 1) both; }
.page-header { min-height: 330px; padding: calc(var(--header-height) + 4.5rem) 0 4.5rem; text-align: left; }
.page-header-content { position: relative; z-index: 2; }
.page-header h1 { max-width: 850px; margin-bottom: 1rem; color: var(--mainra-white); font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; letter-spacing: -.07em; }
.page-header h1::first-letter { color: var(--page-accent); }
.page-header p, .page-header .subtitle { max-width: 700px; margin: 0; color: var(--mainra-muted); font-size: 1.12rem; }

/* Generic sections */
.services, .games, .about, .contact, .highlight-game, .games-section, .platforms,
.platforms-section, .main-content, .process, .pricing, .benefits, .activities, .faq, .testimonials { position: relative; padding: 6.5rem 0; }
.services, .highlight-game, .pricing, .main-content { background-color: var(--mainra-navy-deep); background-image: radial-gradient(circle at 92% 8%, var(--page-glow), transparent 28rem); }
.games, .about, .games-section, .platforms-section, .activities, .faq { background-color: var(--mainra-navy-dark); background-image: radial-gradient(circle at 8% 18%, rgba(34, 45, 64, .46), transparent 30rem); }
.benefits, .platforms { background-color: var(--mainra-navy); background-image: linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 42%); border-top: 1px solid var(--mainra-line); border-bottom: 1px solid var(--mainra-line); }

/* Cards */
.services-grid, .games-grid, .games-list, .platforms-grid, .benefits-grid, .activities-grid, .process-grid, .pricing-grid, .testimonial-grid { display: grid; gap: 1.15rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card, .platform-card, .benefit-card, .activity-card, .process-step, .pricing-card, .testimonial-card, .contact-detail, .faq-item, .privacy-content {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mainra-line);
  border-radius: var(--radius-md);
  background-color: var(--mainra-panel);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 42%);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .13);
  transition: transform .28s ease, border-color .28s ease, background-color .28s ease, box-shadow .28s ease;
}
.service-card::before, .platform-card::before, .benefit-card::before, .activity-card::before, .process-step::before, .pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--page-accent);
  transition: width .28s ease;
}
.service-card:hover, .platform-card:hover, .benefit-card:hover, .activity-card:hover, .process-step:hover, .pricing-card:hover, .testimonial-card:hover, .contact-detail:hover, .faq-item:hover { transform: translateY(-6px); border-color: var(--page-line); box-shadow: 0 24px 48px rgba(0, 0, 0, .26), 0 0 0 1px var(--page-glow); }
.service-card:hover::before, .platform-card:hover::before, .benefit-card:hover::before, .activity-card:hover::before, .process-step:hover::before, .pricing-card:hover::before { width: 100%; }
.service-card { padding: 2rem; }
.service-icon { margin-bottom: 1.4rem; color: var(--page-accent); font-size: 2.5rem; }
.service-icon, .benefit-icon, .activity-icon, .platform-icon { transition: transform .3s ease, filter .3s ease; }
.service-card:hover .service-icon, .benefit-card:hover .benefit-icon, .activity-card:hover .activity-icon, .platform-card:hover .platform-icon { filter: drop-shadow(0 8px 14px var(--page-glow)); transform: translateY(-3px); }
.service-card h3, .platform-card h3, .benefit-card h3, .activity-card h3, .process-step h3 { margin-bottom: .7rem; color: var(--mainra-white); font-size: 1.35rem; letter-spacing: -.025em; }
.service-card p, .platform-card p, .benefit-card p, .activity-card p, .process-step p { margin-bottom: 0; color: var(--mainra-muted); font-size: .96rem; }

/* Homepage games */
.games-grid { grid-template-columns: repeat(3, 1fr); }
.game-item { min-width: 0; border: 1px solid var(--mainra-line); border-radius: var(--radius-md); background: var(--mainra-panel-solid); box-shadow: 0 16px 35px rgba(0, 0, 0, .2); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.game-item:hover { transform: translateY(-7px); border-color: var(--mainra-line-strong); box-shadow: 0 26px 56px rgba(0, 0, 0, .36), 0 0 0 1px rgba(245, 107, 67, .1); }
.game-item[tabindex] { cursor: pointer; }
.game-item.simple-card { overflow: hidden; }
.game-item.simple-card .game-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: transform .5s ease, filter .5s ease; }
.game-item.simple-card:hover .game-img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }
.game-item.simple-card .game-title { margin: 0; padding: 1rem 1.1rem 1.15rem; color: var(--mainra-white); background: var(--mainra-panel-solid); font-size: 1.05rem; text-align: left; }

@media (min-width: 769px) {
  .page-home .games-grid.is-bento { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr); grid-template-rows: repeat(2, minmax(200px, 1fr)); }
  .page-home .games-grid.is-bento .game-item:first-child { display: grid; grid-row: 1 / 3; grid-template-rows: minmax(0, 1fr) auto; }
  .page-home .games-grid.is-bento .game-item:first-child .game-img { height: 100%; min-height: 430px; aspect-ratio: auto; }
  .page-home .games-grid.is-bento .game-item:not(:first-child) { display: grid; grid-template-columns: minmax(145px, .8fr) minmax(0, 1fr); }
  .page-home .games-grid.is-bento .game-item:not(:first-child) .game-img { height: 100%; min-height: 200px; aspect-ratio: auto; }
  .page-home .games-grid.is-bento .game-item:not(:first-child) .game-title { display: flex; align-items: flex-end; }
}

.game-item img.is-branded-fallback,
.game-item img[src$="LogoMainraGames.png"][data-fallback-src],
.highlight-image img.is-branded-fallback,
.highlight-image img[src$="LogoMainraGames.png"][data-fallback-src] {
  object-fit: contain;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: radial-gradient(circle, rgba(245, 107, 67, .12), transparent 58%), #111927;
  filter: none;
  transform: none;
}

/* Compact, factual studio proof without fabricated testimonials. */
.proof-strip { position: relative; z-index: 2; border-block: 1px solid var(--mainra-line); background: #080d15; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { display: flex; min-width: 0; gap: 1rem; padding: 1.45rem 1.2rem; border-right: 1px solid var(--mainra-line); }
.proof-item:last-child { border-right: 0; }
.proof-mark { flex: 0 0 auto; color: var(--mainra-orange); font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.proof-item strong { display: block; margin-bottom: .25rem; color: var(--mainra-white); font-size: .9rem; line-height: 1.25; }
.proof-item p { margin: 0; color: var(--mainra-muted); font-size: .78rem; line-height: 1.45; }

/* About and contact */
.about-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 5rem; align-items: center; }
.about-text h2 { margin-bottom: 1.4rem; color: var(--mainra-white); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.06em; }
.about-text h2::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 1rem; background: var(--mainra-orange); }
.about-text p { margin-bottom: 1.2rem; color: var(--mainra-muted); font-size: 1.05rem; }
.contact-container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.contact-info h3 { margin-bottom: 1.5rem; color: var(--mainra-white); font-size: 1.8rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; padding: 1rem; }
.contact-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid var(--mainra-line-strong); border-radius: var(--radius-sm); color: var(--mainra-orange); }
.contact-detail h4 { margin: 0 0 .15rem; color: var(--mainra-white); font-size: .95rem; }
.contact-detail p { margin: 0; color: var(--mainra-muted); font-size: .94rem; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; border: 1px solid var(--mainra-line); border-radius: var(--radius-sm); outline: 0; background: rgba(11, 17, 28, .65); color: var(--mainra-white); transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #758296; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--page-accent); box-shadow: 0 0 0 3px var(--page-glow); }
.contact-form textarea { min-height: 170px; resize: vertical; }

/* Footer */
footer { padding: 4rem 0 2rem; background: #080d15; border-top: 1px solid var(--mainra-line); text-align: center; }
.footer-content { margin-bottom: 2.5rem; }
.footer-logo { margin-bottom: .8rem; color: var(--mainra-white); font-size: 2rem; font-weight: 700; letter-spacing: -.05em; }
.footer-logo span { color: var(--mainra-orange); }
.footer-content p { max-width: 600px; margin: 0 auto 1.4rem; color: var(--mainra-muted); }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: 1.5rem 0; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--mainra-line); border-radius: var(--radius-sm); color: var(--mainra-muted); text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease; }
.social-links a:hover { transform: translateY(-3px); border-color: var(--mainra-orange); background: var(--mainra-orange); color: var(--mainra-navy-dark); }
.copyright { padding-top: 1.5rem; border-top: 1px solid var(--mainra-line); color: #718096; font-size: .85rem; }

/* Games detail page */
.highlight-content { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.highlight-text h2 { margin-bottom: 1rem; color: var(--mainra-white); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.06em; }
.highlight-text h2::before { content: 'FEATURED /'; display: block; margin-bottom: .8rem; color: var(--mainra-orange); font-family: var(--display); font-size: .7rem; letter-spacing: .2em; }
.highlight-description { margin-bottom: 1.5rem; color: var(--mainra-muted); font-size: 1.05rem; }
.highlight-image, .carousel-container { overflow: hidden; border: 1px solid rgba(245, 107, 67, .24); border-radius: var(--radius-lg); box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .035); }
.carousel-container { position: relative; isolation: isolate; width: 100%; height: auto; max-height: min(72vh, 720px); aspect-ratio: var(--carousel-aspect-ratio, 16 / 9); background: #080d15; transition: aspect-ratio .25s ease; }
.carousel-container::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 72%, rgba(8, 13, 21, .5)); }
.carousel-wrapper, .carousel-slide { width: 100%; height: 100%; }
.carousel-wrapper { position: relative; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.carousel-slide.active { opacity: 1; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.025); transition: transform 5s ease-out; }
.carousel-slide.active img { transform: scale(1); }
.carousel-btn, .carousel-toggle { position: absolute; z-index: 5; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .28); background: rgba(11, 17, 28, .68); color: var(--mainra-white); cursor: pointer; backdrop-filter: blur(12px) saturate(130%); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.carousel-btn { top: 50%; width: 44px; height: 44px; border-radius: var(--radius-sm); transform: translateY(-50%); }
.carousel-btn:hover, .carousel-toggle:hover { background: var(--mainra-orange); color: var(--mainra-navy-dark); }
.carousel-btn:hover { transform: translateY(-50%) scale(1.06); }
.carousel-toggle:hover { transform: scale(1.06); }
.prev-btn { left: 1rem; } .next-btn { right: 1rem; }
.carousel-toggle { right: 1rem; bottom: 1rem; width: 38px; height: 38px; border-radius: var(--radius-sm); }
.carousel-dots { position: absolute; right: 0; bottom: .55rem; left: 0; z-index: 5; display: flex; justify-content: center; gap: 3px; }
.dot { position: relative; display: grid; width: 38px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; place-items: center; }
.dot::before, .dot::after { position: absolute; width: 30px; height: 3px; border-radius: 2px; content: ''; }
.dot::before { background: rgba(255, 255, 255, .28); transition: background-color .2s ease; }
.dot::after { background: var(--mainra-orange); transform: scaleX(0); transform-origin: left; }
.dot:hover::before { background: rgba(255, 255, 255, .55); }
.dot.active::after { animation: carousel-progress 5s linear forwards; }
.carousel-container:hover .dot.active::after, .carousel-container:focus-within .dot.active::after,
.carousel-toggle[aria-pressed="true"] ~ .carousel-dots .dot.active::after { animation-play-state: paused; }
.game-actions, .game-actions-list { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.game-actions .btn { flex: 1; }
.games-list { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 2rem; }
.games-list .game-item { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.game-image { height: 210px; overflow: hidden; background: var(--mainra-navy); }
.game-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .4s ease, filter .4s ease; }
.game-item:hover .game-image img { transform: scale(1.05); filter: saturate(1); }
.game-content { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.game-title { margin-bottom: .8rem; color: var(--mainra-white); font-size: 1.3rem; }
.game-description { flex: 1; margin-bottom: 1rem; color: var(--mainra-muted); font-size: .92rem; }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.game-platform { padding: .3rem .55rem; border: 1px solid var(--mainra-line-strong); border-radius: var(--radius-sm); color: var(--mainra-orange); font-size: .78rem; }
.game-rating { color: var(--mainra-gold); font-size: .86rem; }
.platform-card { display: block; padding: 2rem; text-align: center; text-decoration: none; }
.platform-card .icon { display: grid; width: 64px; height: 64px; margin: 0 auto 1.2rem; place-items: center; border-radius: var(--radius-md); color: var(--mainra-white); font-size: 1.7rem; }
.platform-card h3 { margin-bottom: .5rem; color: var(--mainra-white); }
.platform-card p { margin: 0; }
.platform-card .icon.google-play { background: #2a8a58 !important; }
.platform-card .icon.itch { background: #a63b44 !important; }
.games-list .btn-details { display: none; }

/* Services */
.service-features, .platform-features, .pricing-features { list-style: none; margin: 1.4rem 0 0; padding: 0; text-align: left; }
.service-features li, .platform-features li, .pricing-features li { position: relative; padding: .5rem 0 .5rem 1.35rem; border-bottom: 1px solid rgba(233, 237, 243, .07); color: var(--mainra-muted); font-size: .9rem; }
.service-features li:last-child, .platform-features li:last-child, .pricing-features li:last-child { border-bottom: 0; }
.service-features li::before, .platform-features li::before { content: '＋'; position: absolute; left: 0; color: var(--page-accent); font-weight: 700; }
.process-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.process-step { padding: 1.7rem; text-align: left; }
.process-number { display: grid; width: 48px; height: 48px; margin-bottom: 1.4rem; place-items: center; border: 1px solid var(--page-accent); border-radius: var(--radius-sm); color: var(--page-accent); font-size: 1.2rem; }
.process-step h3 { font-size: 1.15rem; }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; padding: 2rem; }
.pricing-card.featured { border-color: var(--page-accent); background: linear-gradient(145deg, var(--page-glow), var(--mainra-panel)); transform: translateY(-10px); }
.pricing-card.featured:hover { transform: translateY(-16px); }
.pricing-header h3 { margin-bottom: .8rem; color: var(--mainra-white); font-size: 1.5rem; }
.price { margin-bottom: 1rem; color: var(--page-accent); font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.06em; }
.price span { color: var(--mainra-muted); font-family: var(--body); font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.pricing-features { flex: 1; margin: 1rem 0 1.5rem; }
.pricing-features li { display: flex; align-items: flex-start; gap: .5rem; padding-left: 0; }
.pricing-features li i { width: 18px; color: var(--mainra-success); }
.pricing-features li.muted, .pricing-features li.muted i { color: #647187; }
.popular-badge { position: absolute; top: 1rem; right: 1rem; padding: .3rem .5rem; border: 1px solid var(--page-accent); color: var(--page-accent); font-size: .65rem; letter-spacing: .12em; }
.custom-enterprise .price, .custom-enterprise .pricing-header h3 { color: var(--mainra-gold); }
.custom-enterprise .btn { border-color: var(--mainra-gold); background: var(--mainra-gold); }

/* Learning */
.hero .community-highlight { color: var(--page-accent); }
.benefits-grid { grid-template-columns: repeat(3, 1fr); }
.benefit-card, .activity-card { padding: 1.7rem; text-align: left; }
.benefit-icon, .activity-icon { margin-bottom: 1rem; color: var(--page-accent); font-size: 2.2rem; }
.platforms-grid.learning { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-card.learning { text-align: left; }
.platform-card.learning h3 { font-size: 1.5rem; }
.platform-card.learning .platform-icon { margin-bottom: 1rem; font-size: 2.5rem; }
.discord-card .platform-icon { color: #8a9cff; }
.whatsapp-card .platform-icon { color: #72d69b; }
.discord-card:hover { border-color: #8a9cff; }
.whatsapp-card:hover { border-color: #72d69b; }
.activities-grid { grid-template-columns: repeat(4, 1fr); }

/* FAQ / CTA */
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-item { margin-bottom: .7rem; }
.faq-item.active { border-color: var(--page-line); background-color: #182235; }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.25rem 1.4rem; border: 0; background: transparent; color: var(--mainra-white); text-align: left; cursor: pointer; }
.faq-question-title { color: var(--mainra-white); font-family: var(--display); font-size: 1rem; font-weight: 600; }
.faq-toggle { color: var(--page-accent); transition: transform .25s ease; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; padding: 0 1.4rem; color: var(--mainra-muted); opacity: 0; line-height: 1.7; transition: grid-template-rows .3s ease, opacity .25s ease, padding-bottom .3s ease; }
.faq-answer > * { min-height: 0; margin: 0; overflow: hidden; }
.faq-item.active .faq-answer { grid-template-rows: 1fr; padding-bottom: 1.2rem; opacity: 1; }
.cta { position: relative; overflow: hidden; padding: 6rem 0; background: var(--mainra-orange); color: var(--mainra-navy-dark); text-align: center; }
.cta::before { content: ''; position: absolute; top: -30%; right: -8%; width: 45%; height: 180%; border: 1px solid rgba(11, 17, 28, .22); transform: skewX(-18deg); }
.cta-content, .cta .container { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.06em; }
.cta p { max-width: 650px; margin: 0 auto 1.8rem; color: rgba(11, 17, 28, .78); font-size: 1.1rem; }
.cta .btn { border-color: var(--mainra-navy-dark); background: var(--mainra-navy-dark); color: var(--mainra-white); box-shadow: 4px 4px 0 rgba(11, 17, 28, .18); }
.cta .btn:hover { background: var(--mainra-navy); }

/* Legal pages */
.main-content { padding-top: 4.5rem; }
.privacy-content { padding: clamp(1.5rem, 4vw, 3.5rem); }
.privacy-content::before { display: none; }
.privacy-content h1 { margin-bottom: 2rem; color: var(--mainra-white); font-size: clamp(2rem, 4vw, 3.4rem); text-align: left; letter-spacing: -.06em; }
.privacy-content h1::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 1rem; background: var(--mainra-orange); }
.privacy-content h2 { margin: 2.5rem 0 .8rem; padding: 0; color: var(--mainra-white); font-size: 1.55rem; }
.privacy-content h2::before, .privacy-content h3::before { display: none; }
.privacy-content h3 { margin: 1.7rem 0 .6rem; padding: 0; color: var(--mainra-orange); font-size: 1.15rem; }
.privacy-content p, .privacy-content li { color: var(--mainra-muted); font-size: 1rem; line-height: 1.8; }
.privacy-content ul { margin: 1rem 0 1.4rem; padding-left: 1.4rem; }
.privacy-content li { margin-bottom: .5rem; padding-left: .25rem; }
.privacy-content li::before { display: none; }
.privacy-content a { color: var(--mainra-orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.privacy-content a:hover { color: var(--mainra-white); }
.privacy-content .highlight { color: var(--mainra-orange); background: none; -webkit-text-fill-color: initial; }
.privacy-content .update-date { margin-bottom: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--mainra-line); border-left: 3px solid var(--mainra-orange); border-radius: var(--radius-sm); background: rgba(245, 107, 67, .06); text-align: left; }
.privacy-content .update-date p { margin: .25rem 0; }

/* Scroll reveal: content remains visible when scripting is unavailable */
.reveal-target { opacity: 1; transform: none; }
.js-ready .reveal-target { opacity: 0; transform: translateY(18px); transition: opacity .65s ease var(--reveal-delay, 0ms), transform .65s cubic-bezier(.2, .75, .25, 1) var(--reveal-delay, 0ms); }
.js-ready .reveal-target.is-visible { opacity: 1; transform: translateY(0); }
.js-ready .section-title.reveal-target h2::after { transform: scaleX(0); }
.js-ready .section-title.reveal-target.is-visible h2::after { transform: scaleX(1); }

/* Alignment helpers kept out of page markup */
.section-actions, .footer-actions, .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.footer-actions { margin: 1.25rem 0; }
.loading-placeholder-wide { grid-column: 1 / -1; }

/* Utility states */
.loading-placeholder, .loading, .no-games { padding: 3rem; color: var(--mainra-muted); text-align: center; }
.loading-placeholder, .loading { position: relative; overflow: hidden; border: 1px solid var(--mainra-line); border-radius: var(--radius-md); background: rgba(34, 45, 64, .35); }
.loading-placeholder::after, .loading::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%); transform: translateX(-100%); animation: loading-sheen 1.5s ease-in-out infinite; }
.games-list > .loading, .games-grid > .loading-placeholder { grid-column: 1 / -1; }
.loading-placeholder i, .spinner { margin-bottom: 1rem; color: var(--mainra-orange); font-size: 2rem; }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cinematic-rise { from { transform: translateY(16px); } }
@keyframes ambient-drift { to { transform: translate3d(-2%, 1%, 0) skewX(-18deg) rotate(10deg) scale(1.03); } }
@keyframes carousel-progress { to { transform: scaleX(1); } }
@keyframes loading-sheen { to { transform: translateX(100%); } }
@keyframes scroll-progress { to { transform: scaleX(1); } }

/* Responsive */
@media (max-width: 1024px) {
  .nav-links { gap: 1rem; }
  .nav-links li { margin-left: 0; }
  .games-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-content { grid-template-columns: 1fr; }
  .highlight-image { order: -1; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n + 2) { border-bottom: 1px solid var(--mainra-line); }
}
@media (max-width: 768px) {
  :root { --header-height: 70px; --logo-h: 42px; }
  header .navbar { width: 94%; }
  .nav-links, header .navbar > .btn { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 760px; padding-top: calc(var(--header-height) + 3rem); }
  .hero::after, .page-header::after { right: -35%; width: 95vw; opacity: .65; }
  .services, .games, .about, .contact, .highlight-game, .games-section, .platforms, .platforms-section, .main-content, .process, .pricing, .benefits, .activities, .faq, .testimonials { padding: 4.5rem 0; }
  .about-content, .contact-container, .platforms-grid.learning { grid-template-columns: 1fr; gap: 2rem; }
  .games-grid, .pricing-grid, .benefits-grid { grid-template-columns: 1fr; }
  .pricing-card.featured, .pricing-card.featured:hover { transform: none; }
  .section-title { margin-bottom: 2.2rem; }
  .mobile-nav-content { width: min(92vw, 420px); }
  .mobile-nav-links a { padding: 1rem; font-size: 1.05rem; }
  .page-header { padding-bottom: 3.5rem; }
  .contact-form .btn { width: 100%; }
  .carousel-btn { width: 40px; height: 40px; }
  .prev-btn { left: .65rem; }
  .next-btn { right: .65rem; }
}
@media (max-width: 480px) {
  .container { width: 94%; }
  .hero { min-height: 700px; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .hero-btns, .game-actions, .game-actions-list { flex-direction: column; align-items: stretch; }
  .hero-btns .btn, .game-actions .btn { width: 100%; }
  .page-header { min-height: 280px; padding-top: calc(var(--header-height) + 3rem); }
  .page-header h1 { font-size: 2.7rem; }
  .game-image { height: 180px; }
  .activities-grid { grid-template-columns: 1fr; }
  .social-links { gap: .4rem; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--mainra-line); }
  .proof-item:last-child { border-bottom: 0; }
}
@media (hover: none) {
  .service-card:hover, .platform-card:hover, .benefit-card:hover, .activity-card:hover, .process-step:hover, .pricing-card:hover, .testimonial-card:hover, .contact-detail:hover, .faq-item:hover,
  .game-item:hover, .social-links a:hover { transform: none; }
  .game-item.simple-card:hover .game-img, .game-item:hover .game-image img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js-ready .reveal-target { opacity: 1; transform: none; }
  .hero::after, .page-header::after { animation: none; }
  .dot.active::after { animation: none; transform: scaleX(1); }
  .carousel-slide img, .carousel-slide.active img { transform: none; }
  body::before { display: none; }
}
