/* ============================================================
   WOMBAT TECH — Internal pages · "Una casa, dos mundos"
   Same house as the home. A body temperature class picks the
   world:  .p-tools (cool/ice) · .p-games (warm/ember) · .p-hall
   Self-contained: internal pages load ONLY this file.
   ============================================================ */

:root {
  --ink:      #0e0f12;
  --ink-2:    #141519;
  --ink-3:    #1b1c21;
  --bone:     #ededf0;
  --bone-dim: #c8c9d0;
  --slate:    #8a8c94;
  --slate-2:  #63656d;
  --line:     #26272d;
  --line-2:   #34353c;

  --ice:      #3fd4e6;
  --ice-2:    #7fe6f2;
  --ice-dim:  rgba(63, 212, 230, 0.14);
  --ice-line: rgba(63, 212, 230, 0.28);
  --tool-bg:  #080d12;
  --tool-bg2: #0b1218;

  --ember:    #e79a34;
  --ember-2:  #f4b65c;
  --ember-dim:rgba(231, 154, 52, 0.16);
  --ember-line:rgba(231, 154, 52, 0.30);
  --game-bg:  #0f0a08;
  --game-bg2: #150d09;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
  --font-poster:  'Oswald', 'Bricolage Grotesque', sans-serif;

  --maxw: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-py: clamp(64px, 9vw, 112px);

  /* legacy aliases — keep leftover inline var() references resolving */
  --teal: var(--ice); --gold: var(--ember); --indigo: #8a8cf0;
  --white: var(--bone); --white-bright: #fff; --black: #000;
  --gray-100: var(--bone-dim); --gray-200: var(--slate); --gray-400: var(--slate-2);
  --border: var(--line); --border-hover: var(--line-2);
  --bg-raised: var(--ink-2); --bg-card: var(--ink-3); --bg-surface: var(--ink-3);
  --font-heading: var(--font-mono);

  /* temperature defaults (overridden per body class) */
  --accent:      var(--ice);
  --accent-2:    var(--ice-2);
  --accent-dim:  var(--ice-dim);
  --accent-line: var(--ice-line);
  --room-bg:     var(--ink-2);
  --title-font:  var(--font-display);
  --btn-ink:     #04222a;
}

.p-tools { --accent: var(--ice);   --accent-2: var(--ice-2);   --accent-dim: var(--ice-dim);   --accent-line: var(--ice-line);   --room-bg: var(--tool-bg2); --title-font: var(--font-display); --btn-ink: #04222a; }
.p-games { --accent: var(--ember); --accent-2: var(--ember-2); --accent-dim: var(--ember-dim); --accent-line: var(--ember-line); --room-bg: var(--game-bg2); --title-font: var(--font-poster); --btn-ink: #2a1704; }
.p-hall  { --accent: var(--slate); --accent-2: var(--bone);    --accent-dim: rgba(138,140,148,0.12); --accent-line: var(--line-2); --room-bg: var(--ink-2); --title-font: var(--font-display); --btn-ink: var(--ink); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body); background: var(--ink); color: var(--bone);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 44px); }

.fade-in { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .fade-in { opacity: 0; transform: translateY(18px); }
.js .fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- NAV (same as the hall) ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease); }
.nav.scrolled { background: rgba(14,15,18,0.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.nav__container { max-width: var(--maxw); margin: 0 auto; padding: 16px clamp(20px, 5vw, 44px); display: flex; align-items: center; gap: 18px; }
.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__logo-img { width: 30px; height: 30px; object-fit: contain; }
.nav__logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--bone); }
.nav__logo-accent { color: var(--slate); }
.nav__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang__btn { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; color: var(--slate);
  padding: 6px 10px; background: none; border: none; cursor: pointer; transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.lang__btn:hover { color: var(--bone); }
.lang__btn.active { color: var(--ink); background: var(--bone); }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.02em; color: var(--slate);
  padding: 9px 14px; border-radius: 8px; display: block; transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.nav__link:hover { color: var(--bone); }
.nav__link--cta { color: var(--bone); border: 1px solid var(--line-2); }
.nav__link--cta:hover { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.nav__toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; order: 3; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--bone); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav__toggle span:nth-child(1) { top: 14px; } .nav__toggle span:nth-child(2) { top: 20px; } .nav__toggle span:nth-child(3) { top: 26px; }
.nav__toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO — poster over real art, tinted to the world
   ============================================================ */
.ghero { position: relative; min-height: 66vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 128px 20px 68px; overflow: hidden; border-bottom: 1px solid var(--line); }
.ghero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.ghero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(88% 72% at 50% 44%, rgba(9,10,13,0.58) 0%, transparent 72%),
    linear-gradient(180deg, rgba(9,10,13,0.58) 0%, rgba(9,10,13,0.48) 40%, rgba(9,10,13,0.74) 78%, var(--ink) 100%);
}
/* subtle grain in the warm world */
.p-games .ghero__bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ghero__content { position: relative; z-index: 2; max-width: 640px; animation: rise 0.9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ghero__content { animation: none; } }

.ghero__badge, .ghero__badge--soon, .ghero__badge--dev {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-dim); border: 1px solid var(--accent-line);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.ghero__title {
  font-family: var(--title-font); font-weight: 800; font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 0.98; letter-spacing: -0.03em; color: #fff; margin-bottom: 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.p-games .ghero__title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
.ghero__title-year { color: var(--accent); font-size: 1em; }
.ghero__subtitle { font-size: clamp(0.98rem, 2.2vw, 1.18rem); color: var(--bone-dim); font-weight: 300; max-width: 520px; margin: 0 auto 22px; line-height: 1.55; }
.ghero__meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ghero__tag { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate); border: 1px solid var(--line-2); padding: 5px 12px; border-radius: 6px; }

