/* === VARIABLES & RESET === */
:root {
	--color-bg: #0f1115;
	--color-surface: #1a1d23;
	--color-text: #e2e8f0;
	--color-text-muted: #94a3b8;
	--color-primary: #6366f1; /* Indigo */
	--color-accent: #10b981; /* Emerald */
	--color-white: #ffffff;

	--font-main: 'Inter', sans-serif;
	--font-display: 'Outfit', sans-serif;

	--container-width: 1200px;
	--header-height: 80px;
	--radius-sm: 8px;
	--radius-md: 12px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-main);
	background-color: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
	overflow-x: hidden;
	font-size: 16px;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--color-white);
}

/* === BUTTONS === */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--font-main);
	border: none;
}

.btn--primary {
	background-color: var(--color-primary);
	color: var(--color-white);
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
	background-color: #4f46e5;
	transform: translateY(-2px);
}

.btn--sm {
	padding: 8px 16px;
	font-size: 0.9rem;
}

/* === HEADER === */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(15, 17, 21, 0.8);
	backdrop-filter: blur(10px);
	z-index: 1000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-white);
}

.logo__text {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
}

.logo__icon {
	color: var(--color-primary);
}

.nav__list {
	display: flex;
	gap: 32px;
}

.nav__link {
	font-size: 0.95rem;
	color: var(--color-text-muted);
	position: relative;
}

.nav__link:hover,
.nav__link--active {
	color: var(--color-white);
}

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

.nav__link:hover::after,
.nav__link--active::after {
	width: 100%;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header__burger {
	display: none;
	background: none;
	border: none;
	color: var(--color-white);
	cursor: pointer;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
	.header__burger {
		display: block;
	}

	.nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-bg);
		padding: 40px 20px;
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
		border-top: 1px solid rgba(255, 255, 255, 0.05);
	}

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

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

	.nav__link {
		font-size: 1.2rem;
	}
}

/* === FOOTER === */
.footer {
	background-color: var(--color-surface);
	padding: 60px 0 20px;
	margin-top: auto; /* Push to bottom if content is short */
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer__desc {
	margin-top: 16px;
	color: var(--color-text-muted);
	font-size: 0.9rem;
	max-width: 300px;
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 20px;
	color: var(--color-white);
}

.footer__list li {
	margin-bottom: 12px;
}

.footer__link {
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.footer__link:hover {
	color: var(--color-accent);
	padding-left: 5px;
}

.footer__contacts {
	list-style: none;
}

.footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.footer__icon {
	color: var(--color-primary);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding-top: 20px;
	text-align: center;
	color: var(--color-text-muted);
	font-size: 0.85rem;
}

@media (max-width: 992px) {
	.footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 576px) {
	.footer__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* === HERO SECTION === */
.hero {
	position: relative;
	padding-top: calc(var(--header-height) + 60px);
	padding-bottom: 80px;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

/* Background Glow Effects */
.hero__bg-elements {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
}

.hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(100px);
	opacity: 0.4;
}

.hero__glow--1 {
	top: -10%;
	right: -5%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, var(--color-primary), transparent);
}

.hero__glow--2 {
	bottom: 10%;
	left: -10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, var(--color-accent), transparent);
}

.hero__container {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: center;
}

/* Hero Content */
.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	color: var(--color-accent);
	margin-bottom: 24px;
	font-weight: 500;
}

.hero__badge-dot {
	width: 8px;
	height: 8px;
	background-color: var(--color-accent);
	border-radius: 50%;
	box-shadow: 0 0 10px var(--color-accent);
}

.hero__title {
	font-size: 2.5rem;
	line-height: 1.1;
	margin-bottom: 24px;
}

.text-gradient {
	background: linear-gradient(90deg, #fff, var(--color-text-muted));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero__text {
	font-size: 1.1rem;
	color: var(--color-text-muted);
	margin-bottom: 40px;
	max-width: 540px;
}

.hero__actions {
	display: flex;
	gap: 16px;
	margin-bottom: 48px;
}

.btn--outline {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--color-white);
}

.btn--outline:hover {
	border-color: var(--color-white);
	background: rgba(255, 255, 255, 0.05);
}

.hero__stats {
	display: flex;
	gap: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 24px;
}

.hero__stat-val {
	display: block;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-white);
}

