/* ==========================================================================
   FORTBYTE — STANDALONE COMING SOON & PRIVATE BETA PAGE
   Visual Identity: Deep Carbon (#0A0B0D), Surface (#101215), Signal Orange (#FF5B1F)
   No square grid lines — Smooth ambient canvas, cursor spotlight, border beam & reveal motion
   ========================================================================== */

:root {
	--bg: #08090b;
	--surface-1: #0f1115;
	--surface-2: #15181e;
	--border: rgba(255, 255, 255, 0.075);
	--border-strong: rgba(255, 255, 255, 0.15);
	--text: #ecedef;
	--text-muted: #8b9099;
	--text-dim: #5a5f68;
	--accent: #ff5b1f;
	--accent-hover: #ff7442;
	--status-green: #3ddc97;
}

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

html {
	font-family:
		'Instrument Sans',
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		sans-serif;
	background-color: var(--bg);
	color: var(--text);
	color-scheme: dark;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	min-height: 100vh;
	background-color: var(--bg);
	color: var(--text);
	line-height: 1.5;
	overflow-x: hidden;
	position: relative;
}

::selection {
	background: rgba(255, 91, 31, 0.25);
	color: var(--text);
}

.font-mono {
	font-family:
		'JetBrains Mono',
		ui-monospace,
		SFMono-Regular,
		Menlo,
		Monaco,
		Consolas,
		monospace;
	font-variant-numeric: tabular-nums;
}

.container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Scroll & Entrance Reveal Animations */
.reveal-up {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--delay, 0) * 80ms);
}

.reveal-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Header / Topbar */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	height: 64px;
	background: rgba(8, 9, 11, 0.82);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 16px;
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: -0.03em;
}

.brand-mark {
	width: 20px;
	height: 20px;
	color: var(--accent);
	transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-link:hover .brand-mark {
	transform: scale(1.08) rotate(-3deg);
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: rgba(15, 17, 21, 0.85);
	font-size: 11px;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	text-transform: uppercase;
}

.pulse-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(255, 91, 31, 0.18);
	animation: pulse 2.4s infinite ease-in-out;
}

.pulse-dot.green {
	background-color: var(--status-green);
	box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
}

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

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface-1);
	padding: 2px;
}

.lang-btn {
	background: transparent;
	border: none;
	color: var(--text-dim);
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 6px;
	cursor: pointer;
	transition:
		color 150ms ease,
		background-color 150ms ease;
}

.lang-btn.active {
	background: var(--surface-2);
	color: var(--text);
	font-weight: 500;
}

/* Buttons with Subtle Lift & Shine */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 180ms ease,
		color 180ms ease;
	border: 1px solid transparent;
	white-space: nowrap;
}

.btn-sm {
	height: 34px;
	padding: 0 13px;
	font-size: 12.5px;
}

.btn-lg {
	height: 46px;
	padding: 0 22px;
	font-size: 14px;
}

.btn-primary {
	background-color: var(--accent);
	color: #08090b;
	font-weight: 600;
	box-shadow: 0 8px 24px -6px rgba(255, 91, 31, 0.42);
}

.btn-primary:hover {
	background-color: var(--accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 12px 28px -6px rgba(255, 91, 31, 0.55);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-secondary {
	background-color: var(--surface-2);
	color: var(--text);
	border-color: var(--border);
}

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

/* Bento Card with Clean Hover State & Top Shimmer */
.bento-card {
	position: relative;
	background: linear-gradient(180deg, rgba(21, 24, 30, 0.72) 0%, rgba(13, 15, 19, 0.92) 100%);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	transition:
		border-color 220ms ease,
		transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 260ms ease;
	will-change: transform;
}

.bento-card:hover {
	border-color: rgba(255, 91, 31, 0.32);
	box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.75);
}

.module-card:hover {
	transform: translateY(-4px);
}

/* Subtle Animated Top Edge Beam on Featured Card */
.card-edge-beam {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 91, 31, 0.75) 50%,
		transparent 100%
	);
	background-size: 200% 100%;
	animation: beam-slide 6s linear infinite;
	pointer-events: none;
}

@keyframes beam-slide {
	0% {
		background-position: 150% 0;
	}
	100% {
		background-position: -50% 0;
	}
}

/* Eyebrow */
.eyebrow-mono {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
}

/* Hero Section */
.hero-section {
	padding: 68px 0 76px;
	border-bottom: 1px solid var(--border);
}

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

@media (min-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 56px;
	}
}

.hero-title {
	margin-top: 14px;
	font-size: clamp(30px, 4.2vw, 48px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.035em;
	color: var(--text);
}

.hero-title .accent-word {
	color: var(--accent);
}

.hero-subtitle {
	margin-top: 18px;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--text-muted);
	max-width: 590px;
}

.hero-specs {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
}

.spec-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	color: var(--text-muted);
}

.spec-chip span.code {
	color: var(--text);
	background: var(--surface-2);
	border: 1px solid var(--border);
	padding: 3px 8px;
	border-radius: 6px;
}

/* Beta Request Form Card */
.beta-card {
	padding: 28px;
}

