/*
Theme Name:   Intrufix
Theme URI:    https://intrufix.com/
Author:       Intrufix
Description:  Landing-page theme with waitlist capture, full-screen menu and sign-in modal. Content is editable in Appearance → Customize → Intrufix.
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  intrufix
Tags:         one-column, custom-logo, custom-menu, dark, landing-page
*/

/* ---------- Tokens ---------- */
:root {
	--ix-bg: #15202b;
	--ix-bg-raised: #1c2a38;
	--ix-line: rgba(255, 255, 255, 0.12);
	--ix-text: #ffffff;
	--ix-text-muted: rgba(255, 255, 255, 0.72);
	--ix-headline: #a8d8ff;
	--ix-brand: #ff7a3d;
	--ix-brand-hover: #ff8f5c;
	--ix-cta: #1fa37a;
	--ix-cta-hover: #25b98b;
	--ix-neutral-btn: #b9c1c9;
	--ix-radius: 8px;
	--ix-font-head: "Sora", Arial, Helvetica, sans-serif;
	--ix-font-body: "Figtree", Arial, Helvetica, sans-serif;
	--ix-max: 1100px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ix-bg);
	color: var(--ix-text);
	font-family: var(--ix-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overflow-wrap: break-word;
}

body.ix-no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: var(--ix-headline); }
a:hover { color: var(--ix-text); }

h1, h2, h3, h4 {
	font-family: var(--ix-font-head);
	font-weight: 300;
	line-height: 1.2;
	margin: 0 0 0.5em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 8px 14px;
	background: var(--ix-text); color: var(--ix-bg);
	border-radius: var(--ix-radius);
}

:focus-visible { outline: 2px solid var(--ix-headline); outline-offset: 3px; }

.ix-container {
	width: 100%;
	max-width: var(--ix-max);
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------- Buttons ---------- */
.ix-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--ix-radius);
	font-family: var(--ix-font-body);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	min-height: 44px;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s, transform .2s;
}
@media (hover: hover) {
	.ix-btn:hover { transform: translateY(-1px); }
}
.ix-btn--cta     { background: var(--ix-cta);   color: #fff; }
.ix-btn--cta:hover { background: var(--ix-cta-hover); color: #fff; }
.ix-btn--brand   { background: var(--ix-brand); color: #fff; }
.ix-btn--brand:hover { background: var(--ix-brand-hover); color: #fff; }
.ix-btn--neutral { background: var(--ix-neutral-btn); color: #1b2530; }
.ix-btn--neutral:hover { background: #d3d9de; color: #1b2530; }
.ix-btn--ghost   { background: transparent; color: #fff; border: 1px solid var(--ix-line); }
.ix-btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Header ---------- */
.ix-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ix-bg);
	background: color-mix(in srgb, var(--ix-bg) 88%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.ix-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	max-width: none;
	padding: 0 20px;
}
.ix-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ix-text); }
.ix-logo img { max-height: 40px; width: auto; }
.ix-logo__mark { width: 36px; height: 36px; flex: none; }
.ix-logo__word {
	font-family: var(--ix-font-head);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ix-brand);
}

.ix-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	color: var(--ix-text);
	font: 600 15px var(--ix-font-body);
	cursor: pointer;
	padding: 8px;
	min-height: 44px;
	margin-right: -8px;
}
.ix-menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Overlay menu ---------- */
.ix-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	background: var(--ix-bg);
	padding: 16px 20px 32px;
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.ix-overlay.is-open { opacity: 1; visibility: visible; }
.ix-overlay__top { display: flex; justify-content: flex-end; }
.ix-overlay__close {
	background: none; border: 0; color: var(--ix-text);
	font: 600 15px var(--ix-font-body); cursor: pointer; padding: 8px; min-height: 44px;
	display: inline-flex; align-items: center; gap: 8px;
}
.ix-overlay__close svg { width: 20px; height: 20px; }
.ix-overlay__body {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: safe center;
	align-items: center;
	gap: 40px;
	text-align: center;
}
.ix-overlay__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ix-overlay__nav a {
	font-family: var(--ix-font-head);
	font-size: clamp(24px, 5vw, 40px);
	font-weight: 300;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ix-text);
	text-decoration: none;
}
.ix-overlay__nav a:hover { color: var(--ix-headline); }
.ix-overlay__nav .sub-menu { margin-top: 10px; gap: 8px; }
.ix-overlay__nav .sub-menu a { font-size: 18px; text-transform: none; color: var(--ix-text-muted); }
.ix-overlay__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Modal ---------- */
.ix-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 12, 18, 0.72);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.ix-modal.is-open { opacity: 1; visibility: visible; }
.ix-modal__panel {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	color: #1b2530;
	border-radius: 12px;
	padding: 32px 28px 24px;
}
.ix-modal__panel h2 { font-size: 24px; font-weight: 400; margin-bottom: 20px; }
.ix-modal__close {
	position: absolute; top: 6px; right: 6px;
	background: none; border: 0; cursor: pointer; color: #1b2530; padding: 12px;
}
.ix-modal__close svg { width: 18px; height: 18px; }
.ix-modal form p { margin: 0 0 14px; }
.ix-modal label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ix-modal input[type="text"],
.ix-modal input[type="password"] {
	width: 100%; padding: 11px 12px; border: 1px solid #cfd6dd; border-radius: var(--ix-radius);
	font: 16px var(--ix-font-body);
}
.ix-modal .login-remember label { display: inline-flex; gap: 6px; font-weight: 400; }
.ix-modal input[type="submit"] {
	width: 100%; padding: 12px; border: 0; border-radius: var(--ix-radius);
	background: var(--ix-cta); color: #fff; font: 600 15px var(--ix-font-body); cursor: pointer;
}
.ix-modal input[type="submit"]:hover { background: var(--ix-cta-hover); }
.ix-modal__links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-top: 8px; }
.ix-modal__links a { color: #1b6fb3; }

/* ---------- Hero ---------- */
.ix-hero {
	padding: clamp(56px, 12vh, 140px) 0 clamp(48px, 10vh, 110px);
	padding: clamp(56px, 12svh, 140px) 0 clamp(48px, 10svh, 110px);
	text-align: center;
	border-bottom: 1px solid var(--ix-line);
}
.ix-hero__lead {
	font-family: var(--ix-font-head);
	font-size: clamp(30px, 5.5vw, 52px);
	font-weight: 300;
	color: var(--ix-headline);
	margin: 0;
}
.ix-hero__brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 12px 0 28px;
	font-family: var(--ix-font-head);
	font-size: clamp(40px, 8vw, 76px);
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--ix-brand);
	line-height: 1;
}
.ix-hero__brand .ix-logo__mark { width: 0.9em; height: 0.9em; }
.ix-hero__brand .ix-logo__word { font-size: inherit; }
.ix-hero__brand img { max-height: 1.1em; width: auto; }
.ix-hero__text {
	max-width: 680px;
	margin: 0 auto 36px;
	font-size: 18px;
	color: var(--ix-text);
}
.ix-hero__modes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: -12px 0 36px;
	padding: 0;
	list-style: none;
}
.ix-hero__modes li {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--ix-line);
	border-radius: 999px;
	font-size: 14px;
	color: var(--ix-text-muted);
}
.ix-hero__modes svg { width: 16px; height: 16px; color: var(--ix-headline); }

