/* ==========================================================================
   Conversion theme – main stylesheet
   ========================================================================== */

:root {
	--bg-color: #030303;
	--surface-color: rgba(20, 20, 20, 0.6);
	--border-color: rgba(255, 255, 255, 0.08);
	--text-primary: #FFFFFF;
	--text-secondary: #A0A0A0;
	--accent-glow: #6366F1;
	--accent-glow-alt: #A855F7;
	--gradient-text: linear-gradient(to right, #ffffff, #a5a5a5);
	--gradient-accent: linear-gradient(135deg, var(--accent-glow), var(--accent-glow-alt));
	--radius-lg: 24px;
	--radius-md: 16px;
	--transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
button, input, textarea, select { font: inherit; }

body {
	font-family: 'Plus Jakarta Sans', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	background-image:
		radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

h1, h2, h3, h4 { letter-spacing: -0.03em; font-weight: 700; }

h1 {
	font-size: clamp(3.5rem, 7vw, 6.5rem);
	line-height: 1.05;
	background: var(--gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 1.5rem;
}

h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; color: #E0E0E0; margin-bottom: 0.75rem; }
p { font-size: 1.125rem; color: var(--text-secondary); max-width: 60ch; font-weight: 400; }

a { color: var(--accent-glow-alt); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: #fff; color: #000; padding: 0.75rem 1.25rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-glow-alt); outline-offset: 3px; }

.cvt-container { width: 90%; max-width: 1280px; margin: 0 auto; }
.cvt-narrow { max-width: 820px; }
.cvt-section { padding: 8rem 0; position: relative; }

/* ---------- Header ---------- */
.cvt-header {
	position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
	background: rgba(3, 3, 3, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-color);
}
.admin-bar .cvt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cvt-header { top: 46px; } }

.cvt-nav {
	display: flex; justify-content: space-between; align-items: center; gap: 2rem;
	padding: 1.5rem 0;
	max-width: 1280px; width: 90%; margin: 0 auto;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; color: var(--text-primary); text-decoration: none; line-height: 1; }
.logo span { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-image img { display: block; max-height: 48px; width: auto; }

.cvt-nav-panel { margin-left: auto; }
.cvt-menu { list-style: none; padding: 0; display: flex; gap: 2rem; }
.cvt-menu a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.cvt-menu a:hover, .cvt-menu .current-menu-item > a { color: var(--text-primary); }
.cvt-nav-actions { display: flex; align-items: center; gap: 1rem; }
.cvt-header-btn { padding: 0.75rem 1.5rem; }

.cvt-menu-toggle {
	display: none; background: transparent; border: 1px solid var(--border-color);
	border-radius: 12px; width: 44px; height: 44px; cursor: pointer; position: relative; color: #fff;
}
.cvt-burger, .cvt-burger::before, .cvt-burger::after {
	display: block; position: absolute; left: 50%; width: 18px; height: 2px; background: currentColor;
	transform: translateX(-50%); transition: var(--transition); content: '';
}
.cvt-burger { top: 50%; margin-top: -1px; }
.cvt-burger::before { top: -6px; left: 50%; }
.cvt-burger::after { top: 6px; left: 50%; }
.cvt-menu-toggle[aria-expanded="true"] .cvt-burger { background: transparent; }
.cvt-menu-toggle[aria-expanded="true"] .cvt-burger::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.cvt-menu-toggle[aria-expanded="true"] .cvt-burger::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 1rem 2rem; font-size: 1rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; border-radius: 100px; border: 0;
	transition: var(--transition); cursor: pointer;
}
.btn-primary { background: #FFFFFF; color: #000000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15); }
.btn-outline { background: transparent; color: #FFF; border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.4); }
.btn-accent { background: var(--gradient-accent); color: #FFF; }
.btn-accent:hover { box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3); transform: translateY(-2px); }
.btn-dark { background: #000; color: #FFF; padding: 1.25rem 3rem; font-size: 1.125rem; }
.btn-dark:hover { background: #1a1a1a; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }

.grad-text {
	background: var(--gradient-accent);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ---------- Hero ---------- */
.cvt-hero { padding-top: 12rem; padding-bottom: 4rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-badge {
	display: inline-block; padding: 0.5rem 1rem; border-radius: 100px;
	background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
	color: #818CF8; font-size: 0.875rem; font-weight: 600; margin-bottom: 2rem;
	letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-lead { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 3rem; }

.social-proof-banner {
	margin-top: 3rem; padding: 1rem 2rem; border-radius: 100px;
	background: rgba(168, 85, 247, 0.05); border: 1px solid rgba(168, 85, 247, 0.2);
	display: inline-flex; align-items: center; gap: 1rem;
}
.social-proof-banner span { color: #FFF; font-weight: 600; font-size: 1rem; }
.social-proof-banner strong { color: #A855F7; }

.hero-dashboard-wrapper {
	margin: 4rem auto 0 auto; width: 100%; max-width: 900px;
	background: var(--surface-color); border: 1px solid var(--border-color);
	border-radius: var(--radius-lg); padding: 1.5rem;
	backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.hero-dashboard-wrapper svg { display: block; }

/* ---------- Tech stack ---------- */
.cvt-section.tech-stack {
	border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
	padding: 2.5rem 0; text-align: center; background: rgba(0, 0, 0, 0.3);
}
.tech-stack-label { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 2px; margin: 0 auto 1.5rem; }
.tech-logos {
	display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; opacity: 0.6;
	font-weight: 700; font-size: 1.25rem; color: #FFF; list-style: none; padding: 0;
}

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.bento-card {
	background: var(--surface-color); border: 1px solid var(--border-color);
	border-radius: var(--radius-lg); padding: 3rem; position: relative; overflow: hidden;
	backdrop-filter: blur(10px); transition: var(--transition);
}
.bento-card:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-4px); }
.span-2 { grid-column: span 2; }
.span-full { grid-column: 1 / -1; }

.svg-container {
	width: 100%; border-radius: var(--radius-md); background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.03); margin-bottom: 2rem;
	display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}

/* ---------- Case study ---------- */
.cvt-case-study { background: rgba(10, 10, 10, 0.4); }
.case-card { border-color: rgba(168, 85, 247, 0.3); }
.case-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 1.5rem; }
.case-intro { margin-bottom: 2.5rem; }
.cs-item { border-left: 2px solid rgba(255, 255, 255, 0.1); padding-left: 1.5rem; margin-bottom: 1.5rem; }
.cs-item:last-child { margin-bottom: 0; }
.cs-item--1 { border-left-color: rgba(99, 102, 241, 0.5); }
.cs-item--2 { border-left-color: var(--accent-glow-alt); }
.cs-heading { color: #FFF; font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.cs-item p { font-size: 1rem; color: #CCC; }
.cs-item.is-result p { font-size: 1.125rem; color: #FFF; font-weight: 600; }
.ring-wrap { background: transparent; border: none; height: 100%; margin-bottom: 0; }

/* ---------- ROI ---------- */
.cvt-roi { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.3); }
.roi-head { text-align: center; margin-bottom: 3rem; }
.roi-head p { margin: 0 auto; }
.roi-card { max-width: 900px; margin: 0 auto; text-align: center; background: rgba(99, 102, 241, 0.03); border-color: rgba(99, 102, 241, 0.2); }
.roi-compare { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.roi-box { background: rgba(0, 0, 0, 0.4); padding: 2rem; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.05); min-width: 250px; }
.roi-box.is-optimized { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.3); }
.roi-box p { margin: 0 auto; }
.roi-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 0.5rem !important; }
.roi-rate { font-size: 3rem; color: #FFF; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.roi-rate span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; letter-spacing: 0; }
.is-optimized .roi-rate { color: #A855F7; }
.roi-revenue { margin-top: 1rem !important; color: #FFF; }
.is-optimized .roi-revenue { font-weight: 600; }
.roi-arrow { display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.roi-result { border-top: 1px solid var(--border-color); padding-top: 2.5rem; }
.roi-result p { margin: 0 auto; max-width: 600px; }
.roi-result .roi-result-title { font-size: 1.75rem; color: #FFF; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.5rem; max-width: none; }
.roi-result-title strong { color: #A855F7; }

/* ---------- Process ---------- */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; }
.step { position: relative; }
.step-num { font-size: 0.875rem; font-weight: 700; color: #818CF8; margin-bottom: 1rem; display: block; text-transform: uppercase; letter-spacing: 1px; }
.step::after { content: ''; position: absolute; top: 10px; right: -50%; width: 80%; height: 1px; background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%); }
.step:last-child::after { display: none; }

/* ---------- Qualification ---------- */
.cvt-qualification { background: rgba(10, 10, 10, 0.5); border-top: 1px solid var(--border-color); }
.qual-head { text-align: center; margin-bottom: 4rem; }
.qual-head p { margin: 0 auto; }
.qual-card { padding: 2.5rem; }
.qual-card .cvt-icon { margin-bottom: 1rem; display: block; }
.qual-card h3 { color: #FFF; font-size: 1.25rem; }
.qual-card p { font-size: 1rem; color: #A0A0A0; }

/* ---------- CTA + form ---------- */
.cta-box { background: var(--gradient-accent); border-radius: var(--radius-lg); padding: 6rem 4rem; text-align: center; box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2); }
.cta-box h2 { color: #FFF; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
.cta-box .cta-text { color: rgba(255, 255, 255, 0.9); margin: 1.5rem auto 3rem; font-size: 1.25rem; font-weight: 500; max-width: 650px; }

.cvt-form { max-width: 720px; margin: 0 auto; text-align: left; }
.cvt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.cvt-field--full { grid-column: 1 / -1; }
.cvt-field label { display: block; color: #FFF; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.cvt-field input[type="text"], .cvt-field input[type="email"], .cvt-field textarea {
	width: 100%; background: rgba(0, 0, 0, 0.3); color: #FFF;
	border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 14px;
	padding: 0.9rem 1.1rem; font-size: 1rem; transition: var(--transition);
}
.cvt-field textarea { resize: vertical; min-height: 110px; }
.cvt-field input::placeholder, .cvt-field textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.cvt-field input:focus, .cvt-field textarea:focus { outline: none; border-color: #FFF; background: rgba(0, 0, 0, 0.45); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.cvt-field.has-error input, .cvt-field.has-error textarea { border-color: #FFD1D1; }
.cvt-error { display: block; min-height: 0; color: #FFE1E1; font-size: 0.85rem; margin-top: 0.35rem; font-weight: 500; }
.cvt-error:empty { display: none; }

.cvt-consent label { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 500; font-size: 0.9rem; color: rgba(255, 255, 255, 0.92); cursor: pointer; margin: 0; }
.cvt-consent input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: #000; flex-shrink: 0; }
.cvt-consent a { color: #FFF; }

.cvt-submit { margin-top: 1.75rem; }
.cvt-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.cvt-form-status { margin-top: 1rem; color: #FFF; font-weight: 600; min-height: 1.5em; }
.cvt-form-status.is-error { color: #FFE1E1; }

.cvt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cvt-form.is-sent > :not(.cvt-success) { display: none; }
.cvt-success { text-align: center; padding: 1rem 0; }
.cvt-success h3 { color: #FFF; font-size: 2rem; }
.cvt-success p { color: rgba(255, 255, 255, 0.92); margin: 0 auto; }
.cvt-noscript { color: #FFF; }

/* ---------- Pages, posts, footer ---------- */
.cvt-page { padding-top: 10rem; padding-bottom: 6rem; }
.cvt-page-title { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.cvt-meta { font-size: 0.9rem; margin-bottom: 2rem; }
.cvt-thumb img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin-bottom: 2rem; }
.cvt-card { padding: 2rem 0; border-bottom: 1px solid var(--border-color); }
.cvt-card h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.cvt-card h2 a { color: #FFF; text-decoration: none; }
.cvt-card h2 a:hover { color: var(--accent-glow-alt); }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content p { max-width: none; }
.entry-content h2, .entry-content h3 { margin-top: 2.5rem; }
.entry-content h2 { font-size: 2rem; }
.entry-content ul, .entry-content ol { color: var(--text-secondary); padding-left: 1.5rem; font-size: 1.125rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.entry-content blockquote { border-left: 3px solid var(--accent-glow-alt); padding-left: 1.25rem; color: #DDD; }
.entry-content code { background: rgba(255, 255, 255, 0.08); padding: 0.1em 0.4em; border-radius: 6px; }
.entry-content pre { background: rgba(255, 255, 255, 0.05); padding: 1rem; border-radius: var(--radius-md); overflow-x: auto; }
.navigation.pagination { margin-top: 3rem; }
.navigation .nav-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.navigation .page-numbers { color: #FFF; padding: 0.4rem 0.9rem; border: 1px solid var(--border-color); border-radius: 100px; text-decoration: none; }
.navigation .page-numbers.current { background: #FFF; color: #000; }

.cvt-footer { border-top: 1px solid var(--border-color); padding: 2.5rem 0; }
.cvt-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cvt-footer p { font-size: 0.9rem; }
.cvt-footer-menu { list-style: none; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.cvt-footer-menu a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.cvt-footer-menu a:hover { color: #FFF; }

/* ---------- Scroll reveal ---------- */
.fade-up { opacity: 0; transform: translateY(30px); transition: var(--transition); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.del-1 { transition-delay: 0.1s; } .del-2 { transition-delay: 0.2s; } .del-3 { transition-delay: 0.3s; } .del-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.fade-up { opacity: 1; transform: none; transition: none; }
	.btn, .bento-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.bento-grid { grid-template-columns: 1fr; }
	.span-2, .span-full { grid-column: span 1; }
	.grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
	.process-row { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
	.step::after { display: none; }
}

@media (max-width: 768px) {
	.cvt-section { padding: 5rem 0; }
	.cvt-hero { padding-top: 9rem; }
	.hero-actions { flex-direction: column; }
	.cta-box { padding: 4rem 1.5rem; }
	.social-proof-banner { flex-direction: column; text-align: center; border-radius: var(--radius-md); }
	.tech-logos { gap: 1.25rem 2rem; }
	.bento-card { padding: 2rem; }
	.process-row { grid-template-columns: 1fr; }
	.cvt-form-grid { grid-template-columns: 1fr; }
	.cvt-header-btn { padding: 0.65rem 1.1rem; font-size: 0.9rem; }

	.cvt-menu-toggle { display: inline-block; }
	.cvt-nav { padding: 1rem 0; }
	.cvt-nav-panel {
		display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		background: rgba(3, 3, 3, 0.96); border-bottom: 1px solid var(--border-color);
		padding: 1rem 5%;
	}
	.cvt-nav-panel.is-open { display: block; }
	.cvt-menu { flex-direction: column; gap: 0; }
	.cvt-menu a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
}
