/* ==========================================================================
   Ambigene Studios — design system
   ========================================================================== */

:root {
	--bg: #0a0a0f;
	--surface: #111118;
	--surface-2: #16161f;
	--accent: #a3e635;       /* electric lime — the single brand colour */
	--accent-2: #bef264;     /* lighter lime (subtle gradient / highlights) */
	--accent-deep: #4d7c0f;  /* deep lime — for lime text on light backgrounds */
	--ink: #0a0a0f;          /* near-black text placed on lime fills (contrast) */
	--text: #f1f5f9;
	--muted: #94a3b8;
	--border: rgba(255, 255, 255, 0.08);
	--glow: rgba(163, 230, 53, 0.45);

	--gradient: linear-gradient(120deg, var(--accent-2), var(--accent));
	--radius: 16px;
	--radius-sm: 10px;
	--maxw: 1200px;

	--font-head: "Space Grotesk", "Syne", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 0.5em;
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

/* Layout ------------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
	display: inline-block;
	font-family: var(--font-head);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent-2);
	margin-bottom: 0.75rem;
}

/* Gradient text ----------------------------------------------------------- */
.gradient-text {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.98rem;
	padding: 0.85rem 1.6rem;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
	will-change: transform;
}

.btn--primary {
	background: var(--gradient);
	color: var(--ink);
	box-shadow: 0 0 0 rgba(163, 230, 53, 0);
}
.btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px -6px var(--glow), 0 0 22px -4px var(--glow);
}

.btn--ghost {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}
.btn--ghost:hover {
	border-color: var(--accent);
	box-shadow: 0 0 18px -4px var(--glow);
	transform: translateY(-2px);
}

/* Badges ------------------------------------------------------------------ */
.badge {
	display: inline-block;
	font-family: var(--font-head);
	font-size: 0.72rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	color: var(--accent-2);
	background: rgba(163, 230, 53, 0.1);
	border: 1px solid rgba(163, 230, 53, 0.25);
}

/* Glass cards ------------------------------------------------------------- */
.glass {
	background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(10, 10, 15, 0.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom-color: var(--border);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	color: var(--text);
}
.brand__mark { width: 30px; height: 30px; display: block; }
.brand__name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
	font-size: 0.95rem;
	color: var(--muted);
	position: relative;
	transition: color 0.2s var(--ease);
}
/* wp_nav_menu renders <ul class="nav"><li><a>; reset list styling. */
.nav { list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a:hover,
.nav a.is-active,
.nav .is-active > a,
.nav .current-menu-item > a { color: var(--text); }
.nav a.is-active::after,
.nav .is-active > a::after,
.nav .current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -6px;
	height: 2px;
	background: var(--gradient);
	border-radius: 2px;
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: var(--text);
	cursor: pointer;
	padding: 0.5rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	text-align: center;
	padding-block: clamp(5rem, 12vw, 9rem);
	overflow: hidden;
}
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(163,230,53,0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(163,230,53,0.06) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 40%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 40%, transparent 100%);
}
.hero__glow {
	position: absolute;
	top: 10%; left: 50%;
	width: 60vw; height: 60vw;
	max-width: 700px; max-height: 700px;
	transform: translateX(-50%);
	background: radial-gradient(circle, var(--glow), transparent 65%);
	filter: blur(40px);
	opacity: 0.5;
	z-index: 0;
	animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(1); }
	50%      { opacity: 0.6;  transform: translateX(-50%) scale(1.08); }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1rem; }
.hero__sub {
	color: var(--muted);
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	max-width: 540px;
	margin: 0 auto 2.25rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Floating particles ------------------------------------------------------ */
.particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.particle {
	position: absolute;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--accent-2);
	opacity: 0.4;
	animation: float 12s linear infinite;
}
@keyframes float {
	0%   { transform: translateY(20px); opacity: 0; }
	10%  { opacity: 0.5; }
	90%  { opacity: 0.5; }
	100% { transform: translateY(-120px); opacity: 0; }
}

/* ==========================================================================
   App grid + cards
   ========================================================================== */
.app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
}

.app-card {
	position: relative;
	border-radius: var(--radius);
	transition: transform 0.3s var(--ease);
}
.app-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.5rem;
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
	border: 1px solid var(--border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.app-card:hover .app-card__link {
	transform: translateY(-4px);
	border-color: rgba(163,230,53,0.5);
	box-shadow: 0 12px 40px -12px var(--glow), 0 0 0 1px rgba(163,230,53,0.25), inset 0 0 22px -16px var(--accent-2);
}
.app-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}
.app-card__icon {
	width: 64px; height: 64px;
	border-radius: 14px;
	object-fit: cover;
	border: 1px solid var(--border);
}
.app-card__title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.app-card__desc { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }
.app-card__cta { margin-top: 1.25rem; align-self: flex-start; }

/* Filter bar -------------------------------------------------------------- */
.filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: center;
	margin-bottom: 2.5rem;
}
.filter-btn {
	font-family: var(--font-head);
	font-size: 0.9rem;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--muted);
	cursor: pointer;
	transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.is-active {
	color: var(--ink);
	background: var(--gradient);
	border-color: transparent;
}
.app-card.is-hidden { display: none; }

