/*
Theme Name: Mertonix
Theme URI: https://mertonix.be
Author: Mertonix
Description: Sci-fi space survival game landing page.
Version: 1.0.0
Text Domain: mertonix
*/

/* ---------------------------------------------------------
 * VARIABLES
 * --------------------------------------------------------- */
:root {
	--mtx-void: #120d1e;
	--mtx-void-alt: #1a1330;
	--mtx-violet: #2d1b4e;
	--mtx-plasma: #ff6b35;
	--mtx-plasma-dark: #c94f24;
	--mtx-ice: #eef2f7;
	--mtx-ice-soft: #b9bfd4;
	--mtx-white: #fdfdff;

	--mtx-font-display: 'Orbitron', 'Arial Narrow', sans-serif;
	--mtx-font-body: 'Outfit', -apple-system, sans-serif;

	--mtx-radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--mtx-font-body);
	color: var(--mtx-ice);
	background: var(--mtx-void);
	line-height: 1.65;
	font-weight: 400;
}

img { width: 100% !important; height: auto !important; object-fit: cover !important; display: block; }

h1, h2, h3 {
	font-family: var(--mtx-font-display);
	font-weight: 700;
	color: var(--mtx-white);
	line-height: 1.2;
	margin: 0 0 0.5em;
	letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--mtx-ice-soft); }
a { color: inherit; text-decoration: none; }

.mtx-eyebrow {
	font-family: var(--mtx-font-body);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.76rem;
	color: var(--mtx-plasma);
	font-weight: 600;
	margin-bottom: 0.8em;
}
.mtx-platforms { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mtx-ice-soft); }

.mtx-btn {
	display: inline-block;
	padding: 0.9em 2em;
	border-radius: var(--mtx-radius);
	font-weight: 600;
	font-family: var(--mtx-font-body);
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid transparent;
}
.mtx-btn-primary { background: var(--mtx-plasma); color: var(--mtx-void); }
.mtx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 107, 53, 0.4); }
.mtx-btn-outline { background: transparent; border-color: var(--mtx-ice-soft); color: var(--mtx-ice); }
.mtx-btn-outline:hover { border-color: var(--mtx-plasma); color: var(--mtx-plasma); }

.mtx-link-arrow { color: var(--mtx-plasma); font-weight: 600; display: inline-block; margin-top: 1em; font-size: 0.9rem; }

/* ---------------------------------------------------------
 * HEADER / NAV
 * --------------------------------------------------------- */
.mtx-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(18, 13, 30, 0.9);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(255, 107, 53, 0.15);
}
.mtx-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1em 1.5em;
	display: flex;
	align-items: center;
	gap: 2em;
}
.mtx-logo {
	font-family: var(--mtx-font-display);
	font-size: 1.3rem;
	color: var(--mtx-white);
	letter-spacing: 0.06em;
	margin-right: auto;
}
.mtx-nav-list { list-style: none; display: flex; gap: 2em; margin: 0; padding: 0; }
.mtx-nav-list a { font-size: 0.88rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; color: var(--mtx-ice); }
.mtx-nav-list a:hover { color: var(--mtx-plasma); }
.mtx-header-cta { padding: 0.55em 1.3em; font-size: 0.8rem; }

.mtx-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}
.mtx-menu-toggle span { width: 24px; height: 2px; background: var(--mtx-plasma); display: block; }

.mtx-mobile-menu {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: var(--mtx-void);
	z-index: 200;
	padding: 6em 2em;
}
.mtx-mobile-menu.is-open { display: flex; flex-direction: column; gap: 1.6em; }
.mtx-mobile-menu-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.2em; margin: 0; }
.mtx-mobile-menu-list a { font-family: var(--mtx-font-display); font-size: 1.4rem; color: var(--mtx-white); }

/* ---------------------------------------------------------
 * HERO
 * --------------------------------------------------------- */
.mtx-hero {
	position: relative;
	min-height: 92vh;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.mtx-hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(18,13,30,0.5) 0%, rgba(18,13,30,0.92) 100%);
}
.mtx-hero-content {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	padding: 0 1.5em;
}
.mtx-hero-lead { color: var(--mtx-ice); font-size: 1.05rem; max-width: 580px; margin: 0 auto 1.6em; }
.mtx-hero-actions { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4em; }

