:root {
	/* Colors */
	--clr-cyan-600: hsl(192, 37%, 48%);
	--clr-cyan-300: hsl(192, 90%, 77%);

	--clr-purple-600: hsl(268, 34%, 53%);
	--clr-purple-300: hsl(268, 100%, 86%);

	--clr-slate-900: hsl(240, 21%, 20%);
	--clr-slate-600: hsl(240, 10%, 57%);
	--clr-slate-300: hsl(240, 18%, 85%);

	--clr-white: #fafafa;

	/* Typography */
	--ff-primary: 'Red Hat Display', sans-serif;

	--fw-black: 900;
	--fw-medium: 500;

	--fs-900: 64px; /* Text Preset 1 */
	--fs-800: 40px; /* Text Preset 2 */
	--fs-700: 16px; /* Text Preset 3 */
	--fs-600: 18px; /* Text Preset 4 */
	--fs-500: 16px; /* Text Preset 5 */

	/* Line Heights */
	--lh-900: 110%;
	--lh-800: 110%;
	--lh-700: 110%;
	--lh-600: 110%;
	--lh-500: 150%;

	/* Letter Spacing */
	--ls-900: 0px;
	--ls-800: 0px;
	--ls-700: 4px;
	--ls-600: 0px;
	--ls-500: 0px;
}

/* CSS Reset */

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* 2. Remove default margin */
* {
	margin: 0;
}

body {
	/* 3. Add accessible line-height */
	line-height: 1.5;
	/* 4. Improve text rendering */
	-webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
	font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
	text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

/*
    9. Create a root stacking context
  */
#root,
#__next {
	isolation: isolate;
}

/* General Styling */

body {
	font-family: var(--ff-primary);
}

.header {
	height: 9rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: 1.2rem;
}

.hero__image--left {
	position: relative;
	right: 1rem;
}

.hero__image--right {
	position: relative;
	left: 1rem;
}

.hero__title {
	margin-top: 2rem;
	grid-column: 1 / 3;
	text-align: center;
	justify-self: center;
	color: var(--clr-slate-900);
	font-size: var(--fs-800);
	font-weight: var(--fw-black);
	line-height: var(--lh-800);
}

.hero__description {
	grid-column: 1 / 3;
	text-align: center;
	justify-self: center;
	color: var(--clr-slate-600);
	font-weight: var(--fw-medium);
	font-size: var(--fs-600);
	padding: 0 1rem;
}

button {
	width: 50%;
	height: 3.5rem;
	justify-self: center;
	border-radius: 5rem;
	color: var(--clr-white);
	border: none;
	font-weight: var(--fw-black);
}

.btn.btn--download {
	grid-column: 1 / 3;
	display: block;
	background-color: var(--clr-cyan-600);
}

.btn.btn--download:hover {
	background-color: hsl(192, 64%, 63%);
	cursor: pointer;
}

.btn.btn--info {
	grid-column: 1 / 3;
	display: block;
	background-color: var(--clr-purple-600);
	width: 40%;
}

.btn span {
	color: var(--clr-cyan-300);
}

main .product__section__numbers {
	color: var(--clr-slate-600);
	justify-self: center;
	font-weight: var(--fw-black);
	border: 1.5px solid var(--clr-slate-300);
	padding: 1rem;
	border-radius: 100%;
	width: 3.75rem;
	text-align: center;
	margin-bottom: 4rem;
}

main .vertical__line {
	margin-top: 4rem;
	border-left: 1.5px solid var(--clr-slate-300);
	height: 5rem;
	bottom: 15rem;
	justify-self: center;
}

.second__line .product__section__numbers {
	color: var(--clr-slate-600);
	justify-self: center;
	font-weight: var(--fw-black);
	border: 1.5px solid var(--clr-slate-300);
	padding: 1rem;
	border-radius: 100%;
	width: 3.75rem;
	text-align: center;
	position: relative;
	top: 1.75rem;
	z-index: 2;
	background-color: var(--clr-white);
}

.second__line .vertical__line {
	margin-top: 4rem;
	border-left: 1.5px solid var(--clr-slate-300);
	height: 5rem;
	bottom: 15rem;
	justify-self: center;
	z-index: 2;
	position: relative;
	top: 1.75rem;
}

.features__grid {
	display: grid;
	grid-template-rows: 1fr 1fr;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 3rem 2rem;
}

.features__image {
	border-radius: 0.5rem;
}

.features__content {
	text-align: center;
}

.features__subtitle {
	color: var(--clr-cyan-600);
	font-size: var(--fs-700);
	line-height: var(--lh-700);
	letter-spacing: var(--ls-700);
	font-weight: 800;
}

.features__title {
	margin: 0.75rem 0 2.5rem 0;
	font-size: 2rem;
	line-height: var(--lh-800);
	letter-spacing: var(--ls-800);
	font-weight: var(--fw-black);
	color: var(--clr-slate-900);
}

