/* ====================
   GLOBAL STYLES
   ==================== */
:root {
	--background-color: #121826;
	--primary-text-color: #f9fafb;
	--secondary-text-color: #a0aec0;
	--accent-color: #6366f1;
	--border-color: #374151;
	--header-height: 80px;

	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Manrope', sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

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

a:hover {
	color: var(--primary-text-color);
}

ul {
	list-style: none;
}

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

h1,
h2,
h3 {
	font-family: var(--font-secondary);
	font-weight: 800;
}

/* ====================
   HEADER
   ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	height: var(--header-height);
	display: flex;
	align-items: center;
	background-color: rgba(18, 24, 38, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
}

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

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

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

.logo__icon {
	transition: transform 0.3s ease;
}

.logo:hover .logo__icon {
	transform: rotate(90deg);
}

.header__nav {
	display: none;
}

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

.nav__link {
	font-size: 16px;
	font-weight: 500;
	color: var(--secondary-text-color);
	position: relative;
	padding: 8px 0;
}

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

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

.nav__link:hover::after {
	width: 100%;
}

.header__burger-btn {
	background: none;
	border: none;
	color: var(--primary-text-color);
	cursor: pointer;
	display: block;
	z-index: 102;
	position: relative;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.header__burger-btn:hover {
	transform: scale(1.1);
}

.header__burger-btn--active {
	transform: rotate(90deg);
}

.header__burger-btn--active:hover {
	transform: rotate(90deg) scale(1.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(18, 24, 38, 0.95);
	backdrop-filter: blur(10px);
	z-index: 101;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-100%);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay--active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mobile-menu__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.mobile-menu__link {
	font-size: 24px;
	font-weight: 500;
	color: var(--primary-text-color);
	text-decoration: none;
	position: relative;
	padding: 12px 24px;
	border-radius: 8px;
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.6s ease forwards;
}

.mobile-menu__link:nth-child(1) {
	animation-delay: 0.1s;
}
.mobile-menu__link:nth-child(2) {
	animation-delay: 0.2s;
}
.mobile-menu__link:nth-child(3) {
	animation-delay: 0.3s;
}
.mobile-menu__link:nth-child(4) {
	animation-delay: 0.4s;
}
.mobile-menu__link:nth-child(5) {
	animation-delay: 0.5s;
}
.mobile-menu__link:nth-child(6) {
	animation-delay: 0.6s;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus {
	color: var(--accent-color);
	background-color: rgba(99, 102, 241, 0.1);
	transform: translateY(-2px);
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mobile-menu__close {
	position: absolute;
	top: 30px;
	right: 30px;
	background: none;
	border: none;
	color: var(--primary-text-color);
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.mobile-menu__close:hover {
	background-color: rgba(255, 255, 255, 0.1);
	transform: rotate(90deg);
}

/* ====================
   MAIN
   ==================== */
.main {
	padding-top: var(--header-height);
	/* For demonstration, to see footer */
	min-height: 100vh;
}

/* ====================
   FOOTER
   ==================== */
.footer {
	background-color: #0d1117;
	padding: 60px 0;
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
}

.footer__column:first-child {
	margin-bottom: 20px;
}

.footer__logo {
	margin-bottom: 16px;
}

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

.footer__title {
	font-size: 18px;
	margin-bottom: 16px;
	color: var(--primary-text-color);
}

.footer__list li:not(:last-child) {
	margin-bottom: 12px;
}

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

.footer__link:hover {
	color: var(--accent-color);
}

/* ====================
   RESPONSIVE
   ==================== */
@media (min-width: 768px) {
	.header__nav {
		display: block;
	}

	.header__burger-btn {
		display: none;
	}

	.mobile-menu-overlay {
		display: none !important; /* Ensure mobile menu is hidden on desktop */
	}

	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile Menu Responsive Adjustments */
@media (max-width: 480px) {
	.mobile-menu__link {
		font-size: 20px;
		padding: 10px 20px;
	}

	.mobile-menu__nav {
		gap: 24px;
	}

	.mobile-menu__close {
		top: 20px;
		right: 20px;
		width: 36px;
		height: 36px;
	}
}

@media (max-height: 600px) {
	.mobile-menu__nav {
		gap: 20px;
	}

	.mobile-menu__link {
		font-size: 18px;
		padding: 8px 16px;
	}
}

@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 1.5fr 1fr 1fr 1fr;
	}
}

/* ====================
   BUTTONS
   ==================== */
.btn {
	display: inline-block;
	padding: 14px 32px;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	color: var(--primary-text-color);
	background-color: var(--accent-color);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
	background-color: #4f46e5; /* A slightly darker shade of accent */
	transform: translateY(-2px);
}

