/* ================= AdsGen ================= */
:root {
	--bg: #0a0b10;
	--bg-2: #0d0f15;
	--card: #13151d;
	--card-2: #191c26;
	--line: rgba(255,255,255,.08);
	--line-2: rgba(255,255,255,.14);
	--text: #f2f3f7;
	--muted: #8f95a8;
	--accent: #2ba89a;
	--accent-2: #8b7cf6;
	--ink: #04201c;
	--r: 14px;
	--r-lg: 20px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.ag-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.ag-wrap--narrow { max-width: 780px; }
.ag-wrap--mid { max-width: 880px; }
.ag-wrap--form { max-width: 480px; }
.ag-svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.ag-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
	font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
	transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, filter .2s;
}
.ag-btn:hover { transform: translateY(-2px); }
.ag-btn--sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }
.ag-btn--lg { padding: 15px 26px; font-size: 16px; }
.ag-btn--block { width: 100%; }
.ag-btn--pri { background: var(--accent); color: var(--ink); }
.ag-btn--pri:hover { filter: brightness(1.1); }
.ag-btn--dark { background: var(--card-2); border-color: var(--line-2); color: var(--text); }
.ag-btn--dark:hover { background: #20242f; }
.ag-btn.is-disabled { opacity: .55; cursor: default; transform: none; }
.ag-glow { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 10px 32px -8px color-mix(in srgb, var(--accent) 70%, transparent); }

/* ---------- Header ---------- */
.ag-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(10,11,16,.75); border-bottom: 1px solid var(--line);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.ag-header__in { display: flex; align-items: center; gap: 24px; height: 70px; max-width: 1240px; }
.ag-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; }
.ag-brand__img { width: auto; max-height: 40px; }
.ag-brand__mark {
	width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff;
	background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent));
}
.ag-brand__mark svg { width: 24px; height: 24px; }
.ag-nav ul { display: flex; gap: 24px; list-style: none; margin: 0 0 0 16px; padding: 0; }
.ag-nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.ag-nav a:hover { color: var(--text); }
.ag-header__act { margin-left: auto; display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.ag-hero { position: relative; text-align: center; padding: 104px 0 72px; overflow: hidden; }
.ag-hero__bg {
	position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center;
	background-color: var(--bg);
}
.ag-hero__bg::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(520px 380px at 12% 8%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
		radial-gradient(640px 460px at 88% 20%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%),
		linear-gradient(180deg, rgba(10,11,16,.2), var(--bg) 95%);
}
.ag-badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px;
	background: rgba(19,21,29,.85); border: 1px solid var(--line-2);
	color: var(--accent); font-weight: 600; font-size: 13.5px;
}
.ag-badge .ag-svg { width: 14px; height: 14px; }
.ag-badge--sm { font-size: 12px; padding: 4px 11px; margin-bottom: 14px; }
.ag-hero__title { font-size: clamp(34px, 5.6vw, 60px); font-weight: 900; max-width: 860px; margin: 26px auto 20px; }
.ag-hero__title { text-wrap: balance; }
.ag-hero__sub { color: var(--muted); font-size: clamp(15.5px, 1.8vw, 18px); max-width: 600px; margin: 0 auto 34px; }
.ag-hero__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.ag-stats { display: flex; justify-content: center; gap: 14px; margin-top: 56px; flex-wrap: wrap; }
.ag-stat {
	min-width: 170px; padding: 20px 22px; border-radius: var(--r-lg);
	background: var(--card); border: 1px solid var(--line);
}
.ag-stat__n { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; color: var(--accent); line-height: 1.1; }
.ag-stat__l { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Sections ---------- */
.ag-sec { padding: 84px 0; }
.ag-sec--tight { padding: 56px 0; }
.ag-sec--glow { background:
	radial-gradient(600px 300px at 10% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
	var(--bg-2); }
.ag-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.ag-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.ag-head p { color: var(--muted); margin: 0; }
.ag-eye {
	display: inline-block; margin-bottom: 12px; color: var(--accent-2);
	font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.ag-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ag-card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
	transition: border-color .2s, transform .2s;
}
a.ag-card:hover, .ag-svc:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ag-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.ag-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Icon boxes + tones */
.ag-ibox {
	width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px;
	border: 1px solid transparent; overflow: hidden;
}
.ag-ibox .ag-svg { width: 21px; height: 21px; }
.ag-ibox img { width: 100%; height: 100%; object-fit: cover; }
.ag-ibox--sm { width: 38px; height: 38px; margin: 0; }
.ag-ibox--sm .ag-svg { width: 18px; height: 18px; }
.ag-tone-violet { background: rgba(139,124,246,.14); color: #a99cff; border-color: rgba(139,124,246,.3); }
.ag-tone-teal   { background: rgba(43,168,154,.14); color: #4fd1c1; border-color: rgba(43,168,154,.3); }
.ag-tone-amber  { background: rgba(245,166,35,.14); color: #f7b955; border-color: rgba(245,166,35,.3); }
.ag-tone-blue   { background: rgba(80,140,255,.14); color: #7fb0ff; border-color: rgba(80,140,255,.3); }
.ag-tone-rose   { background: rgba(244,88,120,.14); color: #ff8aa3; border-color: rgba(244,88,120,.3); }

/* Steps */
.ag-step__n {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; margin-bottom: 18px;
	background: color-mix(in srgb, var(--accent-2) 22%, var(--card)); color: #cfc8ff;
	font-weight: 800; font-size: 15px; border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
}

/* Results chart */
.ag-chart { max-width: 470px; margin: 0 auto; padding: 24px 26px; }
.ag-chart__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.ag-chart__badge { color: var(--accent); font-size: 13px; font-weight: 600; }
.ag-chart__bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin: 26px 0 20px; }
.ag-chart__bars span {
	flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 100%, #fff 10%), color-mix(in srgb, var(--accent) 60%, var(--card)));
	transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.ag-chart.is-in .ag-chart__bars span { transform: scaleY(1); }
.ag-chart__bars span:nth-child(2){transition-delay:.06s}.ag-chart__bars span:nth-child(3){transition-delay:.12s}
.ag-chart__bars span:nth-child(4){transition-delay:.18s}.ag-chart__bars span:nth-child(5){transition-delay:.24s}
.ag-chart__bars span:nth-child(6){transition-delay:.3s}.ag-chart__bars span:nth-child(7){transition-delay:.36s}
.ag-chart__metrics { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ag-chart__metrics b { display: block; color: var(--accent); font-size: 22px; font-weight: 800; }
.ag-chart__metrics small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.ag-results__img { max-width: 620px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }

/* Pills */
.ag-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ag-pill {
	display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 11px;
	background: var(--card); border: 1px solid var(--line-2); font-weight: 700; font-size: 14.5px;
}
.ag-pill img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.ag-pill .ag-svg { color: var(--accent); }
.ag-pills--sm .ag-pill { padding: 7px 13px; font-size: 13px; font-weight: 600; border-radius: 9px; }

/* Testimonial */
.ag-testi { max-width: 480px; margin: 40px auto 0; text-align: center; padding: 26px 30px; }
.ag-testi blockquote { margin: 0 0 12px; font-style: italic; font-size: 15.5px; color: #dfe1ea; }
.ag-testi figcaption { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.ag-testi figcaption img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* Pricing */
.ag-plan { display: flex; flex-direction: column; gap: 12px; }
.ag-plan__top { display: flex; align-items: center; gap: 12px; }
.ag-plan__top h3 { margin: 0; font-size: 16px; flex: 1; }
.ag-plan__price { color: var(--accent); font-size: 22px; font-weight: 800; white-space: nowrap; }
.ag-plan__price small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.ag-plan__box {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 13.5px;
}
.ag-plan__route { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.ag-plan__route .ag-svg { color: var(--muted); }
.ag-plan__box b { color: var(--accent); white-space: nowrap; }
.ag-plan__note { color: var(--muted); font-size: 12.5px; }

/* Mobile app */
.ag-app {
	text-align: center; padding: 48px 28px 40px; border-radius: 26px; border: 1px solid var(--line);
	background:
		radial-gradient(500px 260px at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%),
		linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 14%, var(--card)), var(--card));
	display: flex; flex-direction: column; align-items: center;
}
.ag-app .ag-head { margin-bottom: 30px; }
.ag-phone {
	width: 190px; aspect-ratio: 9/19; border-radius: 30px; padding: 9px; margin-bottom: 30px;
	background: #1b1e29; border: 1px solid var(--line-2);
	box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), inset 0 0 0 2px #0e1016;
}
.ag-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.ag-phone__ph {
	height: 100%; border-radius: 22px; background: linear-gradient(180deg, #232737, #161923);
	display: flex; flex-direction: column; align-items: center; padding-top: 34px; gap: 10px;
}
.ag-phone__ph i { display: block; width: 70%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); }
.ag-phone__ph i:first-of-type { margin-top: 12px; }
.ag-app__note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.ag-app__safe { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* CTA */
.ag-cta {
	text-align: center; padding: 56px 24px; border-radius: 26px;
	border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
	background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 22%, var(--card)) 0%, var(--card) 50%, color-mix(in srgb, var(--accent-2) 20%, var(--card)) 100%);
}
.ag-cta h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.ag-cta p { color: var(--muted); margin-bottom: 26px; }

/* Payments */
.ag-pay { padding: 8px 0 40px; text-align: center; }
.ag-pay__t { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #cfd2dd; margin-bottom: 14px; }

/* Contact */
.ag-sec--contact { padding-top: 20px; }
.ag-form { padding: 28px; }
.ag-form h3 { font-size: 22px; }
.ag-form__sub { color: var(--muted); font-size: 14px; margin-bottom: 20px !important; }
.ag-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.ag-form input, .ag-form textarea {
	display: block; width: 100%; margin-top: 7px; padding: 12px 14px; border-radius: 10px;
	background: var(--card-2); border: 1px solid var(--line); color: var(--text);
	font-family: inherit; font-size: 15px; line-height: 1.4; resize: vertical;
}
.ag-form input:focus, .ag-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.ag-form ::placeholder { color: #5f6577; }
.ag-hp { position: absolute !important; left: -9999px !important; }
.ag-alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.ag-alert--ok { background: rgba(43,168,154,.15); color: #6fe0d2; border: 1px solid rgba(43,168,154,.35); }
.ag-alert--err { background: rgba(244,88,120,.12); color: #ff9ab0; border: 1px solid rgba(244,88,120,.3); }

/* Footer */
.ag-footer { border-top: 1px solid var(--line); padding: 28px 0 30px; text-align: center; margin-top: 30px; }
.ag-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; list-style: none; margin: 0 0 12px; padding: 0; }
.ag-footer a { color: #c4c8d4; font-size: 13.5px; }
.ag-footer a:hover { color: var(--accent); }
.ag-footer__copy { color: var(--muted); font-size: 13px; margin: 0; }

/* Generic pages */
.ag-page { padding-top: 60px; }
.ag-entry { margin-bottom: 44px; }
.ag-entry__title { font-size: clamp(26px, 4vw, 38px); }
.ag-entry__body { color: #d4d7e2; }
.ag-entry__body a { color: var(--accent); }

/* Reveal */
/* Content is visible by default. It is only hidden for the animation when our script is confirmed running
   (html.ag-anim), so cache/“delay JS” plugins or a script error can never leave the page blank. */
.ag-anim .ag-rv:not(.is-in) { opacity: 0; transform: translateY(16px); }
.ag-rv { transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
	.ag-rv, .ag-chart__bars span { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.ag-nav { display: none; }
	.ag-grid3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 600px) {
	.ag-wrap { padding: 0 16px; }
	.ag-header__in { height: 62px; gap: 12px; }
	.ag-brand { font-size: 18px; gap: 9px; }
	.ag-brand__mark { width: 34px; height: 34px; }
	.ag-header__act .ag-btn--sm { padding: 8px 12px; font-size: 13px; }
	.ag-hero { padding: 64px 0 56px; }
	.ag-hero__btns .ag-btn { width: 100%; }
	.ag-stats { gap: 10px; margin-top: 40px; }
	.ag-stat { min-width: 0; flex: 1 1 140px; padding: 16px 12px; }
	.ag-sec { padding: 64px 0; }
	.ag-sec--tight { padding: 44px 0; }
	.ag-card { padding: 22px; }
	.ag-chart { padding: 20px; }
	.ag-chart__bars { height: 110px; gap: 7px; }
	.ag-chart__metrics b { font-size: 19px; }
	.ag-pill { padding: 9px 14px; font-size: 13.5px; }
	.ag-plan__box { flex-direction: column; align-items: flex-start; }
	.ag-app { padding: 36px 18px 32px; border-radius: 20px; }
	.ag-app .ag-btn { width: 100%; white-space: normal; }
	.ag-cta { padding: 40px 18px; border-radius: 20px; }
	.ag-cta .ag-btn { width: 100%; }
	.ag-form { padding: 22px; }
}
@media (max-width: 360px) {
	.ag-header__act .ag-btn--dark { display: none; }
}
