:root {
	--bg: #0b0b0c;
	/* near-black */
	--panel: #121214;
	/* dark panel */
	--ink: #eaeaea;
	/* off-white */
	--muted: #9b9b9e;
	/* grey */
	--brand: #8b5cf6;
	/* violet accent */
	--accent: #22d3ee;
	/* cyan accent */
	--danger: #ef4444;
	--ok: #22c55e;
}

* {
	box-sizing: border-box
}

html,
body {
	height: 100%
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
	color: var(--ink);
	background: var(--bg);
	overflow-x: hidden;
}

/* "Cracks" background: layered SVG + gradients */
.cracks-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(80vw 80vh at 50% 35%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0) 60%),
		radial-gradient(60vw 60vh at 10% 90%, rgba(34, 211, 238, 0.06), rgba(0, 0, 0, 0) 60%),
		radial-gradient(60vw 60vh at 90% 90%, rgba(139, 92, 246, 0.06), rgba(0, 0, 0, 0) 60%),
		var(--bg);
}

.cracks-overlay {
	position: absolute;
	inset: 0;
	mix-blend-mode: screen;
	opacity: .14
}

.cracks-overlay svg {
	width: 100%;
	height: 100%;
	display: block
}

.wrap {
	min-height: 100%;
	display: grid;
	grid-template-rows: auto 1fr auto
}

header {
	padding: 24px clamp(16px, 3vw, 40px);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
	font-weight: 800;
	letter-spacing: .5px;
}

.logo {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	position: relative;
	background: linear-gradient(145deg, #1a1a1d, #0f0f11);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .05);
	overflow: hidden;
}

.logo:before,
.logo:after {
	content: "";
	position: absolute;
	inset: 0;
	background: conic-gradient(from 10deg, transparent 0 80deg, rgba(139, 92, 246, .5) 80deg 92deg, transparent 92deg);
	animation: glint 4s linear infinite;
	opacity: .4;
	filter: blur(1px);
}

.logo:after {
	animation-duration: 7s;
	opacity: .25
}

@keyframes glint {
	to {
		transform: rotate(360deg)
	}
}

.cta {
	display: flex;
	gap: 12px;
	align-items: center
}

.btn {
	--pad: 14px 18px;
	--radius: 14px;
	--bg: var(--brand);
	--fg: #fff;
	--shadow: 0 10px 24px rgba(139, 92, 246, .35);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: var(--pad);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--fg);
	border: 1px solid rgba(255, 255, 255, .08);
	box-shadow: var(--shadow);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: .2px;
	transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
	cursor: pointer;
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 34px rgba(139, 92, 246, .45)
}

.btn.secondary {
	--bg: #1b1b1f;
	--fg: var(--ink);
	--shadow: none
}

.btn.secondary:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, .4)
}

main {
	display: grid;
	place-items: center;
	padding: 40px 16px
}

.hero {
	max-width: 1100px;
	width: 100%;
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 42px;
}

@media (max-width: 940px) {
	.hero {
		grid-template-columns: 1fr;
		gap: 28px
	}
}

.headline {
	font-size: clamp(36px, 5vw, 72px);
	line-height: 1.02;
	margin: 0 0 16px 0;
	font-weight: 800;
	letter-spacing: .3px;
	text-wrap: balance;
}

.headline em {
	font-style: normal;
	color: var(--accent)
}

.sub {
	color: var(--muted);
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.6;
	margin-bottom: 28px
}

/* "cracked" panel */
.panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 20px;
	padding: 22px;
	position: relative;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .02);
	overflow: hidden;
}

.panel:before {
	/* hairline crack */
	content: "";
	position: absolute;
	inset: -2px;
	background:
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 8px);
	mask: radial-gradient(120% 60% at 20% 0%, #000 45%, transparent 60%),
		radial-gradient(140% 60% at 100% 100%, #000 40%, transparent 58%);
	opacity: .05;
	pointer-events: none;
}

.features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px
}

