/* ============================================================
   Flowbot — Order out of Chaos
   Visual Identity: Abyss Black + Data-stream Cyan
   ============================================================ */

/* --- CSS Variables --- */
:root {
	--abyss: #08080f;
	--abyss-elevated: #0e0e18;
	--abyss-card: #12121d;
	--abyss-border: #1e1e30;
	--cyan: #00e5ff;
	--cyan-dim: rgba(0, 229, 255, 0.12);
	--cyan-glow: rgba(0, 229, 255, 0.25);
	--green: #00ff41;
	--green-dim: rgba(0, 255, 65, 0.1);
	--orange: #ff6b35;
	--orange-dim: rgba(255, 107, 53, 0.12);
	--white: #e8e8ed;
	--white-dim: #8888a0;
	--white-muted: #5a5a72;
	--mono:
		"JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
	--sans:
		"Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system,
		sans-serif;
	--radius: 10px;
	--radius-sm: 6px;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
	scroll-behavior: smooth;
	background: var(--abyss);
	color: var(--white);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body {
	background: var(--abyss);
	overflow-x: hidden;
}

a {
	color: var(--cyan);
	text-decoration: none;
	transition: color var(--transition);
}
a:hover {
	color: var(--green);
}

img {
	max-width: 100%;
	display: block;
}

/* --- Background Grid (nodes + edges) --- */
.bg-grid {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.08;
}
.bg-grid canvas {
	width: 100%;
	height: 100%;
}

/* --- Navigation --- */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	background: rgba(8, 8, 15, 0.75);
	border-bottom: 1px solid var(--abyss-border);
}

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

.nav-logo {
	font-family: var(--mono);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--cyan);
	letter-spacing: 0.5px;
}
.nav-logo span {
	color: var(--white-dim);
}

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

.nav-links a {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--white-dim);
	letter-spacing: 0.3px;
	transition: color var(--transition);
	position: relative;
}
.nav-links a::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--cyan);
	transform: scaleX(0);
	transition: transform var(--transition);
}
.nav-links a:hover {
	color: var(--cyan);
}
.nav-links a:hover::after,
.nav-links a.active::after {
	transform: scaleX(1);
}

.nav-links a.active {
	color: var(--cyan);
}

.nav-cta {
	font-family: var(--mono);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--abyss);
	background: var(--cyan);
	padding: 7px 18px;
	border-radius: var(--radius-sm);
	transition: all var(--transition);
}
.nav-cta:hover {
	color: var(--abyss);
	background: var(--green);
	box-shadow: 0 0 20px var(--cyan-glow);
}

/* Mobile nav toggle */
.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 4px;
}
.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--cyan);
	transition: var(--transition);
}

/* --- Page Container --- */
.page {
	position: relative;
	z-index: 1;
}

/* --- Sections --- */
.section {
	padding: 100px 28px;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}

