/* ==========================================================================
   0. GLOBAL STYLES
   ========================================================================== */

/* 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 {
	--font-primary: 'Inter', sans-serif;
	--font-headings: 'Space Grotesk', sans-serif;

	--color-bg: #ffffff;
	--color-text: #2d2d2d;
	--color-text-muted: #6b6b6b;
	--color-accent: #6a5acd;
	--color-accent-hover: #8275e3;
	--color-border: #e5e5e5;
}

/* Base & 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-bg);
	color: var(--color-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-headings);
	color: #1a1a1a;
	line-height: 1.2;
}

ul {
	list-style: none;
}

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

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

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

button {
	font-family: inherit;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
}

/* Utility Classes */
.container {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ==========================================================================
   1. HEADER
   ========================================================================== */
.header {
	padding: 20px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-headings);
	font-weight: 700;
	font-size: 24px;
	color: #1a1a1a;
}

.logo:hover {
	color: #1a1a1a;
}

.logo__icon {
	color: var(--color-accent);
	transition: transform 0.3s ease;
}

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

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

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

.menu__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-in-out;
}

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

.header__burger-btn {
	display: none;
	color: #1a1a1a;
}

/* Header Responsive */
@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		background-color: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(10px);
		border-bottom: 1px solid var(--color-border);
		transform: translateY(-100%);
		transition: transform 0.3s ease-in-out;
		padding: 100px 20px 30px;
		z-index: 99;
	}

	.header__nav--active {
		transform: translateY(0);
	}

	.header__menu {
		flex-direction: column;
		align-items: center;
		gap: 20px;
		max-width: 400px;
		margin: 0 auto;
	}

	.menu__item {
		width: 100%;
	}

	.menu__link {
		font-size: 18px;
		display: block;
		padding: 15px 20px;
		text-align: center;
		border-radius: 8px;
		transition: all 0.2s ease;
		border: 1px solid transparent;
	}

	.menu__link:hover {
		background-color: rgba(106, 90, 205, 0.1);
		border-color: var(--color-accent);
		color: var(--color-accent);
	}

	.header__burger-btn {
		display: block;
		z-index: 101;
		background: none;
		border: none;
		color: #1a1a1a;
		cursor: pointer;
		padding: 8px;
		border-radius: 4px;
		transition: background-color 0.2s ease;
	}

	.header__burger-btn:hover {
		background-color: rgba(0, 0, 0, 0.05);
	}
}

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

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

.footer__column--brand .logo {
	margin-bottom: 20px;
}

.footer__description {
	color: var(--color-text-muted);
	max-width: 250px;
}

.footer__title {
	font-size: 20px;
	margin-bottom: 20px;
}

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

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

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

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--color-text-muted);
}

.footer__contact-icon {
	flex-shrink: 0;
	margin-top: 4px;
	width: 18px;
	height: 18px;
	color: var(--color-accent);
}

.footer__bottom {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: 14px;
}

/* Footer Responsive */
@media (max-width: 992px) {
	.footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.footer__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column--brand .logo {
		justify-content: center;
	}
	.footer__description {
		margin: 0 auto;
	}
	.footer__list--contacts li {
		justify-content: center;
		text-align: left;
	}
}

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

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

.hero__container {
	position: relative;
	z-index: 2;
}

.hero__content {
	max-width: 800px;
	margin: 0 auto;
}

