/* =========================================================
   FLOW — HERO
   ========================================================= */

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
	position: relative;
	isolation: isolate;

	min-height: 100svh;

	display: flex;
	align-items: center;

	overflow: hidden;

	background-color: var(--color-bg);
}

/* ---------------------------------------------------------
   BACKGROUND IMAGE
   --------------------------------------------------------- */

.hero-background {
	position: absolute;
	inset: 0;

	z-index: -3;

	background-image: url('../assets/images/hero.webp');
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;

	transform: scale(1.01);
}

/* ---------------------------------------------------------
   IMAGE OVERLAY
   --------------------------------------------------------- */

.hero-overlay {
	position: absolute;
	inset: 0;

	z-index: -2;

	background:
        /*
         * Main left-to-right gradient.
         * Keeps the copy readable while allowing
         * the vehicle and city to remain visible.
         */
		linear-gradient(
			90deg,
			rgba(10, 13, 13, 0.96) 0%,
			rgba(10, 13, 13, 0.88) 22%,
			rgba(10, 13, 13, 0.56) 46%,
			rgba(10, 13, 13, 0.12) 75%,
			rgba(10, 13, 13, 0.2) 100%
		),
		/*
         * Subtle bottom darkening.
         */
			linear-gradient(0deg, rgba(10, 13, 13, 0.55), transparent 45%);
}

/* ---------------------------------------------------------
   AMBIENT NEON
   --------------------------------------------------------- */

.hero::before {
	content: '';

	position: absolute;
	z-index: -1;

	width: 500px;
	height: 500px;

	top: 25%;
	right: 18%;

	border-radius: 50%;

	background: radial-gradient(circle, rgba(200, 255, 50, 0.1), transparent 68%);

	filter: blur(60px);

	pointer-events: none;
}

/* ---------------------------------------------------------
   HERO INNER
   --------------------------------------------------------- */

.hero-inner {
	position: relative;

	min-height: 100svh;

	display: flex;
	align-items: center;

	padding-top: 88px;
	padding-bottom: 60px;
}

/* ---------------------------------------------------------
   HERO CONTENT
   --------------------------------------------------------- */

.hero-content {
	position: relative;
	z-index: 3;

	width: 100%;
	max-width: 620px;
}

.hero-content .eyebrow {
	margin-bottom: var(--space-6);
}

.hero-content h1 {
	max-width: 600px;

	font-size: clamp(3.5rem, 6vw, 5.5rem);

	line-height: 0.92;
}

.hero-content h1 span {
	position: relative;

	display: inline-block;

	color: var(--color-accent);
}

.hero-content h1 span::after {
	content: '';

	position: absolute;

	left: 3%;
	bottom: -7px;

	width: 70%;
	height: 2px;

	background-color: var(--color-accent);

	box-shadow: 0 0 12px rgba(200, 255, 50, 0.3);

	opacity: 0.8;
}

.hero-text {
	max-width: 500px;

	margin-top: var(--space-7);

	color: rgba(242, 244, 239, 0.72);

	font-size: var(--text-lg);
}

/* ---------------------------------------------------------
   HERO ACTIONS
   --------------------------------------------------------- */

.hero-actions {
	margin-top: var(--space-8);
}

.hero-actions .button--primary {
	box-shadow: 0 0 25px rgba(200, 255, 50, 0.08);
}

.hero-actions .button--primary:hover {
	box-shadow:
		0 0 25px rgba(200, 255, 50, 0.2),
		0 0 60px rgba(200, 255, 50, 0.08);
}

