/* =================================================================
 * Flagship Funded — Front Page
 * Mirrors flagshipfunded.com/challenges. Scoped to the home page;
 * tokens match checkout.css so the whole site reads as one brand.
 * ================================================================= */

/* Tokens at :root so the body.home overrides below can read them (custom
   properties only inherit downward — defining them on .ff-home left the
   body-level background rules with an undefined var). home.css loads only on
   the front page, so :root scoping is safe. */
:root {
	--ff-bg:            #090313;
	--ff-card:          #100b1a;
	--ff-card-grad:     linear-gradient(160deg, #100b1a 0%, #0c0717 100%);
	--ff-card-elevated: #15102a;
	--ff-border:        rgba(255, 255, 255, 0.10);
	--ff-card-border:   rgba(255, 255, 255, 0.06);
	--ff-text:          #f5f5f5;
	--ff-text-muted:    #8a8a8a;
	--ff-accent:        #FFF627;
	--ff-accent-soft:   rgba(255, 246, 39, 0.08);
	--ff-radius:        12px;
	--ff-radius-sm:     8px;
	--ff-radius-pill:   9999px;
}
.ff-home {
	color: var(--ff-text);
	font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

/* Dark surface. Scoped to #content + its container — NOT a bare
   `.ast-container`, because the header bar uses that class too and a global
   override would strip the header's padding. */
body.home,
body.home #page,
body.home #content,
body.home #content .ast-container,
body.home .ff-home {
	background: var(--ff-bg) !important;
}

/* The home content lives in `#content > .ast-container`, which Astra makes a
   flex column capped at 1240px — so it collapses to the cards' content width
   (~930px) and sits left. Flatten it to a plain, full-width block so
   .ff-home-container can centre. Scoped to #content so the header/footer
   containers keep their own padding/layout. */
body.home #content .ast-container {
	display: block !important;
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.home #content .ff-home { width: 100% !important; }
body.home .entry-header { display: none !important; }

/* ----- Layout ----- */
.ff-home-container {
	width: 100%;
	max-width: 1152px;
	margin: 0 auto;
	padding-inline: 16px;
}
@media (min-width: 640px) { .ff-home-container { padding-inline: 24px; } }

.ff-home-section { padding-block: 48px; }
@media (min-width: 768px) { .ff-home-section { padding-block: 72px; } }

/* ----- Hero / header (clears the transparent Astra header) ----- */
.ff-home-hero {
	text-align: center;
	padding: 48px 0 8px;
}
@media (min-width: 768px) { .ff-home-hero { padding-top: 64px; } }

.ff-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ff-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.ff-home-title {
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: #fff;
	margin: 0;
}
.ff-home-sub {
	max-width: 640px;
	margin: 16px auto 0;
	color: var(--ff-text-muted);
	font-size: 16px;
	line-height: 1.6;
}

/* ----- Accent + white buttons (no hover colour flip, like the site) ----- */
.ff-btn-accent {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--ff-accent);
	color: #000;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 12px 24px;
	border-radius: var(--ff-radius-pill);
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: filter 0.15s;
}
.ff-btn-accent:hover { filter: brightness(0.95); color: #000; }
.ff-btn-white {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #3b0a6b;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 28px;
	border-radius: var(--ff-radius-pill);
	text-decoration: none;
	transition: background 0.15s;
}
.ff-btn-white:hover { background: rgba(255, 255, 255, 0.9); color: #3b0a6b; }

/* ----- Challenge cards ----- */
.ff-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 600px) { .ff-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ff-card-grid { grid-template-columns: repeat(3, 1fr); } }

.ff-h-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--ff-card-grad);
	border: 1px solid var(--ff-card-border);
	border-radius: var(--ff-radius);
	padding: 24px;
}
.ff-h-card__phase {
	color: var(--ff-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.ff-h-card__title {
	margin: 6px 0 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--ff-text);
	letter-spacing: -0.01em;
}
.ff-h-card__tagline {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ff-text-muted);
}
.ff-h-card__rules {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 16px;
	margin: 0;
	font-size: 14px;
}
.ff-h-card__rules dt { color: var(--ff-text-muted); }
.ff-h-card__rules dd { margin: 0; text-align: right; font-weight: 600; color: var(--ff-text); }

.ff-h-card__platform {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--ff-border);
}
.ff-h-card__platform span {
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ff-text-muted);
}
.ff-h-card__platform img { height: 18px; width: auto; opacity: 0.85; }

.ff-h-card__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--ff-border);
}
.ff-h-card__from {
	display: block;
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ff-text-muted);
}
.ff-h-card__amount {
	font-size: 24px;
	font-weight: 800;
	color: var(--ff-text);
}
.ff-h-card__amount s { font-size: 14px; font-weight: 500; color: var(--ff-text-muted); margin-left: 6px; }

/* ----- Socials ----- */
.ff-socials-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 900px) { .ff-socials-grid { grid-template-columns: 1.5fr 1fr; } }

.ff-social-card {
	position: relative;
	overflow: hidden;
	min-height: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	padding: 32px;
	border-radius: var(--ff-radius);
	border: 1px solid var(--ff-card-border);
	background: linear-gradient(to bottom, #1c1136, var(--ff-card));
}
.ff-social-card h3 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; color: #fff; }
.ff-social-card p { margin: 12px 0 0; font-size: 14px; color: var(--ff-text-muted); max-width: 280px; }
.ff-social-rings {
	position: absolute;
	top: 30px;
	left: 50%;
	width: 420px;
	height: 420px;
	transform: translateX(-50%);
	background:
		radial-gradient(circle, transparent 58px, rgba(168, 130, 240, 0.12) 59px, transparent 61px),
		radial-gradient(circle, transparent 118px, rgba(168, 130, 240, 0.10) 119px, transparent 121px),
		radial-gradient(circle, transparent 178px, rgba(168, 130, 240, 0.08) 179px, transparent 181px);
	pointer-events: none;
}
.ff-social-links { position: relative; z-index: 1; display: flex; gap: 12px; margin-top: 24px; }
.ff-social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	transition: transform 0.15s;
}
.ff-social-links a:hover { transform: translateY(-2px); }
.ff-social-links img { width: 24px; height: 24px; }
.ff-social-links .ff-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ff-social-links .ff-x  { background: #000; }
.ff-social-links .ff-fb { background: #1877F2; }
.ff-social-links .ff-wa { background: #25D366; }

.ff-social-card--discord {
	justify-content: space-between;
	border-color: rgba(192, 132, 252, 0.25);
	background: linear-gradient(160deg, #7c3aed, #4c1d95);
}
.ff-discord-orb {
	margin: 24px auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(4px);
}

/* ----- CTA band ----- */
.ff-cta-band {
	position: relative;
	overflow: hidden;
	text-align: center;
	border-radius: var(--ff-radius);
	border: 1px solid var(--ff-border);
	background:
		linear-gradient(rgba(12, 7, 23, 0.65), rgba(12, 7, 23, 0.8)),
		url("https://checkout.flagshipfunded.com/wp-content/uploads/2026/05/ChatGPT-Image-May-30-2026-10_27_18-PM.png") center/cover no-repeat;
	padding: 56px 24px;
}
@media (min-width: 768px) { .ff-cta-band { padding: 80px 24px; } }
.ff-cta-band h2 { margin: 0 auto; max-width: 640px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.ff-cta-band p { margin: 16px auto 0; max-width: 520px; color: rgba(255, 255, 255, 0.75); font-size: 16px; }
.ff-cta-band .ff-btn-accent { margin-top: 28px; }
