/* ══════════════════════════════════════════
   copypaster.app — Landing Page Styles
   ══════════════════════════════════════════ */

:root {
	--bg: #0b0b10;
	--bg-card: #13131a;
	--surface: #1c1c27;
	--border: rgba(255, 255, 255, 0.06);
	--border-strong: rgba(255, 255, 255, 0.1);
	--text: #e2e4f0;
	--text-secondary: #8b8faa;
	--text-dim: #555770;
	--accent: #6e9cff;
	--accent-bright: #8cb4ff;
	--accent-muted: rgba(110, 156, 255, 0.12);
	--accent-glow: rgba(110, 156, 255, 0.25);
	--error: #ff6b7a;
	--success: #6ee7a0;
	--font-sans: "Inter", -apple-system, system-ui, sans-serif;
	--font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

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

html {
	scroll-behavior: smooth;
}

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

/* ── Ambient Background ── */

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -2;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(110, 156, 255, 0.08) 0%, transparent 60%),
		radial-gradient(ellipse 50% 40% at 80% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
		radial-gradient(ellipse 50% 40% at 20% 60%, rgba(110, 156, 255, 0.04) 0%, transparent 50%);
}

/* Subtle grain texture */
body::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	opacity: 0.03;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 256px 256px;
	pointer-events: none;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	color: var(--accent-bright);
}

/* ── Layout ── */

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

section {
	padding: 80px 0;
}

/* ── Nav ── */

nav {
	position: fixed;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 32px);
	max-width: 960px;
	z-index: 100;
	background: rgba(18, 18, 26, 0.55);
	backdrop-filter: blur(24px) saturate(1.4);
	-webkit-backdrop-filter: blur(24px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 48px;
	padding: 0 20px;
}

.nav-logo {
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
}

.nav-logo span {
	color: var(--accent);
}

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

.nav-links a {
	font-size: 13px;
	color: var(--text-secondary);
	transition: color 0.15s;
}

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

/* ── Hero ── */

.hero {
	padding-top: 140px;
	padding-bottom: 80px;
	text-align: center;
	position: relative;
}

/* Glow behind hero terminal */
.hero::before {
	content: "";
	position: absolute;
	top: 100px;
	left: 50%;
	transform: translateX(-50%);
	width: 700px;
	height: 400px;
	background: radial-gradient(ellipse, rgba(110, 156, 255, 0.12) 0%, rgba(167, 139, 250, 0.06) 40%, transparent 70%);
	z-index: -1;
	pointer-events: none;
	filter: blur(40px);
}

/* ── Hero Terminal ── */

.hero-terminal {
	max-width: 620px;
	margin: 0 auto 32px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--bg-card);
	border: 1px solid var(--border-strong);
	box-shadow:
		0 12px 48px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.03) inset,
		0 0 100px rgba(110, 156, 255, 0.07);
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.025);
	border-bottom: 1px solid var(--border);
}

.terminal-dots {
	display: flex;
	gap: 7px;
}

.tdot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

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

.terminal-title {
	font-size: 12px;
	color: var(--text-dim);
	font-family: var(--font-mono);
	letter-spacing: 0.02em;
}

.terminal-body {
	padding: 24px 48px;
	min-height: 140px;
	font-family: var(--font-mono);
	line-height: 1.65;
	color: var(--text);
	word-break: break-word;
	text-align: left;
	/* font-size:0 kills whitespace from HTML formatter indentation */
	font-size: 0;
}

.terminal-body > span {
	font-size: 15px;
	white-space: pre-wrap;
}

.hero-cursor {
	width: 2.5px !important;
	height: 1.15em;
	background: var(--accent) !important;
	border-radius: 2px;
	box-shadow: 0 0 10px var(--accent-glow);
}

.hero-sub {
	font-size: 17px;
	color: var(--text-secondary);
	max-width: 520px;
	margin: 0 auto 36px;
	line-height: 1.6;
}

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