.section-label {
	font-family: var(--mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	color: var(--cyan);
	margin-bottom: 16px;
}

.section-title {
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	letter-spacing: -0.5px;
}
.section-title em {
	font-style: normal;
	color: var(--cyan);
}

.section-subtitle {
	font-size: 1.1rem;
	color: var(--white-dim);
	max-width: 620px;
}

/* --- Hero Section --- */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 60px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hero-title {
	font-size: 3.4rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -1px;
	margin-bottom: 24px;
}
.hero-title em {
	font-style: normal;
	background: linear-gradient(135deg, var(--cyan), var(--green));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-desc {
	font-size: 1.15rem;
	color: var(--white-dim);
	margin-bottom: 36px;
	max-width: 500px;
}

.hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* CTA buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 0.88rem;
	font-weight: 600;
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	border: none;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
}

.btn-primary {
	background: var(--cyan);
	color: var(--abyss);
}
.btn-primary:hover {
	background: var(--green);
	color: var(--abyss);
	box-shadow: 0 0 28px var(--cyan-glow);
}

.btn-secondary {
	background: transparent;
	color: var(--cyan);
	border: 1px solid var(--cyan);
}
.btn-secondary:hover {
	background: var(--cyan-dim);
	border-color: var(--green);
	color: var(--green);
}

/* --- Hero Visual --- */
.hero-visual {
	position: relative;
	width: 100%;
	max-width: 580px;
	aspect-ratio: 1 / 1;
	margin: 0 auto;
}

.hero-visual canvas {
	width: 100%;
	height: 100%;
	display: block;
}

/* --- Terminal typing block --- */
.terminal-block {
	background: var(--abyss-card);
	border: 1px solid var(--abyss-border);
	border-radius: var(--radius);
	padding: 20px 24px;
	margin-top: 32px;
	font-family: var(--mono);
	font-size: 0.78rem;
	line-height: 1.7;
	max-width: 480px;
	position: relative;
	overflow: hidden;
}
.terminal-block::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.terminal-dots {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}
.terminal-dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.terminal-dots span:nth-child(1) {
	background: #ff5f56;
}
.terminal-dots span:nth-child(2) {
	background: #ffbd2e;
}
.terminal-dots span:nth-child(3) {
	background: #27c93f;
}
.terminal-line {
	color: var(--white-dim);
}
.terminal-line .cmd {
	color: var(--green);
}
.terminal-line .output {
	color: var(--cyan);
}
.terminal-cursor {
	display: inline-block;
	width: 8px;
	height: 15px;
	background: var(--cyan);
	animation: blink 1s step-end infinite;
	vertical-align: text-bottom;
	margin-left: 2px;
}

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

/* --- Problem Section --- */
.problem-grid {
	display: grid;
	grid-template-columns: 1fr 60px 1fr;
	gap: 0;
	align-items: stretch;
	margin-top: 48px;
}

.problem-panel {
	background: var(--abyss-card);
	border: 1px solid var(--abyss-border);
	border-radius: var(--radius);
	padding: 36px 32px;
}

.problem-panel.before {
	border-color: rgba(255, 107, 53, 0.18);
	background: rgba(255, 107, 53, 0.03);
}

.problem-panel.after {
	border-color: rgba(0, 229, 255, 0.18);
	background: var(--cyan-dim);
}

.problem-panel h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 20px;
}
.problem-panel.before h3 {
	color: var(--orange);
}
.problem-panel.after h3 {
	color: var(--cyan);
}

.problem-items {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.problem-items li {
	font-size: 0.92rem;
	color: var(--white-dim);
	padding-left: 20px;
	position: relative;
}
.problem-items li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}
.problem-panel.before .problem-items li::before {
	background: var(--orange);
}
.problem-panel.after .problem-items li::before {
	background: var(--green);
}

.problem-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.problem-divider-line {
	width: 2px;
	height: 70%;
	background: linear-gradient(180deg, var(--orange), var(--cyan));
	position: absolute;
}

.problem-question {
	font-family: var(--mono);
	font-size: 0.7rem;
	color: var(--white-muted);
	writing-mode: vertical-rl;
	text-orientation: mixed;
	letter-spacing: 0.5px;
	background: var(--abyss);
	padding: 12px 6px;
	z-index: 1;
}

/* --- Capabilities Bento Grid --- */
.bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: 48px;
	grid-auto-rows: minmax(180px, auto);
}

.bento-card {
	background: var(--abyss-card);
	border: 1px solid var(--abyss-border);
	border-radius: var(--radius);
	padding: 28px 24px;
	position: relative;
	overflow: hidden;
	transition: all var(--transition);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bento-card:hover {
	border-color: rgba(0, 229, 255, 0.35);
	box-shadow: 0 4px 32px rgba(0, 229, 255, 0.06);
	transform: translateY(-2px);
}

.bento-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--cyan), transparent);
	opacity: 0;
	transition: opacity var(--transition);
}
.bento-card:hover::after {
	opacity: 1;
}

