@charset "utf-8";
/* Moongate.Studio | Shared CSS | 004.0 */

/* ===== THEME ===== */
@font-face {
  font-family: 'Nasalization';
  src: url('../assets/fonts/nasalization.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
    --mg-font-heading: 'Nasalization', monospace;
    --mg-font-body: 'League Spartan', sans-serif;
    --mg-color-background: #0d0f12;
    --mg-color-text: #ccc;
    --mg-color-text-strong: #fff;
    --mg-color-text-muted: #bcd4d6;
    --mg-color-accent: #67f3ff;
    --mg-radius-card: 7px;
    --mg-surface-background: linear-gradient(-135deg, rgba(0,245,255,.06), rgba(0,160,185,.12), rgba(6,28,34,.45));
    --mg-surface-backdrop: blur(14px) saturate(135%);
    --mg-surface-border: 1px solid rgba(0,245,255,.16);
    --mg-surface-shadow: 0 16px 40px rgba(0,0,0,.55), inset 0 0 18px rgba(0,245,255,.08);
    --mg-panel-border: 1px solid rgba(0,245,255,.25);
    --mg-panel-shadow: 0 16px 40px rgba(0,0,0,.55), inset 0 0 18px rgba(0,245,255,.12);
    --mg-transition-fast: .25s ease;
    --mg-transition-medium: .35s ease;
    --mg-transition-slow: .65s cubic-bezier(.16,1,.3,1);
}

/* ===== HTML/BODY ===== */
html, body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: var(--mg-color-background);
}

body {
	font-family: var(--mg-font-body);
	font-weight: 400;
	font-size: 20px;
	color: var(--mg-color-text);
    overflow-x: hidden;
}

a {
	color: #ccc;
	text-decoration: none;
}

a:hover {
	text-shadow:
		0 0 10px rgba(0,245,255,.6),
		0 0 60px rgba(0,245,255,.10);
}

p {
	line-height: 1.4;
}

b, strong {
	font-size: 18px;
	color: var(--mg-color-text-strong);
}

i {
	color: var(--mg-color-text);
	text-shadow:
		0 0 10px rgba(0,245,255,.6),
		0 0 60px rgba(0,245,255,.10);
}

small {
	display: block;
	margin-bottom: 5px;
	color: #ccc;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

span {
    font-size: 14px;
    color: var(--mg-color-text-muted);
}

/* ===== HEADERS ===== */
h1 {
	font-family: var(--mg-font-heading);
	color: var(--mg-color-text);
	font-size: clamp(60px, 5vw, 80px);
	font-weight: 300;
	text-transform: uppercase;
 	line-height: 1.00;
	margin-top: 0;
	margin-bottom: 50px;
}

h2 {
	font-family: var(--mg-font-heading);
	color: var(--mg-color-text);
	font-size: clamp(28px, 5vw, 32px);
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: -1px;
	line-height: 1.00;
}

h3 {
	font-family: var(--mg-font-heading);
	color: var(--mg-color-text-strong);
	font-size: clamp(20px, 5vw, 22px);
	font-weight: 300;
	text-transform: none;
	letter-spacing: 1px;
}

h4 {
	font-family: var(--mg-font-heading);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: .08em;
	text-transform: lowercase;
	margin: 0 0 8px;
	color: #e6f7f8;
}

/* ===== BUTTONS ===== */
.btn {
	font-family: 'Nasalization', monospace;
	color: #ccc;
	font-size: 18px;
	font-weight: 300;
	text-transform: uppercase;
	pointer-events: auto;
	cursor: pointer;
	padding: 5px 20px 10px 20px;
	border-radius: 10px;
	background: rgba(0,245,255,.06);
	box-shadow: 0 6px 22px rgba(0,245,255,.25);
	border: 1px solid rgba(0,245,255,.25);
	position: relative;
	overflow: hidden;
    position: relative;
    z-index: 999;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0,245,255,0.4); /* Moongate teal */
    clip-path: inset(0 100% 100% 0); /* start hidden */
    animation: runeTrace 4s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes runeTrace {
    0%   { clip-path: inset(0 100% 100% 0); }
    12%  { clip-path: inset(0 0 100% 0); }
    24%  { clip-path: inset(0 0 0 100%); }
    36%  { clip-path: inset(100% 0 0 0); }

    48%  { clip-path: inset(0 100% 100% 0); } /* second lap */
    60%  { clip-path: inset(0 0 100% 0); }
    72%  { clip-path: inset(0 0 0 100%); }
    84%  { clip-path: inset(100% 0 0 0); }
    
    100% { clip-path: inset(0 100% 100% 0); }
}

.btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		120deg,
		transparent,
		rgba(0,245,255,.3),
		transparent
	);
	transition: left 0.4s ease;
}

