/* Page-specific layout for the landing + login modal.
   Shared theme tokens live in base.css. */

.page {
	min-height: 100%;
	display: grid;
	gap: 22px;
	padding: 24px clamp(18px, 3vw, 40px) 64px;
}

.hero {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	grid-template-areas: "content media";
	gap: clamp(16px, 2.6vw, 28px);
	align-items: center;
	padding: clamp(16px, 2.6vw, 22px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.02);
	box-shadow: none;
}

@media (max-width: 860px) {
	.hero {
		grid-template-columns: 1fr;
		grid-template-areas:
			"content"
			"media";
	}
}

.hero__media {
	grid-area: media;
	position: relative;
	width: 100%;
	min-height: 220px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #0b0b0c;
	border: 1px solid var(--border);
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(5, 5, 5, 0.00), rgba(5, 5, 5, 0.35));
	pointer-events: none;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.86;
	filter: saturate(0.95) contrast(1.05);
}

/* Two-column sections (text left, image right), similar to Community. */
.section__layout {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(4px, 0.9vw, 8px);
	align-items: stretch;
	margin-top: 10px;
}

.section__aside {
	display: flex;
	align-items: center;
}

.section__aside .section__media {
	flex: 1;
}

/* Reuse the hero media format for section images, but show the whole image
   and align its height with the text column on the left. */
.section__media {
	grid-area: auto;
	min-height: 0;
	margin: 0;
	height: clamp(220px, 24vw, 340px);
	max-height: 100%;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.section__media::after { display: none; }

.section__media img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	background: #0b0b0c;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-sizing: border-box;
	opacity: 1;
	filter: none;
}

/* Reuse the hero media format for Community, but show the whole image and
   align its height with the text column on the left. */
.community__media {
	min-height: 0;
	margin: 0;
	height: 100%;
	max-height: none;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.community__media::after { display: none; }

.community__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 1;
	filter: none;
}

.community__layout {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(16px, 2.6vw, 28px);
	align-items: stretch;
	margin-top: 10px;
}

.community__aside {
	display: flex;
}

.community__aside .community__media {
	flex: 1;
}

@media (max-width: 900px) {
	.section__layout {
		grid-template-columns: 1fr;
	}
	.section__aside {
		margin-top: 10px;
	}
	.section__media {
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.section__media img {
		height: 100%;
	}

	.community__layout {
		grid-template-columns: 1fr;
	}
	.community__aside {
		margin-top: 10px;
	}
	.community__media {
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.community__media img {
		height: 100%;
	}
}

.hero__content {
	grid-area: content;
	display: grid;
	gap: 10px;
}

#hero-title {
	margin: 0;
	font-size: clamp(32px, 4.2vw, 48px);
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.lede {
	margin: 0;
	color: var(--muted);
	max-width: 50ch;
	font-size: 19px;
	line-height: 1.6;
}

.hero .muted {
	margin: 0;
	max-width: 62ch;
	font-size: 16px;
}


.hero__actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

/* No hover lift effect for login buttons (topbar, hero CTA, modal submit). */
.login-button {
	transition: background 0.18s ease, border-color 0.18s ease;
}

.login-button:hover,
.login-button:active {
	transform: none;
}


.quiet-link {
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid var(--border);
	padding-bottom: 4px;
	font-weight: 650;
}

.quiet-link:hover {
	text-decoration: none;
	border-color: rgba(255, 255, 255, 0.18);
}

.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.panel {
	line-height: 1.65;
	box-shadow: none;
	background: rgba(255, 255, 255, 0.02);
}

/* Alternate section surfaces (black -> dark gray) */
.grid > .panel:nth-child(even) {
	background: rgba(255, 255, 255, 0.035);
}

.panel > .measure {
	max-width: 72ch;
}

.cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 12px;
}

@media (min-width: 860px) {
	.cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1140px) {
	.cards { grid-template-columns: 1fr 1fr 1fr; }
}

.feature-card {
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	padding: 12px 12px;
}

.feature-card__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 750;
	letter-spacing: -0.1px;
}

.feature-card__text {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}

/* Community highlights (icon + short headline + 1–2 lines) */
.highlights {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 14px;
}

@media (min-width: 860px) {
	.highlights { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1140px) {
	.highlights { grid-template-columns: 1fr 1fr 1fr; }
}

.highlight {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 10px;
	align-items: start;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	padding: 12px;
}

.highlight__icon {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.92);
}

.highlight__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.highlight__title {
	margin: 0;
	font-size: 15px;
	font-weight: 750;
	letter-spacing: -0.1px;
}

.highlight__text {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}

.panel--support {
	grid-column: 1 / -1;
}

.panel h2 {
	margin: 0 0 10px;
	font-size: 22px;
	letter-spacing: -0.2px;
	font-weight: 750;
}

.panel p {
	margin: 0 0 12px;
	color: var(--muted);
}

.panel__float-media {
	float: left;
	width: min(900px, 78%);
	margin: 2px 16px 12px 0;
}

.panel__float-media img {
	width: 100%;
	height: auto;
	max-height: 720px;
	display: block;
	border-radius: var(--radius-lg);
	object-fit: cover;
	object-position: center;
}

.panel::after {
	content: "";
	display: block;
	clear: both;
}

@media (max-width: 720px) {
	.panel__float-media {
		float: none;
		width: 100%;
		margin: 0 0 12px;
	}
	.panel__float-media img {
		max-height: 420px;
	}
}


.modal {
	position: fixed;
	inset: 0;
	display: none;
	place-items: center;
	padding: 24px;
	z-index: 30;
}

.modal.is-open {
	display: grid;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.modal__dialog {
	position: relative;
	z-index: 1;
	width: min(460px, 100%);
}

.modal__dialog.card {
	background: var(--surface);
	box-shadow: var(--shadow);
}

.card__header { margin-bottom: 16px; }

.title {
	margin: 0;
	font-size: 22px;
	font-weight: 750;
	letter-spacing: -0.1px;
}

.subtitle {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.form .button { width: 100%; }

.hint {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