/* ---------------------------------------------------------
 * WARP DIVIDER
 * --------------------------------------------------------- */
.mtx-warp-divider {
	max-width: 1280px;
	margin: 0 auto;
	height: 36px;
	background-image: repeating-linear-gradient(100deg, transparent 0px, transparent 40px, rgba(255,107,53,0.5) 42px, transparent 46px, transparent 120px, rgba(238,242,247,0.3) 122px, transparent 126px, transparent 220px);
	opacity: 0.8;
}

/* ---------------------------------------------------------
 * REACTOR ALLOCATOR
 * --------------------------------------------------------- */
.mtx-reactor { position: relative; background-size: cover; background-position: center; padding: 5em 1.5em; }
.mtx-reactor-overlay { position: absolute; inset: 0; background: rgba(18,13,30,0.92); }
.mtx-reactor-inner { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; text-align: center; }
.mtx-section-lead { max-width: 560px; margin: 0 auto 2.4em; }

.mtx-reactor-widget {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 2.5em;
	align-items: center;
	text-align: left;
	background: rgba(45,27,78,0.3);
	border: 1px solid rgba(255,107,53,0.2);
	border-radius: 8px;
	padding: 2.4em;
}
.mtx-reactor-group { margin-bottom: 1.6em; }
.mtx-reactor-label { display: block; font-weight: 600; margin-bottom: 0.6em; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mtx-plasma); }
.mtx-reactor-slider { width: 100%; accent-color: var(--mtx-plasma); }
.mtx-reactor-result { margin-top: 1.6em; font-size: 1rem; color: var(--mtx-ice); }
.mtx-reactor-result strong { color: var(--mtx-plasma); font-family: var(--mtx-font-display); text-transform: uppercase; font-size: 0.9rem; }

.mtx-core-wrap { display: flex; justify-content: center; }
#mtx-core-svg { width: 240px; height: auto; }
.mtx-core-shell { fill: rgba(255,255,255,0.04); stroke: rgba(238,242,247,0.25); stroke-width: 1.5; }
.mtx-core-segment { transition: d 0.3s ease; opacity: 0.9; }
.mtx-seg-shields { fill: #4a9de8; }
.mtx-seg-weapons { fill: var(--mtx-plasma); }
.mtx-seg-engines { fill: #7fe0b0; }
.mtx-core-center { fill: var(--mtx-void); stroke: rgba(238,242,247,0.4); stroke-width: 1.5; }

/* ---------------------------------------------------------
 * SECTORS — horizontal scroll
 * --------------------------------------------------------- */
.mtx-sectors { padding: 4.5em 1.5em; max-width: 1280px; margin: 0 auto; }
.mtx-sectors h2 { text-align: center; margin-bottom: 1.2em; }
.mtx-sectors-scroll {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4em;
}
@media (max-width: 900px) {
	.mtx-sectors-scroll {
		grid-template-columns: 1fr;
	}
}
.mtx-sector-card {
	border-radius: 6px;
	overflow: hidden;
	background: var(--mtx-void-alt);
	border: 1px solid rgba(255,107,53,0.12);
}
.mtx-sector-card img { aspect-ratio: 4/5; }
.mtx-sector-card-text { padding: 1.2em; }
.mtx-sector-card-text h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.mtx-sector-card-text p { font-size: 0.88rem; margin: 0; }

/* ---------------------------------------------------------
 * LORE split
 * --------------------------------------------------------- */
.mtx-lore {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1280px;
	margin: 3em auto;
	gap: 3em;
	padding: 0 1.5em;
	align-items: center;
}
.mtx-lore-image img { border-radius: 6px; aspect-ratio: 4/3; }
.mtx-lore-text p { max-width: 480px; }

/* ---------------------------------------------------------
 * CREW BADGES
 * --------------------------------------------------------- */
.mtx-badges { max-width: 1200px; margin: 4em auto; padding: 0 1.5em; text-align: center; }
.mtx-badges h2 { margin-bottom: 1.4em; }
.mtx-badge-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.4em;
	text-align: left;
	margin-bottom: 1.6em;
}
.mtx-badge-card {
	position: relative;
	background: linear-gradient(155deg, rgba(45,27,78,0.5), rgba(18,13,30,0.7));
	border: 1px solid rgba(255,107,53,0.25);
	border-radius: 8px;
	padding: 1.5em;
	overflow: hidden;
}
.mtx-badge-scan {
	position: absolute; inset: 0;
	background: repeating-linear-gradient(0deg, rgba(238,242,247,0.02) 0px, rgba(238,242,247,0.02) 1px, transparent 1px, transparent 3px);
	pointer-events: none;
}
.mtx-badge-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8em; }
.mtx-badge-callsign { font-family: var(--mtx-font-display); color: var(--mtx-plasma); font-size: 0.95rem; text-transform: uppercase; }
.mtx-badge-rank { font-size: 0.75rem; color: var(--mtx-ice-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.mtx-badge-title { font-weight: 600; color: var(--mtx-white); margin-bottom: 0.5em; font-size: 0.95rem; }
.mtx-badge-body { font-size: 0.88rem; }
.mtx-badge-rating { color: var(--mtx-plasma); letter-spacing: 0.1em; }
.mtx-badges-full .mtx-badge-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 3em; }

/* ---------------------------------------------------------
 * SHIPS
 * --------------------------------------------------------- */
.mtx-ships { max-width: 1280px; margin: 4em auto; padding: 0 1.5em; }
.mtx-ships h2 { text-align: center; margin-bottom: 1.4em; }
.mtx-ships-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6em; }
.mtx-ships-full .mtx-ships-grid { grid-template-columns: repeat(2, 1fr); }
.mtx-ship-card { background: var(--mtx-void-alt); border: 1px solid rgba(255,107,53,0.12); border-radius: 6px; padding: 1.4em; }
.mtx-ship-card img { border-radius: 4px; aspect-ratio: 1/1; margin-bottom: 1em; }
.mtx-ship-card h3 { text-align: center; margin-bottom: 0.4em; }
.mtx-ship-card p { font-size: 0.88rem; text-align: center; }