/* ── Cursor ── */

.cursor {
	display: inline-block;
	width: 2px;
	height: 1.15em;
	background: var(--accent);
	vertical-align: text-bottom;
	animation: blink 1s step-end infinite;
	margin-left: 1px;
	border-radius: 1px;
}

.cursor.typing {
	animation: none;
	opacity: 1;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

/* ── Buttons ── */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
	border: none;
	font-family: var(--font-sans);
}

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

.btn-primary:hover {
	background: var(--accent-bright);
	transform: translateY(-1px);
	box-shadow: 0 4px 20px rgba(110, 156, 255, 0.3);
}

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

.btn-secondary:hover {
	background: var(--border-strong);
	transform: translateY(-1px);
}

/* ── Section Headings ── */

.section-title {
	font-size: 36px;
	font-weight: 700;
	text-align: center;
	letter-spacing: -0.02em;
}

.section-subtitle {
	text-align: center;
	color: var(--text-secondary);
	font-size: 16px;
	margin-top: 8px;
}

/* ── Features Section ── */

#features {
	position: relative;
}

#features::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 24px 24px;
	mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 70%);
}

/* ── Features Grid ── */

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

.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 0;
	overflow: hidden;
	transition:
		border-color 0.2s,
		transform 0.2s;
}

.feature-card:hover {
	border-color: var(--border-strong);
	transform: translateY(-2px);
}

.feature-card h3 {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 6px;
	padding: 0 20px;
}

.feature-card > p {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.5;
	padding: 0 20px 20px;
}

/* ── Mini Demo (inside feature cards) ── */

.demo-mini {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	margin-bottom: 16px;
}

.demo-mini-bar {
	display: flex;
	gap: 5px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--border);
}

.demo-mini-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.demo-mini-body {
	padding: 14px 16px;
	min-height: 72px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--text);
	white-space: pre-wrap;
	word-break: break-word;
	display: flex;
	align-items: flex-start;
}

.mini-cursor {
	height: 1em;
	width: 1.5px;
}

/* ── Code demo ── */

.code-body {
	font-size: 11.5px;
	line-height: 1.55;
	color: #c4c8e0;
}

.code-text {
	font-family: var(--font-mono);
}

/* ── Speed demo ── */

.speed-demo {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.speed-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.speed-label {
	font-size: 10px;
	color: var(--text-dim);
	font-family: var(--font-mono);
	width: 56px;
	flex-shrink: 0;
	text-align: right;
}

/* ── Platforms demo ── */

.platforms-body {
	align-items: center;
	justify-content: center;
	min-height: 72px;
}

.platform-icons {
	display: flex;
	gap: 28px;
	justify-content: center;
	width: 100%;
}

.platform-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--text-dim);
	transition: color 0.3s;
}

.platform-icon span {
	font-size: 10px;
	font-family: var(--font-mono);
}

.platform-icon:hover {
	color: var(--accent);
}

/* ── Typo highlight ── */

.typo-char {
	color: var(--error);
	opacity: 0.8;
}

/* ── Pause indicator ── */

.pause-indicator {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin: 0 2px;
	vertical-align: middle;
}

.pause-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0;
	animation: pausePulse 1.2s ease-in-out infinite;
}

.pause-dot:nth-child(2) {
	animation-delay: 0.2s;
}
.pause-dot:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes pausePulse {
	0%,
	80%,
	100% {
		opacity: 0;
	}
	40% {
		opacity: 0.7;
	}
}

/* ── Download ── */

#download {
	text-align: center;
}

#download h2 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}

#download .subtitle {
	color: var(--text-secondary);
	font-size: 16px;
	margin-bottom: 40px;
}

.download-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: 720px;
	margin: 0 auto;
}

.download-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 28px 20px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 14px;
	color: var(--text);
	transition: border-color 0.2s, transform 0.2s;
	text-align: center;
}