/* ====================
   HERO SECTION
   ==================== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	padding: 100px 0;
	min-height: 80vh;
	overflow: hidden;
}

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

.hero__container {
	position: relative;
	z-index: 2;
	display: grid;
	align-items: center;
	gap: 60px;
	grid-template-columns: 1fr;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 36px;
	line-height: 1.2;
	margin-bottom: 20px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__description {
	font-size: 18px;
	color: var(--secondary-text-color);
	margin-bottom: 32px;
	max-width: 550px;
	margin-left: auto;
	margin-right: auto;
}

.hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image {
	max-width: 450px;
	width: 100%;
	border-radius: 16px;
	opacity: 0.7;
}

/* ====================
   HERO RESPONSIVE
   ==================== */
@media (min-width: 768px) {
	.hero__title {
		font-size: 48px;
	}
}

@media (min-width: 1024px) {
	.hero {
		min-height: 90vh;
		padding: 60px 0;
	}
	.hero__container {
		grid-template-columns: 1fr 1fr;
	}
	.hero__content {
		text-align: left;
	}
	.hero__title,
	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
}

/* ====================
   REUSABLE SECTION STYLES
   ==================== */
.section {
	padding: 80px 0;
}

.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.section__title {
	font-size: 32px;
	margin-bottom: 16px;
}

.section__subtitle {
	font-size: 18px;
	color: var(--secondary-text-color);
	line-height: 1.7;
}

/* ====================
   BASICS SECTION
   ==================== */
.basics__grid {
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
}

.basics__card {
	background-color: #1a2233; /* Slightly lighter than main bg */
	border: 1px solid var(--border-color);
	padding: 32px;
	border-radius: 12px;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.basics__card:hover {
	transform: translateY(-8px);
	border-color: var(--accent-color);
}

.basics__card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(99, 102, 241, 0.1);
	color: var(--accent-color);
	border-radius: 8px;
	margin-bottom: 24px;
}

.basics__card-title {
	font-size: 22px;
	margin-bottom: 12px;
}

.basics__card-description {
	color: var(--secondary-text-color);
	margin-bottom: 24px;
}

.basics__card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: var(--accent-color);
}

.basics__card-link .lucide {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.basics__card-link:hover .lucide {
	transform: translateX(4px);
}

/* ====================
   BASICS RESPONSIVE
   ==================== */
@media (min-width: 768px) {
	.section {
		padding: 100px 0;
	}
	.section__title {
		font-size: 38px;
	}
	.basics__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.basics__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ====================
   PLATFORMS SECTION
   ==================== */
.platforms {
	background-color: #0d1117; /* Even darker bg for contrast */
	overflow: hidden;
}

.platforms__ticker-wrapper {
	width: 100%;
	overflow: hidden;
	margin-bottom: 60px;
	-webkit-mask-image: linear-gradient(
		to right,
		transparent,
		black 20%,
		black 80%,
		transparent
	);
	mask-image: linear-gradient(
		to right,
		transparent,
		black 20%,
		black 80%,
		transparent
	);
}

.platforms__ticker {
	display: flex;
	width: fit-content;
	animation: scrollTicker 40s linear infinite;
}

.platforms__logo-item {
	flex-shrink: 0;
	padding: 12px 24px;
	margin: 0 15px;
	background-color: #1a2233;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--secondary-text-color);
	font-size: 16px;
	font-weight: 500;
}

@keyframes scrollTicker {
	0% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(-50%);
	}
}

.platforms__tabs {
	max-width: 700px;
	margin: 0 auto;
}

.platforms__tab-nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.platforms__tab-btn {
	padding: 10px 20px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	background-color: transparent;
	color: var(--secondary-text-color);
	transition: all 0.3s ease;
}

.platforms__tab-btn:hover {
	background-color: #1a2233;
	color: var(--primary-text-color);
}

.platforms__tab-btn--active {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
	color: var(--primary-text-color);
}

.platforms__tab-content {
	position: relative;
}

.platforms__tab-panel {
	display: none;
	text-align: center;
	background-color: #1a2233;
	border: 1px solid var(--border-color);
	padding: 32px;
	border-radius: 12px;
	animation: fadeIn 0.5s ease;
}

.platforms__tab-panel--active {
	display: block;
}

.platforms__panel-title {
	font-size: 24px;
	margin-bottom: 12px;
}

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

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

/* ====================
   AI INTEGRATIONS SECTION
   ==================== */
.ai-integrations__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}

.ai-integrations__visual {
	display: flex;
	justify-content: center;
}

.ai-integrations__image {
	border-radius: 12px;
	max-width: 500px;
	width: 100%;
}

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

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

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

.accordion__icon {
	flex-shrink: 0;
	margin-left: 16px;
	transition: transform 0.3s ease;
}

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

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

.accordion__body {
	padding-bottom: 20px;
	color: var(--secondary-text-color);
	line-height: 1.7;
}