.mtx-reactor-preview { max-width: 700px; margin: 0 auto 5em; padding: 0 1.5em; text-align: center; }

/* ---------------------------------------------------------
 * CTA band
 * --------------------------------------------------------- */
.mtx-cta { position: relative; background-size: cover; background-position: center; padding: 5em 1.5em; text-align: center; }
.mtx-cta-overlay { position: absolute; inset: 0; background: rgba(18,13,30,0.82); }
.mtx-cta-inner { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.mtx-cta h2, .mtx-cta p { color: var(--mtx-white); }

/* ---------------------------------------------------------
 * PAGE HERO (inner)
 * --------------------------------------------------------- */
.mtx-page-hero {
	padding: 6em 1.5em 3em;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}
.mtx-page-hero[style*="background-image"] {
	position: relative;
	max-width: none;
	background-size: cover;
	background-position: center;
	padding: 8em 1.5em;
	color: var(--mtx-white);
}
.mtx-page-lead { max-width: 560px; margin: 0 auto; font-size: 1rem; }

/* ---------------------------------------------------------
 * CONTENT BLOCK (about)
 * --------------------------------------------------------- */
.mtx-content-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3em; max-width: 1100px; margin: 0 auto 4em; padding: 0 1.5em; align-items: start; }
.mtx-content-image img { border-radius: 6px; position: sticky; top: 100px; }
.mtx-content-text h2 { margin-top: 1.4em; }
.mtx-content-text h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------
 * FORMS
 * --------------------------------------------------------- */
.mtx-form { display: flex; flex-direction: column; gap: 1.2em; }
.mtx-form label { font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; display: flex; flex-direction: column; gap: 0.4em; color: var(--mtx-ice); }
.mtx-form input, .mtx-form textarea, .mtx-form select {
	font-family: var(--mtx-font-body);
	padding: 0.8em 1em;
	border: 1px solid rgba(255,107,53,0.25);
	border-radius: var(--mtx-radius);
	font-size: 0.95rem;
	background: var(--mtx-void-alt);
	color: var(--mtx-ice);
}
.mtx-form-honeypot { position: absolute; left: -9999px; }
.mtx-form-notice { max-width: 700px; margin: 0 auto 2em; padding: 1em 1.4em; border-radius: var(--mtx-radius); text-align: center; }
.mtx-form-success { background: rgba(127,224,176,0.15); color: #7fe0b0; border: 1px solid rgba(127,224,176,0.3); }
.mtx-form-error { background: rgba(255,107,53,0.15); color: var(--mtx-plasma); border: 1px solid rgba(255,107,53,0.3); }

.mtx-contact-section { max-width: 1100px; margin: 0 auto 5em; padding: 0 1.5em; }
.mtx-contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3em; }

