/* ===========================================
   atomic.bond — Ploton design system (light)
   Font: Inter + JetBrains Mono
   Theme: Minimal, text-driven, light
   =========================================== */

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

/* Tokens */
:root {
	--color-primary: #0a0a0a;
	--color-secondary: #6b6b6b;
	--color-muted: #999999;
	--color-bg: #ffffff;
	--color-bg-secondary: #fafafa;
	--color-border: #e5e5e5;
	--color-border-light: #f4f4f5;
	--color-accent: #FACC15;
	--color-code-bg: #1a1a2e;
	--color-code-border: #2a2a3e;
	--color-code-text: #e0e0e0;
	--color-code-comment: #6b7280;
	--font-sans: "Inter", system-ui, -apple-system, sans-serif;
	--font-mono: "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

html {
	scroll-behavior: smooth;
	height: 100%;
}

body {
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-primary);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

::selection {
	background: rgba(250, 204, 21, 0.2);
}

/* Nav */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
}

.nav-inner {
	max-width: 56rem;
	margin: 0 auto;
	padding: 0 1.5rem;
	height: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.nav-logo {
	height: 24px;
	width: auto;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav-link {
	font-size: 0.875rem;
	color: var(--color-secondary);
	text-decoration: none;
	transition: color 150ms;
}

.nav-link:hover {
	color: var(--color-primary);
}

.nav-spacer {
	height: 3.5rem;
}

/* Page */
.page {
	max-width: 56rem;
	margin: 0 auto;
	padding: 4rem 1.5rem 5rem;
}

@media (min-width: 640px) {
	.page {
		padding-top: 6rem;
		padding-bottom: 7rem;
	}
}

@media (min-width: 1024px) {
	.page {
		padding-top: 8rem;
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* Hero */
.hero-heading {
	font-size: 1.875rem;
	font-weight: 600;
	color: var(--color-primary);
	letter-spacing: -0.025em;
	line-height: 1.25;
}

@media (min-width: 640px) {
	.hero-heading { font-size: 2.25rem; }
}

@media (min-width: 768px) {
	.hero-heading { font-size: 3rem; }
}

.hero-body {
	margin-top: 2rem;
	color: var(--color-secondary);
	line-height: 1.625;
}

/* Sections */
.section-rule {
	margin: 4rem 0;
	border: none;
	border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
	.section-rule { margin: 5rem 0; }
}

.section-heading {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-primary);
}

@media (min-width: 640px) {
	.section-heading { font-size: 1.875rem; }
}

.section-body {
	margin-top: 1rem;
	color: var(--color-secondary);
	line-height: 1.625;
}

.section-body.muted {
	color: var(--color-muted);
	font-size: 0.875rem;
}

/* Inline code */
.ic {
	font-size: 0.875em;
	background: var(--color-bg-secondary);
	padding: 0.125rem 0.375rem;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	font-family: var(--font-mono);
}

/* Code blocks */
.code-block {
	margin-top: 1rem;
	background-color: var(--color-code-bg);
	border: 1px solid var(--color-code-border);
	border-radius: 2px;
	padding: 1rem 1.25rem;
	font-size: 13px;
	font-family: var(--font-mono);
	color: var(--color-code-text);
	line-height: 1.625;
	overflow-x: auto;
	white-space: pre;
}

.code-comment {
	color: var(--color-code-comment);
}

/* CTA */
.cta-row {
	margin-top: 2rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	background-color: var(--color-primary);
	color: #ffffff;
	font-weight: 500;
	font-size: 1rem;
	border-radius: 2px;
	text-decoration: none;
	transition: background-color 150ms;
}

.cta-btn:hover {
	background-color: #1a1a1a;
}

.cta-btn:active {
	transform: scale(0.98);
}

.cta-link {
	font-size: 0.875rem;
	color: var(--color-secondary);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--color-border);
	transition: color 150ms, text-decoration-color 150ms;
}

.cta-link:hover {
	color: var(--color-primary);
	text-decoration-color: var(--color-primary);
}

/* Body links */
.body-link {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--color-border);
	transition: text-decoration-color 150ms;
}

.body-link:hover {
	text-decoration-color: var(--color-primary);
}

/* Comparison table */
.table-wrap {
	margin-top: 1.5rem;
	overflow-x: auto;
}

.comparison-table {
	width: 100%;
	font-size: 0.875rem;
	border-collapse: collapse;
}

.comparison-table th {
	padding: 0.5rem 1rem 0.5rem 0;
	text-align: left;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-muted);
	border-bottom: 1px solid var(--color-border);
	font-weight: 500;
}

.comparison-table td {
	padding: 0.5rem 1rem 0.5rem 0;
	color: var(--color-primary);
	border-bottom: 1px solid var(--color-border-light);
	vertical-align: top;
}

.comparison-table td:first-child {
	font-weight: 500;
	color: var(--color-secondary);
	white-space: nowrap;
}

.comparison-table tbody tr:hover {
	background: rgba(0, 0, 0, 0.01);
}

/* Contact */
.contact {
	margin-top: 2rem;
	font-size: 0.875rem;
	color: var(--color-muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 4px;
	height: 4px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--color-border);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-muted);
}
