/* ===========================================
   Features Section - Card Grid & Mockups
   =========================================== */

.feat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-m);
}

.feat-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #f3f4f6;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Mockup area */
.feat-card__mockup {
	height: 220px;
	padding: 32px 24px 24px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
}

/* Per-card gradient backgrounds */
.feat-card__mockup--memory   { background: linear-gradient(135deg, #ede9fe 0%, #faf5ff 100%); }
.feat-card__mockup--tools    { background: linear-gradient(135deg, #fef3c7 0%, #fefce8 100%); }
.feat-card__mockup--llms     { background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%); }
.feat-card__mockup--dashboard{ background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%); }
.feat-card__mockup--integrations { background: linear-gradient(135deg, #ffe4e6 0%, #fdf2f8 100%); }
.feat-card__mockup--embedding{ background: linear-gradient(135deg, #e2e8f0 0%, #f3f4f6 100%); }

/* Card text */
.feat-card__content {
	padding: var(--space-m);
}

.feat-card__title {
	font-size: var(--step-1);
	font-weight: 600;
	color: #111827;
	margin: 0 0 var(--space-3xs) 0;
}

.feat-card__desc {
	font-size: var(--step-0);
	color: #4b5563;
	line-height: 1.6;
	margin: 0;
}

/* ===========================================
   Shared Mockup Panel
   =========================================== */

.feat-mock {
	background: #fff;
	border-radius: 8px;
	padding: 12px;
	width: 256px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.feat-mock--narrow {
	width: 224px;
	padding: 16px;
}

.feat-mock__title {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 2px 0;
}

.feat-mock__title--sm {
	font-size: 12px;
	font-weight: 600;
}

.feat-mock__subtitle {
	font-size: 8px;
	color: #9ca3af;
	margin: 0 0 12px 0;
}

/* ===========================================
   Card 1: Powerful Memory
   =========================================== */

.feat-mem__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.feat-mem__item {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #f3f4f6;
	border-radius: 8px;
	padding: 8px;
}

.feat-mem__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.feat-mem__avatar svg {
	width: 14px;
	height: 14px;
	color: #fff;
}

.feat-mem__name {
	font-size: 9px;
	font-weight: 500;
	color: #111827;
}

.feat-mem__detail {
	font-size: 8px;
	color: #9ca3af;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ===========================================
   Card 2: Power Tools
   =========================================== */

.feat-tools__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.feat-tools__item {
	border: 1px solid #f3f4f6;
	border-radius: 8px;
	padding: 8px;
}

.feat-tools__name {
	font-size: 9px;
	font-weight: 500;
	color: #111827;
	margin-bottom: 2px;
}

.feat-tools__desc {
	font-size: 7px;
	color: #9ca3af;
	line-height: 1.3;
}

/* ===========================================
   Card 3: Flexible LLMs
   =========================================== */

.feat-llms__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.feat-llms__label {
	font-size: 12px;
	font-weight: 500;
	color: #374151;
	margin: 0 0 12px 0;
}

.feat-llms__item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.feat-llms__check {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.feat-llms__check svg {
	width: 10px;
	height: 10px;
	color: #fff;
}

.feat-llms__name {
	font-size: 13px;
	font-weight: 400;
	color: #374151;
	font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

/* ===========================================
   Card 4: Admin Dashboard
   =========================================== */

.feat-dash__tabs {
	display: flex;
	gap: 12px;
	font-size: 8px;
	border-bottom: 1px solid #f3f4f6;
	padding-bottom: 8px;
	margin-bottom: 12px;
}

.feat-dash__tab {
	color: #9ca3af;
}

.feat-dash__tab--active {
	color: #2563eb;
	font-weight: 600;
	border-bottom: 1px solid #2563eb;
	padding-bottom: 7px;
	margin-bottom: -8px;
}

.feat-dash__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.feat-dash__stat {
	border: 1px solid #f3f4f6;
	border-radius: 8px;
	padding: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.feat-dash__icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.feat-dash__icon svg {
	width: 12px;
	height: 12px;
}

.feat-dash__icon--blue    { background: #dbeafe; color: #2563eb; }
.feat-dash__icon--pink    { background: #fce7f3; color: #db2777; }
.feat-dash__icon--yellow  { background: #fef3c7; color: #ca8a04; }
.feat-dash__icon--orange  { background: #ffedd5; color: #ea580c; }
.feat-dash__icon--green   { background: #dcfce7; color: #16a34a; }
.feat-dash__icon--purple  { background: #f3e8ff; color: #9333ea; }
.feat-dash__icon--cyan    { background: #cffafe; color: #0891b2; }
.feat-dash__icon--red     { background: #fee2e2; color: #dc2626; }

.feat-dash__stat-label {
	font-size: 8px;
	color: #9ca3af;
}

.feat-dash__stat-value {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}

/* ===========================================
   Card 5: Integrations
   =========================================== */

.feat-api__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.feat-api__item {
	border: 1px solid #f3f4f6;
	border-radius: 8px;
	padding: 8px;
}

.feat-api__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.feat-api__name {
	font-size: 9px;
	font-weight: 500;
	color: #111827;
}

.feat-api__badge {
	font-size: 7px;
	background: #dcfce7;
	color: #15803d;
	padding: 2px 6px;
	border-radius: 4px;
}

.feat-api__url {
	font-size: 10px;
	color: #9ca3af;
	font-family: 'Courier New', monospace;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ===========================================
   Card 6: Website Embedding
   =========================================== */

.feat-embed__header {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.feat-embed__icon {
	font-size: 14px;
	font-family: 'Courier New', monospace;
	color: #9333ea;
	font-weight: 700;
}

.feat-embed__label {
	font-size: 9px;
	font-weight: 600;
	color: #111827;
}

.feat-embed__sublabel {
	font-size: 7px;
	color: #9ca3af;
}

.feat-embed__code {
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 4px;
	padding: 8px;
	font-family: 'Courier New', monospace;
	font-size: 6px;
	color: #4b5563;
	line-height: 1.8;
	margin-bottom: 8px;
}

.feat-embed__code-comment {
	color: #9ca3af;
}

.feat-embed__code-indent {
	padding-left: 8px;
}

.feat-embed__btn {
	display: block;
	width: 100%;
	padding: 6px 0;
	border-radius: 4px;
	font-size: 8px;
	font-weight: 500;
	color: #fff;
	text-align: center;
	border: none;
	cursor: default;
}

.feat-embed__btn--purple {
	background: #a855f7;
	margin-bottom: 12px;
}

.feat-embed__btn--blue {
	background: #3b82f6;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.feat-embed__btn--blue svg {
	width: 12px;
	height: 12px;
}

.feat-embed__section-title {
	font-size: 9px;
	font-weight: 600;
	color: #111827;
	margin-bottom: 4px;
}

.feat-embed__section-desc {
	font-size: 7px;
	color: #9ca3af;
	margin-bottom: 8px;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 1024px) {
	.feat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.feat-grid {
		grid-template-columns: 1fr;
		gap: var(--space-l);
	}

	.feat-card {
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	}
}