.mtx-badge-form-section { max-width: 640px; margin: 0 auto 5em; padding: 0 1.5em; }
.mtx-badge-form-section h2 { text-align: center; margin-bottom: 1em; }

/* ---------------------------------------------------------
 * BLOG
 * --------------------------------------------------------- */
.mtx-blog-grid { max-width: 1100px; margin: 0 auto 3em; padding: 0 1.5em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8em; }
.mtx-blog-card { background: var(--mtx-void-alt); border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,107,53,0.12); }
.mtx-blog-card img { aspect-ratio: 4/3; }
.mtx-blog-card-body { padding: 1.2em; }
.mtx-blog-date { font-size: 0.76rem; color: var(--mtx-plasma); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.mtx-single-post { max-width: 760px; margin: 0 auto; padding: 0 1.5em; }
.mtx-page-hero-post { padding-top: 3em; }
.mtx-single-image img { border-radius: 6px; margin-bottom: 2em; aspect-ratio: 16/9; }
.mtx-single-content h2 { margin-top: 1.6em; color: var(--mtx-white); }

/* ---------------------------------------------------------
 * LEGAL
 * --------------------------------------------------------- */
.mtx-legal-content { max-width: 760px; margin: 0 auto 5em; padding: 0 1.5em; }
.mtx-legal-content h2 { margin-top: 1.6em; }

/* ---------------------------------------------------------
 * 404
 * --------------------------------------------------------- */
.mtx-404 { text-align: center; padding: 8em 1.5em; }
.mtx-404 h1 { font-size: 5.5rem; color: var(--mtx-plasma); }

/* ---------------------------------------------------------
 * FOOTER
 * --------------------------------------------------------- */
.mtx-footer { background: var(--mtx-violet); color: var(--mtx-ice-soft); padding: 4em 1.5em 1.5em; }
.mtx-footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5em; }
.mtx-logo-footer { color: var(--mtx-white); margin-bottom: 0.6em; }
.mtx-footer h3 { color: var(--mtx-white); font-size: 0.95rem; margin-bottom: 0.8em; }
.mtx-footer a:hover { color: var(--mtx-plasma); }
.mtx-footer-menu { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5em; }
.mtx-footer-bottom { max-width: 1280px; margin: 3em auto 0; padding-top: 1.5em; border-top: 1px solid rgba(255,107,53,0.15); font-size: 0.8rem; }

/* ---------------------------------------------------------
 * COOKIE BAR
 * --------------------------------------------------------- */
.mtx-cookie-bar {
	position: fixed;
	left: 0; right: 0; bottom: -120px;
	background: var(--mtx-violet);
	color: var(--mtx-white);
	padding: 1.2em 1.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.4em;
	flex-wrap: wrap;
	z-index: 500;
	border-top: 1px solid rgba(255,107,53,0.25);
	transition: bottom 0.4s ease;
}
.mtx-cookie-bar.is-visible { bottom: 0; }
.mtx-cookie-bar p { margin: 0; color: var(--mtx-ice-soft); font-size: 0.9rem; }
#mtx-cookie-accept { background: var(--mtx-plasma); color: var(--mtx-void); border: none; padding: 0.6em 1.6em; border-radius: var(--mtx-radius); cursor: pointer; font-family: var(--mtx-font-body); font-weight: 600; }

/* ---------------------------------------------------------
 * RESPONSIVE
 * --------------------------------------------------------- */
@media (max-width: 900px) {
	.mtx-nav-list { display: none; }
	.mtx-header-cta { display: none; }
	.mtx-menu-toggle { display: flex; }
	.mtx-reactor-widget { grid-template-columns: 1fr; }
	.mtx-lore { grid-template-columns: 1fr; }
	.mtx-content-block { grid-template-columns: 1fr; }
	.mtx-content-image img { position: static; }
	.mtx-ships-grid, .mtx-ships-full .mtx-ships-grid { grid-template-columns: 1fr; }
	.mtx-contact-grid { grid-template-columns: 1fr; }
	.mtx-blog-grid { grid-template-columns: 1fr; }
	.mtx-footer-inner { grid-template-columns: 1fr; }
}