.empty-state {
	text-align: center;
	color: var(--muted);
	padding: 3rem 1rem;
	grid-column: 1 / -1;
}

/* ==========================================================================
   Feature blocks ("Why Ambigene")
   ========================================================================== */
.why {
	background:
		radial-gradient(ellipse 80% 100% at 50% 0%, rgba(163,230,53,0.12), transparent 70%);
}
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}
.feature {
	padding: 2rem;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: rgba(163,230,53,0.4); }
.feature__icon {
	width: 52px; height: 52px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: rgba(163,230,53,0.12);
	color: var(--accent);
	margin-bottom: 1.1rem;
}
.feature__icon svg { width: 26px; height: 26px; }

/* ==========================================================================
   App spotlight
   ========================================================================== */
.spotlight {
	background: radial-gradient(ellipse 70% 100% at 80% 50%, rgba(163,230,53,0.1), transparent 60%);
}
.spotlight__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}
.spotlight__features { list-style: none; padding: 0; margin: 1.5rem 0; }
.spotlight__features li {
	display: flex; gap: 0.6rem; align-items: flex-start;
	margin-bottom: 0.6rem; color: var(--muted);
}
.spotlight__features li::before { content: "▹"; color: var(--accent-2); }
.spotlight__media img {
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: 0 30px 80px -30px rgba(163,230,53,0.4);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner { text-align: center; }
.cta-banner__inner {
	position: relative;
	padding: clamp(2.5rem, 6vw, 4rem);
	border-radius: 24px;
	background: var(--surface);
	border: 1px solid transparent;
	background-clip: padding-box;
	overflow: hidden;
}
.cta-banner__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: 24px;
	background: var(--gradient);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

/* ==========================================================================
   Single app
   ========================================================================== */
.app-hero { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.app-hero__icon {
	width: 110px; height: 110px; border-radius: 24px;
	border: 1px solid var(--border);
}
.app-hero__meta { flex: 1; min-width: 240px; }
.app-hero__tagline { color: var(--muted); font-size: 1.15rem; }

.gallery {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 1rem;
	scroll-snap-type: x mandatory;
}
.gallery img {
	height: 420px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	scroll-snap-align: start;
	flex: 0 0 auto;
}

.spec-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
}
.spec {
	padding: 1.25rem;
	border-radius: var(--radius-sm);
	background: var(--surface);
	border: 1px solid var(--border);
}
.spec__label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.spec__value { font-family: var(--font-head); font-size: 1.05rem; margin-top: 0.25rem; }

.feature-list { list-style: none; padding: 0; }
.feature-list li {
	display: flex; gap: 0.7rem; align-items: flex-start;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--border);
}
.feature-list li::before { content: "✦"; color: var(--accent); }

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-size: 0.9rem; margin-bottom: 0.45rem; color: var(--muted); }
.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1rem;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(163,230,53,0.18), 0 0 18px -6px var(--glow);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.9rem; }
.form-message { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.form-message--ok { background: rgba(163,230,53,0.12); border: 1px solid rgba(163,230,53,0.3); }
.form-message--err { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	border-top: 1px solid var(--border);
	padding-block: 3.5rem 2rem;
	background: var(--surface);
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
}
.footer-tagline {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.6rem;
	letter-spacing: -0.02em;
	color: var(--text);
	margin: 1rem 0 0.35rem;
}
.footer-tagline span { color: var(--accent); }
.footer-brand p { color: var(--muted); max-width: 320px; }

/* "Be bold" hero-vision signature */
.be-bold {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	letter-spacing: -0.02em;
	margin-top: 1.75rem;
	color: var(--text);
}
.be-bold span { color: var(--accent); }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text); opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--accent-2); }
.social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social a {
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border-radius: 10px;
	border: 1px solid var(--border);
	color: var(--muted);
	transition: all 0.2s var(--ease);
}
.social a:hover { color: var(--text); border-color: var(--accent); box-shadow: 0 0 16px -4px var(--glow); }
.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 1.5rem;
	color: var(--muted);
	font-size: 0.88rem;
	text-align: center;
}

/* ==========================================================================
   Page transitions
   ========================================================================== */
body { opacity: 0; animation: page-in 0.5s var(--ease) forwards; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving { opacity: 0; transition: opacity 0.3s var(--ease); }

/* Reveal on scroll -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
	.spotlight__inner, .contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.nav {
		position: fixed;
		inset: 72px 0 auto 0;
		flex-direction: column;
		gap: 0;
		background: rgba(10,10,15,0.96);
		backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--border);
		padding: 1rem 0;
		transform: translateY(-120%);
		transition: transform 0.35s var(--ease);
	}
	.nav.is-open { transform: none; }
	.nav a { padding: 0.85rem 2rem; width: 100%; }
	.nav-toggle { display: block; }
}

@media (max-width: 520px) {
	.footer-grid { grid-template-columns: 1fr; }
	.app-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	body { opacity: 1; }
}
