/* ===== Custom Properties ===== */
:root {
	--purple: #7c5cfc;
	--purple-light: #a78bfa;
	--purple-bg: #f5f3ff;
	--bg: #fafafa;
	--surface: #ffffff;
	--text: #1a1a2e;
	--text-secondary: #6b7280;
	--border: #e5e7eb;
	--border-light: #f3f4f6;
	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
	--font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	overflow-x: hidden;
	font-family: var(--font);
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

/* ===== Layout ===== */
.container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ===== Modal ===== */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition);
}

.modal-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.modal-card {
	background: var(--surface);
	border-radius: var(--radius-lg);
	padding: 48px;
	text-align: center;
	max-width: 400px;
	width: 90%;
	box-shadow: var(--shadow-lg);
	position: relative;
}

.modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--text-secondary);
	line-height: 1;
}

.modal-emoji {
	font-size: 48px;
	margin-bottom: 16px;
}

.modal-card h3 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.modal-card p {
	color: var(--text-secondary);
}

/* ===== Navigation ===== */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(250, 250, 250, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-light);
	z-index: 100;
	transition: box-shadow var(--transition);
}

.nav.scrolled {
	box-shadow: var(--shadow-sm);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.2rem;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav-links a {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-secondary);
	transition: color var(--transition);
}

.nav-links a:hover {
	color: var(--text);
}

.nav-mando {
	color: var(--purple) !important;
	font-weight: 600 !important;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.nav-toggle span {
	width: 22px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
	padding: 180px 0 120px;
	text-align: center;
}

.hero-inner {
	max-width: 680px;
	margin: 0 auto;
}

.hero-headline {
	font-size: clamp(2.8rem, 6vw, 4.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin-bottom: 24px;
}

.hero-sub {
	font-size: 1.2rem;
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 40px;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 50px;
	font-family: var(--font);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
	border: none;
}

.btn-primary {
	background: var(--purple);
	color: #fff;
}

.btn-primary:hover {
	background: #6a48e8;
	transform: translateY(-1px);
	box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
}

.btn-outline {
	background: transparent;
	color: var(--text);
	border: 1.5px solid var(--border);
}

.btn-outline:hover {
	border-color: var(--purple);
	color: var(--purple);
}

/* ===== Integrations Strip ===== */
.integrations {
	padding: 0 0 80px;
	text-align: center;
}

.integrations-label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-secondary);
	margin-bottom: 24px;
}

.integrations-row {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 32px;
}

.int-logo {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-secondary);
	opacity: 0.5;
	transition: opacity var(--transition);
}

.int-logo:hover {
	opacity: 1;
}

/* ===== Section Titles ===== */
.section-title {
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
	text-align: center;
}

.section-sub {
	font-size: 1.05rem;
	color: var(--text-secondary);
	text-align: center;
	max-width: 560px;
	margin: 0 auto 56px;
}

/* ===== Features ===== */
.features {
	padding: 100px 0;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.feature-card {
	background: var(--surface);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	padding: 32px 24px;
	transition: all var(--transition);
}

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

.feature-icon {
	font-size: 1.8rem;
	display: block;
	margin-bottom: 16px;
}

.feature-card h3 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.feature-card p {
	font-size: 0.88rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 16px;
}

.feature-card code {
	display: block;
	font-size: 0.8rem;
	background: var(--bg);
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--purple);
	font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ===== How It Works ===== */
.how-it-works {
	padding: 100px 0;
	background: var(--surface);
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-top: 24px;
}

.step {
	text-align: center;
	padding: 24px;
}

.step-number {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--purple-bg);
	color: var(--purple);
	font-weight: 800;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.step h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.step p {
	font-size: 0.92rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* ===== Demo / Terminal ===== */
.demo {
	padding: 100px 0;
}

.terminal {
	max-width: 720px;
	margin: 0 auto;
	background: #1a1a2e;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	background: #16162a;
}

.terminal-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
	margin-left: auto;
	font-size: 0.75rem;
	color: #6b7280;
	font-family: monospace;
}

.terminal-body {
	padding: 24px;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.85rem;
	line-height: 2;
}

.term-line {
	color: #e2e8f0;
}

.prompt {
	color: var(--purple-light);
	margin-right: 8px;
}

.term-line.output {
	color: #94a3b8;
	padding-left: 18px;
}

/* ===== Stats ===== */
.stats {
	padding: 80px 0;
	background: var(--surface);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	text-align: center;
}

.stat-number {
	font-size: 3rem;
	font-weight: 800;
	color: var(--purple);
	line-height: 1;
}

.stat-suffix {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--purple);
}

