@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;0,800;1,400&family=Electrolize:wght@400&display=swap');

/* ========== Maskus Starlinx custom styles ========== */

body {
	-webkit-font-smoothing: antialiased;
}

/* Top announcement bar */
.mx-topbar {
	background: var(--wp--preset--color--surface);
	text-align: center;
	/* Left/right padding comes from the shared page gutter below */
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 14px;
	font-family: var(--wp--preset--font-family--heading);
	letter-spacing: 0.02em;
}
.mx-topbar a {
	font-weight: 600;
}

/* Header */
.mx-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* Frosted glass moved to ::before: a backdrop-filter directly on .mx-header
   would turn it into a containing block for the fixed-position mobile nav
   overlay, trapping the menu inside the header instead of covering the screen. */
.mx-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 26, 38, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.mx-header .wp-block-navigation a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.mx-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--primary);
}

/* Header logo: the art is a small raster (56 × 40 px), so pin it to that natural
   height. A larger width in the editor would upscale the art and, because the
   header row is sized by its tallest child, stretch the whole bar; width:auto
   keeps the aspect ratio intact. */
.mx-header .wp-block-image {
	line-height: 0;
	margin: 0;
}
.mx-header .wp-block-image img {
	width: auto !important;
	max-height: 40px;
}

/* Breathing room above and below the header row. Without it the row collapses
   onto its tallest child (the CTA button) and the button touches the bar edges. */
.mx-header > .wp-block-group {
	padding-top: 16px;
	padding-bottom: 16px;
}

/* Hero */
.mx-hero {
	margin-top: 0;
}
/* No gap between sticky header and hero: video starts right below the header */
main.wp-block-group {
	margin-block-start: 0;
}
.mx-hero .wp-block-cover__inner-container {
	width: 100%;
}
/* Soft fade at the bottom edge so the video blends into the page background */
.mx-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 160px;
	background: linear-gradient(to bottom, transparent, var(--wp--preset--color--base));
	pointer-events: none;
	z-index: 1;
}
.mx-hero-card {
	background: rgba(0, 45, 68, 0.75);
	border: 1px solid rgba(0, 223, 255, 0.35);
	border-radius: 16px;
	padding: 32px;
	backdrop-filter: blur(6px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mx-badge {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: #001a26 !important;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
}
.mx-watch-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
}
.mx-watch-btn .mx-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #001a26;
	font-size: 18px;
}

/* Section shell */
.mx-section {
	padding-top: 96px;
	padding-bottom: 96px;
}
.mx-section--tight {
	padding-top: 64px;
	padding-bottom: 64px;
}
.mx-kicker {
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--primary);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

/* Logo strip */
.mx-logos img {
	max-height: 28px;
	width: auto;
	opacity: 0.8;
	filter: brightness(0) invert(1);
	transition: opacity 0.2s ease;
}
.mx-logos img:hover {
	opacity: 1;
}

/* Feature / pricing cards */
.mx-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 32px;
	height: 100%;
}
.mx-card--highlight {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 16px 48px rgba(0, 223, 255, 0.18);
	position: relative;
}
.mx-price {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 44px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}
.mx-price small {
	font-size: 16px;
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}
.mx-speed {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
	color: var(--wp--preset--color--soft);
}

/* Check list */
.mx-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
}
.mx-checklist li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 12px;
	color: var(--wp--preset--color--muted);
}
.mx-checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

/* Steps */
.mx-step-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 56px;
	font-weight: 600;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--wp--preset--color--primary);
	line-height: 1;
}

/* Testimonials */
.mx-quote {
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-style: italic;
	color: var(--wp--preset--color--soft);
}
.mx-quote-name {
	font-family: var(--wp--preset--font-family--heading);
	font-style: normal;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin-top: 16px;
}

/* FAQ */
.mx-faq details {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 14px;
}
.mx-faq summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 17px;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.mx-faq summary::after {
	content: "+";
	color: var(--wp--preset--color--primary);
	font-size: 22px;
}
.mx-faq details[open] summary::after {
	content: "\2212";
}
.mx-faq details p {
	color: var(--wp--preset--color--muted);
	margin: 14px 0 0;
}

/* Newsletter */
.mx-newsletter-form,
.mx-newsletter input[type="email"],
.mx-newsletter button {
	box-sizing: border-box;
}
.mx-newsletter-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}
.mx-newsletter input[type="email"] {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	padding: 14px 18px;
	color: #fff;
	width: 100%;
	max-width: 380px;
	font-family: var(--wp--preset--font-family--body);
	/* 16px keeps iOS Safari from zooming in when the field is focused */
	font-size: 16px;
}
.mx-newsletter input[type="email"]::placeholder {
	color: var(--wp--preset--color--muted);
}
.mx-newsletter button {
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 8px;
	padding: 14px 28px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 600;
	color: #001a26;
	cursor: pointer;
}