/* Hero-only mode: fill the screen so the footer sits at the bottom. */
.ix-hero-only main { min-height: calc(100vh - 72px - 81px); min-height: calc(100svh - 72px - 81px); display: flex; flex-direction: column; justify-content: center; }
.ix-hero-only .ix-hero { border-bottom: 0; }
.ix-hero-only .ix-hero__modes { margin-top: 0; }

/* ---------- Waitlist form ---------- */
.ix-waitlist {
	display: grid;
	gap: 14px;
	justify-items: center;
	max-width: 460px;
	margin: 0 auto;
}
.ix-waitlist input[type="email"] {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid #d6dde3;
	border-radius: var(--ix-radius);
	font: 16px var(--ix-font-body);
	color: #1b2530;
	background: #fff;
}
.ix-waitlist .ix-btn { min-width: 260px; padding: 14px 22px; font-size: 16px; }
.ix-waitlist__hp { position: absolute; left: -9999px; }
.ix-waitlist__legal { margin: 4px 0 0; font-size: 14px; color: var(--ix-text-muted); }
.ix-waitlist__legal a { color: var(--ix-text); }
.ix-notice {
	max-width: 460px;
	margin: 0 auto 18px;
	padding: 12px 16px;
	border-radius: var(--ix-radius);
	font-size: 15px;
}
.ix-notice--success { background: rgba(31, 163, 122, 0.16); border: 1px solid var(--ix-cta); }
.ix-notice--error   { background: rgba(255, 122, 61, 0.14); border: 1px solid var(--ix-brand); }