.beta-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--border);
}

.beta-card-title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text);
}

.beta-card-desc {
	margin-top: 4px;
	font-size: 13px;
	color: var(--text-muted);
}

.beta-form {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.form-row-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	align-items: start;
}

@media (min-width: 560px) {
	.form-row-2 {
		grid-template-columns: 1fr 1fr;
	}
}

.form-field-col {
	display: flex;
	flex-direction: column;
}

.field-label {
	display: block;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.field-input,
.field-select {
	width: 100%;
	height: 42px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background-color: #090b0e;
	padding: 0 13px;
	font-size: 13px;
	color: var(--text);
	font-family: inherit;
	transition:
		border-color 160ms ease,
		box-shadow 160ms ease;
}

.field-input::placeholder {
	color: var(--text-dim);
}

.field-input:focus,
.field-select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(255, 91, 31, 0.12);
}

.field-input.invalid {
	border-color: var(--accent);
}

.interest-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.interest-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 11px;
	border-radius: 9px;
	border: 1px solid var(--border);
	background: #090b0e;
	color: var(--text-muted);
	font-size: 12.5px;
	cursor: pointer;
	user-select: none;
	transition:
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease,
		background-color 160ms ease;
}

.interest-pill:hover {
	border-color: var(--border-strong);
	color: var(--text);
	transform: translateY(-1px);
}

.interest-pill.selected {
	border-color: rgba(255, 91, 31, 0.55);
	background: rgba(255, 91, 31, 0.08);
	color: var(--text);
}

.interest-dot {
	width: 7px;
	height: 7px;
	border-radius: 2px;
	border: 1px solid var(--text-dim);
	flex-shrink: 0;
	transition: all 150ms ease;
}

.interest-pill.selected .interest-dot {
	background-color: var(--accent);
	border-color: var(--accent);
	box-shadow: 0 0 8px rgba(255, 91, 31, 0.5);
}

.form-error {
	display: none;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	color: var(--accent);
	margin-top: 5px;
}

.form-error.visible {
	display: flex;
}

.form-footnote {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	font-size: 11.5px;
	color: var(--text-dim);
}

/* Success State Inside Beta Card */
.beta-success {
	display: none;
	margin-top: 20px;
	padding: 18px;
	border-radius: 12px;
	border: 1px solid rgba(61, 220, 151, 0.35);
	background: #090b0e;
}

.beta-success.visible {
	display: block;
}

/* Interactive Console Preview with Staggered Line Reveal */
.console-preview {
	position: relative;
	margin-top: 24px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: #0b0d11;
	overflow: hidden;
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
}

.console-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
	background: #101318;
}

.console-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.console-tab {
	background: transparent;
	border: 1px solid transparent;
	color: var(--text-dim);
	font-size: 11px;
	padding: 4px 9px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 150ms ease;
}

.console-tab:hover {
	color: var(--text-muted);
}

.console-tab.active {
	background: var(--surface-2);
	border-color: var(--border-strong);
	color: var(--text);
}

.console-body {
	padding: 16px;
	font-size: 12px;
	line-height: 1.65;
	color: var(--text-muted);
	min-height: 128px;
}

.log-line {
	display: flex;
	gap: 10px;
	padding: 3px 0;
	opacity: 0;
	transform: translateX(-6px);
	animation: log-slide-in 280ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes log-slide-in {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.log-ts {
	color: var(--text-dim);
	flex-shrink: 0;
}

.log-tag {
	color: var(--accent);
	flex-shrink: 0;
}

.log-tag.ok {
	color: var(--status-green);
}

/* Section Layout */
.section {
	padding: 76px 0;
	border-bottom: 1px solid var(--border);
}

.section-header {
	max-width: 680px;
	margin-bottom: 40px;
}

.section-title {
	margin-top: 10px;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--text);
}

.section-desc {
	margin-top: 12px;
	font-size: 15px;
	color: var(--text-muted);
	line-height: 1.6;
}

/* Modules Bento Grid (What We Do) */
.bento-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 768px) {
	.bento-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1080px) {
	.bento-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.module-card {
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
}

.module-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.module-index {
	font-size: 11px;
	color: var(--accent);
	letter-spacing: 0.06em;
}

.module-badge {
	font-size: 10.5px;
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: #090b0e;
	color: var(--text-dim);
}

.module-title {
	margin-top: 14px;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text);
}

.module-desc {
	margin-top: 8px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--text-muted);
}

.module-points {
	list-style: none;
	padding-top: 14px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 12px;
	color: var(--text-muted);
}

.module-points li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.module-points li::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}

/* Architecture & Stage Strip */
.stage-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 900px) {
	.stage-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.stage-card {
	padding: 22px;
}

.stage-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Footer */
.site-footer {
	padding: 36px 0;
	color: var(--text-dim);
	font-size: 12.5px;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

@media (max-width: 640px) {
	.status-pill-text-long {
		display: none;
	}
	.hero-section {
		padding: 40px 0 52px;
	}
	.beta-card {
		padding: 20px;
	}
	.interest-grid {
		grid-template-columns: 1fr;
	}
}
