/**
 * N2N-AFE Homepage redesign — layout, motion, fintech visual system.
 */

/* ── Homepage header: glass overlay on hero ── */
body.home.n2n-site-modern #header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	background: transparent !important;
	box-shadow: none !important;
}

body.home.n2n-site-modern #header .header,
body.home.n2n-site-modern #header .header-wrapper,
body.home.n2n-site-modern #header .header-main {
	background: transparent !important;
	box-shadow: none !important;
}

body.home.n2n-site-modern #header .header-bg-color {
	background: linear-gradient(
		180deg,
		rgba(8, 18, 32, 0.82) 0%,
		rgba(8, 18, 32, 0.45) 70%,
		rgba(8, 18, 32, 0) 100%
	) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

body.home.n2n-site-modern #header .header.stuck,
body.home.n2n-site-modern #header .header.stuck .header-main {
	background: rgba(11, 22, 40, 0.94) !important;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22) !important;
}

body.home.n2n-site-modern #header .header.stuck .header-bg-color {
	background: rgba(11, 22, 40, 0.94) !important;
}

body.home.n2n-site-modern #logo {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
}

body.home.n2n-site-modern #main {
	padding-top: 0 !important;
}

#n2n-home {
	--n2n-navy: #0a2540;
	--n2n-blue: #004e97;
	--n2n-blue-bright: #0066c4;
	--n2n-blue-soft: #e8f2fa;
	--n2n-gold: #c9a227;
	--n2n-green: #00b37a;
	--n2n-text: #334155;
	--n2n-muted: #64748b;
	--n2n-bg: #f4f7fb;
	--n2n-radius: 16px;
	--n2n-shadow: 0 12px 40px rgba(10, 37, 64, 0.1);
}

#n2n-home .n2n-section {
	padding: 88px 0;
}

#n2n-home .n2n-section__eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--n2n-blue-soft);
	color: var(--n2n-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#n2n-home .n2n-section__head {
	max-width: 720px;
	margin-bottom: 48px;
}

#n2n-home .n2n-section__head h2 {
	margin: 0 0 12px;
	color: var(--n2n-navy);
	font-size: clamp(28px, 3.2vw, 42px);
	font-weight: 800;
	line-height: 1.15;
}

#n2n-home .n2n-section__head p {
	margin: 0;
	color: var(--n2n-muted);
	font-size: 18px;
	line-height: 1.7;
}

#n2n-home .n2n-section__head--light h2,
#n2n-home .n2n-section__head--light .n2n-section__eyebrow {
	color: #fff;
}

#n2n-home .n2n-section__head--light .n2n-section__eyebrow {
	background: rgba(255, 255, 255, 0.12);
}

#n2n-home .n2n-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#n2n-home .n2n-btn--primary {
	background: linear-gradient(135deg, #004e97 0%, #0066c4 100%);
	color: #fff !important;
	box-shadow: 0 8px 24px rgba(0, 78, 151, 0.28);
}

#n2n-home .n2n-btn--primary:hover {
	transform: translateY(-2px);
	background: var(--n2n-navy);
	color: #fff !important;
}

#n2n-home .n2n-btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff !important;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
}

#n2n-home .n2n-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff !important;
}

#n2n-home .n2n-btn--outline {
	border: 2px solid var(--n2n-blue);
	color: var(--n2n-blue) !important;
	background: transparent;
}

#n2n-home .n2n-btn--outline:hover {
	background: var(--n2n-blue-soft);
}

/* Hero */
#n2n-home .n2n-hero {
	position: relative;
	min-height: clamp(560px, 88vh, 900px);
	overflow: hidden;
	display: flex;
	align-items: center;
}

#n2n-home .n2n-hero__slides,
#n2n-home .n2n-hero__slide {
	position: absolute;
	inset: 0;
}

#n2n-home .n2n-hero__slide {
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.05);
	transition: opacity 1s ease, transform 6s ease;
}

#n2n-home .n2n-hero__slide.is-active {
	opacity: 1;
	transform: scale(1);
}

