/* Epoch AI — 共用網站樣式（首頁 / 方案頁 / 聊天室頁）
   配色與質感對齊 epoch-shop.shop：深色背景 + Matrix 綠色雨 + 螢光綠強調色 */

:root {
	--bg: #050906;
	--surface: rgba(9, 26, 15, 0.85);
	--surface-strong: rgba(10, 40, 20, 0.92);
	--border: rgba(44, 255, 124, 0.25);
	--border-strong: rgba(44, 255, 124, 0.45);
	--text: #d8ffe5;
	--text-muted: #8dd9a5;
	--accent: #2cff7c;
	--accent-soft: #7dffb1;
	--danger: #ff6f85;
	--radius: 16px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: radial-gradient(circle at top, #0b1f12 0%, var(--bg) 45%);
	color: var(--text);
	font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
	line-height: 1.6;
	min-height: 100vh;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
}

.container {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Matrix 背景雨 */
#matrix {
	position: fixed;
	inset: 0;
	z-index: -2;
}

.bg-mask {
	position: fixed;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.72));
	pointer-events: none;
	z-index: -1;
}

/* Nav */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(4, 12, 8, 0.88);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(8px);
}

.site-nav .container {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 12px;
	padding-bottom: 12px;
	min-height: 64px;
}

.site-logo {
	display: flex;
	align-items: center;
	margin-right: auto;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.1em;
	text-decoration: none;
	color: #b9ffd2;
	text-shadow: 0 0 10px rgba(44, 255, 124, 0.45);
}

.site-logo:hover {
	color: #f1fff7;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.nav-links a {
	text-decoration: none;
	color: var(--accent-soft);
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--border);
	background: rgba(8, 22, 13, 0.8);
	padding: 8px 16px;
	border-radius: 999px;
	transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
	color: #072511;
	background: linear-gradient(90deg, var(--accent), #67ff9f);
	border-color: transparent;
}

.nav-cta {
	display: flex;
	gap: 10px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
}

.btn-primary {
	background: linear-gradient(90deg, #21d46a, #74ffab);
	color: #04260f;
}

.btn-primary:hover {
	filter: brightness(1.08);
}

.btn-ghost {
	background: rgba(8, 20, 12, 0.75);
	border-color: var(--border-strong);
	color: var(--accent-soft);
}

.btn-ghost:hover {
	border-color: var(--accent);
	color: #eafff2;
}

.btn-block {
	display: flex;
	width: 100%;
}

/* Hero */
.hero {
	padding: 96px 0 72px;
	text-align: center;
}

.hero .eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 13px;
	margin-bottom: 20px;
}

.hero h1 {
	position: relative;
	display: inline-block;
	font-size: clamp(32px, 5vw, 52px);
	margin: 0 0 20px;
	letter-spacing: 0.04em;
	color: #d9ffe7;
	text-shadow: 0 0 8px rgba(44, 255, 124, 0.45), 0 0 22px rgba(39, 184, 96, 0.35);
}

.hero h1::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 2px;
	background: linear-gradient(90deg, transparent, #3dff86, transparent);
	animation: titleScan 2.2s linear infinite;
}

@keyframes titleScan {
	0% { opacity: 0.15; transform: scaleX(0.2); }
	50% { opacity: 0.9; transform: scaleX(1); }
	100% { opacity: 0.15; transform: scaleX(0.2); }
}

.hero p {
	max-width: 640px;
	margin: 0 auto 32px;
	color: var(--text-muted);
	font-size: 17px;
}

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

/* Sections */
.section {
	padding: 64px 0;
	border-top: 1px solid var(--border);
}

.section-head {
	text-align: center;
	max-width: 560px;
	margin: 0 auto 40px;
}

.section-head h2 {
	font-size: 28px;
	margin: 0 0 12px;
	color: #d9ffe7;
}

.section-head p {
	color: var(--text-muted);
	margin: 0;
}

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

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.card .icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(44, 255, 124, 0.15);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	margin-bottom: 16px;
}

.card h3 {
	margin: 0 0 8px;
	font-size: 17px;
	color: #eafff2;
}

.card p {
	margin: 0;
	color: var(--text-muted);
	font-size: 14px;
}

/* Steps */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	counter-reset: step;
}

.step {
	position: relative;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.step .step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--accent), #67ff9f);
	color: #04260f;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
	margin-bottom: 14px;
}

.step h3 {
	margin: 0 0 6px;
	font-size: 16px;
	color: #eafff2;
}

.step p {
	margin: 0;
	color: var(--text-muted);
	font-size: 14px;
}

/* Pricing */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: 760px;
	margin: 0 auto;
}

.price-card {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px;
	display: flex;
	flex-direction: column;
}

.price-card.featured {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent), 0 15px 30px rgba(0, 0, 0, 0.35);
}

.price-card .badge {
	align-self: flex-start;
	background: var(--accent);
	color: #04260f;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.price-card h3 {
	margin: 0 0 4px;
	font-size: 20px;
	color: #eafff2;
}

.price-card .price {
	font-size: 36px;
	font-weight: 700;
	margin: 12px 0;
	color: var(--accent);
}

.price-card .price span {
	font-size: 14px;
	font-weight: 400;
	color: var(--text-muted);
}

.price-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	flex: 1;
}

.price-card li {
	padding: 8px 0;
	color: var(--text-muted);
	font-size: 14px;
	border-top: 1px solid var(--border);
}

.price-card li:first-child {
	border-top: none;
}

.price-card li::before {
	content: "✓ ";
	color: var(--accent);
	font-weight: 700;
}

.paypal-card-fields {
	display: grid;
	gap: 12px;
	margin: 12px 0;
}

.paypal-card-fields[hidden] {
	display: none;
}

.paypal-card-fields label {
	display: grid;
	gap: 6px;
	color: var(--text-muted);
	font-size: 14px;
}

.paypal-card-field {
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
}

/* FAQ */
.faq-item {
	border-top: 1px solid var(--border);
	padding: 18px 0;
}

.faq-item:last-child {
	border-bottom: 1px solid var(--border);
}

.faq-item h3 {
	margin: 0 0 8px;
	font-size: 15px;
	color: #eafff2;
}

.faq-item p {
	margin: 0;
	color: var(--text-muted);
	font-size: 14px;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 32px 0;
	text-align: center;
	color: var(--text-muted);
	font-size: 13px;
}

.site-footer .footer-links {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.site-footer .footer-links a {
	text-decoration: none;
	color: var(--text-muted);
}

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

/* Chat page */
.chat-page-wrap {
	padding: 40px 0 80px;
}

.chat-page-wrap .container {
	max-width: 1160px;
}

.build-note {
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	padding: 16px 20px;
	margin-bottom: 24px;
	font-size: 13px;
	color: var(--text-muted);
}

.build-note code {
	background: var(--bg);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--accent);
}

@media (max-width: 780px) {
	.grid-3,
	.steps,
	.pricing-grid {
		grid-template-columns: 1fr;
	}
}