.download-card:hover {
	border-color: var(--border-strong);
	transform: translateY(-2px);
}

.download-card > svg:first-child {
	color: var(--text-dim);
	transition: color 0.2s;
}

.download-card:hover > svg:first-child {
	color: var(--accent);
}

.download-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.download-platform {
	font-size: 15px;
	font-weight: 600;
}

.download-meta {
	font-size: 11px;
	color: var(--text-dim);
	font-family: var(--font-mono);
}

.btn-download {
	width: 100%;
	justify-content: center;
	padding: 10px 16px;
	font-size: 13px;
	margin-top: auto;
}

/* ── Pricing ── */

#pricing {
	text-align: center;
}

#pricing h2 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}

#pricing .subtitle {
	color: var(--text-secondary);
	font-size: 16px;
	margin-bottom: 48px;
}

.pricing-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	max-width: 640px;
	margin: 0 auto;
}

.pricing-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 32px 28px;
	text-align: left;
	position: relative;
	transition:
		border-color 0.2s,
		transform 0.2s;
}

.pricing-card:hover {
	border-color: var(--border-strong);
	transform: translateY(-2px);
}

.pricing-card.popular {
	border-color: var(--accent-glow);
	box-shadow: 0 0 40px rgba(110, 156, 255, 0.08);
}

.popular-badge {
	position: absolute;
	top: -10px;
	right: 20px;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pricing-card .plan-name {
	font-size: 13px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	margin-bottom: 8px;
}

.pricing-card .price {
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: 4px;
}

.pricing-card .price span {
	font-size: 16px;
	font-weight: 500;
	color: var(--text-secondary);
}

.pricing-card .price-note {
	font-size: 13px;
	color: var(--text-dim);
	margin-bottom: 24px;
}

.pricing-card ul {
	list-style: none;
	margin-bottom: 28px;
}

.pricing-card li {
	font-size: 13px;
	color: var(--text-secondary);
	padding: 6px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.pricing-card li::before {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(110, 227, 160, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2 2 4-4' stroke='%236ee7a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.pricing-card .btn {
	width: 100%;
	justify-content: center;
}

/* ── FAQ ── */

#faq h2 {
	font-size: 36px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 40px;
	letter-spacing: -0.02em;
}

.faq-list {
	max-width: 640px;
	margin: 0 auto;
}

.faq-item {
	border-bottom: 1px solid var(--border);
	padding: 20px 0;
}

.faq-item summary {
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "+";
	font-size: 20px;
	color: var(--text-dim);
	transition: transform 0.2s;
}

.faq-item[open] summary::after {
	transform: rotate(45deg);
}

.faq-item p {
	font-size: 14px;
	color: var(--text-secondary);
	margin-top: 12px;
	line-height: 1.6;
}

/* ── Footer ── */

footer {
	border-top: 1px solid var(--border);
	padding: 40px 0 32px;
	font-size: 13px;
	color: var(--text-dim);
}

.footer-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

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

.footer-links a {
	color: var(--text-secondary);
	font-size: 13px;
	transition: color 0.15s;
}

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

.footer-contact a {
	color: var(--text-secondary);
	font-size: 13px;
	transition: color 0.15s;
}

.footer-contact a:hover {
	color: var(--accent);
}

.footer-copy {
	text-align: center;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

/* ── Responsive ── */

@media (max-width: 768px) {
	.hero-terminal {
		max-width: 100%;
	}

	.terminal-body {
		padding: 20px 16px;
		min-height: 80px;
	}

	.terminal-body > span {
		font-size: 14px;
	}

	.hero-sub {
		font-size: 15px;
	}

	.hero-sub br {
		display: none;
	}

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

	.pricing-cards {
		grid-template-columns: 1fr;
	}

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

	.nav-links {
		gap: 16px;
	}

	.footer-content {
		flex-direction: column;
		gap: 16px;
	}

	.download-cards {
		max-width: 100%;
	}
}
