/* =========================================================
   MeiYaMei Classic Corp — main styles
   ========================================================= */

:root {
	--brand: #65bc7b;
	--brand-dark: #4fa565;
	--ink: #1c1c1c;
	--body: #333333;
	--muted: #6b6b6b;
	--line: #e5e5e5;
	--soft: #f4f6f4;
	--white: #ffffff;
	--slab: 'Roboto Slab', Georgia, serif;
	--sans: 'Roboto', Arial, sans-serif;
	--inter: 'Inter', Arial, sans-serif;
	--container: 1210px;
}

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

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--white);
	color: var(--body);
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.72;
	letter-spacing: .2px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration: none; transition: color .25s; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
	margin: 0 0 18px;
	font-family: var(--slab);
	color: var(--ink);
	font-weight: 300;
	line-height: 1.35;
	text-transform: capitalize;
}
h1 { font-size: 45px; }
h2 { font-size: 42px; }
h3 { font-size: 25px; }
h4 { font-size: 18px; font-family: var(--inter); font-weight: 500; }
p { margin: 0 0 20px; }
ul { margin: 0 0 20px; padding: 0; list-style: none; }

.cc-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

svg { width: 20px; height: 20px; flex: 0 0 auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 0; }

.cc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 34px;
	background: var(--brand);
	color: #fff;
	border: 2px solid var(--brand);
	border-radius: 3px;
	font-family: var(--inter);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .4px;
	text-transform: capitalize;
	cursor: pointer;
	line-height: 1.2;
	transition: all .3s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white:hover { background: transparent; color: #fff; }

.btn--sm { padding: 12px 24px; font-size: 13px; }

.eyebrow {
	margin: 0 0 14px;
	color: var(--brand);
	font-family: var(--inter);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--inter);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
}
.link-more svg { width: 15px; height: 15px; transition: transform .3s; }
.link-more:hover svg { transform: translateX(5px); }

.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.checklist svg { margin-top: 5px; color: var(--brand); width: 18px; height: 18px; }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 30px; min-height: 90px; }
.site-logo img { width: auto; height: 44px; max-width: none; }

.mainnav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.mainnav__list { display: flex; gap: 28px; margin: 0; }
.mainnav__item > a { display: block; padding: 10px 0; color: var(--ink); font-size: 16px; }
.mainnav__item > a:hover, .mainnav__item.is-current > a { color: var(--brand); }