.hero__stat-label {
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

/* Hero Visual - Bot UI */
.hero__visual {
	position: relative;
	perspective: 1000px;
}

.bot-ui {
	background: rgba(26, 29, 35, 0.6);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-md);
	padding: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	transform: rotateY(-5deg) rotateX(5deg);
	transition: transform 0.5s ease;
	max-width: 450px;
	margin: 0 auto;
	position: relative;
}

.bot-ui:hover {
	transform: rotateY(0) rotateX(0);
}

.bot-ui__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-ui__dots {
	display: flex;
	gap: 6px;
}

.bot-ui__dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.2);
}

.bot-ui__status {
	font-size: 0.75rem;
	color: var(--color-accent);
	font-family: monospace;
}

.bot-msg {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	opacity: 0; /* Hidden for JS animation */
}

.bot-msg--right {
	justify-content: flex-end;
}

.bot-msg__avatar {
	width: 32px;
	height: 32px;
	background: var(--color-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 700;
	color: #fff;
}

.bot-msg__text {
	background: rgba(255, 255, 255, 0.05);
	padding: 10px 16px;
	border-radius: 12px;
	font-size: 0.9rem;
	max-width: 80%;
}

.bot-msg--right .bot-msg__text {
	background: var(--color-primary);
	color: #fff;
}

/* Floating Icons */
.float-element {
	position: absolute;
	width: 48px;
	height: 48px;
	background: var(--color-surface);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.float-element--1 {
	top: -20px;
	right: -20px;
}
.float-element--2 {
	bottom: 40px;
	left: -30px;
	color: var(--color-accent);
}
.float-element--3 {
	bottom: -20px;
	right: 20px;
}

/* Responsive */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero__badge,
	.hero__actions,
	.hero__stats {
		justify-content: center;
	}

	.hero__title {
		font-size: 2rem;
	}

	.hero__text {
		margin: 0 auto 40px;
	}

	.bot-ui {
		transform: none;
		margin-top: 40px;
	}
}

/* === GLOBAL SECTION STYLES === */
.section {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* === FEATURES === */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-surface);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.feature-card__icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card__text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* === PROCESS === */
.process {
    position: relative;
}

/* Connecting line (visual decoration) */
.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px; /* Approx position for decoration */
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
    opacity: 0.2;
    z-index: -1;
}

.process__steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    flex-shrink: 0;
}

.step:hover .step__number {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.step__title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-white);
}

.step__text {
    color: var(--color-text-muted);
}

.process__cta {
    text-align: center;
    margin-top: 40px;
}

/* === BLOG TEASER === */
.blog-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.blog-card:hover {
    border-color: var(--color-accent);
}

.blog-card__image {
    height: 200px;
    width: 100%;
    background: linear-gradient(45deg, var(--color-primary), #0F1115);
}

.blog-card__content {
    padding: 24px;
}

.blog-card__date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.blog-card__title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.blog-card__link {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-card__link:hover {
    text-decoration: underline;
}

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

/* Mobile Adaptations */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .process::before {
        display: none;
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        align-items: center;
    }
    
    .step__number {
        font-size: 2.5rem;
    }
}

/* === CONTACT SECTION === */
.contact {
    background: linear-gradient(to right, var(--color-bg), #14161B);
}

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

.contact__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-accent);
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.contact__note i {
    width: 16px;
    height: 16px;
}

/* Form Styles */
.contact__form-wrapper {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.3);
}

.form-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.form-checkbox input {
    margin-top: 4px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.btn--block {
    width: 100%;
}

/* Loader & Success Message */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

/* === COOKIE POPUP === */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none; /* Hidden by default, shown by JS */
    animation: slideUp 0.5s ease-out;
}

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

.cookie-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

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

@keyframes slideUp {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* Mobile Contact */
@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content button {
        width: 100%;
    }
}

/* === TEXT PAGES (Privacy, Terms, etc.) === */
.pages {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 60vh; /* Щоб футер не підстрибував на коротких сторінках */
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary); /* Акцентний колір для підзаголовків */
}

.pages p {
    margin-bottom: 16px;
    color: var(--color-text-muted);
    font-size: 1rem;
    text-align: justify;
}

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

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

.pages li strong {
    color: var(--color-white);
}

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

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

/* Mobile adaptation */
@media (max-width: 768px) {
    .pages h1 {
        font-size: 1.5rem;
    }
    .pages h2 {
        font-size: 1.3rem;
    }
}