/* ==========================================================================
   Thi Nguyễn — Design tokens
   ========================================================================== */
:root {
	--tn-bg: #F5F6FB;
	--tn-card: #FFFFFF;
	--tn-border: rgba(18, 19, 28, .07);
	--tn-border-strong: rgba(18, 19, 28, .08);
	--tn-text: #12131C;
	--tn-text-secondary: #565869;
	--tn-text-muted: #9A9BAD;
	--tn-text-mid: #3A3B4A;
	--tn-blue: #3B6BF6;
	--tn-purple: #8B5CF6;
	--tn-gradient: linear-gradient(120deg, var(--tn-blue), var(--tn-purple));
	--tn-purple-light: #C4B5FD;
	--tn-purple-light2: #A78BFA;
	--tn-dark: #101223;
	--tn-dark-overlay: rgba(16, 18, 35, .9);
	--tn-success: #22C55E;
	--tn-zalo: #0068FF;
	--tn-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', 'Be Vietnam Pro', Arial, sans-serif;
	--tn-mono: ui-monospace, Menlo, monospace;
	--tn-max: 1280px;
	--tn-pad-x: 64px;
	--tn-pad-y: 88px;
	--tn-shadow-card: 0 12px 36px rgba(18, 19, 28, .05);
	--tn-shadow-card-hover: 0 22px 48px rgba(18, 19, 28, .1);
}