.btn:hover::after {
	left: 125%;
}

.btn.ghost {
	background: transparent;
	color: #ccc;
	border: 1px solid rgba(0,245,255,.35);
	box-shadow: none;
}

/* Locked Button; Unable to click; "Coming Soon" */
.btn-locked {
	font-family: 'Nasalization', monospace;
	color: #ccc;
	font-size: 18px;
	font-weight: 300;
	text-transform: uppercase;
	pointer-events: auto;
	cursor: pointer;
	padding: 5px 20px 10px 20px;
	border-radius: 10px;
	background: rgba(0,245,255,.06);
	box-shadow: 0 6px 22px rgba(0,245,255,.25);
	border: 1px solid rgba(0,245,255,.25);
	position: relative;
	overflow: hidden;
    position: relative;
    z-index: 999;
}

.btn-locked img {
    width: 14px;
}

.btn-locked:hover {
    cursor: not-allowed;
    background: rgba(255,255,255,0.5);
    color: #fff;
}

.btn-locked::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0,245,255,0.4); /* Moongate teal */
    clip-path: inset(0 100% 100% 0); /* start hidden */
    animation: runeTrace 4s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes runeTrace {
    0%   { clip-path: inset(0 100% 100% 0); }
    12%  { clip-path: inset(0 0 100% 0); }
    24%  { clip-path: inset(0 0 0 100%); }
    36%  { clip-path: inset(100% 0 0 0); }

    48%  { clip-path: inset(0 100% 100% 0); } /* second lap */
    60%  { clip-path: inset(0 0 100% 0); }
    72%  { clip-path: inset(0 0 0 100%); }
    84%  { clip-path: inset(100% 0 0 0); }
    
    100% { clip-path: inset(0 100% 100% 0); }
}

.btn-locked::after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		120deg,
		transparent,
		rgba(0,245,255,.3),
		transparent
	);
	transition: left 0.4s ease;
}

.btn-locked:hover::after {
	left: 125%;
}

.badge {
	border: 1px solid rgba(0,245,255,.25);
	padding: 3px 10px;
	border-radius: 8px;
	font-size: 15px;
	color: #ccc;
	background: rgba(0,245,255,.06);
	box-shadow:
		0 8px 12px rgba(0,245,255,.10),
		0 18px 40px rgba(0,245,255,.12),
		0 32px 80px rgba(0,245,255,.16);
	position: relative;
	overflow: hidden;
    position: relative;
    display: inline-block;
}

.badge::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0,245,255,0.4); /* Moongate teal */
    clip-path: inset(0 100% 100% 0); /* start hidden */
    animation: runeTrace 4s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes runeTrace {
    0%   { clip-path: inset(0 100% 100% 0); }
    12%  { clip-path: inset(0 0 100% 0); }
    24%  { clip-path: inset(0 0 0 100%); }
    36%  { clip-path: inset(100% 0 0 0); }

    48%  { clip-path: inset(0 100% 100% 0); } /* second lap */
    60%  { clip-path: inset(0 0 100% 0); }
    72%  { clip-path: inset(0 0 0 100%); }
    84%  { clip-path: inset(100% 0 0 0); }
    
    100% { clip-path: inset(0 100% 100% 0); }
}

.badge::after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		120deg,
		transparent,
		rgba(0,245,255,.3),
		transparent
	);
	transition: left 0.4s ease;
}

