:root {
	--red: #9b0000;
	--red-dark: #2f0000;
	--accent: #ff1b1b;
	--green: #0cff34;
	--bg: #060606;
	--gray: #303030;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: #ffffff;
	font-family: Helvetica, Arial, sans-serif;
}

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

a {
	color: inherit;
}


/* =========================================================
   CONTADOR
   ========================================================= */

.countdown-bar {
	min-height: 95px;
	padding: 0 20px;
	background: var(--red);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
}

.countdown-bar__label {
	margin: 0;
	font-size: 22px;
	line-height: 1.02;
	font-weight: 700;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.countdown {
	display: flex;
	gap: 12px;
}

.countdown__item {
	width: 67px;
	height: 67px;
	border-radius: 9px;
	background: var(--red-dark);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-transform: uppercase;
}

.countdown__item strong {
	font-size: 32px;
	line-height: 1.03;
}

.countdown__item span {
	margin-top: 1px;
	font-size: 8px;
	line-height: 1.3;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--bg);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/bg-hero.webp") center / cover no-repeat;
	opacity: 0.2;
	pointer-events: none;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 45% 55% at 98% 100%, rgba(255, 0, 0, 0.55), rgba(255, 0, 0, 0) 100%);
	mix-blend-mode: hard-light;
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 1;
	width: min(1520px, calc(100% - 48px));
	min-height: 964px;
	margin: 0 auto;
	padding: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.hero__copy {
	width: 622px;
	flex: 0 0 622px;
	align-self: stretch;
	justify-content: flex-end;
	padding: 80px 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.hero__logo {
	width: 352px;
}

.hero__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
}

.hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hero__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hero__text h1 {
	margin: 0;
	font-size: 64px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.hero__text h1 em,
.hero__text p em {
	font-style: normal;
	color: var(--accent);
}

.hero__text p {
	margin: 0;
	font-size: 20px;
	line-height: 1;
}

.hero__visual {
	flex: 0 1 868px;
	min-width: 0;
	align-self: flex-end;
}

.hero__visual img {
	width: 100%;
	max-width: 868px;
	margin-left: auto;
}


/* =========================================================
   FORMULÁRIO
   ========================================================= */

.lead-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lead-form input {
	width: 100%;
	height: 53px;
	padding: 0 25px;
	border: 2px solid transparent;
	border-radius: 8px;
	background: #ffffff;
	color: #2d2d2d;
	font: 16px Helvetica, Arial, sans-serif;
}

.lead-form input::placeholder {
	color: rgba(45, 45, 45, 0.5);
}

.lead-form input:focus {
	outline: none;
	border-color: var(--green);
}

.lead-form input.is-invalid {
	border-color: var(--accent);
}

.lead-form__phone {
	display: flex;
	gap: 8px;
}

.lead-form__phone select {
	flex: 0 0 170px;
	width: 170px;
	min-width: 0;
	height: 53px;
	padding: 0 36px 0 16px;
	border: 2px solid transparent;
	border-radius: 8px;
	background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232d2d2d' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
	color: #2d2d2d;
	font: 16px Helvetica, Arial, sans-serif;
	-webkit-appearance: none;
	appearance: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
}

.lead-form__phone select:focus {
	outline: none;
	border-color: var(--green);
}

.lead-form__phone select.is-invalid {
	border-color: var(--accent);
}

.lead-form__phone input {
	flex: 1 1 auto;
	min-width: 0;
}

.lead-form__button {
	height: 64px;
	border: 0;
	border-radius: 8.5px;
	background: var(--green);
	box-shadow: 0 0 5.5px rgba(14, 255, 54, 0.1);
	color: #000000;
	font: 700 24px Helvetica, Arial, sans-serif;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.lead-form__button:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.lead-form__button:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.lead-form__error {
	margin: 0;
	font-size: 14px;
	color: #ff8a8a;
}

.lead-form__legal {
	margin: 0;
	font-size: 12px;
	line-height: 1.2;
	font-style: italic;
	text-align: justify;
	opacity: 0.8;
}


/* =========================================================
   RODAPÉ
   ========================================================= */

.footer {
	min-height: 139px;
	background: var(--gray);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 20px;
}

.footer__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
}

.footer__logo-sbw {
	width: 73px;
}

.footer__rights {
	width: 114px;
	margin-left: -21px;
	font: 13px/0.975 Arial, sans-serif;
}

.footer__logo-osf {
	width: 98px;
}

.footer__links {
	display: flex;
	gap: 6px;
	font: italic 13px Arial, sans-serif;
	white-space: nowrap;
}

.footer__links a {
	text-decoration: none;
}

.footer__links a:hover {
	text-decoration: underline;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

	.countdown-bar {
		min-height: 55px;
		gap: 14px;
		padding: 0 16px;
	}

	.countdown-bar {
		min-height: 95px;
	}

	.countdown-bar__label {
		font-size: 22px;
	}

	.countdown {
		gap: 9px;
	}

	.countdown__item {
		width: 49px;
		height: 49px;
		border-radius: 6.5px;
	}

	.countdown__item strong {
		font-size: 24px;
	}

	.countdown__item span {
		font-size: 6px;
	}

	.hero::before {
		top: auto;
		height: 41%;
		background-position: 35% 50%;
		opacity: 1;
	}

	.hero::after {
		background:
			radial-gradient(ellipse 120% 60% at 50% 78%, rgba(0, 0, 0, 0.24), #000 100%) bottom / 100% 41% no-repeat,
			radial-gradient(ellipse 60% 25% at 100% 60%, rgba(255, 0, 0, 0.55), rgba(255, 0, 0, 0) 100%);
		mix-blend-mode: normal;
	}

	.hero__inner {
		width: calc(100% - 40px);
		min-height: 0;
		padding: 32px 0 0;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.hero__copy {
		display: contents;
	}

.hero__logo {
		order: 1;
		width: 336px;
		max-width: 100%;
		margin: 0 auto;
	}

.hero__visual {
		order: 5;
		width: 100%;
		max-width: 376px;
		margin: 12px auto 0;
		flex: none;
	}
.hero__meta {
		order: 2;
		justify-content: space-between;
		font-size: 14px;
		gap: 8px;
	}

.hero__text {
		order: 3;
		text-align: center;
	}

.lead-form {
		order: 4;
	}
	.hero__text h1 {
		font-size: 40px;
		letter-spacing: -0.04em;
	}

	.hero__text p {
		font-size: 16px;
	}

	.hero__meta-item {
		font-size: 18px;
		gap: 6px;
	}

	.hero__meta-item img {
		flex: none;
	}

	.lead-form__button {
		font-size: 22px;
	}

	.footer {
		padding: 40px 20px 64px;
	}

	.footer__inner {
		display: grid;
		grid-template-columns: auto auto;
		justify-content: center;
		justify-items: center;
		align-items: center;
		gap: 40px 23px;
	}

	.footer__logo-osf {
		grid-column: 1;
		grid-row: 1;
		width: 62px;
	}

	.footer__logo-sbw {
		grid-column: 2;
		grid-row: 1;
	}

	.footer__rights {
		grid-column: 1 / -1;
		grid-row: 2;
		width: auto;
		margin: 0 0 -32px;
		text-align: center;
	}

	.footer__links {
		grid-column: 1 / -1;
		grid-row: 3;
	}

		.lead-form__phone select {
		flex-basis: 118px;
		width: 118px;
		padding: 0 30px 0 12px;
		background-position: right 10px center;
		font-size: 15px;
	}

	.lead-form__phone input {
		padding: 0 16px;
	}
}

/* telas pequenas (até ~390px): título e meta um pouco menores */
@media (max-width: 400px) {
	.hero__text h1 { font-size: 34px; }
	.hero__meta-item { font-size: 15px; }
	.countdown-bar__label { font-size: 18px; }
	.countdown { gap: 6px; }
}


/* =========================================================
   DESKTOP — primeira dobra
   O hero ocupa a altura da janela (menos o contador) e a copy fica
   centralizada na vertical, com tamanhos que encolhem em telas mais
   baixas: em 1440×900 o botão aparece sem rolar, nas versões A e B.
   Em telas altas (1920×1080) o visual continua como no Figma.
   ========================================================= */
@media (min-width: 769px) {
	.hero__inner {
		min-height: min(964px, calc(100svh - 95px));
		align-items: stretch;
	}

	.hero__copy {
		justify-content: center;
		padding: clamp(24px, 4vh, 80px) 0;
		gap: clamp(14px, 2.4vh, 32px);
	}

	.hero__logo {
		width: clamp(240px, 34vh, 352px);
	}

	.hero__meta {
		font-size: clamp(18px, 2.4vh, 24px);
	}

	.hero__text h1 {
		font-size: clamp(38px, 5.4vh, 64px);
	}

	.lead-form__button {
		height: clamp(54px, 6.4vh, 64px);
		font-size: clamp(20px, 2.4vh, 24px);
	}

	.lead-form input,
	.lead-form__phone select {
		height: clamp(46px, 5.3vh, 53px);
	}

	/* a foto acompanha a altura do hero, sem empurrar a página */
	.hero__visual {
		display: flex;
		align-items: flex-end;
		justify-content: flex-end;
	}

	.hero__visual img {
		width: auto;
		max-height: min(945px, calc(100svh - 95px));
	}
}