/* ---------- Features ---------- */
.ix-features { padding: clamp(64px, 10vw, 110px) 0 40px; }
.ix-features__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 64px;
}
.ix-feature { display: grid; grid-template-columns: 52px 1fr; gap: 22px; align-items: start; }
.ix-feature__icon {
	width: 52px; height: 52px;
	display: grid; place-items: center;
	border-radius: 50%;
}
.ix-feature__icon svg { width: 26px; height: 26px; }
.ix-feature__icon--1 { background: #a8d8ff; color: #15202b; }
.ix-feature__icon--2 { background: #b8f0a0; color: #15202b; }
.ix-feature__icon--3 { background: #ff7a3d; color: #fff; }
.ix-feature__icon--4 { background: #c8b3f5; color: #15202b; }
.ix-feature h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; }
.ix-feature p { margin: 0; color: var(--ix-text); line-height: 1.7; }

/* ---------- How it works ---------- */
.ix-steps { padding: 70px 0 30px; }
.ix-steps__title {
	text-align: center;
	font-size: clamp(24px, 3.4vw, 34px);
	color: var(--ix-headline);
	margin-bottom: 36px;
}
.ix-steps__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ix-step;
}
.ix-steps__list li {
	counter-increment: ix-step;
	padding: 22px 20px;
	background: var(--ix-bg-raised);
	border: 1px solid var(--ix-line);
	border-radius: 12px;
}
.ix-steps__list li::before {
	content: "0" counter(ix-step);
	display: block;
	margin-bottom: 10px;
	font-family: var(--ix-font-head);
	font-size: 14px;
	font-weight: 600;
	color: var(--ix-brand);
}
.ix-steps__list strong { display: block; font-size: 17px; margin-bottom: 6px; }
.ix-steps__list span { font-size: 15px; color: var(--ix-text-muted); }

/* ---------- CTA row ---------- */
.ix-cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	padding: 48px 0 80px;
}

/* ---------- Generic content (pages, posts) ---------- */
.ix-content { padding: 56px 0 80px; }
.ix-content .ix-container { max-width: 760px; }
.ix-content h1 { font-size: clamp(30px, 5vw, 44px); color: var(--ix-headline); }
.ix-entry { margin-bottom: 56px; }
.ix-entry__meta { color: var(--ix-text-muted); font-size: 14px; margin-bottom: 20px; }
.ix-entry__body { color: var(--ix-text); }
.ix-entry__body a { color: var(--ix-headline); }
.ix-entry__body input,
.ix-entry__body textarea,
.ix-entry__body select {
	max-width: 100%; padding: 10px 12px; border-radius: var(--ix-radius);
	border: 1px solid #d6dde3; font: 16px var(--ix-font-body);
}
.ix-entry__body blockquote {
	margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--ix-brand);
	color: var(--ix-text-muted);
}
.ix-entry__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.ix-entry__body th,
.ix-entry__body td { padding: 8px 12px; border: 1px solid var(--ix-line); }
.ix-entry__body pre { max-width: 100%; overflow-x: auto; padding: 16px; background: var(--ix-bg-raised); border-radius: var(--ix-radius); }
.ix-entry__body iframe,
.ix-entry__body video,
.ix-entry__body embed { max-width: 100%; }
.ix-pagination { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- Footer ---------- */
.ix-footer {
	border-top: 1px solid var(--ix-line);
	padding: 28px 0;
	font-size: 14px;
	color: var(--ix-text-muted);
}
.ix-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.ix-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.ix-footer a { display: inline-block; padding: 10px 0; color: var(--ix-text-muted); text-decoration: none; }
.ix-footer a:hover { color: var(--ix-text); }

/* ---------- Reveal animation ---------- */
.ix-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.ix-reveal.is-visible { opacity: 1; transform: none; }
.no-js .ix-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ix-reveal { opacity: 1; transform: none; transition: none; }
	.ix-btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.ix-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.ix-features__grid { grid-template-columns: 1fr; gap: 44px; }
	.ix-feature { grid-template-columns: 44px 1fr; gap: 16px; }
	.ix-feature__icon { width: 44px; height: 44px; }
	.ix-feature__icon svg { width: 22px; height: 22px; }
	.ix-hero__text { font-size: 17px; }
	.ix-waitlist .ix-btn { width: 100%; min-width: 0; }
	.ix-footer__inner { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
	.ix-steps__list { grid-template-columns: 1fr; }
	.ix-header__inner { height: 64px; padding: 0 16px; }
	.ix-logo__mark { width: 32px; height: 32px; }
	.ix-hero__text { font-size: 16px; }
	.ix-hero__modes { gap: 8px; }
	.ix-hero__modes li { padding: 5px 12px; }
	.ix-cta-row { padding: 36px 16px 56px; }
	.ix-cta-row .ix-btn { flex: 1 1 auto; }
	.ix-modal__panel { padding: 28px 20px 20px; }
}
@media (max-width: 360px) {
	.ix-menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ix-overlay__actions .ix-btn { flex: 1 1 100%; }
}

/* Phones in landscape: short screens. */
@media (max-height: 500px) and (orientation: landscape) {
	.ix-hero { padding: 40px 0; }
	.ix-overlay__body { gap: 20px; }
	.ix-overlay__nav ul { gap: 8px; }
	.ix-overlay__nav a { font-size: 22px; }
}

/* Large screens. */
@media (min-width: 1440px) {
	:root { --ix-max: 1200px; }
	body { font-size: 17px; }
	.ix-hero__text { max-width: 740px; font-size: 19px; }
}