/* ===== POP-UP MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .25s ease,
        visibility .25s ease;
    z-index: 99999 !important;
}

.modal-overlay.active {
    opacity: 1;
    position: fixed;
    visibility: visible;
}

.modal {
    position: relative;
    width: min(950px,100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
    background:
        linear-gradient(
        -135deg,
        rgba(0,245,255,.06),
        rgba(0,160,185,.14),
        rgba(6,28,34,.85)
        );
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(0,245,255,.25);
    box-shadow:
        0 25px 80px rgba(0,0,0,.85),
        inset 0 0 30px rgba(0,245,255,.08);
    overflow: hidden;
    transform: translateY(20px) scale(.96);
    transition: transform .25s ease;
    z-index: 999999 !important;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(0,245,255,.45);
    clip-path: inset(0 100% 100% 0);
    animation: runeTrace 6s linear infinite;
    pointer-events: none;
    z-index: 99;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(0,245,255,.2);
    color: #67f3ff;
    cursor: pointer;
    transition:
        transform .25s ease,
        background .25s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: rgba(0,245,255,.08);
}

/* ===== HEADER ===== */
.mg-header {
	position: fixed;
	top: 10px;
	left: 10px;
	right: 10px;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
	z-index: 1000;
	transition: height .25s ease;
}

.mg-header::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
	border: 1px solid rgba(0,245,255,0.45);
	clip-path: inset(0 100% 100% 0);
	opacity: 0;
	z-index: 1;
	pointer-events: none;
}

.mg-header::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 0;
	background: linear-gradient(
		-135deg,
		rgba(0,245,255,.06),
		rgba(0,160,185,.14),
		rgba(6,28,34,.55)
	);
	backdrop-filter: blur(14px) saturate(135%);
	-webkit-backdrop-filter: blur(14px) saturate(135%);
	border-radius: 14px;
	border: 1px solid rgba(0,245,255,.25);
	pointer-events: none;
}

.mg-header.scrolled {
	height: 80px;
	padding-bottom: 7px;
}

.mg-header.scrolled::after {
	opacity: 1;
}

.mg-header.scrolled::before {
	opacity: 1;
	animation: runeTrace 6s linear infinite;
}

@keyframes runeTrace {
	0%   { clip-path: inset(0 100% 100% 0); }
	12%  { clip-path: inset(0 0 100% 0); }
	24%  { clip-path: inset(0 0 0 100%); }
	36%  { clip-path: inset(100% 0 0 0); }

	48%  { clip-path: inset(0 100% 100% 0); }
	60%  { clip-path: inset(0 0 100% 0); }
	72%  { clip-path: inset(0 0 0 100%); }
	84%  { clip-path: inset(100% 0 0 0); }

	100% { clip-path: inset(0 100% 100% 0); }
}

/* ==== ICONS ====*/
.icon {
	font-size: 22px;
	margin-bottom: 12px;
	filter: drop-shadow(0 0 6px rgba(0,245,255,.5));
    position: relative;
    z-index: 3;
}

/* ===== LOGO ===== */
.mg-logo {
	height: 100%;
	display: flex;
	align-items: center;
	padding: 27px 45px;
	margin: 0;
	color: #ccc;
	font-family: 'Nasalization', monospace;
	font-size: 25px;
	position: relative;
	z-index: 1;
	pointer-events: auto;
	transform-origin: left center;
	transition: transform .25s ease;
}

.mg-header.scrolled .mg-logo {
  transform: scale(.85);
}

/* reticle: cirlce */
.mg-reticle {
	position: absolute;
	left: 15%;
	top: 53%;
	transform: translate(-40%, -50%);
	width: 80px;
	height: 80px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 50%;
	box-shadow: inset 0 0 24px rgba(0,245,255,.05);
	pointer-events: none;
}

.mg-reticle::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(
		from 80deg,
		rgba(0,245,255,.2) 80%,
		rgba(0,245,255,.4) 100%
	);
	mask: radial-gradient(circle, transparent 68%, black 21%);
	animation: haloSpin 2s linear;
	filter:
		drop-shadow(0 0 6px rgba(0,245,255,.6))
		drop-shadow(0 0 14px rgba(0,245,255,.35));
}

@keyframes haloSpin {
  to { transform: rotate(360deg); }
}