/* Card sizes */
.bento-card.col-2 {
	grid-column: span 2;
}
.bento-card.row-2 {
	grid-row: span 2;
}

.bento-icon {
	font-size: 1.4rem;
	margin-bottom: 12px;
}

.bento-card h4 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--white);
}

.bento-card p {
	font-size: 0.88rem;
	color: var(--white-dim);
	line-height: 1.55;
}

/* Code card highlight */
.code-preview {
	background: rgba(0, 0, 0, 0.35);
	border-radius: var(--radius-sm);
	padding: 16px;
	font-family: var(--mono);
	font-size: 0.72rem;
	line-height: 1.65;
	color: var(--white-dim);
	overflow-x: auto;
	margin-top: 12px;
	border: 1px solid var(--abyss-border);
}
.code-preview .kw {
	color: #c792ea;
}
.code-preview .str {
	color: #c3e88d;
}
.code-preview .fn {
	color: #82aaff;
}
.code-preview .cmt {
	color: #546e7a;
	font-style: italic;
}

/* Interface icons grid */
.iface-grid {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}
.iface-tag {
	font-family: var(--mono);
	font-size: 0.7rem;
	padding: 4px 10px;
	border-radius: 4px;
	border: 1px solid var(--abyss-border);
	color: var(--white-dim);
	background: rgba(255, 255, 255, 0.03);
	white-space: nowrap;
}
.iface-tag:hover {
	border-color: var(--cyan);
	color: var(--cyan);
	background: var(--cyan-dim);
}

/* Audit trail log card */
.audit-log {
	background: rgba(0, 0, 0, 0.4);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	font-family: var(--mono);
	font-size: 0.68rem;
	line-height: 1.8;
	color: var(--white-muted);
	max-height: 120px;
	overflow-y: auto;
	margin-top: 12px;
}
.audit-log .ts {
	color: var(--white-muted);
}
.audit-log .ev {
	color: var(--cyan);
}
.audit-log .st {
	color: var(--green);
}
.audit-log .er {
	color: var(--orange);
}

/* --- Workflow Section --- */
.workflow {
	position: relative;
	overflow: hidden;
}

.workflow-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.06;
}
.workflow-bg canvas {
	width: 100%;
	height: 100%;
}

.workflow-content {
	position: relative;
	z-index: 1;
	text-align: center;
}

.workflow-dag {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 48px auto 0;
	flex-wrap: wrap;
	max-width: 900px;
}

.dag-node {
	font-family: var(--mono);
	font-size: 0.78rem;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--abyss-border);
	background: var(--abyss-card);
	color: var(--white);
	position: relative;
	transition: all var(--transition);
}
.dag-node:hover {
	border-color: var(--cyan);
	box-shadow: 0 0 20px var(--cyan-glow);
}
.dag-node::after {
	content: "\2192";
	position: absolute;
	right: -24px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--cyan);
	font-family: var(--mono);
}
.dag-node:last-child::after {
	content: none;
}
.dag-node.trigger {
	border-color: var(--orange);
	color: var(--orange);
}
.dag-node.end {
	border-color: var(--green);
	color: var(--green);
}

/* --- Footer --- */
.footer {
	border-top: 1px solid var(--abyss-border);
	padding: 40px 28px;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-left {
	display: flex;
	gap: 24px;
	align-items: center;
}

.footer-left a {
	font-size: 0.84rem;
	color: var(--white-muted);
	transition: color var(--transition);
}
.footer-left a:hover {
	color: var(--cyan);
}

.footer-right {
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--white-muted);
}