.header-cta { padding: 13px 26px; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; margin-left: auto; background: transparent; border: 1px solid #cfcfcf; border-radius: 3px; cursor: pointer; position: relative; z-index: 95; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: all .3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-overlay { position: fixed; inset: 0; background: rgba(20, 24, 20, .5); opacity: 0; visibility: hidden; transition: all .3s; z-index: 55; }
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---------- hero ---------- */

.hero { position: relative; color: #fff; padding: 0; background-size: cover; background-position: center; overflow: hidden; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(152deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .35) 70%); }
.hero-in { position: relative; z-index: 1; padding: 110px 20px 150px; max-width: 760px; }
.hero h1 { color: #fff; font-size: 60px; font-weight: 300; line-height: 1.2; }
.hero-text { color: rgba(255, 255, 255, .88); font-size: 22px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }

/* ---------- software ---------- */

.software { padding: 100px 0 110px; background: var(--white); }
.sec-head { max-width: 780px; margin-bottom: 50px; }
.sec-head--row { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: none; }

.software-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: start; }

.feat { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feat__num { font-family: var(--slab); font-size: 40px; font-weight: 300; color: var(--brand); line-height: 1; padding-top: 4px; }
.feat h3 { margin: 0 0 8px; }
.feat p { margin: 0; }

.post-card { background: #fff; border: 1px solid var(--line); }
.post-card img { width: 100%; height: 300px; object-fit: cover; }
.post-card__in { padding: 28px 30px 34px; }
.post-card__in h3 { margin-bottom: 10px; font-size: 27px; }
.post-card .btn { margin-top: 8px; }

.post-meta { margin: 0 0 10px; color: var(--muted); font-family: var(--inter); font-size: 13px; letter-spacing: .02em; }

/* ---------- cta band ---------- */

.cta-band { position: relative; background-size: cover; background-position: center; padding: 120px 0; color: #fff; }
.cta-band__veil { position: absolute; inset: 0; background: linear-gradient(rgba(101, 188, 123, .72), rgba(65, 155, 88, .88)); }
.cta-band__in { position: relative; z-index: 1; text-align: center; max-width: 860px; }
.cta-band h2 { color: #fff; font-size: 55px; }
.cta-band p { color: rgba(255, 255, 255, .92); font-size: 22px; margin-bottom: 30px; }

/* ---------- why ---------- */

.why { padding: 100px 0 110px; background: var(--soft); }
.why-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; max-width: 860px; margin-bottom: 46px; }
.why-head p { margin: 0; }
.why-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; }
.why-card { position: relative; min-height: 380px; background-size: cover; background-position: center; overflow: hidden; }
.why-card--big { min-height: 380px; }
.why-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 12, .2) 0%, rgba(10, 20, 12, .85) 100%); }
.why-card__in { position: relative; z-index: 1; padding: 40px; color: #fff; }
.why-card__in h3 { color: #fff; font-size: 30px; margin-bottom: 18px; }
.why-card__in a { color: #fff; }
.why-card__in .link-more { color: #fff; font-size: 16px; }

/* ---------- team ---------- */

.team { padding: 100px 0 110px; background: #fff; }
.team--page { padding-top: 60px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { border: 1px solid var(--line); background: #fff; }
.team-card img { width: 100%; height: 246px; object-fit: cover; }
.team-card__in { padding: 22px 24px 26px; }
.team-card__in h3 { margin: 0 0 4px; font-size: 22px; }
.team-card__in p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- split ---------- */

.split { padding: 100px 0; background: #fff; }
.split--soft { background: var(--soft); }
.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-media img { width: 100%; height: 430px; object-fit: cover; }
.split-text h2 { font-size: 40px; }

/* ---------- people ---------- */

.people { padding: 100px 0 110px; background: #fff; }
.people-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.people-media img { width: 100%; height: 560px; object-fit: cover; }
.people-sub { margin-top: 26px; font-size: 34px; }

/* ---------- news ---------- */

.news { padding: 96px 0 110px; background: var(--soft); }
.news--page { padding-top: 40px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: #fff; border: 1px solid var(--line); padding-bottom: 26px; }
.news-card__media img { width: 100%; height: 234px; object-fit: cover; }
.news-card h3 { font-size: 20px; margin: 18px 22px 8px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--brand); }
.news-card > p { margin: 0 22px 12px; font-size: 15px; }
.news-card .link-more, .news-card .post-meta { margin: 0 22px; }

/* ---------- final ---------- */

.final { padding: 100px 0 110px; background: #fff; }
.final-in { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.final-media img { width: 100%; height: 380px; object-fit: cover; }

/* ---------- page hero / body ---------- */

.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 90px 0; }
.page-hero .eyebrow { color: var(--brand); }
.page-hero h1 { max-width: 800px; }
.page-body { padding: 80px 0 100px; }
.page-body__in { max-width: 900px; }
.page-body--narrow { max-width: 760px; }
.page-body h2 { font-size: 34px; }

.invest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.invest-card { background: #fff; border: 1px solid var(--line); padding: 30px; }
.invest-card img { width: 100%; height: 220px; object-fit: contain; }
.invest-card h3 { font-size: 22px; margin: 16px 0 6px; }
.invest-card p { margin: 0; font-size: 15px; }

/* ---------- contact ---------- */

.contact { padding: 90px 0 100px; }
.contact-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item h4 { margin: 0 0 6px; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.contact-item p { margin: 0; }

.contact-form-wrap { background: var(--soft); padding: 44px; border-top: 3px solid var(--brand); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cf-field { margin-bottom: 20px; }
.cf-field label { display: block; margin-bottom: 6px; font-family: var(--inter); font-size: 13px; font-weight: 500; color: var(--ink); }
.cf-field input, .cf-field textarea { width: 100%; padding: 13px 16px; background: #fff; border: 1px solid #d8d8d8; border-radius: 2px; font-family: var(--sans); font-size: 16px; color: var(--ink); }
.cf-field input:focus, .cf-field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.flash { padding: 16px 20px; margin-bottom: 24px; font-size: 15px; font-weight: 400; }
.flash--ok { background: #e9f7ef; color: #1d6b3c; border-left: 3px solid var(--brand); }
.flash--err { background: #fdecea; color: #a12c22; border-left: 3px solid #d1443a; }

/* ---------- footer ---------- */

.site-footer { background: #1f2420; color: #cfcfcf; padding-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .8fr 1.3fr; gap: 46px; padding-bottom: 56px; }
.footer-logo { height: 40px; width: auto; max-width: none; margin-bottom: 18px; }
.footer-contact { font-size: 16px; line-height: 1.9; margin: 0; }
.footer-contact a { color: #fff; }
.footer-col h4 { color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #b9bcb9; font-size: 15px; }
.footer-col a:hover { color: var(--brand); }

.subscribe-form { display: flex; gap: 0; max-width: 360px; }
.subscribe-form input[type="email"] { flex: 1 1 auto; min-width: 0; padding: 13px 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-family: var(--sans); font-size: 15px; border-radius: 3px 0 0 3px; }
.subscribe-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .5); }
.subscribe-form button { padding: 0 18px; background: var(--brand); color: #fff; border: 0; border-radius: 0 3px 3px 0; cursor: pointer; }
.subscribe-form button:hover { background: var(--brand-dark); }

.footer-bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0; }
.footer-bar p { margin: 0; color: #8f9491; font-size: 13px; }

.scroll-top { position: fixed; right: 26px; bottom: 26px; display: none; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--brand); color: #fff; border: 0; border-radius: 3px; cursor: pointer; z-index: 40; }
.scroll-top svg { transform: rotate(-90deg); }
.scroll-top.is-visible { display: inline-flex; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
	h1, .hero h1 { font-size: 40px; }
	h2 { font-size: 34px; }
	.hero-in { padding: 80px 20px 100px; }
	.nav-toggle { display: block; }
	.mainnav {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 70;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 340px;
		max-width: 86vw;
		height: 100vh;
		padding: 96px 30px 30px;
		background: #fff;
		border-left: 1px solid var(--line);
		overflow-y: auto;
		box-shadow: -18px 0 40px rgba(0, 0, 0, .12);
	}
	body.nav-open .mainnav { display: flex; }
	body.nav-open .site-header { z-index: 80; }
	body.nav-open .site-header .site-header__in { position: relative; }
	.mainnav__list { flex-direction: column; gap: 0; }
	.mainnav__item { border-bottom: 1px solid var(--line); }
	.mainnav__item > a { padding: 15px 0; font-size: 17px; color: var(--ink) !important; }
	.header-cta { margin-top: 24px; align-self: flex-start; }
	.software-grid, .split-in, .people-in, .final-in { grid-template-columns: 1fr; gap: 40px; }
	.why-grid { grid-template-columns: 1fr; }
	.team-grid, .news-grid, .invest-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contact-in { grid-template-columns: 1fr; gap: 44px; }
	.split-media img, .people-media img { height: 360px; }
}

@media (max-width: 720px) {
	h1, .hero h1 { font-size: 31px; }
	h2 { font-size: 27px; }
	h3 { font-size: 21px; }
	.page-hero { padding: 60px 0; }
	.software, .why, .team, .split, .people, .news, .final { padding: 70px 0; }
	.cta-band { padding: 80px 0; }
	.cta-band h2 { font-size: 32px; }
	.team-grid, .news-grid, .invest-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 34px; }
	.cf-row { grid-template-columns: 1fr; }
	.contact-form-wrap { padding: 28px 22px; }
	.subscribe-form { max-width: none; }
	.why-card__in { padding: 26px; }
	.why-card__in h3 { font-size: 24px; }
	.people-media img, .split-media img, .final-media img { height: 260px; }
	.sec-head--row { flex-direction: column; align-items: flex-start; gap: 12px; }
	.why-head { flex-direction: column; align-items: flex-start; }
	.page-body { padding: 60px 0 70px; }
	.hero-in { padding: 70px 20px 90px; }
}