#n2n-home .n2n-hero__slide--fallback {
	background: linear-gradient(135deg, #0a2540 0%, #004e97 100%);
}

#n2n-home .n2n-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(10, 37, 64, 0.92) 0%, rgba(0, 78, 151, 0.72) 55%, rgba(0, 102, 196, 0.55) 100%);
	z-index: 1;
}

#n2n-home .n2n-hero__grid {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(0, 179, 122, 0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 179, 122, 0.12) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
}

#n2n-home .n2n-hero__content {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 40px;
	align-items: end;
	padding-top: 120px;
	padding-bottom: 80px;
}

#n2n-home .n2n-hero__badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(201, 162, 39, 0.45);
	background: rgba(201, 162, 39, 0.12);
	color: #f5d76e;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#n2n-home .n2n-hero__copy h1 {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(34px, 4.5vw, 58px);
	font-weight: 800;
	line-height: 1.1;
}

#n2n-home .n2n-hero__copy p {
	margin: 0 0 28px;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 18px;
	line-height: 1.75;
}

#n2n-home .n2n-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

#n2n-home .n2n-hero__metrics {
	display: grid;
	gap: 14px;
}

#n2n-home .n2n-hero__metric {
	padding: 18px 20px;
	border-radius: var(--n2n-radius);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
}

#n2n-home .n2n-hero__metric strong {
	display: block;
	color: var(--n2n-green);
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
}

#n2n-home .n2n-hero__metric span {
	display: block;
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
}

#n2n-home .n2n-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 28px;
	z-index: 4;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

#n2n-home .n2n-hero__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

#n2n-home .n2n-hero__dots button.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* About */
#n2n-home .n2n-about {
	background: #fff;
}

#n2n-home .n2n-about__grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 56px;
	align-items: center;
}

#n2n-home .n2n-about__media {
	position: relative;
}

#n2n-home .n2n-about__media img {
	width: 100%;
	border-radius: var(--n2n-radius);
	box-shadow: var(--n2n-shadow);
	object-fit: cover;
}

#n2n-home .n2n-about__exp {
	position: absolute;
	right: -12px;
	bottom: 24px;
	padding: 18px 22px;
	border-radius: 14px;
	background: linear-gradient(135deg, #004e97, #0066c4);
	color: #fff;
	box-shadow: var(--n2n-shadow);
}

#n2n-home .n2n-about__exp span {
	display: block;
	font-size: 13px;
	opacity: 0.85;
}

#n2n-home .n2n-about__exp strong {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}

#n2n-home .n2n-about__content h2 {
	margin: 0 0 16px;
	color: var(--n2n-navy);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 800;
}

#n2n-home .n2n-about__content > p {
	margin: 0 0 24px;
	color: var(--n2n-muted);
	line-height: 1.75;
}

#n2n-home .n2n-about__pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 28px;
}

#n2n-home .n2n-pillar-card {
	padding: 18px 14px;
	border-radius: 14px;
	border: 1px solid rgba(0, 78, 151, 0.1);
	background: var(--n2n-bg);
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#n2n-home .n2n-pillar-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--n2n-shadow);
}

#n2n-home .n2n-pillar-card__icon {
	width: 44px;
	height: 44px;
	margin: 0 auto 10px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--n2n-blue-soft);
	color: var(--n2n-blue);
	font-size: 20px;
}

#n2n-home .n2n-pillar-card h3 {
	margin: 0;
	font-size: 16px;
	color: var(--n2n-navy);
}

/* Timeline */
#n2n-home .n2n-timeline {
	background: var(--n2n-bg);
}

#n2n-home .n2n-timeline__track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

#n2n-home .n2n-timeline__item {
	position: relative;
}

#n2n-home .n2n-timeline__year {
	margin-bottom: 10px;
	color: var(--n2n-blue);
	font-size: 22px;
	font-weight: 800;
}

#n2n-home .n2n-timeline__card {
	height: 100%;
	padding: 22px 18px;
	border-radius: var(--n2n-radius);
	background: #fff;
	border: 1px solid rgba(0, 78, 151, 0.08);
	box-shadow: var(--n2n-shadow);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

