/* ==========================================================================
   Melted Media theme
   ========================================================================== */

:root {
	--mm-navy: #0b1c8f;
	--mm-blue: #2a3fd0;
	--mm-ink: #1d2a5c;
	--mm-muted: #3a4782;
	--mm-line: #dfe5fb;
	--mm-bg: #eef1fd;
	--mm-white: #ffffff;
	--mm-grad: radial-gradient(ellipse at 70% 40%, #f6f7ff 0%, #dfe5fb 35%, #b7c3ef 72%, #8d9fe0 100%);
	--mm-grad-soft: radial-gradient(ellipse at 50% 30%, #f6f7ff 0%, #dfe5fb 45%, #b7c3ef 100%);
	--mm-btn-grad: linear-gradient(180deg, #2a3fd0 0%, #0b1c8f 100%);
	--mm-shadow: 0 14px 34px rgba(40, 60, 160, 0.10);
	--mm-radius: 20px;
	--mm-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mm-display: "Space Grotesk", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--mm-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--mm-ink);
	background: var(--mm-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mm-navy); }
a:hover { color: var(--mm-blue); }

h1, h2, h3, h4 {
	font-family: var(--mm-display);
	color: var(--mm-navy);
	line-height: 1.15;
	margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.mm-skip {
	position: absolute; left: -9999px; top: 8px;
	background: var(--mm-white); padding: 8px 16px; border-radius: 8px; z-index: 100;
}
.mm-skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--mm-blue); outline-offset: 3px; }

/* Layout
   ========================================================================== */

.mm-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mm-section { padding-top: 88px; padding-bottom: 56px; }
.mm-section--tight { padding-top: 40px; padding-bottom: 72px; }
.mm-gradient { background: var(--mm-grad); }
.mm-gradient--soft { background: var(--mm-grad-soft); }
.mm-center { text-align: center; }
.mm-mt { margin-top: 32px; }

.mm-grid { display: grid; gap: 20px; }
.mm-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mm-grid--cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mm-grid--pricing { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }

.mm-split { display: flex; flex-wrap: wrap; gap: 24px; }
.mm-split > * { flex: 1 1 420px; min-width: 0; }

.mm-eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mm-muted);
}

/* Buttons and links
   ========================================================================== */

.mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border-radius: 999px;
	font-family: var(--mm-font);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mm-btn:hover { transform: translateY(-1px); }