/* ==========================================================================
   Reset tối thiểu
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--tn-bg);
	color: var(--tn-text);
	font-family: var(--tn-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--tn-text-muted); }

.tn-container {
	max-width: var(--tn-max);
	margin: 0 auto;
	padding: 0 var(--tn-pad-x);
}
.tn-section { padding: 0 0 var(--tn-pad-y); }
.tn-section__head { text-align: center; margin-bottom: 46px; }
.tn-section__head--split { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; margin-bottom: 40px; }
.tn-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--tn-purple); margin-bottom: 12px; }
.tn-eyebrow--light { color: var(--tn-purple-light2); }
.tn-h2 { font-size: 44px; font-weight: 700; letter-spacing: -.02em; }
.tn-section__desc { font-size: 16px; color: var(--tn-text-secondary); line-height: 1.7; max-width: 560px; margin: 16px auto 0; }
.tn-link-gradient {
	font-size: 14.5px; font-weight: 600; text-decoration: none;
	background: var(--tn-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tn-chip {
	font-size: 12px; font-weight: 600; padding: 6px 13px; background: var(--tn-bg);
	border: 1px solid var(--tn-border); border-radius: 999px; color: var(--tn-text-mid);
	transition: border-color .25s, color .25s; cursor: default; display: inline-block;
}
.tn-chip:hover { border-color: var(--tn-purple); color: var(--tn-purple); }
.tn-check { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.tn-check--sm { width: 17px; height: 17px; background: var(--tn-gradient); color: #fff; font-size: 10px; }
.tn-dot-online { width: 7px; height: 7px; border-radius: 50%; background: var(--tn-success); display: inline-block; }
.tn-dot-purple { width: 7px; height: 7px; border-radius: 50%; background: var(--tn-purple); display: inline-block; }

/* Buttons */
.tn-btn {
	display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
	font-size: 15px; font-weight: 600; border-radius: 14px; padding: 16px 32px;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tn-btn--zalo { background: var(--tn-zalo); color: #fff; box-shadow: 0 12px 28px rgba(0,104,255,.3); }
.tn-btn--zalo:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,104,255,.38); }
.tn-btn__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.tn-btn--outline { background: var(--tn-card); border: 1.5px solid var(--tn-border-strong); color: var(--tn-text); padding: 15px 30px; }
.tn-btn--outline:hover { border-color: var(--tn-purple); transform: translateY(-3px); }
.tn-btn--gradient { background: var(--tn-gradient); color: #fff; box-shadow: 0 8px 20px rgba(99,91,246,.3); }
.tn-btn--gradient:hover { transform: translateY(-2px); }
.tn-btn--pill { border-radius: 999px; }
.tn-btn--sm { padding: 11px 24px; font-size: 13.5px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.tn-nav { padding: 20px var(--tn-pad-x) 0; position: sticky; top: 0; z-index: 40; }
.tn-nav__inner {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--tn-card); border: 1px solid var(--tn-border-strong); border-radius: 999px;
	padding: 12px 14px 12px 26px; box-shadow: 0 6px 22px rgba(18,19,28,.06);
}
.tn-nav__logo { display: flex; align-items: center; text-decoration: none; }
.tn-nav__logo-img { display: block; height: 40px; width: auto; }
.tn-nav__menu { display: flex; gap: 30px; font-size: 14px; color: var(--tn-text-secondary); font-weight: 500; list-style: none; margin: 0; padding: 0; }
.tn-nav__menu a { text-decoration: none; transition: color .2s; }
.tn-nav__menu a:hover { color: var(--tn-blue); }
.tn-nav__toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.tn-nav__toggle span { width: 20px; height: 2px; background: var(--tn-text); border-radius: 2px; }
.tn-nav__menu-mobile { display: none; list-style: none; margin: 10px 0 0; padding: 16px 20px; background: var(--tn-card); border: 1px solid var(--tn-border-strong); border-radius: 20px; flex-direction: column; gap: 14px; }
.tn-nav__menu-mobile a { text-decoration: none; color: var(--tn-text-secondary); font-weight: 500; }

/* ==========================================================================
   HERO
   ========================================================================== */
.tn-hero { position: relative; overflow: hidden; padding: 84px var(--tn-pad-x) 96px; text-align: center; }
.tn-hero__orb { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(8px); animation: dcOrb 10s ease-in-out infinite; }
.tn-hero__orb--a { top: -140px; left: 120px; background: radial-gradient(circle, rgba(59,107,246,.16), transparent 62%); }
.tn-hero__orb--b { top: -80px; right: 80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(139,92,246,.15), transparent 62%); animation-duration: 12s; animation-direction: reverse; }
.tn-hero__inner { position: relative; }
.tn-badge {
	display: inline-flex; align-items: center; gap: 9px; background: var(--tn-card);
	border: 1px solid var(--tn-border-strong); border-radius: 999px; padding: 8px 18px;
	font-size: 13px; font-weight: 600; color: var(--tn-text-secondary); box-shadow: 0 4px 14px rgba(18,19,28,.05);
}
.tn-hero__deco { position: absolute; pointer-events: none; }
.tn-hero__deco--ring { top: 190px; left: 8px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(59,107,246,.3); }
.tn-hero__deco--sq { top: 80px; right: 30px; width: 14px; height: 14px; border-radius: 4px; background: var(--tn-gradient); opacity: .55; }
.tn-hero__deco--ring2 { top: 430px; right: -6px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(139,92,246,.35); }
.tn-hero__title { font-size: 62px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; margin: 28px auto 6px; max-width: 860px; }
.tn-hero__typing {
	font-size: 54px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em;
	background: var(--tn-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	min-height: 66px;
}
.tn-hero__cursor { display: inline-block; width: 3px; height: 44px; background: var(--tn-purple); margin-left: 6px; vertical-align: -6px; animation: dcBlink 1s steps(1) infinite; }
.tn-hero__cursor--sm { width: 2px; height: 14px; background: var(--tn-purple-light); margin-left: 4px; vertical-align: -2px; }
.tn-hero__desc { font-size: 17px; line-height: 1.75; color: var(--tn-text-secondary); max-width: 580px; margin: 20px auto 36px; }
.tn-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tn-hero__mockup { position: relative; max-width: 940px; margin: 64px auto 0; }
.tn-hero__mockup-desktop {
	background: var(--tn-card); border: 1px solid var(--tn-border-strong); border-radius: 24px;
	box-shadow: 0 40px 90px rgba(18,19,28,.16); overflow: hidden; margin-right: 110px;
}
.tn-hero__mockup-desktop img, .tn-hero__placeholder { width: 100%; height: 440px; object-fit: cover; }
.tn-hero__placeholder {
	display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg,#EEF0F8 0 12px,#F7F8FC 12px 24px);
	font-size: 13px; color: var(--tn-text-muted); text-align: center; padding: 0 20px;
}
.tn-hero__mockup-mobile {
	position: absolute; right: 0; bottom: -36px; width: 204px; background: var(--tn-text); border-radius: 34px;
	padding: 9px; box-shadow: 0 30px 70px rgba(18,19,28,.3); animation: dcFloatB 7s ease-in-out infinite;
}
.tn-hero__mockup-mobile-bar { display: flex; justify-content: center; padding: 5px 0 8px; }
.tn-hero__mockup-mobile-bar::before { content: ''; width: 56px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.25); }
.tn-hero__mockup-mobile img, .tn-hero__placeholder--mobile { width: 100%; height: 356px; border-radius: 26px; object-fit: cover; }
.tn-hero__placeholder--mobile { font-size: 12px; }
.tn-hero__float {
	position: absolute; background: var(--tn-card); border: 1px solid var(--tn-border-strong); border-radius: 16px;
	box-shadow: 0 18px 44px rgba(18,19,28,.14); padding: 16px 20px; text-align: left; animation: dcFloat 6.5s ease-in-out infinite;
}
.tn-hero__float--stat { top: 36px; left: -46px; }
.tn-hero__float-value { font-size: 22px; font-weight: 700; color: var(--tn-success); letter-spacing: -.01em; }
.tn-hero__float-label { font-size: 12px; color: var(--tn-text-muted); margin-top: 2px; }
.tn-hero__float--ai {
	top: -24px; right: 150px; border-radius: 999px; display: flex; align-items: center; gap: 10px;
	padding: 12px 20px; animation: dcFloat 7.5s ease-in-out 1.2s infinite; font-size: 13px; font-weight: 600;
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.tn-marquee { overflow: hidden; padding: 10px 0 4px; }
.tn-marquee__track { display: flex; gap: 14px; width: max-content; animation: dcMarquee 26s linear infinite; }
.tn-marquee__chip {
	font-size: 12px; font-weight: 600; letter-spacing: 1px;
	background: rgba(255,255,255,.6); border: 1px solid; border-radius: 999px; padding: 7px 16px; white-space: nowrap;
	transition: transform .25s;
}
.tn-marquee__chip:nth-child(4n+1) { border-color: #3B6BF6; color: #3B6BF6; }
.tn-marquee__chip:nth-child(4n+2) { border-color: #8B5CF6; color: #8B5CF6; }
.tn-marquee__chip:nth-child(4n+3) { border-color: #16A34A; color: #16A34A; }
.tn-marquee__chip:nth-child(4n) { border-color: #D97706; color: #D97706; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.tn-services { padding-top: 88px; }
.tn-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tn-service-card {
	background: var(--tn-card); border: 1px solid var(--tn-border); border-radius: 22px; padding: 34px 32px;
	transition: transform .35s, box-shadow .35s;
}
.tn-service-card:hover { transform: translateY(-6px); box-shadow: var(--tn-shadow-card-hover); }
.tn-service-card--feature {
	grid-column: span 2; background: var(--tn-gradient); border-radius: 22px; padding: 38px 40px; color: #fff;
	position: relative; overflow: hidden; border: none;
}
.tn-service-card--feature:hover { box-shadow: 0 26px 56px rgba(99,91,246,.35); }
.tn-service-card__blob { position: absolute; top: -60px; right: -40px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.1); }
.tn-service-card__title { font-size: 28px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; position: relative; }
.tn-service-card__title--sm { font-size: 21px; letter-spacing: -.01em; margin-bottom: 10px; }
.tn-service-card__desc { font-size: 15px; line-height: 1.75; opacity: .92; max-width: 480px; margin-bottom: 22px; position: relative; }
.tn-service-card__desc--sm { font-size: 14px; line-height: 1.7; color: var(--tn-text-secondary); opacity: 1; margin-bottom: 0; }
.tn-service-card__desc--muted { color: rgba(255,255,255,.6); }
.tn-service-card__bullets { display: flex; flex-direction: column; gap: 9px; font-size: 14px; position: relative; }
.tn-service-card__bullet { display: flex; align-items: center; gap: 10px; }
.tn-service-card__icon {
	width: 44px; height: 44px; border-radius: 14px; background: var(--tn-gradient); margin-bottom: 20px;
	display: flex; align-items: center; justify-content: center;
}
.tn-service-card__icon--1::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; }
.tn-service-card__icon--2::before { content: ''; width: 14px; height: 14px; background: #fff; border-radius: 4px; }
.tn-service-card__icon--3::before { content: ''; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid #fff; }
.tn-service-card--dark { background: var(--tn-text); color: #fff; display: flex; flex-direction: column; justify-content: space-between; border: none; }
.tn-service-card--dark:hover { transform: translateY(-6px); box-shadow: none; }
.tn-service-card__cta {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14.5px; font-weight: 600; color: #fff;
	text-decoration: none; background: var(--tn-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	transition: gap .25s;
}
.tn-service-card__cta:hover { gap: 14px; }

/* ==========================================================================
   AI SECTION
   ========================================================================== */
.tn-ai__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tn-ai__feature {
	grid-column: span 3; background: var(--tn-dark); border-radius: 22px; padding: 40px 44px; color: #fff;
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center;
}
.tn-ai__feature-orb { position: absolute; top: -100px; right: 10%; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.3), transparent 62%); animation: dcOrb 9s ease-in-out infinite; }
.tn-ai__feature-deco { position: absolute; bottom: 26px; left: 46%; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(167,139,250,.4); pointer-events: none; }
.tn-ai__feature-deco2 { position: absolute; top: 22px; left: 40%; width: 12px; height: 12px; border-radius: 3px; background: var(--tn-purple); opacity: .5; pointer-events: none; }
.tn-ai__feature-text { position: relative; }
.tn-tag-outline {
	display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
	padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--tn-purple-light); margin-bottom: 18px;
}
.tn-ai__feature-title { font-size: 30px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 14px; }
.tn-ai__feature-desc { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.65); max-width: 480px; }
.tn-ai__chat {
	position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
	padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.tn-ai__chat-row { display: flex; gap: 10px; align-items: flex-start; }
.tn-ai__chat-row--user { justify-content: flex-end; }
.tn-ai__chat-avatar {
	flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tn-gradient); display: flex;
	align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.tn-ai__chat-bubble { background: rgba(255,255,255,.1); border-radius: 4px 14px 14px 14px; padding: 11px 15px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.9); }
.tn-ai__chat-bubble--user { background: var(--tn-zalo); border-radius: 14px 4px 14px 14px; max-width: 75%; color: #fff; }
.tn-ai-card { background: var(--tn-card); border: 1px solid var(--tn-border); border-radius: 22px; padding: 34px 32px; transition: transform .35s, box-shadow .35s; }
.tn-ai-card:hover { transform: translateY(-6px); box-shadow: var(--tn-shadow-card-hover); }
.tn-ai-card__glyph {
	width: 44px; height: 44px; border-radius: 14px; background: rgba(139,92,246,.12); margin-bottom: 20px;
	display: flex; align-items: center; justify-content: center; color: var(--tn-purple);
}
.tn-ai-card__glyph svg { display: block; }
.tn-ai-card__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.tn-ai-card__desc { font-size: 14px; line-height: 1.7; color: var(--tn-text-secondary); }

/* ==========================================================================
   STATS
   ========================================================================== */
.tn-stats { padding: 0 0 84px; }
.tn-stats__panel {
	position: relative; overflow: hidden; background: var(--tn-gradient); border-radius: 26px;
	padding: 56px 44px; box-shadow: 0 26px 60px rgba(99,91,246,.28);
}
.tn-stats__panel-orb {
	position: absolute; top: -120px; left: 6%; width: 320px; height: 320px; border-radius: 50%;
	background: rgba(255,255,255,.14); animation: dcOrb 10s ease-in-out infinite;
}
.tn-stats__panel-deco {
	position: absolute; bottom: -100px; right: 8%; width: 240px; height: 240px; border-radius: 50%;
	background: rgba(255,255,255,.1); animation: dcOrb 12s ease-in-out infinite reverse;
}
.tn-stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.tn-stats__item { text-align: center; padding: 0 20px; border-left: 1px solid rgba(255,255,255,.3); }
.tn-stats__item:first-child { border-left: none; }
.tn-stats__icon {
	width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.18); color: #fff;
	display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.tn-stats__value { font-size: 48px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.tn-stats__label { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 6px; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.tn-process__wrap { position: relative; padding-top: 12px; }
.tn-process__line {
	position: absolute; top: 35px; left: 12%; right: 12%; height: 3px; border-radius: 999px;
	background: linear-gradient(90deg, var(--tn-blue), var(--tn-purple), var(--tn-blue)); background-size: 200% 100%;
	animation: dcFlow 3.5s linear infinite;
}
.tn-process__deco { position: absolute; pointer-events: none; }
.tn-process__deco--a { top: -34px; right: -8px; width: 90px; height: 90px; border-radius: 50%; border: 2px solid rgba(59,107,246,.22); }
.tn-process__deco--b { top: 60px; left: -16px; width: 14px; height: 14px; border-radius: 4px; background: var(--tn-gradient); opacity: .5; }
.tn-process__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tn-process__step { text-align: center; }
.tn-process__node {
	width: 48px; height: 48px; border-radius: 50%; background: var(--tn-gradient); color: #fff; display: flex;
	align-items: center; justify-content: center; font-size: 16px; font-weight: 700; margin: 0 auto;
	border: 5px solid var(--tn-bg); animation: dcPulse 2.8s ease-out infinite;
}
.tn-process__card {
	position: relative; margin-top: 20px; background: var(--tn-card); border: 1px solid var(--tn-border); border-radius: 18px;
	padding: 24px 22px; text-align: left; overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s;
}
.tn-process__card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(18,19,28,.12); border-color: rgba(139,92,246,.45); }
.tn-process__ghost {
	position: absolute; top: -16px; right: 4px; font-size: 76px; font-weight: 800; letter-spacing: -.04em;
	background: linear-gradient(120deg, rgba(59,107,246,.12), rgba(139,92,246,.16)); -webkit-background-clip: text;
	background-clip: text; -webkit-text-fill-color: transparent; pointer-events: none;
}
.tn-process__time {
	display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--tn-blue);
	background: rgba(59,107,246,.09); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; position: relative;
}
.tn-process__title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 9px; position: relative; }
.tn-process__desc { font-size: 13.5px; color: var(--tn-text-secondary); line-height: 1.7; position: relative; }
.tn-process__gain {
	margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(18,19,28,.14); display: flex; gap: 8px;
	align-items: flex-start; position: relative; font-size: 12.5px; color: var(--tn-text-mid); line-height: 1.5;
}

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.tn-portfolio__viewport { overflow: hidden; border-radius: 20px; }
.tn-portfolio__track { display: flex; gap: 14px; height: 400px; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.tn-portfolio__item {
	position: relative; width: 219px; flex: none; border-radius: 20px; overflow: hidden; cursor: pointer;
	border: 1px solid var(--tn-border-strong); background: var(--tn-dark); transition: border-color .3s, box-shadow .3s;
}
.tn-portfolio__item:hover { border-color: rgba(139,92,246,.6); box-shadow: 0 18px 40px rgba(18,19,28,.2); }
.tn-portfolio__item img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tn-portfolio__overlay {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 16px;
	background: linear-gradient(transparent, var(--tn-dark-overlay)); pointer-events: none;
}
.tn-portfolio__title { font-size: 14.5px; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1.35; }
.tn-portfolio__tag { font-size: 11.5px; font-weight: 600; color: var(--tn-purple-light); margin-top: 5px; }
.tn-portfolio__num {
	position: absolute; top: 12px; left: 12px; font-family: var(--tn-mono); font-size: 11px; font-weight: 600; color: #fff;
	background: rgba(16,18,35,.55); backdrop-filter: blur(6px); border-radius: 999px; padding: 5px 11px; pointer-events: none;
}
.tn-portfolio__dots { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 22px; }
.tn-portfolio__dots span { height: 8px; border-radius: 999px; transition: width .3s, background .3s; cursor: pointer; display: block; }
.tn-portfolio__dots-label { font-family: var(--tn-mono); font-size: 11px; color: var(--tn-text-muted); margin-left: 10px; }
.tn-portfolio__hint { margin-top: 10px; text-align: center; font-size: 13px; color: var(--tn-text-muted); }

/* ==========================================================================
   PROFILE
   ========================================================================== */
.tn-profile__card {
	background: var(--tn-card); border: 1px solid var(--tn-border); border-radius: 24px; padding: 38px 42px;
	display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; box-shadow: var(--tn-shadow-card);
}
.tn-profile__avatar-wrap { background: var(--tn-gradient); border-radius: 50%; padding: 3px; width: fit-content; }
.tn-profile__avatar { width: 128px; height: 128px; border-radius: 50%; background: var(--tn-bg); object-fit: cover; }
.tn-profile__avatar--placeholder { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--tn-text-muted); text-align: center; }
.tn-profile__heading { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.tn-profile__name { font-size: 29px; font-weight: 700; letter-spacing: -.02em; }
.tn-profile__title { font-size: 13.5px; font-weight: 600; color: var(--tn-text-secondary); }
.tn-profile__bio { font-size: 14.5px; line-height: 1.7; color: var(--tn-text-secondary); margin: 0 0 16px; max-width: 560px; }
.tn-profile__skills { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-profile__timeline { border-left: 1px solid var(--tn-border-strong); padding-left: 36px; display: flex; flex-direction: column; gap: 13px; min-width: 250px; }
.tn-profile__timeline-row { display: flex; align-items: baseline; gap: 14px; }
.tn-profile__timeline-year {
	font-size: 13.5px; font-weight: 700; background: var(--tn-gradient); -webkit-background-clip: text;
	background-clip: text; -webkit-text-fill-color: transparent; width: 38px; flex: none;
}
.tn-profile__timeline-text { font-size: 13px; color: var(--tn-text-secondary); line-height: 1.5; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.tn-testimonials__viewport { overflow: hidden; }
.tn-testimonials__track { display: flex; gap: 24px; width: max-content; animation: dcMarquee 38s linear infinite; }
.tn-review-card { width: 390px; flex: none; background: var(--tn-card); border: 1px solid var(--tn-border); border-radius: 20px; padding: 28px 30px; }
.tn-review-card__stars { display: flex; gap: 3px; margin-bottom: 16px; color: #F59E0B; font-size: 15px; }
.tn-review-card__text { font-size: 14.5px; line-height: 1.75; color: var(--tn-text-mid); margin-bottom: 20px; }
.tn-review-card__author { display: flex; align-items: center; gap: 12px; }
.tn-review-card__initial {
	width: 38px; height: 38px; border-radius: 50%; background: var(--tn-gradient); display: flex; align-items: center;
	justify-content: center; color: #fff; font-size: 14px; font-weight: 700; flex: none;
}
.tn-review-card__name { font-size: 14px; font-weight: 700; }
.tn-review-card__role { font-size: 12px; color: var(--tn-text-muted); }

/* ==========================================================================
   BLOG
   ========================================================================== */
.tn-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tn-blog-card {
	display: block; text-decoration: none; color: inherit; background: var(--tn-card); border: 1px solid var(--tn-border);
	border-radius: 20px; overflow: hidden; cursor: pointer; transition: transform .35s, box-shadow .35s;
}
.tn-blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(18,19,28,.11); }
.tn-blog-card__thumb {
	height: 150px; background: repeating-linear-gradient(45deg,#EEF0F8 0 12px,#F7F8FC 12px 24px);
	display: flex; align-items: center; justify-content: center; font-family: var(--tn-mono); font-size: 11px; color: var(--tn-text-muted);
	overflow: hidden;
}
.tn-blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tn-blog-card__body { padding: 22px 24px 26px; }
.tn-blog-card__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.tn-blog-card__tag { font-size: 11.5px; font-weight: 700; color: var(--tn-purple); background: rgba(139,92,246,.1); border-radius: 999px; padding: 5px 12px; }
.tn-blog-card__date { font-size: 12px; color: var(--tn-text-muted); }
.tn-blog-card__title { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; }

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.tn-contact { background: var(--tn-dark); color: #fff; padding: 88px var(--tn-pad-x) 0; position: relative; overflow: hidden; }
.tn-contact__orb {
	position: absolute; top: -120px; left: 30%; width: 480px; height: 480px; border-radius: 50%;
	background: radial-gradient(circle, rgba(99,91,246,.22), transparent 62%); animation: dcOrb 11s ease-in-out infinite;
}
.tn-contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding-bottom: 80px; }
.tn-contact__title { font-size: 46px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; line-height: 1.15; }
.tn-contact__desc { font-size: 15.5px; line-height: 1.75; color: rgba(255,255,255,.6); max-width: 440px; margin: 0 0 32px; }
.tn-contact__ctas { display: flex; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.tn-contact__info { font-size: 14px; color: rgba(255,255,255,.45); line-height: 2; font-style: normal; }
.tn-contact__info a { text-decoration: none; }
.tn-contact__form-wrap {
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 22px;
	padding: 36px 34px; backdrop-filter: blur(8px);
}
.tn-contact__form-empty { font-size: 13.5px; color: rgba(255,255,255,.5); margin: 0; }
.tn-contact__form .wpcf7-form-control {
	width: 100%; box-sizing: border-box; padding: 14px 16px; background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.14); border-radius: 12px; font-size: 14.5px; font-family: inherit; color: #fff; outline: none;
}
.tn-contact__form textarea.wpcf7-form-control { min-height: 110px; resize: vertical; }
.tn-contact__form .wpcf7-form-control:focus { border-color: var(--tn-purple); }
.tn-contact__form .wpcf7-form-control.wpcf7-not-valid { border-color: #F87171; }
.tn-contact__form p { margin: 0 0 16px; }
.tn-contact__form p:last-child { margin-bottom: 0; }
.tn-contact__form .wpcf7-not-valid-tip { display: block; color: #FCA5A5; font-size: 12.5px; margin-top: 6px; }
.tn-contact__form .wpcf7-response-output {
	margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 13px; line-height: 1.6;
	border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.85);
}
.tn-contact__form form.sent .wpcf7-response-output { border-color: var(--tn-success); color: #86EFAC; }
.tn-contact__form form.failed .wpcf7-response-output,
.tn-contact__form form.aborted .wpcf7-response-output,
.tn-contact__form form.spam .wpcf7-response-output,
.tn-contact__form form.invalid .wpcf7-response-output { border-color: #F87171; color: #FCA5A5; }
.tn-contact__form .wpcf7-spinner { filter: invert(1); }
.tn-contact__form input[type="submit"] {
	display: block; width: 100%; text-align: center; padding: 15px; background: var(--tn-gradient); color: #fff;
	border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 28px rgba(99,91,246,.35);
	transition: transform .25s;
}
.tn-contact__form input[type="submit"]:hover { transform: translateY(-2px); }
.tn-footer {
	position: relative; display: flex; justify-content: space-between; align-items: center; padding: 24px 0;
	border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 12px;
}
.tn-footer__links { display: flex; gap: 24px; }
.tn-footer__links a, .tn-footer__links span { text-decoration: none; transition: color .2s; }
.tn-footer__links a:hover { color: #fff; }
.tn-site-footer { background: var(--tn-dark); }
.tn-site-footer .tn-footer { border-top: none; padding: 20px 0; }

/* ==========================================================================
   Lightbox — xem ảnh dự án cỡ đầy đủ
   ========================================================================== */
.tn-lightbox {
	position: fixed; inset: 0; z-index: 100; display: none; justify-content: center;
	background: rgba(16, 18, 35, .92); padding: 80px 20px; opacity: 0; transition: opacity .25s ease;
	overflow-y: auto;
}
.tn-lightbox.is-open { display: flex; opacity: 1; }
.tn-lightbox__figure { margin: auto 0; width: min(94vw, 720px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tn-lightbox__img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.tn-lightbox__caption { color: rgba(255,255,255,.8); font-size: 14px; text-align: center; }
.tn-lightbox__close {
	position: fixed; top: 24px; right: 32px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
	background: rgba(16,18,35,.7); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s; z-index: 101;
}
.tn-lightbox__close:hover { background: rgba(255,255,255,.18); }

/* ==========================================================================
   Generic (index.php fallback)
   ========================================================================== */
.tn-generic { padding: 60px 0; }
.tn-generic__inner { max-width: 760px; }
.tn-generic__title { font-size: 36px; font-weight: 700; margin-bottom: 24px; }
.tn-generic__content { font-size: 16px; line-height: 1.8; color: var(--tn-text-secondary); }

/* ==========================================================================
   Single post — trang chi tiết bài viết
   ========================================================================== */
.tn-single { background: #FFFFFF; padding: 48px 0 96px; }
.tn-single__card {
	background: #FFFFFF; border-radius: 24px; box-shadow: 0 12px 44px rgba(18,19,28,.09);
	border: 1px solid var(--tn-border); overflow: hidden;
}
.tn-single__thumb { width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: var(--tn-bg); }
.tn-single__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-single__body { padding: 40px 44px 48px; }
.tn-single__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tn-single__tag { font-size: 11.5px; font-weight: 700; color: var(--tn-purple); background: rgba(139,92,246,.1); border-radius: 999px; padding: 5px 12px; }
.tn-single__date { font-size: 13px; color: var(--tn-text-muted); }
.tn-single__title { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 28px; }
.tn-single__content { font-size: 16px; line-height: 1.85; color: var(--tn-text-mid); }
.tn-single__content h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 14px; color: var(--tn-text); }
.tn-single__content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: var(--tn-text); }
.tn-single__content p { margin: 0 0 18px; }
.tn-single__content ul, .tn-single__content ol { margin: 0 0 18px; padding-left: 22px; }
.tn-single__content li { margin-bottom: 8px; }
.tn-single__content strong { color: var(--tn-text); }
.tn-single__content code { background: var(--tn-bg); border-radius: 4px; padding: 2px 6px; font-size: .92em; }
.tn-single__content a { color: var(--tn-blue); text-decoration: underline; text-decoration-color: rgba(59,107,246,.35); }
.tn-single__content img { border-radius: 14px; margin: 8px 0 18px; }

.tn-related { margin-top: 56px; }
.tn-related__title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 22px; }
.tn-related__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tn-related__item {
	display: block; text-decoration: none; color: inherit; background: #FFFFFF; border: 1px solid var(--tn-border);
	border-radius: 16px; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.tn-related__item:hover { transform: translateY(-4px); box-shadow: var(--tn-shadow-card-hover); }
.tn-related__item-thumb {
	height: 110px; background: repeating-linear-gradient(45deg,#EEF0F8 0 12px,#F7F8FC 12px 24px);
	display: flex; align-items: center; justify-content: center; font-family: var(--tn-mono); font-size: 10.5px; color: var(--tn-text-muted); overflow: hidden;
}
.tn-related__item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tn-related__item-body { padding: 16px 18px 18px; }
.tn-related__item-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tn-related__item-tag { font-size: 10.5px; font-weight: 700; color: var(--tn-purple); background: rgba(139,92,246,.1); border-radius: 999px; padding: 4px 10px; }
.tn-related__item-date { font-size: 11.5px; color: var(--tn-text-muted); }
.tn-related__item-title { font-size: 14.5px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }

@media (max-width: 1024px) {
	.tn-single__body { padding: 32px 28px 36px; }
	.tn-single__title { font-size: 28px; }
}
@media (max-width: 640px) {
	.tn-related__list { grid-template-columns: 1fr; }
	.tn-single__title { font-size: 24px; }
	.tn-single__body { padding: 24px 20px 28px; }
}

/* ==========================================================================
   Reveal (trạng thái khởi tạo — JS sẽ chuyển sang hiện)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .85s cubic-bezier(.22,1,.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes dcMarquee { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@keyframes dcFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes dcFloatB { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes dcBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes dcOrb { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(28px,-20px) scale(1.08); } }
@keyframes dcFlow { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes dcPulse { 0% { box-shadow: 0 0 0 0 rgba(139,92,246,.4); } 70% { box-shadow: 0 0 0 14px rgba(139,92,246,0); } 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); } }

/* ==========================================================================
   prefers-reduced-motion — tắt toàn bộ animation/parallax
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tn-hero__orb, .tn-hero__mockup-mobile, .tn-hero__float, .tn-marquee__track, .tn-process__line,
	.tn-process__node, .tn-ai__feature-orb, .tn-testimonials__track, .tn-hero__cursor {
		animation: none !important;
	}
	[data-reveal] { transition: none !important; }
	[data-parallax] { transform: none !important; }
}

/* ==========================================================================
   Responsive — ≤1024px
   ========================================================================== */
@media (max-width: 1024px) {
	:root { --tn-pad-x: 32px; --tn-pad-y: 64px; }
	.tn-hero { padding: 64px var(--tn-pad-x) 72px; }
	.tn-hero__title { font-size: 44px; }
	.tn-hero__typing { font-size: 38px; min-height: 48px; }
	.tn-h2 { font-size: 34px; }
	.tn-nav__menu { display: none; }
	.tn-nav__toggle { display: flex; }
	.tn-services__grid, .tn-ai__grid { grid-template-columns: repeat(2, 1fr); }
	.tn-service-card--feature, .tn-ai__feature { grid-column: span 2; }
	.tn-ai__feature { grid-template-columns: 1fr; }
	.tn-stats__panel { padding: 40px 28px; }
	.tn-stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
	.tn-stats__item:nth-child(3) { border-left: none; }
	.tn-process__grid { grid-template-columns: repeat(2, 1fr); }
	.tn-process__line { display: none; }
	.tn-profile__card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.tn-profile__avatar-wrap { margin: 0 auto; }
	.tn-profile__timeline { border-left: none; border-top: 1px solid var(--tn-border-strong); padding-left: 0; padding-top: 20px; width: 100%; }
	.tn-blog__grid { grid-template-columns: repeat(2, 1fr); }
	.tn-contact__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
	.tn-hero__mockup-desktop { margin-right: 0; }
	.tn-hero__float--stat, .tn-hero__float--ai { display: none; }
}

/* ==========================================================================
   Responsive — ≤640px
   ========================================================================== */
@media (max-width: 640px) {
	:root { --tn-pad-x: 20px; }
	.tn-hero__title { font-size: 32px; }
	.tn-hero__typing { font-size: 26px; min-height: 34px; }
	.tn-hero__desc { font-size: 15px; }
	.tn-h2 { font-size: 26px; }
	.tn-services__grid, .tn-ai__grid, .tn-stats__grid, .tn-process__grid, .tn-blog__grid { grid-template-columns: 1fr; }
	.tn-service-card--feature, .tn-ai__feature { grid-column: span 1; }
	.tn-stats__panel { padding: 36px 24px; }
	.tn-stats__item { border-left: none !important; border-top: 1px solid rgba(255,255,255,.3); padding: 24px 0 0; }
	.tn-stats__item:first-child { border-top: none; padding-top: 0; }
	.tn-service-card--feature { padding: 28px 24px; }
	.tn-section__head--split { flex-direction: column; align-items: flex-start; gap: 12px; }
	.tn-hero__mockup-mobile { display: none; }
	.tn-portfolio__item { width: 62vw; }
	.tn-contact__title { font-size: 32px; }
	.tn-nav { padding: 14px 16px 0; }
	.tn-nav__inner { padding: 10px 10px 10px 18px; }
	.tn-nav__logo-img { height: 18px; }
}