#n2n-home .n2n-timeline__card:hover {
	transform: translateY(-6px);
	border-color: rgba(0, 78, 151, 0.22);
}

#n2n-home .n2n-timeline__icon {
	width: 42px;
	height: 42px;
	margin-bottom: 12px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #004e97, #0066c4);
	color: #fff;
	font-size: 20px;
}

#n2n-home .n2n-timeline__card p {
	margin: 0;
	color: var(--n2n-text);
	font-size: 15px;
	line-height: 1.55;
}

/* Products */
#n2n-home .n2n-products {
	background: #fff;
}

#n2n-home .n2n-products .product-item {
	border-radius: var(--n2n-radius);
	overflow: hidden;
	border: 1px solid rgba(0, 78, 151, 0.08);
	box-shadow: var(--n2n-shadow);
}

#n2n-home .n2n-products .product-item > a {
	display: flex;
	flex-direction: column;
	height: 100%;
}

#n2n-home .n2n-products .product-item img {
	width: 100%;
	height: 180px;
	object-fit: contain;
	object-position: center;
	padding: 12px 14px;
	background: linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
	border-bottom: 1px solid rgba(0, 78, 151, 0.06);
	box-sizing: border-box;
}

#n2n-home .n2n-products .product-item .product-info {
	padding: 16px 18px 18px;
}

#n2n-home .n2n-products .product-item .product-info h4 {
	font-size: 16px;
	line-height: 1.4;
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#n2n-home .n2n-products .product-item .product-info p {
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#n2n-home .n2n-products .product-carousel .owl-nav button {
	width: 44px;
	height: 44px;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--n2n-blue) !important;
	box-shadow: var(--n2n-shadow);
}

/* Choose */
#n2n-home .n2n-choose {
	background: var(--n2n-bg);
}

#n2n-home .n2n-choose__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}

#n2n-home .n2n-choose__content h2 {
	margin: 0 0 18px;
	color: var(--n2n-navy);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 800;
}

#n2n-home .n2n-choose__quote {
	margin: 0 0 22px;
	padding: 20px 22px;
	border-left: 4px solid var(--n2n-gold);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--n2n-shadow);
}

#n2n-home .n2n-choose__quote i {
	color: var(--n2n-gold);
	font-size: 22px;
}

#n2n-home .n2n-choose__quote p {
	margin: 10px 0 0;
	color: var(--n2n-text);
	line-height: 1.7;
}

#n2n-home .n2n-choose__list {
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

#n2n-home .n2n-choose__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--n2n-text);
}

#n2n-home .n2n-choose__list i {
	color: var(--n2n-green);
	margin-top: 2px;
}

#n2n-home .n2n-choose__media {
	position: relative;
}

#n2n-home .n2n-choose__media img {
	width: 100%;
	border-radius: var(--n2n-radius);
	box-shadow: var(--n2n-shadow);
	object-fit: cover;
}

#n2n-home .n2n-choose__badge {
	position: absolute;
	left: 20px;
	bottom: 20px;
	padding: 14px 18px;
	border-radius: 14px;
	background: rgba(10, 37, 64, 0.88);
	color: #fff;
	backdrop-filter: blur(8px);
}

#n2n-home .n2n-choose__badge strong {
	display: block;
	font-size: 28px;
	line-height: 1;
	color: var(--n2n-gold);
}

/* Stats */
#n2n-home .n2n-stats {
	position: relative;
	background: var(--n2n-navy);
	overflow: hidden;
}

#n2n-home .n2n-stats::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--n2n-stats-bg);
	background-size: cover;
	background-position: center;
	opacity: 0.18;
}

#n2n-home .n2n-stats__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 37, 64, 0.88), rgba(10, 37, 64, 0.95));
}

#n2n-home .n2n-stats .container {
	position: relative;
	z-index: 1;
}

#n2n-home .n2n-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

#n2n-home .n2n-stat-card {
	padding: 26px 20px;
	border-radius: var(--n2n-radius);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(8px);
	text-align: center;
}