.feature {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 14px;
	color: #cfcfd3
}

.feature b {
	color: #fff
}

.right {
	position: relative;
	display: grid;
	align-content: start;
	gap: 16px
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 12px;
	background: #0f0f12;
	border: 1px solid rgba(255, 255, 255, .08);
}

/* Modal */
dialog#applyModal {
	width: min(680px, 92vw);
	border: none;
	border-radius: 18px;
	padding: 0;
	background: var(--panel);
	color: var(--ink);
	box-shadow: 0 30px 120px rgba(0, 0, 0, .75);
}

dialog::backdrop {
	background: rgba(0, 0, 0, .6)
}

.modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.modal-title {
	font-weight: 700;
	font-size: 18px
}

.modal-body {
	padding: 18px 20px;
	display: grid;
	gap: 16px
}

.modal-foot {
	padding: 18px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, .08)
}

.xbtn {
	all: unset;
	cursor: pointer;
	padding: 10px;
	border-radius: 10px;
	display: inline-grid;
	place-items: center
}

.xbtn:hover {
	background: rgba(255, 255, 255, .06)
}

label {
	font-size: 13px;
	color: #c6c6ca
}

.input,
textarea {
	width: 100%;
	background: #0e0e12;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus,
textarea:focus {
	border-color: rgba(34, 211, 238, .6);
	box-shadow: 0 0 0 3px rgba(34, 211, 238, .2)
}

textarea {
	min-height: 120px;
	resize: vertical
}

.row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px
}

@media (max-width:620px) {
	.row {
		grid-template-columns: 1fr
	}
}

.helper {
	font-size: 12px;
	color: var(--muted)
}

.count {
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	color: #cfcfd3
}

.count.max {
	color: var(--danger)
}

.chipbar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap
}

.chip {
	border: 1px dashed rgba(255, 255, 255, .15);
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 12px;
	cursor: pointer;
	opacity: .9
}

.chip:hover {
	border-style: solid
}

.success {
	display: none;
	padding: 12px 14px;
	background: rgba(34, 197, 94, .12);
	color: #c6ffd9;
	border: 1px solid rgba(34, 197, 94, .35);
	border-radius: 12px;
	font-size: 14px
}

.error {
	display: none;
	padding: 12px 14px;
	background: rgba(239, 68, 68, .12);
	color: #ffbdbd;
	border: 1px solid rgba(239, 68, 68, .35);
	border-radius: 12px;
	font-size: 14px
}

footer {
	padding: 40px 16px;
	text-align: center;
	color: var(--muted);
	font-size: 13px
}

footer a {
	color: #cfcfd3
}

/* Tiny keylines simulating fractures over hero */
.fracture-lines {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .35
}

.fracture-lines svg {
	width: 100%;
	height: 100%
}

.faq details {
	border: 1px solid rgba(255, 255, 255, .08);
	background: #0e0e12;
	border-radius: 14px;
	padding: 14px 16px;
}

.faq details+details {
	margin-top: 10px;
}

.faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 600;
	color: #fff;
}

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

.faq summary:after {
	content: '▸';
	font-size: 14px;
	opacity: .8;
	transition: transform .15s ease;
}

.faq details[open] summary:after {
	transform: rotate(90deg);
}

.faq .answer {
	margin-top: 8px;
	color: #cfcfd3;
	line-height: 1.7;
}

/* Smooth expandable answer */
.faq .answer {
	margin-top: 8px;
	color: #cfcfd3;
	line-height: 1.7;
	overflow: hidden;
	max-height: 0;
	/* will be animated to scrollHeight via JS */
	opacity: 0;
	transform: translateY(-2px);
	transition: max-height .35s cubic-bezier(.2, 0, 0, 1), opacity .25s ease, transform .25s ease;
}

.faq details[open] .answer {
	opacity: 1;
	transform: translateY(0);
}


@media (prefers-reduced-motion: reduce) {
	.faq .answer {
		transition: none;
	}

	.faq summary:after {
		transition: none;
	}
}