@media (min-width: 1024px) {
	.ai-integrations__grid {
		grid-template-columns: 1fr 1fr;
		gap: 80px;
	}
}

/* ====================
   CASES SECTION
   ==================== */
.cases {
	background-color: #0d1117;
}

.cases__slider-wrapper {
	position: relative;
	padding: 0 40px; /* Space for navigation buttons */
}

.swiper {
	width: 100%;
	height: 100%;
}

.swiper-slide {
	display: flex;
	justify-content: center;
	height: auto; /* Allow slide to grow */
}

.case-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%; /* Make card fill the slide height */
	background-color: #1a2233;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.case-card__image-wrapper {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.case-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.case-card__content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Allow content to take up space */
}

.case-card__tag {
	display: inline-block;
	background-color: rgba(99, 102, 241, 0.1);
	color: var(--accent-color);
	padding: 4px 12px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 16px;
	align-self: flex-start;
}

.case-card__title {
	font-size: 20px;
	margin-bottom: 12px;
}

.case-card__description {
	color: var(--secondary-text-color);
	font-size: 14px;
	line-height: 1.6;
	flex-grow: 1; /* Push content down if cards have different heights */
}

/* Swiper custom styles */
.swiper-button-prev,
.swiper-button-next {
	color: var(--accent-color);
	width: 44px;
	height: 44px;
	background-color: #1a2233;
	border-radius: 50%;
	border: 1px solid var(--border-color);
	transition: background-color 0.3s ease;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
	background-color: var(--accent-color);
	color: var(--primary-text-color);
}
.swiper-button-prev::after,
.swiper-button-next::after {
	font-size: 18px;
	font-weight: bold;
}
.swiper-button-prev {
	left: 0;
}
.swiper-button-next {
	right: 0;
}

.swiper-pagination-bullet {
	background-color: var(--secondary-text-color);
}

.swiper-pagination-bullet-active {
	background-color: var(--accent-color);
}

@media (max-width: 767px) {
	.cases__slider-wrapper {
		padding: 0;
	}
	.swiper-button-prev,
	.swiper-button-next {
		display: none;
	}
}

/* ====================
   CONTACT SECTION
   ==================== */
.contact {
	padding-bottom: 80px;
	padding-top: 80px;
}
.contact__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}

.contact__info {
	text-align: center;
}
.contact__info .section__title,
.contact__info .section__subtitle {
	margin-left: auto;
	margin-right: auto;
}

.contact__form-wrapper {
	background-color: #1a2233;
	padding: 32px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
}

.form__group {
	margin-bottom: 20px;
}

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

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

.form__input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	margin-top: 10px;
}

.form__checkbox-input {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	opacity: 0;
}

.form__checkbox-label {
	position: relative;
	padding-left: 30px;
	font-size: 14px;
	color: var(--secondary-text-color);
	cursor: pointer;
	line-height: 1.5;
}

.form__checkbox-label a {
	color: var(--accent-color);
	text-decoration: underline;
}

.form__checkbox-label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	background-color: var(--background-color);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	transition: all 0.3s ease;
}

.form__checkbox-label::after {
	content: '✔';
	position: absolute;
	left: 4px;
	top: 2px;
	font-size: 14px;
	color: var(--primary-text-color);
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.form__checkbox-input:checked + .form__checkbox-label::before {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

.form__checkbox-input:checked + .form__checkbox-label::after {
	opacity: 1;
	transform: scale(1);
}

.form__submit {
	width: 100%;
	margin-top: 24px;
}

.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px 20px;
}

.success-message__icon {
	color: #34d399; /* Green color for success */
	margin-bottom: 16px;
}
.success-message__icon .lucide {
	width: 50px;
	height: 50px;
	margin: 0 auto;
}
.success-message__title {
	font-size: 24px;
	margin-bottom: 8px;
}
.success-message__text {
	color: var(--secondary-text-color);
}

@media (min-width: 1024px) {
	.contact__grid {
		grid-template-columns: 1fr 1fr;
		gap: 80px;
	}
	.contact__info {
		text-align: left;
	}
}

/* ====================
   COOKIE POPUP
   ==================== */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 40px);
	max-width: 800px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	background-color: #1a2233;
	padding: 24px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	z-index: 200;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.cookie-popup--hidden {
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(20px);
}

.cookie-popup__text {
	font-size: 14px;
	color: var(--secondary-text-color);
	line-height: 1.6;
}

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

.cookie-popup__btn {
	padding: 8px 24px;
	font-size: 14px;
}

@media (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		align-items: center;
	}
	.cookie-popup__text {
		margin-right: 24px;
	}
}

/* ====================
   POLICY/STATIC PAGES
   ==================== */
.pages {
	padding-top: 120px;
	padding-bottom: 80px;
}

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

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

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

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

.pages ul {
	list-style-type: disc;
	padding-left: 20px;
	margin-bottom: 16px;
}

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

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