.mg-reticle-tl {
	border-right: none;
	border-bottom: none;
}

/* ===== NAV ===== */
.mg-nav {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 35px;
	margin-right: 45px;
	position: relative;
	z-index: 1;
	pointer-events: auto;
}

.mg-nav a {
	color: #ccc;
	text-decoration: none;
	font-family: 'Nasalization', monospace;
	font-size: 18px;
	cursor: pointer;
	position: relative;
	z-index: 2;
}

/* hover underline */
.mg-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 0.5px;
	background: linear-gradient(
	90deg,
	transparent 0%,
	rgba(140,200,255,.9) 20%,
	rgba(220,255,255,1) 50%,
	rgba(140,200,255,.9) 80%,
	transparent 100%
	);
	background-size: 200% 100%;
	opacity: 0;
	filter:
	drop-shadow(0 0 4px rgba(120,200,255,.9))
	drop-shadow(0 0 10px rgba(80,160,255,.6));
}

.mg-nav a:hover::after {
  opacity: 1;
  animation:
    rune-sweep .6s linear forwards,
    rune-flicker 1.4s ease-in-out infinite;
}

@keyframes rune-sweep {
  from { background-position: 200% 0; }
  to   { background-position: 0% 0; }
}

@keyframes rune-flicker {
  0%,100% { opacity:.85; }
  50% { opacity:1; }
}

/* ===== FOOTER ===== */
.mg-footer {
    position: relative;
    padding: 100px 60px 40px;
  	border-top: 1px solid rgba(0,245,255,.3);
	background:
		linear-gradient(
		-135deg,
		rgba(0, 55, 60, 0.9) 30%,
		rgba(0, 55, 60, 0.9) 30%,
		rgba(0, 0, 0, 0.9) 50%
		),
		url("../images/molecule.webp");
	background-size: cover;
	background-position: top;
	background-repeat: no-repeat;
    overflow: hidden;
}

/* Grid Overlay */
.mg-footer .mg-grid {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px) 0 0/64px 64px,
	linear-gradient(to bottom, rgba(255,255,255,.02) 1px, transparent 1px) 0 0/64px 64px;
	mask-image: radial-gradient(120% 120% at 50% 60%, #000 65%, transparent 100%);
}

.mg-footer-inner,
.mg-footer-divider,
.mg-footer-bottom {
    position: relative;
    z-index: 5;
}

.mg-footer-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 100px;
    align-items: center;
}

.mg-footer-brand {
    position: relative;
}

.mg-footer-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: 'Nasalization', monospace;
    font-size: 34px;
    margin-bottom: 30px;
    padding-left: 25px;
}

.mg-footer-logo .mg-reticle {
    left: 0;
    top: 60%;
    transform: translateY(-50%);
}

.mg-footer-brand h3 {
    margin-bottom: 20px;
}

.mg-footer-brand p {
    max-width: 420px;
    color: #bcd4d6;
    line-height: 1.5;
    margin-bottom: 35px;
}

.mg-footer-links {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 60px;
}

.mg-footer-links h4 {
    margin-bottom: 18px;
}

.mg-footer-links span {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #8fb1b4;
    transition: color .25s ease;
}

.mg-footer-links span img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.mg-footer-divider {
    max-width: 1500px;
    margin: 70px auto 25px;
    height: 1px;
    background:
        linear-gradient(
        90deg,
        transparent,
        rgba(0,245,255,.35),
        transparent
        );
}

.mg-footer-bottom {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.mg-footer-status {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.mg-footer-status span {
    position: relative;
    padding-left: 14px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mg-footer-status span::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: -4px;
    color: #67f3ff;
    font-size: 12px;
    text-shadow:
        0 0 8px rgba(103,243,255,.8),
        0 0 18px rgba(103,243,255,.4);
}

.mg-footer-copy {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6f888b;
}

@media (max-width: 1100px) {

    .mg-footer-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .mg-footer-grid {
        grid-template-columns: repeat(2,1fr);
    }

}

@media (max-width: 768px) {

    .mg-footer {
        padding: 100px 24px 40px;
    }

    .mg-footer-grid {
        grid-template-columns: 1fr;
    }

    .mg-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

}