.stat-label {
	display: block;
	margin-top: 8px;
	font-size: 0.88rem;
	color: var(--text-secondary);
}

/* ===== Trust Bar ===== */
.trust-bar {
	padding: 40px 0;
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
	background: var(--surface);
}

.trust-inner {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 40px;
}

.trust-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-secondary);
}

.trust-icon {
	font-size: 1.2rem;
}

/* ===== Pricing ===== */
.pricing {
	padding: 100px 0;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: start;
}

.price-card {
	background: var(--surface);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	padding: 36px 28px;
	position: relative;
	transition: all var(--transition);
}

.price-card:hover {
	box-shadow: var(--shadow-md);
}

.price-card.featured {
	border-color: var(--purple);
	box-shadow: 0 0 0 1px var(--purple), var(--shadow-md);
}

.price-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--purple);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 4px 16px;
	border-radius: 50px;
	white-space: nowrap;
}

.price-tier {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.price-amount {
	font-size: 2.4rem;
	font-weight: 800;
	margin-bottom: 24px;
	line-height: 1;
}

.price-currency {
	font-size: 1.2rem;
	vertical-align: super;
}

.price-period {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-secondary);
}

.price-features {
	margin-bottom: 28px;
}

.price-features li {
	font-size: 0.88rem;
	padding: 6px 0;
	color: var(--text);
}

.price-features li::before {
	content: '✓ ';
	color: var(--purple);
	font-weight: 700;
}

.price-features li.disabled {
	color: var(--text-secondary);
	opacity: 0.5;
}

.price-features li.disabled::before {
	content: '— ';
	color: var(--text-secondary);
}

.price-features code {
	font-size: 0.8rem;
	background: var(--purple-bg);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'SF Mono', monospace;
}

.price-card .btn {
	width: 100%;
	text-align: center;
}

/* ===== Changelog ===== */
.changelog {
	padding: 100px 0;
	background: var(--surface);
}