#n2n-home .n2n-stat-card__icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 12px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(0, 179, 122, 0.15);
	color: var(--n2n-green);
	font-size: 22px;
}

#n2n-home .n2n-stat-card strong {
	display: block;
	color: var(--n2n-green);
	font-size: 36px;
	font-weight: 800;
	line-height: 1;
}

#n2n-home .n2n-stat-card p {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
}

/* Partners */
#n2n-home .n2n-partners {
	background: #fff;
	overflow: hidden;
}

#n2n-home .n2n-partners__track {
	display: flex;
	gap: 40px;
	width: max-content;
	animation: n2n-partner-marquee 28s linear infinite;
}

#n2n-home .n2n-partners__logo {
	flex: 0 0 auto;
	width: 160px;
	height: 72px;
	display: grid;
	place-items: center;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--n2n-bg);
}

#n2n-home .n2n-partners__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

#n2n-home .n2n-partners__logo:hover img {
	filter: grayscale(0);
	opacity: 1;
}

@keyframes n2n-partner-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* News */
#n2n-home .n2n-news {
	background: var(--n2n-bg);
}

#n2n-home .n2n-news .n2n-news-carousel .owl-stage {
	display: flex;
}

#n2n-home .n2n-news .n2n-news-carousel .owl-item {
	display: flex;
	height: auto;
}

#n2n-home .n2n-news .blog-item {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	border-radius: var(--n2n-radius);
	overflow: hidden;
	box-shadow: var(--n2n-shadow);
	border: 1px solid rgba(0, 78, 151, 0.08);
	background: #fff;
}

#n2n-home .n2n-news .blog-item > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

#n2n-home .n2n-news .bolg-thumb {
	position: relative;
	flex-shrink: 0;
	height: 200px;
	overflow: hidden;
	background: linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
}

#n2n-home .n2n-news .n2n-news-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

#n2n-home .n2n-news .bolg-thumb .blog-tag {
	position: absolute;
	left: 16px;
	top: 0;
	z-index: 2;
	height: 30px;
	padding: 0 14px;
	line-height: 30px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 0 0 8px 8px;
	background: linear-gradient(135deg, #004e97, #0066c4) !important;
}

#n2n-home .n2n-news .blog-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 20px 20px;
}

#n2n-home .n2n-news .content-blog-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-bottom: 10px;
	font-size: 12px;
	color: #7d7f85;
}

#n2n-home .n2n-news .blog-info h4 {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--n2n-navy);
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#n2n-home .n2n-news .blog-info p {
	flex: 1;
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
	color: #5a6472;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#n2n-home .n2n-news .blog-view {
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--n2n-blue);
}

#n2n-home .n2n-news .blog-item a:hover h4,
#n2n-home .n2n-news .blog-item a:hover .blog-view {
	color: var(--n2n-red);
}

#n2n-home .n2n-news .product-carousel .owl-nav button {
	width: 44px;
	height: 44px;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--n2n-blue) !important;
	box-shadow: var(--n2n-shadow);
}

#n2n-home .n2n-news__cta {
	margin-top: 32px;
	text-align: center;
}

/* Reveal animation */
#n2n-home .n2n-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

#n2n-home .n2n-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 991px) {
	#n2n-home .n2n-hero__content,
	#n2n-home .n2n-about__grid,
	#n2n-home .n2n-choose__grid {
		grid-template-columns: 1fr;
	}

	#n2n-home .n2n-timeline__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#n2n-home .n2n-stats__grid,
	#n2n-home .n2n-about__pillars {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	#n2n-home .n2n-section {
		padding: 64px 0;
	}

	#n2n-home .n2n-timeline__track,
	#n2n-home .n2n-stats__grid,
	#n2n-home .n2n-about__pillars {
		grid-template-columns: 1fr;
	}

	#n2n-home .n2n-hero__content {
		padding-top: 100px;
		padding-bottom: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#n2n-home .n2n-reveal,
	#n2n-home .n2n-hero__slide,
	#n2n-home .n2n-partners__track {
		animation: none !important;
		transition: none !important;
	}
}
