@import url("./base.css");

header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(12px);
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}
.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
}
.brand {
	display: flex;
	gap: 14px;
	align-items: center;
}
.logo {
	width: 52px;
	height: 52px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--accent), #22c55e);
	font-weight: 800;
	color: white;
}
.brand h1 {
	font-size: 1.2rem;
}
.switchWrap {
	display: flex;
	gap: 10px;
	align-items: center;
}
.toggle {
	width: 64px;
	height: 34px;
	border-radius: 999px;
	background: var(--surface2);
	padding: 4px;
	cursor: pointer;
	position: relative;
	border: none;
}
.knob {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: transform 0.25s ease;
}
body.dark .knob {
	transform: translateX(30px);
}
.hero {
	padding: 48px 0 20px;
}
.heroBox {
	background: var(--surface);
	box-shadow: var(--shadow);
	border-radius: 32px;
	padding: 34px;
}
.hero h2 {
	font-size: clamp(2rem, 5vw, 3.8rem);
	line-height: 1.1;
}
.hero p {
	margin-top: 14px;
	color: var(--muted);
	max-width: 760px;
}
section {
	padding: 30px 0;
}
.templates {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	gap: 1rem;
}

/* .preview{

position:relative;
}

.preview .iframe{
width:100%;     
height:100%;

transform:scale(1);
transform-origin:center;

border:none;
} */

.grid {
	/* display: flex; */
	width: 20rem;
	gap: 24px;
}
.card {
	background: var(--surface);
	border-radius: 20px;
	/* overflow:hidden; */
	box-shadow: var(--shadow);
	transition: transform 0.22s ease;
}

.card:hover {
	transform: translateY(-4px);
}
.card .preview {
	height: 190px;
	background: linear-gradient(135deg, #dbeafe, #bfdbfe);
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
	display: grid;
	place-items: center;
	/* font-size:1.2rem; */
	/* font-weight:700; */
	/* color:#1e3a8a; */
}
.card .preview iframe {
	/* border-top-left-radius: inherit;
		border-top-right-radius: inherit; */
	border-radius: 10px;
}

.card .content {
	padding: 20px;
}
.card .content h3 {
	margin-bottom: 10px;
}
.card .content p {
	color: var(--muted);
	min-height: 70px;
}

.card .featureTags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 12px 0;
}

.card .featureTags span {
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	background: var(--surface);
}

body.dark .preview {
	background: linear-gradient(135deg, #1e293b, #334155);
	color: var(--accent);
}