/* --- Page Hero (subpages) --- */
.page-hero {
	padding: 140px 28px 60px;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.page-hero h1 {
	font-size: 2.8rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin-bottom: 16px;
}
.page-hero h1 em {
	font-style: normal;
	background: linear-gradient(135deg, var(--cyan), var(--green));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.page-hero p {
	font-size: 1.05rem;
	color: var(--white-dim);
	max-width: 560px;
	margin: 0 auto;
}

/* --- Content (subpages) --- */
.content {
	padding: 0 28px 100px;
	max-width: 900px;
	margin: 0 auto;
}

/* --- Shared content element styles (subpages + generated docs) --- */
.content h2,
.docs-content h2 {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 48px 0 16px;
	padding-top: 24px;
	border-top: 1px solid var(--abyss-border);
}

.content h3,
.docs-content h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin: 32px 0 12px;
	color: var(--cyan);
}

.content h4,
.docs-content h4 {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 24px 0 10px;
	color: var(--white);
}

.content p,
.docs-content p {
	color: var(--white-dim);
	margin-bottom: 16px;
	line-height: 1.7;
}

.content ul,
.content ol,
.docs-content ul,
.docs-content ol {
	color: var(--white-dim);
	margin-bottom: 16px;
	padding-left: 24px;
	line-height: 1.7;
}
.content li,
.docs-content li {
	margin-bottom: 6px;
}

.content a,
.docs-content a {
	color: var(--cyan);
	text-decoration: none;
	transition: color var(--transition);
}
.content a:hover,
.docs-content a:hover {
	color: var(--green);
}

.content code,
.docs-content code {
	font-family: var(--mono);
	background: var(--abyss-card);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.85em;
	color: var(--cyan);
	border: 1px solid var(--abyss-border);
}

.content pre,
.docs-content pre {
	background: var(--abyss-card);
	border: 1px solid var(--abyss-border);
	border-radius: var(--radius);
	padding: 20px 24px;
	overflow-x: auto;
	margin-bottom: 20px;
	font-family: var(--mono);
	font-size: 0.78rem;
	line-height: 1.7;
	color: var(--white-dim);
	position: relative;
}
.content pre::before,
.docs-content pre::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.content pre code,
.docs-content pre code {
	background: none;
	padding: 0;
	border: none;
	border-radius: 0;
	font-size: inherit;
	color: inherit;
}

.content table,
.docs-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
	font-size: 0.88rem;
}
.content thead,
.docs-content thead {
	border-bottom: 2px solid var(--abyss-border);
}
.content th,
.docs-content th {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 2px solid var(--abyss-border);
	font-family: var(--mono);
	font-size: 0.78rem;
	color: var(--cyan);
	text-transform: uppercase;
	letter-spacing: 1px;
}
.content td,
.docs-content td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--abyss-border);
	color: var(--white-dim);
}
.content tbody tr:hover,
.docs-content tbody tr:hover {
	background: var(--cyan-dim);
}

.content hr,
.docs-content hr {
	border: none;
	border-top: 1px solid var(--abyss-border);
	margin: 32px 0;
}

.content blockquote,
.docs-content blockquote {
	border-left: 2px solid var(--cyan);
	padding: 12px 20px;
	margin-bottom: 16px;
	background: var(--cyan-dim);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--white-dim);
	font-style: italic;
}
.content blockquote p,
.docs-content blockquote p {
	margin-bottom: 0;
}

.content img,
.docs-content img {
	max-width: 100%;
	display: block;
	border-radius: var(--radius-sm);
}

/* --- Data flow animation --- */
@keyframes flowDash {
	to {
		stroke-dashoffset: -24;
	}
}

.flow-line {
	stroke-dasharray: 6 6;
	animation: flowDash 1s linear infinite;
}

/* --- Docs Layout (sidebar + content) --- */
.docs-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 48px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 28px 100px;
}

.docs-sidebar {
	position: sticky;
	top: 80px;
	align-self: start;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	padding-right: 16px;
}

.docs-nav-section {
	margin-bottom: 20px;
}

.docs-nav-title {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--white-muted);
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--abyss-border);
}

.docs-nav-items {
	list-style: none;
	padding: 0;
	margin: 0;
}

.docs-nav-items li {
	margin-bottom: 2px;
}

.docs-nav-link {
	display: block;
	padding: 5px 10px;
	font-size: 0.84rem;
	color: var(--white-dim);
	border-radius: var(--radius-sm);
	transition: all var(--transition);
}

