/* Theme inspired by https://aicoderouter.com/ */
:root {
	--white: #ffffff;
	--bg: #fafafa;
	--text: #1a1a1a;
	--text-muted: #5c5c5c;
	--telegram: #0088cc;
	--telegram-hover: #006699;
	--telegram-light: rgba(0, 136, 204, 0.08);
	--accent: #0088cc;
	--accent-hover: #006699;
	--accent-light: rgba(0, 136, 204, 0.08);
	--border: #e8e8e8;
	--card: #ffffff;
	--radius: 12px;
	--radius-lg: 16px;
	--shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	--shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
	--max: 1280px;
	--font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Bootstrap 3 sets html { font-size: 10px } — breaks all rem sizes; reset like aicoderouter.com */
html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	min-width: 0;
}

a {
	color: var(--telegram);
	text-decoration: none;
}

a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
	color: var(--text);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.section-heading {
	margin: 0 auto 8px;
	font-weight: 700;
	color: var(--text);
	font-size: 1.75rem;
	line-height: 1.25;
	text-align: center;
}

.section-heading a { color: var(--text); }
.section-heading a:hover { color: var(--accent); }

.ta-wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 24px;
}

/* —— Header / Nav (https://aicoderouter.com/) —— */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 16px;
}

.nav-toggle {
	display: none;
	flex-shrink: 0;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	margin: 0;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--white);
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Text logo: Telegram (black) + Auto (blue) — same as aicoderouter.com */
.logo {
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
	line-height: 1.2;
}

.logo:hover { text-decoration: none; }

.logo span { color: var(--telegram); }

.header .logo {
	font-size: 1.625rem;
	letter-spacing: -0.02em;
}

.footer .logo {
	font-size: 1.625rem;
	letter-spacing: -0.02em;
	display: inline-block;
	margin-top: 4px;
}

.header nav.nav,
.header .nav {
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	flex: 1;
	gap: 32px;
	flex-wrap: nowrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav a {
	color: var(--text);
	font-weight: 500;
	font-size: 0.9375rem;
	text-decoration: none;
}

.nav a:hover {
	color: var(--telegram);
	text-decoration: none;
}

.nav .nav-cta,
button.nav-cta {
	background: var(--telegram);
	color: var(--white) !important;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

button.nav-cta {
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.nav .nav-cta:hover,
button.nav-cta:hover {
	background: var(--telegram-hover);
	text-decoration: none;
}

.ta-download-card button.nav-cta.btn-download {
	width: 100%;
	padding: 12px 24px;
	margin-top: 8px;
}

/* —— Hero —— */
.ta-hero,
#home {
	padding: 80px 24px 64px;
	text-align: center;
	max-width: var(--max);
	margin: 0 auto;
}

.ta-hero-title,
.ta-hero h1 {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 auto 16px;
	max-width: 800px;
	color: var(--text);
}

.ta-hero-title a { color: var(--text); }
.ta-hero-title a:hover { color: var(--accent); }

.ta-hero-meta {
	font-size: 1rem;
	color: var(--text-muted);
	margin: 0 auto 16px;
}

.ta-hero-tagline {
	font-size: 1.125rem;
	color: var(--text-muted);
	max-width: 640px;
	margin: 0 auto 28px;
	line-height: 1.6;
}

.ta-hero-intro {
	text-align: left;
	max-width: 820px;
	margin: 32px auto 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-muted);
	padding: 24px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.ta-hero-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	border: none;
	font-family: inherit;
	transition: background 0.2s, border-color 0.2s, transform 0.15s;
	text-decoration: none;
}

.btn-primary {
	background: var(--accent);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--accent-hover);
	color: var(--white);
	text-decoration: none;
}

.btn-secondary {
	background: var(--white);
	color: var(--text);
	border: 2px solid var(--border);
}

.btn-secondary:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

.ta-hero-stats {
	display: flex;
	justify-content: center;
	gap: 48px;
	flex-wrap: wrap;
	padding: 28px 0;
	margin-bottom: 8px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.ta-stat { text-align: center; }

.ta-stat-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--accent);
	display: block;
}

.ta-stat-label {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-top: 4px;
	display: block;
}

.ta-hero-video {
	max-width: 571px;
	width: 100%;
	margin: 0 auto;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-hover);
	background: #000;
	border: 1px solid var(--border);
}

.ta-hero-video .embed-responsive {
	position: relative;
	display: block;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
}

.ta-hero-video .embed-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* —— Sections —— */
.ta-section {
	padding: 64px 24px;
	max-width: var(--max);
	margin: 0 auto;
}

.ta-section-alt {
	background: var(--bg);
}

.ta-section-white {
	background: var(--white);
	padding: 64px 0;
}