.hero-actions .button--secondary {
	border-color: rgba(242, 244, 239, 0.25);

	background-color: rgba(10, 13, 13, 0.2);

	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hero-actions .button--secondary::after {
	content: '↗';

	font-size: 0.9em;

	transition: transform var(--transition-base);
}

.hero-actions .button--secondary:hover::after {
	transform: translate(2px, -2px);
}

/* ---------------------------------------------------------
   ROUTE
   --------------------------------------------------------- */

.hero-route {
	position: absolute;

	z-index: 2;

	right: 32%;
	bottom: 28%;

	display: flex;
	align-items: center;

	opacity: 0.8;

	pointer-events: none;
}

.route-point {
	position: relative;

	width: 7px;
	height: 7px;

	flex: 0 0 7px;

	border-radius: 50%;

	background-color: var(--color-accent);

	box-shadow:
		0 0 12px var(--color-accent),
		0 0 28px var(--color-accent-glow);
}

.route-point::before {
	content: '';

	position: absolute;

	inset: -6px;

	border: 1px solid rgba(200, 255, 50, 0.2);

	border-radius: 50%;
}

.route-line {
	width: 180px;
	height: 1px;

	background: linear-gradient(
		90deg,
		transparent,
		rgba(200, 255, 50, 0.75),
		transparent
	);

	box-shadow: 0 0 12px rgba(200, 255, 50, 0.1);
}

/* ---------------------------------------------------------
   RIDE CARD
   --------------------------------------------------------- */

.ride-card {
	position: absolute;

	z-index: 4;

	right: 3%;
	bottom: 12%;

	display: flex;
	flex-direction: column;
	gap: var(--space-4);

	width: 290px;

	padding: var(--space-6);

	border: var(--border-width) solid rgba(242, 244, 239, 0.16);

	border-radius: var(--radius-md);

	background: linear-gradient(
		135deg,
		rgba(18, 23, 23, 0.92),
		rgba(8, 11, 11, 0.82)
	);

	box-shadow:
		0 25px 70px rgba(0, 0, 0, 0.4),
		0 0 35px rgba(200, 255, 50, 0.025);

	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.ride-card .mono-label {
	color: var(--color-accent);
}

.ride-route {
	display: flex;
	align-items: center;
	gap: var(--space-3);

	padding-bottom: var(--space-4);

	border-bottom: var(--border-width) solid var(--color-border);

	color: var(--color-text);

	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.ride-route span:nth-child(2) {
	color: var(--color-accent);

	font-family: var(--font-mono);
}

.ride-info {
	display: flex;
	align-items: center;
	justify-content: space-between;

	color: var(--color-text-muted);

	font-family: var(--font-mono);
	font-size: 0.65rem;
}

.ride-status {
	color: var(--color-accent);

	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   BOTTOM FADE
   --------------------------------------------------------- */

.hero-inner::after {
	content: '';

	position: absolute;

	left: 0;
	right: 0;
	bottom: 0;

	height: 1px;

	background: linear-gradient(
		90deg,
		transparent,
		var(--color-border),
		transparent
	);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
	.hero-overlay {
		background: linear-gradient(
				90deg,
				rgba(10, 13, 13, 0.96) 0%,
				rgba(10, 13, 13, 0.78) 38%,
				rgba(10, 13, 13, 0.28) 75%,
				rgba(10, 13, 13, 0.3) 100%
			),
			linear-gradient(0deg, rgba(10, 13, 13, 0.55), transparent 50%);
	}

	.hero-content {
		max-width: 560px;
	}

	.ride-card {
		right: 2%;
	}

	.hero-route {
		right: 30%;
	}
}

@media (max-width: 767px) {
	.hero {
		min-height: 760px;

		align-items: flex-end;
	}

	.hero-background {
		background-position: 67% center;
	}

	.hero-overlay {
		background: linear-gradient(
			180deg,
			rgba(10, 13, 13, 0.15) 0%,
			rgba(10, 13, 13, 0.48) 38%,
			rgba(10, 13, 13, 0.96) 78%,
			rgba(10, 13, 13, 1) 100%
		);
	}

	.hero-inner {
		min-height: auto;

		padding-top: 140px;
		padding-bottom: var(--space-10);

		align-items: flex-end;
	}

	.hero-content {
		max-width: 100%;
	}

	.hero-content h1 {
		font-size: clamp(3rem, 12vw, 4.25rem);
	}

	.hero-text {
		max-width: 480px;
	}

	.hero-route {
		top: 42%;
		right: 20%;
		bottom: auto;
	}

	.route-line {
		width: 110px;
	}

	.ride-card {
		display: none;
	}
}

@media (max-width: 480px) {
	.hero {
		min-height: 720px;
	}

	.hero-background {
		background-position: 68% center;
	}

	.hero-content h1 {
		font-size: 3rem;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-actions .button {
		width: 100%;
	}

	.hero-route {
		top: 38%;
		right: 12%;
	}
}
/* =========================================================
   BARRA FLOTANTE — DEMO
========================================================= */

.demo-bar {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;

	display: flex;
	align-items: center;

	max-width: calc(100% - 40px);
	padding: 5px 10px;

	border: 1px solid rgba(23, 32, 42, 0.12);
	border-radius: 999px;

	background: #ffffffa1;
	color: #20252b;

	font-family: var(--font-body, Arial, sans-serif);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;

	box-shadow: 0 6px 24px rgba(23, 32, 42, 0.08);
}

.demo-bar__name {
	padding: 0 20px 0 16px;
	white-space: nowrap;
}

.demo-bar__contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;

	min-height: 44px;
	padding: 0 16px 0 20px;

	border-left: 1px solid rgba(23, 32, 42, 0.16);
	border-radius: 0 999px 999px 0;

	background: transparent;
	color: #245c38;

	font-size: inherit;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;

	transition:
		color 200ms ease,
		background-color 200ms ease;
}

.demo-bar__contact:hover {
	background: #f2f7f3;
	color: #183f26;
}

.demo-bar__contact:focus-visible {
	outline: 2px solid #245c38;
	outline-offset: 3px;
}

.demo-bar__icon {
	display: block;
	flex: 0 0 21px;

	width: 21px;
	height: 21px;
}

/* MOBILE */

@media (max-width: 600px) {
	.demo-bar {
		top: 12px;
		right: 12px;

		max-width: calc(100% - 24px);
		padding: 5px;

		font-size: 12px;
	}

	.demo-bar__name {
		padding: 0 12px;
	}

	.demo-bar__contact {
		gap: 7px;
		padding: 0 12px;
	}

	.demo-bar__icon {
		flex-basis: 19px;
		width: 19px;
		height: 19px;
	}
}