.hero__title {
	font-size: 56px;
	margin-bottom: 24px;
	font-weight: 700;
	line-height: 1.1;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.hero__subtitle {
	font-size: 20px;
	color: var(--color-text-muted);
	margin-bottom: 40px;
	line-height: 1.7;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.btn {
	display: inline-block;
	padding: 16px 32px;
	font-family: var(--font-headings);
	font-size: 18px;
	font-weight: 500;
	color: white;
	background-color: var(--color-accent);
	border-radius: 8px;
	border: 2px solid var(--color-accent);
	transition: background-color 0.3s ease, transform 0.3s ease,
		box-shadow 0.3s ease;
}

.btn:hover {
	background-color: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(106, 90, 205, 0.2);
	color: white;
}

/* Hero Responsive */
@media (max-width: 768px) {
	.hero {
		min-height: 80vh;
		padding: 80px 0;
	}
	.hero__title {
		font-size: 40px;
	}
	.hero__subtitle {
		font-size: 18px;
	}
}
@media (max-width: 480px) {
	.hero__title {
		font-size: 32px;
	}
	.hero__subtitle {
		font-size: 16px;
	}
	.btn {
		padding: 14px 28px;
		font-size: 16px;
	}
}

/* ==========================================================================
   4. HOW IT WORKS SECTION
   ========================================================================== */
.section {
	padding: 100px 0;
}

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

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

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

.how-it-works__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.step-card {
	background-color: #f9f9f9;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-card__icon-wrapper {
	width: 70px;
	height: 70px;
	margin: 0 auto 30px;
	background: linear-gradient(
		145deg,
		var(--color-accent),
		var(--color-accent-hover)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}

.step-card__icon {
	width: 32px;
	height: 32px;
}

.step-card__title {
	font-size: 24px;
	margin-bottom: 15px;
}

.step-card__description {
	color: var(--color-text-muted);
	font-size: 16px;
}

/* How It Works Responsive */
@media (max-width: 992px) {
	.how-it-works__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 80px 0;
	}
	.section__title {
		font-size: 34px;
	}
	.section__subtitle {
		font-size: 16px;
	}
}

/* ==========================================================================
   5. EVERYDAY TASKS (TABS)
   ========================================================================== */
.everyday-tasks {
	background-color: #f8f8f8;
}

.tabs-component {
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 40px;
}

.tabs__nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tabs__nav-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 18px 20px;
	font-size: 16px;
	font-weight: 500;
	text-align: left;
	border-radius: 8px;
	border: 1px solid transparent;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.tabs__nav-btn:hover {
	background-color: #f0f0f0;
}

.tabs__nav-btn--active {
	background-color: var(--color-accent);
	color: white;
	border-color: var(--color-accent);
}

.tabs__nav-btn--active:hover {
	background-color: var(--color-accent-hover);
}

.tabs__nav-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.tabs__pane {
	display: none;
	animation: fadeIn 0.5s ease;
}

.tabs__pane--active {
	display: block;
}

.tabs__pane-title {
	font-size: 28px;
	margin-bottom: 30px;
}

.example {
	background-color: #ffffff;
	border-radius: 8px;
	border: 1px solid var(--color-border);
	overflow: hidden;
}

.example__prompt,
.example__response {
	padding: 25px;
}

.example__prompt {
	background-color: #f5f5f5;
}

.example__label {
	font-family: var(--font-headings);
	font-weight: 500;
	color: #1a1a1a;
	margin-bottom: 12px;
	opacity: 0.9;
}

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

.example__response ul {
	list-style: disc;
	padding-left: 20px;
	color: var(--color-text-muted);
}
.example__response ul li {
	margin-bottom: 10px;
}

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

/* Tabs Responsive */
@media (max-width: 992px) {
	.tabs-component {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.tabs__nav {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 10px; /* For scrollbar */
	}
	.tabs__nav-btn {
		flex-shrink: 0;
	}
}

@media (max-width: 576px) {
	.tabs__nav {
		gap: 5px;
	}
	.tabs__nav-btn {
		flex-direction: column;
		padding: 12px 10px;
		font-size: 13px;
	}
}

/* ==========================================================================
   6. CREATIVITY SECTION
   ========================================================================== */

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

.creative-card {
	background-color: #f9f9f9;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.creative-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.creative-card__image-wrapper {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.creative-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.creative-card:hover .creative-card__image {
	transform: scale(1.05);
}

.creative-card__content {
	padding: 25px;
	position: relative;
	flex-grow: 1;
}

.creative-card__icon {
	position: absolute;
	top: -25px;
	right: 25px;
	width: 50px;
	height: 50px;
	background-color: var(--color-accent);
	color: white;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.creative-card__icon i {
	width: 24px;
	height: 24px;
}

.creative-card__title {
	font-size: 22px;
	margin-bottom: 12px;
}

.creative-card__description {
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 1.6;
}

/* ==========================================================================
   7. TOOLS SECTION
   ========================================================================== */
.tools {
	background-color: #f8f8f8;
}

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

.tool-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 25px 30px;
	background-color: #ffffff;
	color: var(--color-text);
	transition: background-color 0.3s ease;
}

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

.tool-item:hover {
	background-color: #f5f5f5;
	color: #1a1a1a;
}

.tool-item__name {
	font-size: 20px;
	margin-bottom: 5px;
	color: #1a1a1a;
}

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

.tool-item__meta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.tool-item__tags {
	display: flex;
	gap: 8px;
}

.tag {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 500;
	border-radius: 12px;
	white-space: nowrap;
}

.tag--text {
	background-color: rgba(67, 83, 255, 0.1);
	color: #919bff;
}
.tag--code {
	background-color: rgba(255, 128, 67, 0.1);
	color: #ff9e67;
}
.tag--image {
	background-color: rgba(255, 67, 224, 0.1);
	color: #ff8ded;
}
.tag--productivity {
	background-color: rgba(0, 194, 128, 0.1);
	color: #00d495;
}
.tag--music {
	background-color: rgba(255, 67, 67, 0.1);
	color: #ff7878;
}

.tool-item__link-icon {
	color: var(--color-text-muted);
	transition: transform 0.3s ease, color 0.3s ease;
}

.tool-item:hover .tool-item__link-icon {
	transform: translate(3px, -3px);
	color: var(--color-accent);
}

/* Tools Responsive */
@media (max-width: 640px) {
	.tool-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	.tool-item__meta {
		width: 100%;
		justify-content: space-between;
	}
	.tool-item__tags {
		order: 1;
	}
	.tool-item__link-icon {
		order: 2;
	}
}

/* ==========================================================================
   8. CONTACT SECTION
   ========================================================================== */

.contact-wrapper {
	max-width: 600px;
	margin: 0 auto;
	background-color: #ffffff;
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--color-border);
}

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

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

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

.form-input::placeholder {
	color: var(--color-text-muted);
	opacity: 0.7;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

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

.form-checkbox {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.form-checkbox-label {
	font-size: 14px;
	color: var(--color-text-muted);
}

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

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

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.success-message {
	text-align: center;
	padding: 40px 20px;
}

.success-message__icon {
	color: #00d495;
	margin-bottom: 20px;
}
.success-message__icon i {
	width: 60px;
	height: 60px;
}

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

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

/* Contact Responsive */
@media (max-width: 576px) {
	.contact-wrapper {
		padding: 30px 20px;
	}
}

/* ==========================================================================
   9. ADDITIONAL ELEMENTS (COOKIE, POLICY PAGES)
   ========================================================================== */

/* Cookie Pop-up */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #ffffff;
	border-top: 1px solid var(--color-border);
	padding: 20px 0;
	z-index: 200;
	transform: translateY(120%);
	transition: transform 0.5s ease-in-out;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-popup--show {
	transform: translateY(0);
}

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

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

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

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

.cookie-popup__btn {
	padding: 10px 25px;
	background-color: var(--color-accent);
	color: white;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.cookie-popup__btn:hover {
	background-color: var(--color-accent-hover);
}

@media (max-width: 576px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}
}

/* Static Policy Pages */
.pages {
	padding: 80px 0;
}

.pages .container {
	max-width: 800px;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
}

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

.pages p,
.pages li {
	font-size: 18px;
	line-height: 1.8;
	color: var(--color-text-muted);
	margin-bottom: 20px;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
}

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

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

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