/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Space+Grotesk:wght@500;700&display=swap');

/* --- CSS Variables --- */
:root {
	--color-background: #0d0d0d;
	--color-text: #ffffff;
	--color-text-secondary: #a3a3a3;
	--color-accent: #4ade80;
	--color-border: #262626;

	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Space Grotesk', sans-serif;

	--header-height: 80px;
}

/* --- Global Styles & Reset --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	background-color: var(--color-background);
	color: var(--color-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--color-text-secondary);
	transition: color 0.3s ease;
}

a:hover {
	color: var(--color-accent);
}

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

h1,
h2,
h3 {
	font-family: var(--font-secondary);
	font-weight: 700;
	line-height: 1.2;
}

/* --- Utility Classes --- */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Header --- */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(13, 13, 13, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
	z-index: 100;
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-secondary);
	font-weight: 500;
	font-size: 20px;
	color: var(--color-text);
}

.logo:hover {
	color: var(--color-text);
}

/* --- Navigation --- */
.nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav__link {
	font-size: 16px;
	font-weight: 500;
	position: relative;
	padding: 8px 0;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.nav__link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* --- Burger Menu --- */
.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
}

.burger__line {
	width: 25px;
	height: 2px;
	background-color: var(--color-text);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Footer --- */
.footer {
	padding: 80px 0;
	border-top: 1px solid var(--color-border);
	background-color: #111;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
}

.footer__column:first-child {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer__copyright {
	font-size: 14px;
	color: var(--color-text-secondary);
}

.footer__title {
	font-size: 20px;
	margin-bottom: 24px;
	color: var(--color-text);
}

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

.footer__link {
	font-size: 16px;
}

.footer__list--contacts .footer__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer__list--contacts .footer__item span {
	color: var(--color-text-secondary);
	font-size: 16px;
}

.footer__list--contacts i {
	color: var(--color-accent);
	width: 20px;
	height: 20px;
}

/* --- Mobile (Mobile-first approach) --- */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-background);
		transform: translateX(-100%);
		transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
		padding: 40px;
	}

	.nav.nav--active {
		transform: translateX(0);
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.nav__link {
		font-size: 24px;
	}

	.burger {
		display: flex;
		z-index: 101; /* To be above the nav */
	}

	.burger.burger--active .burger__line:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.burger.burger--active .burger__line:nth-child(2) {
		opacity: 0;
	}
	.burger.burger--active .burger__line:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

/* --- Buttons --- */
.button {
	display: inline-block;
	padding: 14px 32px;
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 500;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.button--primary {
	background-color: var(--color-accent);
	color: var(--color-background);
	border-color: var(--color-accent);
}

.button--primary:hover {
	background-color: transparent;
	color: var(--color-accent);
}

.button--secondary {
	background-color: transparent;
	color: var(--color-text);
	border-color: var(--color-border);
}

.button--secondary:hover {
	background-color: var(--color-border);
	color: var(--color-text);
}

/* --- Hero Section --- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding-top: var(--header-height);
	overflow: hidden;
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 800px;
}

.hero__title {
	font-size: 56px;
	margin-bottom: 24px;
	line-height: 1.1;
	letter-spacing: -1px;
}

.hero__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	max-width: 600px;
	margin: 0 auto 40px;
}

.hero__actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* --- Responsive for Hero --- */
@media (max-width: 768px) {
	.hero__title {
		font-size: 40px;
	}

	.hero__subtitle {
		font-size: 16px;
	}
}

/* --- Generic Section Styles --- */
.section {
	padding: 100px 0;
}

.section__title {
	font-size: 42px;
	text-align: center;
	margin-bottom: 16px;
}

.section__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	text-align: center;
	max-width: 600px;
	margin: 0 auto 60px;
}

/* --- Practices Section --- */
.practices {
	background-color: #111;
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.practices__tabs-container {
	max-width: 900px;
	margin: 0 auto;
}

.practices__tabs {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
	background-color: var(--color-background);
	border-radius: 12px;
	padding: 8px;
	border: 1px solid var(--color-border);
	flex-wrap: wrap;
}

.practices__tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px;
	background: transparent;
	border: none;
	color: var(--color-text-secondary);
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.practices__tab:hover {
	color: var(--color-text);
}

.practices__tab--active {
	background-color: var(--color-accent);
	color: var(--color-background);
}

.practices__tab--active:hover {
	color: var(--color-background);
}

.practices__tab i {
	width: 20px;
	height: 20px;
}

.practices__panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
	display: none; /* Hide panels by default */
}

.practices__panel--active {
	display: grid; /* Show active panel */
	animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.practices__panel-image img {
	border-radius: 12px;
	border: 1px solid var(--color-border);
}

.practices__panel-title {
	font-size: 28px;
	margin-bottom: 16px;
}

.practices__panel-description {
	font-size: 16px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* --- Responsive for Practices Section --- */
@media (max-width: 768px) {
	.section {
		padding: 80px 0;
	}
	.section__title {
		font-size: 32px;
	}
	.section__subtitle {
		font-size: 16px;
		margin-bottom: 40px;
	}
	.practices__panel {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.practices__panel-image {
		order: -1; /* Show image on top on mobile */
	}
	.practices__tabs {
		flex-direction: column;
	}
}

/* --- Tools Section --- */
.tools {
	background-color: var(--color-background);
}

.tools__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.tool-card {
	display: flex;
	flex-direction: column;
	background-color: #1a1a1a;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 24px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	border-color: rgba(74, 222, 128, 0.5);
}

.tool-card__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.tool-card__logo {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background-color: #333; /* Placeholder color */
	flex-shrink: 0;
}

.tool-card__title {
	font-size: 20px;
	font-weight: 500;
}

.tool-card__description {
	color: var(--color-text-secondary);
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 24px;
	flex-grow: 1; /* Pushes footer to the bottom */
}

.tool-card__footer {
	margin-top: auto; /* Aligns footer to the bottom */
}

.tool-card__tag {
	display: inline-block;
	background-color: rgba(74, 222, 128, 0.1);
	color: var(--color-accent);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}

/* --- Routines Section --- */
.routines {
	background-color: #111;
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.accordion {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
}

.accordion__item:not(:last-child) {
	border-bottom: 1px solid var(--color-border);
}

.accordion__button {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 24px;
	background-color: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	color: var(--color-text);
}

.accordion__title {
	font-family: var(--font-secondary);
	font-size: 20px;
	font-weight: 500;
}

.accordion__icon {
	width: 24px;
	height: 24px;
	color: var(--color-accent);
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 16px;
}

.accordion__item--active .accordion__icon {
	transform: rotate(45deg);
}

.accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion__content p {
	padding: 0 24px 24px 24px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
	.accordion__title {
		font-size: 18px;
	}
	.accordion__button {
		padding: 20px;
	}
}

/* --- Modifiers for Section titles --- */
.section__title--left,
.section__subtitle--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

/* --- Ethics Section --- */
.ethics {
	background-color: var(--color-background);
}

.ethics__grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 80px;
	align-items: center;
}

.principles__list {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.principle-item {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.principle-item__icon {
	flex-shrink: 0;
	color: var(--color-accent);
}

.principle-item__icon i {
	width: 32px;
	height: 32px;
}

.principle-item__title {
	font-size: 20px;
	margin-bottom: 8px;
	font-weight: 500;
}

.principle-item__description {
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* --- Responsive for Ethics Section --- */
@media (max-width: 992px) {
	.ethics__grid {
		grid-template-columns: 1fr;
		gap: 60px;
	}
}

/* --- Contact Section --- */
.contact {
	background-color: #111;
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

/* --- Form Styles --- */
.form-group {
	margin-bottom: 24px;
}

.form-group__label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 8px;
	color: var(--color-text-secondary);
}

.form-group__input {
	width: 100%;
	padding: 14px 16px;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	color: var(--color-text);
	font-size: 16px;
	font-family: var(--font-primary);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.form-group__checkbox {
	flex-shrink: 0;
	margin-top: 5px;
	width: 18px;
	height: 18px;
}

.form-group__checkbox-label {
	font-size: 14px;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

.form-group__checkbox-label a {
	color: var(--color-text);
	text-decoration: underline;
}

.form-group__checkbox-label a:hover {
	color: var(--color-accent);
}

.contact__button {
	width: 100%;
	margin-top: 16px;
}

/* --- Success Message --- */
.success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	animation: fadeIn 0.5s ease;
}

.success-message__icon {
	color: var(--color-accent);
	margin-bottom: 24px;
}

.success-message__icon i {
	width: 64px;
	height: 64px;
}

.success-message__title {
	font-size: 28px;
	margin-bottom: 12px;
}

.success-message__text {
	font-size: 16px;
	color: var(--color-text-secondary);
}

/* --- Responsive for Contact Section --- */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 60px;
	}
}

/* --- Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #1a1a1a;
	border-top: 1px solid var(--color-border);
	padding: 20px 0;
	z-index: 200;
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease,
		visibility 0.5s;
}

.cookie-popup--visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.cookie-popup__text {
	color: var(--color-text-secondary);
	font-size: 15px;
}

.cookie-popup__text a {
	color: var(--color-text);
	text-decoration: underline;
}

.cookie-popup__text a:hover {
	color: var(--color-accent);
}

.cookie-popup__button {
	flex-shrink: 0;
	padding: 10px 24px;
}

/* Responsive for Cookie Pop-up */
@media (max-width: 768px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

/* --- Policy & Static Pages Styles --- */
.pages {
	padding-top: calc(var(--header-height) + 60px);
	padding-bottom: 100px;
}

.pages .container {
	max-width: 800px; /* Limit width for better readability */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 24px;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 48px;
	margin-bottom: 20px;
}

.pages p {
	color: var(--color-text-secondary);
	line-height: 1.8;
	margin-bottom: 20px;
}

.pages ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 20px;
	color: var(--color-text-secondary);
}

.pages li {
	margin-bottom: 12px;
	padding-left: 8px;
}

.pages strong {
	color: var(--color-text);
	font-weight: 500;
}

.pages a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.pages a:hover {
	text-decoration: none;
}