/* Footer */
.mx-footer {
	background: #001420;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mx-footer h4 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	margin-bottom: 18px;
	color: #fff;
}
.mx-footer a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}
.mx-footer a:hover {
	color: var(--wp--preset--color--primary);
}
.mx-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 20px 0;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

/* Rounded images */
.mx-rounded img {
	border-radius: 16px;
}

/* Glow divider */
.mx-glow-line {
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary), transparent);
	opacity: 0.5;
}

/* Anchor offset for the sticky header */
[id] {
	scroll-margin-top: 96px;
}

/* ========== Page gutter & content grid ==========
   Every content container on the page (topbar text, header bar, hero content,
   each section, footer) shares the same 1200px column, so the logo lines up
   with the headings instead of sitting further left than the rest of the page.
   While the viewport is narrower than that column, the containers are allowed
   to grow by 2 × gutter and keep that gutter as padding: the inner content
   stays exactly 1200px on desktop and never touches the screen edge on
   tablets/phones. Sections with a background colour still bleed edge to edge
   because the gutter lives inside them.
   (Longhands are used because core adds its own 1.25em/2.375em padding to any
   group that has a background.) */
:root {
	--mx-gutter: 0px;
	--mx-content: var(--wp--style--global--content-size, 1200px);
}
@media (max-width: 1248px) {
	:root {
		--mx-gutter: 24px;
	}
}
.mx-topbar > p,
.mx-header > .wp-block-group,
.mx-section,
.mx-section--tight,
.mx-footer .wp-block-columns,
.mx-footer-bottom,
.mx-hero .wp-block-cover__inner-container {
	max-width: calc(var(--mx-content) + var(--mx-gutter) * 2);
	padding-left: var(--mx-gutter);
	padding-right: var(--mx-gutter);
	margin-left: auto;
	margin-right: auto;
}
/* The cover carries a 1em padding of its own; the inner container above
   provides the gutter instead so the video stays full-bleed. */
.wp-block-cover.mx-hero {
	padding-left: 0;
	padding-right: 0;
}

/* ========== Responsive: tablet & mobile ========== */

/* Collapse navigation into the hamburger overlay below 1024px
   (core only switches below 600px, which wraps the header on tablets). */
@media (min-width: 600px) and (max-width: 1023px) {
	.mx-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.mx-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}
/* Dark, on-brand mobile menu overlay */
.mx-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base) !important;
	color: #fff;
}
.mx-header .wp-block-navigation__responsive-container.is-menu-open a {
	color: #fff;
}
.mx-header .wp-block-navigation__responsive-container.is-menu-open a:hover {
	color: var(--wp--preset--color--primary);
}

/* Tablet */
@media (min-width: 782px) and (max-width: 1023px) {
	.mx-section { padding-top: 72px; padding-bottom: 72px; }
	.mx-section--tight { padding-top: 48px; padding-bottom: 48px; }
}

/* Mobile */
@media (max-width: 781px) {
	.mx-section { padding-top: 56px; padding-bottom: 56px; }
	.mx-section--tight { padding-top: 40px; padding-bottom: 40px; }

	/* Top bar */
	.mx-topbar { padding-top: 8px; padding-bottom: 8px; font-size: 13px; line-height: 1.5; }

	/* Hero: shorter than the 92vh desktop setting so it does not feel empty */
	.mx-hero { min-height: 70vh !important; }
	.mx-hero .wp-block-cover__inner-container { padding-top: 40px; padding-bottom: 48px; }
	.mx-hero::after { height: 80px; }
	.mx-hero-card { padding: 24px; }
	.mx-watch-btn .mx-play { width: 48px; height: 48px; font-size: 16px; }

	/* App store badges: let the pair wrap on narrow phones instead of overflowing */
	#app .wp-block-group.is-nowrap { flex-wrap: wrap; }

	/* Cards & typography */
	.mx-card { padding: 24px; }
	.mx-price { font-size: 32px; }
	.mx-speed { font-size: 18px; }
	.mx-step-num { font-size: 44px; }
	.mx-quote { padding: 22px; }

	/* FAQ */
	.mx-faq details { padding: 16px 18px; }
	.mx-faq summary { font-size: 16px; gap: 12px; }

	/* Newsletter: stack input and button */
	.mx-newsletter-form { flex-direction: column; align-items: stretch; }
	.mx-newsletter input[type="email"] { max-width: none; }

	/* Footer */
	.mx-footer-bottom { justify-content: center; text-align: center; gap: 8px; }
}

/* Small phones: the header row (logo + burger + CTA) no longer fits below
   ~460px once the 24px page gutter is applied, so drop the CTA — the hero and
   the nav overlay both still offer a clear call to action. */
@media (max-width: 479px) {
	.mx-header .wp-block-buttons { display: none; }
}

/* Larger tap target for the mobile menu toggle (WCAG 2.5.5: 44×44px) */
.mx-header .wp-block-navigation__responsive-container-open,
.mx-header .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	padding: 10px;
	align-items: center;
	justify-content: center;
}