.docs-nav-link:hover {
	color: var(--cyan);
	background: var(--cyan-dim);
}

.docs-nav-link.active {
	color: var(--cyan);
	background: var(--cyan-dim);
	font-weight: 500;
}

.docs-content {
	min-width: 0;
}

/* --- Card Grid (documentation TOC) --- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0 2.5rem;
}
.card {
	display: block;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
	text-decoration: none;
	transition:
		border-color 0.2s,
		background 0.2s;
}
.card:hover {
	border-color: var(--cyan);
	background: rgba(0, 229, 255, 0.04);
}
.card h3 {
	margin: 0 0 0.5rem;
	color: var(--white);
	font-size: 1.1rem;
	font-family: var(--mono);
}
.card p {
	margin: 0;
	color: var(--white-dim);
	font-size: 0.9rem;
	line-height: 1.5;
}

/* --- Skills Section --- */
.skill-section {
	background: var(--abyss-card);
	border: 1px solid var(--abyss-border);
	border-radius: var(--radius);
	padding: 28px 32px;
	margin-bottom: 32px;
}

.skill-section h3 {
	margin-top: 0 !important;
	color: var(--white) !important;
	font-size: 1.3rem !important;
	border-top: none !important;
	padding-top: 0 !important;
}

.skill-section h4 {
	margin-top: 28px;
}

.skill-badge {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--cyan);
	background: var(--cyan-dim);
	border: 1px solid rgba(0, 229, 255, 0.2);
	border-radius: 4px;
	padding: 3px 10px;
	margin-right: 10px;
	vertical-align: middle;
	text-transform: lowercase;
}

/* --- Details / Summary --- */
.content details,
.docs-content details {
	margin: 20px 0 8px;
}

.content summary,
.docs-content summary {
	cursor: pointer;
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--white-muted);
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--abyss-border);
	border-radius: var(--radius-sm);
	user-select: none;
	transition: all var(--transition);
}

.content summary:hover,
.docs-content summary:hover {
	color: var(--cyan);
	border-color: var(--cyan);
}

.content details pre,
.docs-content details pre {
	margin-top: 0;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-top: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero-desc {
		max-width: 100%;
	}
	.hero-actions {
		justify-content: center;
	}
	.terminal-block {
		margin: 32px auto 0;
	}
	.hero-visual {
		max-width: 360px;
	}

	.problem-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.problem-divider {
		display: none;
	}

	.bento {
		grid-template-columns: repeat(2, 1fr);
	}
	.bento-card.col-2 {
		grid-column: span 2;
	}

	.section-title {
		font-size: 2rem;
	}
	.hero-title {
		font-size: 2.4rem;
	}

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

	.docs-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.docs-sidebar {
		position: static;
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
		border-bottom: 1px solid var(--abyss-border);
		padding-bottom: 16px;
	}

	.docs-nav-items {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	.docs-nav-items li {
		margin-bottom: 0;
	}

	.docs-nav-link {
		padding: 4px 10px;
		font-size: 0.8rem;
	}
}

@media (max-width: 640px) {
	.nav-links {
		display: none;
	}
	.nav-links.open {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		background: var(--abyss-card);
		padding: 16px 28px;
		border-bottom: 1px solid var(--abyss-border);
		gap: 16px;
	}
	.nav-toggle {
		display: flex;
	}

	.bento {
		grid-template-columns: 1fr;
	}
	.bento-card.col-2 {
		grid-column: span 1;
	}

	.hero-title {
		font-size: 2rem;
	}
	.section-title {
		font-size: 1.7rem;
	}
	.page-hero h1 {
		font-size: 2rem;
	}

	.section {
		padding: 60px 20px;
	}
	.content {
		padding: 0 20px 60px;
	}
	.workflow-dag {
		flex-direction: column;
	}
	.dag-node::after {
		content: none;
	}
	.card-grid {
		grid-template-columns: 1fr;
	}
}