.changelog-list {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.changelog-entry {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px;
	background: var(--bg);
	border-radius: var(--radius-sm);
}

.cl-badge {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 10px;
	border-radius: 50px;
	white-space: nowrap;
	flex-shrink: 0;
}

.cl-badge.new {
	background: var(--purple-bg);
	color: var(--purple);
}

.cl-badge.improved {
	background: #ecfdf5;
	color: #059669;
}

.cl-badge.fix {
	background: #fef3c7;
	color: #d97706;
}

.cl-content h4 {
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 4px;
}

.cl-content p {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

.cl-content code {
	font-size: 0.8rem;
	background: var(--surface);
	padding: 1px 5px;
	border-radius: 4px;
	font-family: 'SF Mono', monospace;
}

/* ===== Testimonials ===== */
.testimonials {
	padding: 100px 0;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.testimonial {
	background: var(--surface);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	padding: 32px;
	transition: all var(--transition);
}

.testimonial:hover {
	box-shadow: var(--shadow-sm);
}

.testimonial-quote {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--text);
	margin-bottom: 20px;
	font-style: italic;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--purple-bg);
	color: var(--purple);
	font-weight: 700;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.testimonial-author strong {
	display: block;
	font-size: 0.88rem;
	font-weight: 700;
}

.testimonial-author span {
	font-size: 0.78rem;
	color: var(--text-secondary);
}

/* ===== FAQ ===== */
.faq {
	padding: 100px 0;
	background: var(--surface);
}

.faq-list {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.faq-item {
	border: 1px solid var(--border-light);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: var(--surface);
	border: none;
	cursor: pointer;
	font-family: var(--font);
	font-size: 0.95rem;
	font-weight: 600;
	text-align: left;
	color: var(--text);
	transition: background var(--transition);
}

.faq-question:hover {
	background: var(--bg);
}

.faq-chevron {
	font-size: 1.3rem;
	font-weight: 400;
	color: var(--text-secondary);
	transition: transform var(--transition);
	flex-shrink: 0;
}

.faq-item.open .faq-chevron {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.faq-answer p {
	padding: 0 20px 18px;
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

.faq-answer code {
	font-size: 0.82rem;
	background: var(--bg);
	padding: 2px 5px;
	border-radius: 4px;
	font-family: 'SF Mono', monospace;
}

/* ===== Portfolio Banner ===== */
.portfolio-banner {
	padding: 60px 0;
	background: var(--purple-bg);
	text-align: center;
}

.portfolio-banner h3 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 24px;
}

.portfolio-banner h3 a {
	color: var(--purple);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.portfolio-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 20px;
}

.portfolio-row a {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-secondary);
	transition: color var(--transition);
}

.portfolio-row a:hover {
	color: var(--purple);
}

.current-brand {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--purple);
}

/* ===== Footer ===== */
.footer {
	padding: 60px 0 32px;
	border-top: 1px solid var(--border-light);
}

.footer-inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 1.1rem;
}

.footer-links {
	display: flex;
	gap: 80px;
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-col h4 {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-secondary);
	margin-bottom: 4px;
}

.footer-col a {
	font-size: 0.88rem;
	color: var(--text-secondary);
	transition: color var(--transition);
}

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

.footer-bottom {
	border-top: 1px solid var(--border-light);
	padding-top: 24px;
}

.footer-bottom p {
	font-size: 0.78rem;
	color: var(--text-secondary);
}

.footer-bottom a {
	color: var(--purple);
}

/* ===== Animations ===== */
[data-animate] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.pricing-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

@media (max-width: 768px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--surface);
		flex-direction: column;
		padding: 24px;
		gap: 16px;
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-md);
	}

	.nav-links.open {
		display: flex;
	}

	.nav-toggle {
		display: flex;
	}

	.hero {
		padding: 140px 0 80px;
	}

	.features-grid {
		grid-template-columns: 1fr;
	}

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

	.pricing-grid {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin: 0 auto;
	}

	.stats-grid {
		grid-template-columns: 1fr 1fr;
	}

	.testimonials-grid {
		grid-template-columns: 1fr;
	}

	.footer-links {
		flex-direction: column;
		gap: 32px;
	}

	.trust-inner {
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.hero-headline {
		font-size: 2.2rem;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.integrations-row {
		gap: 20px;
	}
}

/* ===== Portfolio Pills (universal) ===== */
.portfolio-banner,
[class*="portfolio-banner"] {
	padding: 3rem 0;
	text-align: center;
}

.portfolio-banner .container,
[class*="portfolio-banner"] .container,
[class*="portfolio-banner"] [class*="portfolio-banner-inner"] {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.portfolio-scroll,
.portfolio-grid,
.portfolio-list,
.portfolio-links,
.portfolio-commands,
.portfolio-track,
.portfolio-banner-commands,
.portfolio-items,
.footer-commands {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 1rem;
}

.portfolio-scroll a,
.portfolio-grid a,
.portfolio-list a,
.portfolio-links a,
.portfolio-commands a,
.portfolio-track a,
.portfolio-banner-commands a,
.portfolio-items a,
.footer-commands a {
	display: inline-block;
	padding: 6px 14px;
	font-size: .75rem;
	font-weight: 600;
	border-radius: 100px;
	border: 1px solid #7c5cfc;
	opacity: .55;
	text-decoration: none;
	transition: opacity .2s ease, transform .15s ease;
	white-space: nowrap;
}

.portfolio-scroll a:hover,
.portfolio-grid a:hover,
.portfolio-list a:hover,
.portfolio-links a:hover,
.portfolio-commands a:hover,
.portfolio-track a:hover,
.portfolio-banner-commands a:hover,
.portfolio-items a:hover,
.footer-commands a:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.portfolio-current,
.portfolio-scroll .portfolio-current,
.portfolio-grid .portfolio-current,
.portfolio-list .portfolio-current,
.portfolio-banner-commands .portfolio-current,
span.portfolio-current,
[class*="portfolio"] span.current,
[class*="portfolio"] span[class*="current"] {
	display: inline-block;
	padding: 6px 14px;
	font-size: .75rem;
	font-weight: 700;
	border-radius: 100px;
	opacity: 1;
	white-space: nowrap;
}

.portfolio-label,
.portfolio-banner-label {
	font-size: .8125rem;
	opacity: .6;
	margin-bottom: .5rem;
}

.portfolio-label a,
.portfolio-banner-label a {
	border: none !important;
	padding: 0 !important;
	opacity: 1 !important;
	font-weight: 700 !important;
	border-radius: 0 !important;
}

.portfolio-current,
span.portfolio-current,
[class*="portfolio"] span.current,
[class*="portfolio"] span[class*="current"] {
        background: #7c5cfc !important;
        color: #fff !important;
        border: 1px solid #7c5cfc !important;
	background: #7c5cfc !important;
	color: #fff !important;
	border: 1px solid #7c5cfc !important;
	opacity: 1 !important;
}

[class*="avatar"]{overflow:hidden}[class*="avatar"] img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}