.ta-section-white > .ta-wrap {
	padding: 0 24px;
}

.ta-section-subtitle {
	text-align: center;
	color: var(--text-muted);
	max-width: 640px;
	margin: 0 auto 40px;
	font-size: 1rem;
	line-height: 1.6;
}

/* —— Features —— */
.ta-features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-top: 8px;
}

.ta-feature-card {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 32px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.ta-feature-card:hover {
	box-shadow: var(--shadow-hover);
	border-color: var(--accent);
	transform: translateY(-2px);
}

.ta-feature-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 12px;
}

.ta-feature-card .feature-icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	background: var(--telegram-light);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--telegram);
}

.ta-feature-card .feature-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.ta-feature-card h4 {
	margin: 0;
	padding-top: 10px;
	font-size: 1.125rem;
	color: var(--text);
	font-weight: 600;
	line-height: 1.35;
	flex: 1;
}

.ta-feature-card .description {
	font-size: 0.9375rem;
	color: var(--text-muted);
	line-height: 1.6;
}

.ta-prose {
	max-width: 820px;
	margin: 3rem auto 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-muted);
}

.ta-prose p { margin-bottom: 1rem; }

/* —— FAQ —— */
#how_it_works {
	padding: 64px 24px;
	max-width: var(--max);
	margin: 0 auto;
	background: var(--bg);
}

.ta-faq-intro {
	max-width: 820px;
	margin: 0 auto 2rem;
	text-align: center;
	color: var(--text-muted);
	font-size: 1rem;
}

.ta-faq-item {
	max-width: 820px;
	margin: 0 auto 16px;
	padding: 24px 28px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: box-shadow 0.2s, border-color 0.2s;
}

.ta-faq-item:hover {
	box-shadow: var(--shadow);
	border-color: var(--accent);
}

.ta-faq-item h3 {
	margin: 0 0 10px;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text);
}

.ta-faq-item p {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--text-muted);
	line-height: 1.65;
}

.ta-quote-block {
	max-width: 820px;
	margin: 2.5rem auto;
	padding: 32px;
	background: var(--card);
	border-radius: var(--radius-lg);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--text-muted);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.ta-quote-block h2 {
	font-size: 1.35rem;
	margin-bottom: 1rem;
	color: var(--text);
}

.ta-video-inline {
	display: flex;
	justify-content: center;
	margin: 2.5rem auto;
	max-width: 820px;
}

.ta-video-inline iframe {
	max-width: 100%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-hover);
	border: 1px solid var(--border);
}

.ta-content-block {
	max-width: 820px;
	margin: 2rem auto;
	padding: 0 24px;
}

.ta-content-block h2 {
	font-size: 1.35rem;
	margin-bottom: 0.75rem;
	color: var(--text);
}

.ta-content-block p {
	color: var(--text-muted);
	line-height: 1.7;
}

/* —— Download —— */
#download {
	padding: 64px 24px;
	max-width: var(--max);
	margin: 0 auto;
	text-align: center;
}

#download .section-heading { margin-bottom: 0.5rem; }

.ta-download-card {
	max-width: 440px;
	margin: 32px auto 0;
	padding: 40px 32px;
	background: var(--card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
}

.ta-download-card input[type="email"],
.ta-download-card input[type="number"] {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	margin-bottom: 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-size: 15px;
	font-family: var(--font);
	background: var(--white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ta-download-card input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
}

.ta-download-card label {
	display: block;
	text-align: left;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: 6px;
	opacity: 1;
}

.ta-skew { display: none; }

/* —— Contact —— */
#contact {
	padding: 64px 24px 48px;
	max-width: var(--max);
	margin: 0 auto;
	background: var(--bg);
}

.ta-contact-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.ta-contact-tile {
	padding: 24px;
	background: var(--card);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	transition: box-shadow 0.2s, border-color 0.2s;
}

.ta-contact-tile:hover {
	box-shadow: var(--shadow-hover);
	border-color: var(--accent);
}

.ta-contact-tile h3 {
	margin: 0 0 10px;
	font-size: 1.05rem;
	color: var(--text);
	font-weight: 600;
}

.ta-contact-tile p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--text-muted);
}

.ta-contact-container {
	max-width: 720px;
	padding: 40px 32px;
	margin: 0 auto;
	box-shadow: var(--shadow);
	background: var(--card);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	text-align: center;
}

.ta-contact-container h3 {
	font-size: 1.5rem;
	margin-bottom: 12px;
	color: var(--text);
}

.ta-contact-container h4 {
	font-size: 1rem;
	font-weight: 400;
	color: var(--text-muted);
	line-height: 1.65;
	margin: 0 0 8px;
}