/* hero art — GAMES use their real noir/vintage art at full bleed */
.ghero__bg--dw      { background-image: url('../img/bg_dw1943.webp'); background-position: center 20%; }
.ghero__bg--ffd     { background-image: url('../img/bg_ffd_new.webp'); }

/* hero field — TOOLS use a clean cool field (product screenshots carry their
   own hero art that would fight ours, so they live in the home cards instead). */
.p-tools .ghero__bg,
.ghero__bg--laveoen,
.ghero__bg--nivelar {
  background:
    radial-gradient(120% 82% at 82% 0%, rgba(63,212,230,0.12) 0%, transparent 52%),
    radial-gradient(92% 80% at 12% 100%, rgba(63,212,230,0.05) 0%, transparent 55%),
    linear-gradient(180deg, #0b1218 0%, #080d12 66%, var(--ink) 100%);
}
.p-tools .ghero__bg::after { background: linear-gradient(180deg, transparent 60%, var(--ink) 100%); }

/* ============================================================
   INFO SECTION
   ============================================================ */
.ginfo { padding: var(--section-py) 0; background: var(--room-bg); position: relative; }
.p-games .ginfo::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ginfo .container { position: relative; z-index: 1; }
.ginfo__grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
.ginfo__heading {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.015em;
  margin-bottom: 16px; color: var(--bone); display: flex; align-items: center; gap: 12px;
}
.ginfo__heading::before { content: ''; width: 3px; height: 1.1em; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.ginfo__block p { color: var(--bone-dim); line-height: 1.72; margin-bottom: 12px; font-size: 0.96rem; }
.ginfo__block strong { color: var(--accent-2); }
.ginfo__features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ginfo__features li { font-size: 0.92rem; color: var(--bone-dim); line-height: 1.55; }
.ginfo__icon { color: var(--accent); margin-right: 8px; font-size: 0.7rem; }
.ginfo__features strong { color: var(--bone); }

.ginfo__loop { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ginfo__step { background: var(--ink-3); border-radius: 12px; padding: 20px; border: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.ginfo__step:hover { border-color: var(--accent-line); }
.ginfo__step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  background: var(--accent); color: var(--btn-ink); font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  border-radius: 50%; margin-bottom: 10px;
}
.ginfo__step h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--bone); }
.ginfo__step p { font-size: 0.85rem; color: var(--slate); line-height: 1.5; margin: 0; }

.ginfo__cta { text-align: center; padding: 40px 0 0; border-top: 1px solid var(--line); }
.ginfo__cta-text { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em; color: var(--bone-dim); margin-bottom: 20px; }
.ginfo__stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ginfo__store-badge { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500; padding: 12px 22px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--slate); }
.ginfo__store-badge--soon { opacity: 0.6; }

.ginfo__pitch { text-align: center; background: var(--ink-3); border: 1px solid var(--accent-line); border-radius: 16px; padding: 42px 26px; }
.ginfo__pitch .ginfo__heading { justify-content: center; }
.ginfo__pitch .ginfo__heading::before { display: none; }
.ginfo__pitch p { max-width: 640px; margin: 0 auto 24px; }
.ginfo__note { text-align: center; font-size: 0.8rem; color: var(--slate); margin-top: 8px; }

@media (min-width: 640px) {
  .ginfo__grid { grid-template-columns: repeat(2, 1fr); }
  .ginfo__block--full { grid-column: 1 / -1; }
  .ginfo__loop { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .ghero { min-height: 60vh; }
  .ginfo__loop { grid-template-columns: repeat(5, 1fr); }
  .ginfo__step { text-align: center; }
}

/* ---------- buttons (accent-driven; legacy names mapped) ---------- */
.btn {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em;
  padding: 12px 20px; border-radius: 9px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.2s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 26px; font-size: 0.84rem; }
.btn--sm { padding: 9px 15px; font-size: 0.72rem; }
/* solid accent (legacy: teal / amber / indigo) */
.btn--teal, .btn--amber, .btn--indigo, .btn--accent { background: var(--accent); color: var(--btn-ink); }
.btn--teal:hover, .btn--amber:hover, .btn--indigo:hover, .btn--accent:hover { background: var(--accent-2); }
/* ghost */
.btn--outline, .btn--ghost { border-color: var(--accent-line); color: var(--accent-2); }
.btn--outline:hover, .btn--ghost:hover { background: var(--accent-dim); }

/* ---------- FOOTER ---------- */
.footer { padding: 34px 0; background: var(--ink); border-top: 1px solid var(--line); }
.footer__content { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer__brand { display: flex; align-items: center; gap: 9px; }
.footer__logo { width: 24px; height: 24px; object-fit: contain; }
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--bone); }
.footer__name-accent { color: var(--slate); }
.footer__tagline { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--slate-2); text-transform: uppercase; }
.footer__copy { font-family: var(--font-mono); font-size: 0.66rem; color: var(--slate-2); margin-left: auto; }
.footer__copy a { color: var(--slate); }
.footer__copy a:hover { color: var(--bone); }

/* ---------- responsive nav ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; top: 0; right: 0; width: min(78vw, 300px); height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 6px; background: var(--ink-2);
    border-left: 1px solid var(--line); padding: 88px 26px 26px; z-index: 90;
    transform: translateY(-6px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav__menu.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  .nav__menu .nav__link { width: 100%; font-size: 0.9rem; padding: 12px 6px; }
  .nav__link--cta { margin-top: 8px; }
}
@media (max-width: 460px) { .footer__copy { margin-left: 0; width: 100%; } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
