* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary: #667eea;
	--primary-dark: #764ba2;
	--bg: #fafafa;
	--surface: #ffffff;
	--text: #1a1a2e;
	--text-secondary: #64648c;
	--border: #e8e8f0;
	--radius: 16px;
	--radius-sm: 10px;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
		Roboto, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Nav */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(250, 250, 250, 0.8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
}

.nav-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text);
	font-weight: 700;
	font-size: 18px;
}

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

.nav-links a {
	text-decoration: none;
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s;
}

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

/* Hero */
.hero {
	position: relative;
	padding: 160px 0 80px;
	text-align: center;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	top: -200px;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(
		circle,
		rgba(102, 126, 234, 0.12) 0%,
		transparent 70%
	);
	pointer-events: none;
}

.hero-badge {
	display: inline-block;
	padding: 6px 16px;
	background: rgba(102, 126, 234, 0.1);
	color: var(--primary);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 24px;
}

.hero h1 {
	font-size: 56px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -1.5px;
	margin-bottom: 20px;
}

.gradient-text {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-desc {
	font-size: 18px;
	color: var(--text-secondary);
	max-width: 560px;
	margin: 0 auto 36px;
	line-height: 1.7;
}

.hero-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 64px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: white;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
	box-shadow: 0 6px 24px rgba(102, 126, 234, 0.45);
	transform: translateY(-1px);
}

.btn-secondary {
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	border-color: #ccc;
	background: #f5f5f7;
}

/* Preview Window */
.hero-preview {
	max-width: 480px;
	margin: 0 auto;
	perspective: 1000px;
}

.preview-window {
	background: #f5f5f7;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
	text-align: left;
}

.preview-titlebar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

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

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

.preview-body {
	padding: 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.preview-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding-bottom: 8px;
}

.preview-app-icon {
	font-size: 22px;
}

.preview-app-name {
	font-size: 22px;
	font-weight: 800;
	color: var(--text);
}

.preview-auto-start {
	margin-left: auto;
	font-size: 12px;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 6px;
}

.toggle-track {
	display: inline-block;
	width: 34px;
	height: 18px;
	background: #ddd;
	border-radius: 9px;
	position: relative;
}

.toggle-thumb {
	position: absolute;
	left: 2px;
	top: 2px;
	width: 14px;
	height: 14px;
	background: white;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.preview-section {
	background: var(--surface);
	border-radius: var(--radius-sm);
	padding: 16px;
	border: 1px solid var(--border);
}

.preview-section-title {
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.title-bar {
	display: inline-block;
	width: 4px;
	height: 18px;
	background: var(--primary);
	border-radius: 2px;
}

.settings-icon {
	margin-left: auto;
	font-size: 14px;
	opacity: 0.5;
}

.preview-toolbar {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.preview-profile {
	font-size: 12px;
	background: #f0f0f5;
	padding: 4px 12px;
	border-radius: 6px;
	color: var(--primary);
	font-weight: 600;
	border: 1px solid var(--border);
}

.preview-toolbar-btn {
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 6px;
	background: #f0f0f5;
	border: 1px solid var(--border);
	cursor: default;
}

.preview-toolbar-btn.add {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: white;
	border: none;
	font-weight: 600;
	padding: 4px 12px;
	margin-left: auto;
}

.preview-form-group {
	margin-bottom: 10px;
}

.preview-form-group:last-child {
	margin-bottom: 0;
}

.preview-form-group label {
	display: block;
	font-size: 12px;
	color: var(--text-secondary);
	margin-bottom: 4px;
	font-weight: 500;
}

.preview-form-input {
	font-size: 13px;
	color: var(--text);
	background: #f5f5f7;
	padding: 10px 12px;
	border-radius: 8px;
	font-family: "SF Mono", "Fira Code", monospace;
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.input-icon {
	font-size: 14px;
	opacity: 0.5;
}

.preview-model-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: #f5f5f7;
	border-radius: 8px;
	margin-bottom: 6px;
	border: 1px solid var(--border);
}

.preview-model-row:last-child {
	margin-bottom: 0;
}

.model-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	min-width: 80px;
}

.model-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.3px;
}

.model-badge.cc {
	background: rgba(102, 126, 234, 0.15);
	color: var(--primary);
}

.model-badge.cx {
	background: rgba(118, 75, 162, 0.15);
	color: var(--primary-dark);
}

.model-name {
	font-size: 12px;
	color: var(--text-secondary);
	font-family: "SF Mono", "Fira Code", monospace;
	margin-left: auto;
}

.preview-status-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.status-card {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border-radius: var(--radius-sm);
	border: 2px solid;
}

.status-card.claude {
	border-color: var(--primary);
	background: rgba(102, 126, 234, 0.04);
}

.status-card.codex {
	border-color: var(--primary-dark);
	background: rgba(118, 75, 162, 0.04);
}

.status-icon {
	font-size: 16px;
}

.status-info {
	display: flex;
	flex-direction: column;
	font-size: 11px;
	color: var(--text-secondary);
	line-height: 1.4;
}

.status-info strong {
	font-size: 12px;
	color: var(--text);
}

.green-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #28c840;
	border-radius: 50%;
	margin-right: 3px;
	vertical-align: middle;
}