.mm-btn--primary { background: var(--mm-btn-grad); color: var(--mm-white); box-shadow: 0 10px 24px rgba(11, 28, 143, 0.3); }
.mm-btn--primary:hover { color: var(--mm-white); box-shadow: 0 12px 28px rgba(11, 28, 143, 0.36); }
.mm-btn--ghost { background: rgba(255, 255, 255, 0.7); color: var(--mm-navy); border-color: rgba(255, 255, 255, 0.95); }
.mm-btn--light { background: var(--mm-white); color: var(--mm-navy); border-color: var(--mm-line); }
.mm-btn--small { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.mm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.mm-link, .mm-more { font-weight: 600; text-decoration: none; color: var(--mm-blue); }
.mm-more { font-size: 14px; margin-top: auto; }

/* Header
   ========================================================================== */

.mm-header { position: relative; z-index: 10; background: radial-gradient(ellipse at 60% 0%, #f6f7ff 0%, #e4e9fc 60%, #dfe5fb 100%); }
.mm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }

.mm-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mm-logo__mark {
	width: 44px; height: 44px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(160deg, #ffffff 0%, #cfe9ff 60%, #9fb2ee 100%);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 6px 16px rgba(40, 60, 160, 0.25);
	font-family: var(--mm-display); font-weight: 700; font-size: 26px; color: var(--mm-navy);
}
.mm-logo__text { font-family: "Courier New", monospace; font-size: 22px; color: var(--mm-navy); letter-spacing: 0.5px; }
.mm-logo__img { height: 52px; width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(40, 60, 160, 0.2)); }

.mm-nav { display: flex; align-items: center; gap: 24px; }
.mm-nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.mm-nav__list a { color: var(--mm-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.mm-nav__list a:hover, .mm-nav__list .current-menu-item > a { color: var(--mm-navy); }
.mm-nav__list .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }

.mm-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid var(--mm-line);
	border-radius: 12px;
	color: var(--mm-navy);
	cursor: pointer;
}

@media (max-width: 900px) {
	.mm-nav-toggle { display: inline-flex; }
	.mm-nav {
		display: none;
		position: absolute; left: 16px; right: 16px; top: 84px;
		flex-direction: column; align-items: stretch; gap: 8px;
		padding: 16px;
		background: var(--mm-white);
		border-radius: var(--mm-radius);
		box-shadow: 0 20px 40px rgba(40, 60, 160, 0.2);
	}
	.mm-nav.is-open { display: flex; }
	.mm-nav__list { flex-direction: column; gap: 0; }
	.mm-nav__list a { display: block; padding: 12px 8px; font-size: 17px; }
}

/* Hero
   ========================================================================== */

.mm-hero { overflow: hidden; }
.mm-hero__inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; padding-top: 48px; }
.mm-hero__text { flex: 1 1 480px; min-width: 0; padding-bottom: 72px; }
.mm-hero__lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 28px; }
.mm-hero__small { font-size: 14px; color: #2b3870; margin: 0; }
.mm-hero__visual { position: relative; flex: 0 1 520px; min-width: 280px; margin: 0 auto 64px; align-self: center; }
.mm-hero__visual--pair { padding: 0 0 70px 60px; }
.mm-browser { background: var(--mm-white); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(30, 45, 140, 0.25); border: 1px solid rgba(255, 255, 255, 0.9); }
.mm-browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: #f1f3fc; border-bottom: 1px solid var(--mm-line); }
.mm-browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #c5cdee; }
.mm-browser img { width: 100%; aspect-ratio: 1233 / 874; object-fit: cover; object-position: top; }
.mm-hero__visual--pair .mm-browser--2 { position: absolute; left: 0; bottom: 0; width: 62%; transform: rotate(-2deg); }
.mm-hero__visual--pair .mm-browser--1 { transform: rotate(1deg); }

/* Cards
   ========================================================================== */

.mm-card { border-radius: var(--mm-radius); padding: 28px; }
.mm-card p:last-child { margin-bottom: 0; }
.mm-card--glass { background: rgba(255, 255, 255, 0.7); border: 1px solid var(--mm-white); box-shadow: var(--mm-shadow); }
.mm-card--white { background: var(--mm-white); border: 1px solid var(--mm-line); padding: 36px; }
.mm-card--link {
	display: flex; flex-direction: column; gap: 4px;
	background: var(--mm-white); border: 1px solid var(--mm-line);
	color: var(--mm-ink); text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mm-card--link:hover { color: var(--mm-ink); transform: translateY(-2px); box-shadow: var(--mm-shadow); }
.mm-card--link h3 { margin-bottom: 4px; }
.mm-card--link p { font-size: 15px; }

/* Pricing
   ========================================================================== */

.mm-price {
	display: flex; flex-direction: column; gap: 10px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--mm-white);
	border-radius: 22px;
	padding: 32px;
}
.mm-price p { margin: 0; }
.mm-price__name { margin: 0; font-size: 1.3rem; }
.mm-price__amount { font-family: var(--mm-display); font-size: 2.4rem; font-weight: 700; color: var(--mm-navy); line-height: 1.1; }
.mm-price__amount small { font-size: 1rem; font-weight: 500; color: var(--mm-muted); }
.mm-price .mm-btn { margin-top: auto; align-self: flex-start; }
.mm-price--featured { background: linear-gradient(170deg, #2a3fd0 0%, #0b1c8f 100%); color: var(--mm-white); box-shadow: 0 20px 44px rgba(11, 28, 143, 0.35); border-color: transparent; }
.mm-price--featured .mm-price__name,
.mm-price--featured .mm-price__amount { color: var(--mm-white); }
.mm-price--featured .mm-price__amount small { color: var(--mm-line); }
.mm-price--featured .mm-ticks .mm-tick { color: #a9ffcf; }

.mm-ticks { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.mm-ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.mm-tick { margin-top: 4px; color: var(--mm-blue); }

/* Work cards
   ========================================================================== */

.mm-work-card {
	display: flex; flex-direction: column;
	background: var(--mm-white);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	overflow: hidden;
	color: var(--mm-ink);
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.mm-work-card:hover { color: var(--mm-ink); transform: translateY(-2px); box-shadow: var(--mm-shadow); }
.mm-work-card__media { aspect-ratio: 1233 / 874; padding: 14px 14px 0; background: linear-gradient(160deg, #eef1fd, #cdd6f5); overflow: hidden; }
.mm-work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 10px 10px 0 0; box-shadow: 0 6px 18px rgba(30, 45, 140, 0.18); }
.mm-work-card__placeholder { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 14px; color: #2b3870; padding: 16px; text-align: center; }
.mm-work-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex: 1; }
.mm-work-card__title { font-size: 1.1rem; margin: 0; }
.mm-work-card__body p { font-size: 14px; margin: 0; }
.mm-meta { font-size: 13px; color: var(--mm-muted); }

/* Quotes
   ========================================================================== */

.mm-quotes { display: grid; gap: 16px; }
.mm-quote {
	margin: 0;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--mm-white);
	border-radius: var(--mm-radius);
	padding: 28px;
	box-shadow: 0 14px 34px rgba(40, 60, 160, 0.08);
}
.mm-quote blockquote { margin: 0 0 12px; font-style: italic; }
.mm-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--mm-navy); }
.mm-quote__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.mm-quote--large { margin: 40px 0; padding: 36px; }
.mm-quote--large blockquote { font-size: 1.15rem; }

/* Page header, prose, case study
   ========================================================================== */

.mm-page-head { padding: 64px 0 56px; }
.mm-page-head .mm-actions { margin-top: 32px; }
.mm-page-head--photo { padding-bottom: 0; overflow: hidden; }
.mm-page-head__inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; }
.mm-page-head__text { flex: 1 1 480px; min-width: 0; }
.mm-page-head--photo .mm-page-head__text { padding-bottom: 56px; }
.mm-page-head__photo { flex: 0 1 340px; min-width: 220px; margin: 0 auto; }
.mm-page-head__photo img { width: 100%; max-width: 340px; filter: drop-shadow(0 18px 36px rgba(30, 45, 140, 0.25)); }
.mm-page-head h1 { margin-bottom: 12px; max-width: 900px; }
.mm-page-head__lead { font-size: 1.15rem; max-width: 680px; margin: 0; }

.mm-prose { max-width: 800px; }
.mm-prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mm-prose h3 { margin-top: 1.4em; }
.mm-prose ul, .mm-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.mm-prose li { margin-bottom: 0.4em; }
.mm-prose .mm-grid--pricing { margin: 0 0 48px; }
.mm-prose .mm-ticks { padding-left: 0; }
.mm-prose:has(.mm-grid--pricing) { max-width: none; }
.mm-prose:has(.mm-grid--pricing) > :not(.mm-grid--pricing) { max-width: 800px; }

.mm-case__shot img { width: 100%; }
.mm-case__shot { margin-bottom: 40px; border-radius: var(--mm-radius); overflow: hidden; border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow); }

/* Forms
   ========================================================================== */

.mm-form { display: grid; gap: 16px; max-width: 720px; margin: 8px 0 32px; }
.mm-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mm-field { display: grid; gap: 6px; }
.mm-field label { font-weight: 600; font-size: 15px; color: var(--mm-navy); }
.mm-field input,
.mm-field select,
.mm-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font: inherit;
	color: var(--mm-ink);
	background: var(--mm-white);
	border: 1px solid #b7c3ef;
	border-radius: 12px;
}
.mm-field input:focus, .mm-field select:focus, .mm-field textarea:focus { outline: none; border-color: var(--mm-blue); box-shadow: 0 0 0 3px rgba(42, 63, 208, 0.2); }
.mm-field.has-error input, .mm-field.has-error textarea { border-color: #b3261e; }
.mm-field__error { color: #b3261e; font-size: 14px; }
.mm-hp { position: absolute; left: -9999px; }
.mm-form .mm-btn { justify-self: start; }
.mm-form__status { margin: 0; font-weight: 600; }
.mm-form__status.is-error { color: #b3261e; }
.mm-form__status.is-success { color: #12703a; }

/* CTA and footer
   ========================================================================== */

.mm-cta__inner { max-width: 760px; text-align: center; padding-top: 88px; padding-bottom: 88px; }
.mm-cta__inner p { font-size: 1.1rem; margin-bottom: 28px; }

.mm-footer { background: var(--mm-navy); color: var(--mm-line); font-size: 14px; }
.mm-footer a { color: var(--mm-white); }
.mm-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.mm-footer__brand { max-width: 420px; }
.mm-footer__name { font-family: "Courier New", monospace; font-size: 20px; color: var(--mm-white); margin-bottom: 8px; }
.mm-footer__menu { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mm-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(223, 229, 251, 0.2); }
.mm-footer__legal p { margin: 0; }

.mm-pagination { margin-top: 40px; }
.mm-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--mm-white); text-decoration: none; }
.mm-pagination .current { background: var(--mm-navy); color: var(--mm-white); }

@media (max-width: 600px) {
	.mm-container { padding-left: 20px; padding-right: 20px; }
	.mm-section { padding-top: 56px; padding-bottom: 40px; }
	.mm-hero__text { padding-bottom: 32px; }
	.mm-card--white { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