.features__description {
	color: var(--clr-slate-600);
	font-weight: var(--fw-medium);
	font-size: 1rem;
	padding: 0 2rem;
	margin-bottom: 3rem;
}

.footer {
	background-image: url(assets/mobile/image-footer.jpg);
	background-position: center;
	background-size: cover;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 0 2rem;
	position: relative;
}

.footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: hsla(192, 37%, 48%, 0.877);
	z-index: 1;
}

.footer__title {
	color: var(--clr-white);
	font-weight: var(--fw-black);
	font-size: 2rem;
	line-height: var(--lh-800);
	margin: 5rem 0 1rem;
	z-index: 1;
}

.footer__description {
	color: var(--clr-white);
	margin-bottom: 1.5rem;
	z-index: 1;
}

footer .btn.btn--download {
	background-color: var(--clr-purple-600);
	margin-bottom: 4rem;
	z-index: 1;
	width: 60%;
}

footer .btn.btn--download:hover {
	background-color: hsl(268, 63%, 75%);
	cursor: pointer;
}

footer .btn.btn--download span {
	color: var(--clr-purple-300);
}

/* Media Queries */

@media (min-width: 770px) {
	body {
		overflow-x: hidden;
	}

	.hero__title {
		padding: 2rem 15rem 0.5rem;
		font-size: 3rem;
	}

	.hero__description {
		padding: 0 10rem 0.5rem;
	}

	.btn.btn--download {
		width: 50%;
		grid-column-start: 1;
		grid-column-end: 2;
		margin-left: 12rem;
	}

	.btn.btn--info {
		width: 43%;
		grid-column-start: 2;
		margin-right: 12rem;
		margin-bottom: 4rem;
	}

	.features__grid {
		grid-template-columns: 1fr 1fr 1fr 1fr;
		grid-template-rows: 1fr;
		gap: 1.3rem;
	}

	.features__subtitle {
		font-size: 1.1rem;
	}

	.features__title {
		font-size: 2.3rem;
		padding: 0 5.5rem;
	}

	.features__description {
		font-size: 1.2rem;
		padding: 0 5rem;
		line-height: 130%;
	}

	.footer {
		background-image: url(assets/tablet/image-footer.jpg);
	}

	.footer__title {
		margin: 4rem 0 1.5rem;
		font-size: 2.2rem;
	}

	.footer__description {
		padding: 0 6rem;
		margin-bottom: 1.7rem;
	}

	footer .btn.btn--download {
		width: 30%;
		margin: 0 auto 4rem;
	}
}

@media (min-width: 1440px) {
	.hero {
		grid-template-columns: 1fr 0.5fr 0.5fr 1fr;
		grid-template-rows: 1fr 0.2fr 1fr;
	}

	.hero__image--left {
		grid-column-start: 1;
		grid-column-end: 2;
		grid-row-start: 1;
		grid-row-end: 4;
	}

	.hero__image--right {
		grid-column-start: 4;
		grid-column-end: 5;
		grid-row-start: 1;
		grid-row-end: 4;
		left: 5rem;
	}

	.hero__title {
		grid-column-start: 2;
		grid-column-end: 4;
		grid-row-start: 1;
		grid-row-end: 2;

		font-size: var(--fs-900);
		margin-top: 0;
		padding: 2rem 0 0;
		margin-bottom: 0.5rem;
	}

	.hero__description {
		grid-column-start: 2;
		grid-column-end: 4;
		grid-row-start: 2;
		grid-row-end: 3;

		padding: 0 2rem;
	}

	.btn.btn--download {
		grid-column-start: 2;
		grid-column-end: 3;
		grid-row-start: 3;
		grid-row-end: 4;

		margin-left: 3.8rem;
		width: 80%;
	}

	.btn.btn--info {
		grid-column-start: 3;
		grid-column-end: 4;
		grid-row-start: 3;
		grid-row-end: 4;

		margin-right: 3.8rem;
		width: 60%;
	}

	main .vertical__line {
		margin-top: 0rem;
	}

	.features__grid {
		margin: 3.5rem 10rem;
		gap: 2rem;
	}

	.features__subtitle {
		letter-spacing: 3px;
	}

	.features__title {
		padding: 0 30rem;
		margin-bottom: 1.7rem;
	}

	.features__description {
		padding: 0 30rem;
		font-size: 1.1rem;
	}

	.footer {
		background-image: url(assets/desktop/image-footer.jpg);
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		height: 20rem;
		text-align: left;
		align-items: center;
		padding: 0;
	}

	.footer__title {
		font-size: 2.5rem;
		grid-column-start: 1;
		grid-column-end: 2;
		margin: 0;
		margin-left: 8rem;
	}

	.footer__description {
		font-size: 1.2rem;
		grid-column-start: 2;
		grid-column-end: 3;
		margin: 0;
		padding: 0;
		margin-left: 10rem;
	}

	footer .btn.btn--download {
		grid-column-start: 3;
		grid-column-end: 4;
		margin: 0;
		grid-row: 1;
		width: 38%;
	}
}