.status-check {
	margin-left: auto;
	color: var(--primary);
	font-weight: 700;
	font-size: 14px;
}

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

.section-title {
	text-align: center;
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin-bottom: 12px;
}

.section-desc {
	text-align: center;
	color: var(--text-secondary);
	font-size: 16px;
	margin-bottom: 56px;
}

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

.feature-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
	transition: all 0.25s;
}

.feature-card:hover {
	border-color: rgba(102, 126, 234, 0.3);
	box-shadow: 0 8px 30px rgba(102, 126, 234, 0.08);
	transform: translateY(-2px);
}

.feature-icon {
	font-size: 32px;
	margin-bottom: 16px;
}

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

.feature-card p {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* Download */
.download {
	padding: 100px 0;
	background: linear-gradient(180deg, var(--bg) 0%, #f0f0f8 100%);
}

.download-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	align-items: start;
	max-width: 760px;
	margin: 0 auto;
}

.download-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px 24px;
	text-align: center;
	transition: all 0.25s;
}

.download-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.download-card.primary {
	border-color: rgba(102, 126, 234, 0.3);
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.platform-icon {
	color: var(--text);
	margin-bottom: 16px;
}

.download-card h3 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 4px;
}

.platform-desc {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 24px;
}

.download-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.btn-download {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: white;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: all 0.2s;
	border: none;
	cursor: pointer;
	width: 100%;
}

.btn-download:hover {
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
	transform: translateY(-1px);
}

.btn-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.btn-text {
	text-align: left;
	line-height: 1.3;
}

.btn-text strong {
	display: block;
	font-size: 14px;
}

.btn-text small {
	display: block;
	font-size: 11px;
	opacity: 0.85;
}

.download-hint {
	margin-top: 12px;
	font-size: 12px;
	color: var(--text-secondary);
}

/* Mac tip */
.mac-tip {
	margin-top: 16px;
}

.mac-tip details {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.mac-tip summary {
	padding: 10px 14px;
	font-size: 13px;
	color: var(--text-secondary);
	cursor: pointer;
	user-select: none;
	transition: background 0.15s;
}

.mac-tip summary:hover {
	background: rgba(102, 126, 234, 0.05);
}

.mac-tip-content {
	padding: 12px 14px;
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.7;
	border-top: 1px solid var(--border);
}

.mac-tip-method {
	margin-top: 10px;
	color: var(--text);
}

.mac-tip-code {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	padding: 10px 12px;
	background: #1a1a2e;
	border-radius: 8px;
	overflow-x: auto;
}

.mac-tip-code code {
	flex: 1;
	font-family: "SF Mono", Menlo, monospace;
	font-size: 12px;
	color: #e0e0e0;
	white-space: nowrap;
}

.copy-btn {
	flex-shrink: 0;
	padding: 4px 10px;
	font-size: 11px;
	color: #ccc;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s;
}

.copy-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* Modal */
.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 200;
	align-items: center;
	justify-content: center;
}

.modal-overlay.show {
	display: flex;
	animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.modal {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 32px;
	max-width: 400px;
	width: 90%;
	text-align: center;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

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

.modal-close:hover {
	color: var(--text);
}

.modal h3 {
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 6px;
}

.modal-hint {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 24px;
}

.modal-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.modal-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 20px 16px;
	background: #f5f5f7;
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--text);
	transition: all 0.2s;
	cursor: pointer;
}

.modal-btn:hover {
	border-color: var(--primary);
	background: rgba(102, 126, 234, 0.06);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.modal-btn strong {
	font-size: 15px;
}

.modal-btn small {
	font-size: 11px;
	color: var(--text-secondary);
}

/* Quick Start */
.quick-start {
	padding: 100px 0;
}

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

.step {
	text-align: center;
}

.step-number {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: white;
	border-radius: 50%;
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 20px;
}

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

.step p {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.7;
}

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

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15px;
}

.footer-text {
	font-size: 13px;
	color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 36px;
	}

	.hero-desc {
		font-size: 16px;
	}

	.hero-actions {
		flex-direction: column;
		align-items: center;
	}

	.preview-body {
		flex-direction: column;
	}

	.preview-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--border);
		display: flex;
		gap: 4px;
		padding: 8px;
	}

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

	.download-card.primary {
		order: -1;
	}

	.nav-links {
		gap: 20px;
	}

	.footer-inner {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.hero {
		padding: 120px 0 60px;
	}

	.hero h1 {
		font-size: 28px;
	}

	.section-title {
		font-size: 28px;
	}
}