/* —— Footer (https://aicoderouter.com/) —— */
.footer {
	background: var(--white);
	border-top: 1px solid var(--border);
	padding: 48px 24px 24px;
}

.footer-inner {
	max-width: 1280px;
	margin: 0 auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	margin-bottom: 40px;
}

.footer-col h4 {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
	color: var(--text);
	font-size: 0.9375rem;
	text-decoration: none;
}

.footer-col a:hover {
	color: var(--telegram);
	text-decoration: none;
}

.footer-email-note {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 12px 0 0;
	line-height: 1.5;
}

.footer-dot {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 0 0 12px;
}

.footer-bottom {
	padding-top: 24px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-copy {
	font-size: 0.875rem;
	color: var(--text-muted);
}

.footer-copy a {
	color: var(--text-muted);
	text-decoration: none;
}

.footer-copy a:hover {
	color: var(--telegram);
	text-decoration: none;
}

/* —— Scroll top —— */
#toTop {
	display: none;
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--accent);
	border: none;
	color: #fff;
	box-shadow: var(--shadow-hover);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

#toTop:hover {
	background: var(--accent-hover);
	transform: translateY(-3px);
}

#toTop .glyphicon { font-size: 18px; top: 2px; }

/* —— Modal —— */
.modal-content {
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-hover);
}

.modal-header { border-bottom: 1px solid var(--border); }

.btn-success, .btn.btn-success {
	background: var(--accent) !important;
	border-color: var(--accent) !important;
	border-radius: 10px;
	font-weight: 600;
}

.btn-success:hover, .btn.btn-success:hover {
	background: var(--accent-hover) !important;
	border-color: var(--accent-hover) !important;
}

.form-control {
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: none;
}

.form-control:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
}

.recaptcha-container { display: flex; justify-content: center; align-items: center; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 992px) {
	.ta-contact-grid { grid-template-columns: repeat(2, 1fr); }
	.ta-features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.header-inner {
		flex-wrap: wrap;
		align-items: center;
		padding: 12px 16px;
		min-height: 56px;
	}

	.header .logo {
		flex: 1;
		min-width: 0;
		font-size: 1.375rem;
	}

	.nav-toggle {
		display: flex;
	}

	.header nav.nav,
	.header .nav {
		display: none !important;
		flex: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		order: 3;
		padding: 8px 0 4px;
		border-top: 1px solid var(--border);
		margin-top: 4px;
	}

	.header .nav.is-open {
		display: flex !important;
	}

	.header .nav a {
		padding: 12px 8px;
		text-align: center;
		font-size: 0.9375rem;
	}

	.header .nav .nav-cta {
		margin-top: 8px;
		padding: 12px 16px;
		text-align: center;
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
	}

	.ta-hero, #home { padding: 48px 16px 40px; }
	.ta-hero-buttons { flex-direction: column; align-items: center; }
	.ta-hero-buttons .btn { width: 100%; max-width: 280px; }
	.ta-hero-stats { gap: 24px; padding: 24px 16px; }
	.ta-section-white { padding: 48px 0; }
	#how_it_works, #download, #contact { padding: 48px 16px; }
	.ta-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.header-inner {
		padding: 10px 12px;
	}

	.header .logo {
		font-size: 1.25rem;
	}

	.footer { padding: 32px 16px 20px; }

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* —— Review page —— */
.ta-review-page {
	padding-top: 88px;
}

.ta-review-page .ta-review-intro h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
}

.ta-review-page .ta-review-meta {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	color: var(--text-muted);
}

.ta-review-page h2 {
	margin: 2rem 0 1rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.ta-review-page h2 a,
.ta-review-page h3 a {
	color: var(--text);
}

.ta-review-page h2 a:hover,
.ta-review-page h3 a:hover {
	color: var(--accent);
	text-decoration: none;
}

.ta-review-page h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.5;
}

.ta-review-page p {
	margin: 0 0 1rem;
	line-height: 1.65;
	color: var(--text);
}

.ta-review-video {
	max-width: 760px;
	margin: 1.25rem auto 1.75rem;
}

.ta-review-video .embed-responsive {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.ta-review-quotes {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 2rem 0;
}

.ta-review-quote {
	padding: 1.25rem 1.5rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.ta-review-quote blockquote {
	margin: 0 0 0.75rem;
	padding: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--text);
	border: 0;
}

.ta-review-quote cite {
	display: block;
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 600;
	color: var(--accent);
}

.ta-review-media {
	max-width: 470px;
	margin: 1.25rem auto 1.75rem;
}

.ta-review-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

@media (max-width: 768px) {
	.ta-review-page {
		padding-top: 72px;
	}
}
