/*
 * ARCbots theme — supplemental styles beyond theme.json.
 * Mirrors the panel design system (templates/template6/arcbots/css/arcbots.css):
 * glassy nav, indigo gradients, card surfaces, outline buttons, hover lifts,
 * focus glow and a lightweight scroll-reveal. Tokens come from theme.json
 * (--wp--preset--* and --wp--custom--*).
 */

:root {
	--arc-accent: var(--wp--preset--color--accent, #6366f1);
	--arc-accent-rgb: 99, 102, 241;
	--arc-card-radius: var(--wp--custom--radius--card, 14px);
	--arc-radius-sm: var(--wp--custom--radius--sm, 8px);
	--arc-transition: var(--wp--custom--transition, 0.2s ease);
	--arc-border: var(--wp--custom--border--subtle, rgba(255, 255, 255, 0.07));
	--arc-border-strong: var(--wp--custom--border--strong, rgba(255, 255, 255, 0.12));
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ── Glassy sticky header (matches panel navbar) ───────────────────────── */
.arc-site-header {
	background: rgba(13, 17, 28, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--arc-border);
	padding-block: 0.7rem;
	z-index: 100;
}
.arc-logo {
	margin: 0;
	line-height: 0;
}
.arc-logo img {
	display: block;
	height: auto;
}
.arc-header-nav {
	gap: 1.25rem;
}
.arc-header-nav .wp-block-navigation a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--wp--preset--color--text-muted, #9aa4bd);
	transition: color var(--arc-transition);
}
.arc-header-nav .wp-block-navigation a:hover {
	color: var(--wp--preset--color--text, #e6e9f2);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.arc-hero {
	position: relative;
	overflow: hidden;
}
.arc-hero::after {
	/* subtle indigo glow behind the headline */
	content: "";
	position: absolute;
	inset: -40% 0 auto 0;
	height: 520px;
	background: radial-gradient(60% 60% at 50% 0%, rgba(99, 102, 241, 0.28) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}
.arc-hero > * {
	position: relative;
	z-index: 1;
}
.arc-hero-title {
	letter-spacing: -0.02em;
}
.arc-gradient-text {
	background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Pill badge above the hero headline */
.arc-pill-badge {
	display: inline-block;
	margin: 0 auto;
	padding: 0.4em 1em;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: rgba(99, 102, 241, 0.14);
	border: 1px solid rgba(99, 102, 241, 0.30);
	color: #b6bdff;
	font-size: 0.85rem;
	font-weight: 600;
	width: fit-content;
}
.arc-hero > .arc-pill-badge {
	display: table;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.arc-cta-glow .wp-block-button__link {
	box-shadow: 0 8px 30px rgba(99, 102, 241, 0.40);
	transition: transform var(--arc-transition), box-shadow var(--arc-transition);
}
.arc-cta-glow .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 38px rgba(99, 102, 241, 0.55);
}

/* Outline button variant */
.wp-block-button.is-style-arc-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--text, #e6e9f2);
	border: 1px solid var(--arc-border-strong);
	box-shadow: none;
	transition: border-color var(--arc-transition), background var(--arc-transition);
}
.wp-block-button.is-style-arc-outline .wp-block-button__link:hover {
	border-color: var(--arc-accent);
	background: rgba(99, 102, 241, 0.10);
}
/* Outline button placed on the gradient banner */
.arc-cta-on-grad.is-style-arc-outline .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}
.arc-cta-on-grad.is-style-arc-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: #fff;
}
/* Inverted CTA on the gradient banner: solid white pill with readable indigo
   label (force colors so the preset cascade can't wash the text to white). */
.arc-cta-invert .wp-block-button__link {
	background-color: #ffffff !important;
	color: #4f46e5 !important;
	font-weight: 700;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	transition: transform var(--arc-transition), background-color var(--arc-transition), color var(--arc-transition);
}
.arc-cta-invert .wp-block-button__link:hover,
.arc-cta-invert .wp-block-button__link:focus {
	background-color: #eef0ff !important;
	color: #4338ca !important;
	transform: translateY(-2px);
}

/* ── Card surface (group/column block style) ──────────────────────────── */
.is-style-arc-card {
	background: var(--wp--preset--color--surface-1, #121725);
	border: 1px solid var(--arc-border);
	border-radius: var(--arc-card-radius);
	box-shadow: var(--wp--preset--shadow--card, 0 4px 24px rgba(0, 0, 0, 0.28));
	padding: 1.75rem;
	transition: transform var(--arc-transition), box-shadow var(--arc-transition), border-color var(--arc-transition);
}
/* Columns that are cards: lift on hover */
.wp-block-column.is-style-arc-card:hover,
.wp-block-group.is-style-arc-card:hover {
	transform: translateY(-3px);
	border-color: rgba(99, 102, 241, 0.35);
	box-shadow: var(--wp--preset--shadow--lg, 0 12px 40px rgba(0, 0, 0, 0.45));
}
.is-style-arc-card > :first-child { margin-top: 0; }
.is-style-arc-card > :last-child { margin-bottom: 0; }

/* Glass surface variant */
.is-style-arc-glass {
	background: rgba(255, 255, 255, 0.04);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid var(--arc-border);
	border-radius: var(--arc-card-radius);
	padding: 1.75rem;
}

/* Feature icon chip */
.arc-feature-icon {
	font-size: 1.6rem;
	line-height: 1;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--arc-radius-sm);
	background: rgba(99, 102, 241, 0.14);
	border: 1px solid rgba(99, 102, 241, 0.25);
	margin-bottom: 1rem;
}

/* ── Eyebrow heading ──────────────────────────────────────────────────── */
.is-style-arc-eyebrow {
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ── Stats ─────────────────────────────────────────────────────────────── */
.arc-stat-num {
	font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
	background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 0.25rem;
}

/* ── Screenshot frame ─────────────────────────────────────────────────── */
.wp-block-image.is-style-arc-shot img {
	border-radius: var(--arc-card-radius);
	border: 1px solid var(--arc-border-strong);
	box-shadow: var(--wp--preset--shadow--lg, 0 12px 40px rgba(0, 0, 0, 0.45));
}

/* ── Focus visibility (accessibility) ─────────────────────────────────── */
a:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation a:focus-visible {
	outline: 2px solid var(--arc-accent);
	outline-offset: 2px;
}

/* ── Scroll reveal (progressive enhancement; see interactions.js) ─────── */
.arc-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	will-change: opacity, transform;
}
.arc-reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.arc-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 781px) {
	.arc-header-nav { gap: 0.5rem; }
	.is-style-arc-card { padding: 1.4rem; }
}
