/* ================================================================
   FieldOpt Marketing Site
   ================================================================ */

/* ── Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

/* ── Tokens ────────────────────────────────────────── */
:root {
	--bg-primary: #0e1117;
	--bg-surface: #161b22;
	--bg-surface-2: #1c2129;
	--bg-surface-3: #22272e;
	--border: #2d333b;
	--border-light: #373e47;
	--text-primary: #e6edf3;
	--text-secondary: #8b949e;
	--text-muted: #545d68;
	--accent: #4a9eff;
	--accent-dim: rgba(74, 158, 255, 0.12);
	--accent-glow: rgba(74, 158, 255, 0.25);
	--success: #4caf6a;
	--warning: #e5a834;
	--danger: #e05555;
	--purple: #9b7ed8;
	--font-body: 'DM Sans', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

body {
	background: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a:hover {
	text-decoration: underline;
}

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

section {
	padding: 80px 0;
}

/* ── Nav ───────────────────────────────────────────── */
nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(14, 17, 23, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	height: 56px;
}

.nav-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	height: 100%;
}

.nav-brand {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-brand:hover {
	text-decoration: none;
}

.nav-brand-icon {
	width: 22px;
	height: 22px;
	background: var(--accent);
	border-radius: 4px;
}

.nav-links {
	margin-left: auto;
	display: flex;
	gap: 28px;
	font-size: 14px;
	font-weight: 500;
}

.nav-links a {
	color: var(--text-secondary);
	transition: color 0.2s;
}

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

.nav-cta {
	margin-left: 24px;
	padding: 7px 16px;
	background: var(--accent);
	color: #fff;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	transition: opacity 0.2s;
}

.nav-cta:hover {
	opacity: 0.9;
	text-decoration: none;
}

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

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

.btn-primary:hover {
	opacity: 0.9;
	text-decoration: none;
	transform: translateY(-1px);
}

.btn-outline {
	background: transparent;
	color: var(--text-primary);
	border: 1px solid var(--border-light);
}

.btn-outline:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

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

.hero::before {
	content: '';
	position: absolute;
	top: -200px;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
	opacity: 0.3;
	pointer-events: none;
}

.hero-tag {
	display: inline-block;
	margin-bottom: 20px;
	padding: 5px 14px;
	background: var(--accent-dim);
	border: 1px solid rgba(74, 158, 255, 0.2);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: var(--accent);
	letter-spacing: 0.02em;
}

.hero h1 {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin-bottom: 20px;
	position: relative;
}

.hero h1 span {
	background: linear-gradient(135deg, var(--accent), var(--purple));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-sub {
	font-size: clamp(16px, 2vw, 20px);
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto 36px;
	line-height: 1.5;
}

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

/* ── Screenshot ────────────────────────────────────── */
.screenshot-wrap {
	margin: 60px auto 0;
	max-width: 900px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
	position: relative;
}

.screenshot-wrap img {
	width: 100%;
	display: block;
}

.screenshot-glow {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 80px;
	background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
	opacity: 0.4;
}

/* ── Features ──────────────────────────────────────── */
.features {
	background: var(--bg-surface);
}

.features h2 {
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

.features-sub {
	text-align: center;
	color: var(--text-secondary);
	max-width: 500px;
	margin: 0 auto 48px;
	font-size: 15px;
}

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

.feature-card {
	background: var(--bg-surface-2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 28px;
	transition: border-color 0.2s;
}

.feature-card:hover {
	border-color: var(--border-light);
}

.feature-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	margin-bottom: 14px;
}

.feature-icon--blue { background: var(--accent-dim); color: var(--accent); }
.feature-icon--green { background: rgba(76, 175, 106, 0.12); color: var(--success); }
.feature-icon--yellow { background: rgba(229, 168, 52, 0.12); color: var(--warning); }
.feature-icon--red { background: rgba(224, 85, 85, 0.12); color: var(--danger); }
.feature-icon--purple { background: rgba(155, 126, 216, 0.12); color: var(--purple); }
.feature-icon--gray { background: rgba(139, 148, 158, 0.12); color: var(--text-secondary); }

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

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

/* ── Demo ──────────────────────────────────────────── */
.demo h2 {
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

.demo-sub {
	text-align: center;
	color: var(--text-secondary);
	max-width: 500px;
	margin: 0 auto 36px;
	font-size: 15px;
}

.demo-frame {
	max-width: 1000px;
	margin: 0 auto;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
	background: var(--bg-surface);
}

.demo-toolbar {
	height: 36px;
	background: var(--bg-surface-3);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	padding: 0 14px;
	gap: 8px;
}

.demo-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--border-light);
}

.demo-url {
	flex: 1;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-muted);
}

.demo-iframe-wrap {
	height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 15px;
}

.demo-iframe-wrap iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.demo-placeholder {
	text-align: center;
	padding: 40px;
}

.demo-placeholder p {
	margin-bottom: 16px;
	color: var(--text-secondary);
}

/* ── Pricing ───────────────────────────────────────── */
.pricing {
	background: var(--bg-surface);
}

.pricing h2 {
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

.pricing-sub {
	text-align: center;
	color: var(--text-secondary);
	max-width: 480px;
	margin: 0 auto 48px;
	font-size: 15px;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	max-width: 820px;
	margin: 0 auto;
}

.pricing-card {
	background: var(--bg-surface-2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
}

.pricing-card--featured {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(74, 158, 255, 0.1);
}

.pricing-tier {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.pricing-card--featured .pricing-tier {
	color: var(--accent);
}

.pricing-price {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 6px;
}

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

.pricing-desc {
	font-size: 14px;
	color: var(--text-secondary);
	margin-bottom: 24px;
	line-height: 1.4;
}

.pricing-features {
	list-style: none;
	flex: 1;
	margin-bottom: 24px;
}

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

.pricing-features li::before {
	content: '✓';
	color: var(--success);
	font-weight: 700;
	font-size: 12px;
}

.pricing-btn {
	display: block;
	text-align: center;
	padding: 10px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s;
}

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

.pricing-btn--primary:hover {
	opacity: 0.9;
	text-decoration: none;
}

.pricing-btn--outline {
	border: 1px solid var(--border-light);
	color: var(--text-primary);
}

.pricing-btn--outline:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

/* ── Built By ──────────────────────────────────────── */
.built-by {
	text-align: center;
	padding: 80px 0;
}

.built-by h2 {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

.built-by p {
	color: var(--text-secondary);
	max-width: 520px;
	margin: 0 auto 28px;
	font-size: 15px;
	line-height: 1.6;
}

.built-by-links {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

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

footer a {
	color: var(--text-secondary);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
	section { padding: 48px 0; }
	.hero { padding: 100px 0 48px; }
	.nav-links { display: none; }
	.features-grid { grid-template-columns: 1fr; }
	.pricing-grid { grid-template-columns: 1fr; }
	.demo-iframe-wrap { height: 400px; }
}
