:root {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --secondary-color: #06b6d4;
    --accent-color: #fbbf24;
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --font-main: 'Sora', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section__subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

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

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

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

.burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
    position: absolute;
}

.burger span:first-child {
    top: 0;
}

.burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger span:last-child {
    bottom: 0;
}

.burger.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:last-child {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    z-index: 10;
}

.hero__content {
    text-align: left;
}

.hero__visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    position: absolute;
    filter: blur(60px);
    opacity: 0.6;
    border-radius: 50%;
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 20%;
    animation: floating 8s infinite alternate ease-in-out;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    bottom: 10%;
    right: 10%;
    animation: floating 6s infinite alternate-reverse ease-in-out;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    width: 380px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
    animation: cardFloat 5s infinite alternate ease-in-out;
}

.glass-card__item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.glass-card__item:last-child {
    margin-bottom: 0;
}

.glass-card__icon {
    width: 45px;
    height: 45px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.glass-card__bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-grow: 1;
    overflow: hidden;
}

.glass-card__progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

@keyframes floating {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-40px) scale(1.1);
    }
}

@keyframes cardFloat {
    0% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(10deg) translateY(0);
    }

    100% {
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-20px);
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.85rem;
    color: var(--primary-color);
    backdrop-filter: blur(5px);
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero__buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

/* Features */
/* Features Bento Grid */
.features__bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 40px 8px 40px 8px;
    /* Unique organic shape */
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feature-card.f-large {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.feature-card.f-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.feature-card.f-small {
    grid-column: span 1;
    grid-row: span 1;
}

.feature-card.f-wide {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(16, 185, 129, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    flex-shrink: 0;
}

.feature-card__bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 12rem;
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Services Unique Shape */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--bg-card);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%);
    /* Tech cut shape */
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.2;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-item__icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: var(--transition);
}

.service-item:hover .service-item__icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-item__content {
    position: relative;
    z-index: 1;
}

.service-item h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--text-main);
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.review-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

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

.review-card__header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__header h4 {
    margin: 0;
    font-size: 1rem;
}

.review-card__header span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-card p {
    font-style: italic;
    color: var(--text-muted);
}

/* Contacts */
.contacts__wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contacts__info {
    flex: 1;
    min-width: 300px;
}

.contacts__info h3 {
    margin-bottom: 20px;
}

.contacts__info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.contacts__info i {
    color: var(--primary-color);
    width: 20px;
}

.contacts__note {
    margin-top: 30px;
    font-size: 0.9rem;
    padding: 15px;
    background: rgba(0, 210, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.contacts__form {
    flex: 1;
    min-width: 300px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

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

.contact-page-wrapper {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-group span {
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.captcha-group input {
    width: 80px;
}

.btn-spinner {
    display: none;
    margin-left: 10px;
}

.form-success {
    display: none;
    margin-top: 15px;
    color: #4cd964;
    text-align: center;
}

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

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul li a:hover {
    color: var(--primary-color);
}

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



/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    z-index: 3000;
    border: 1px solid var(--primary-color);
    max-width: 400px;
    transform: translateY(150%);
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

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

    .nav__list {
        flex-direction: column;
        gap: 30px;
        font-size: 1.5rem;
        margin-top: 200px;
    }

    .burger {
        display: block;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
    }

    .hero__content {
        text-align: center;
    }

    .hero__visual {
        height: 400px;
    }

    .glass-card {
        width: 100%;
        max-width: 380px;
    }

    .hero__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero__buttons {
        flex-direction: column;
    }

    .section__title {
        font-size: 2rem;
    }

    .contacts__wrapper {
        flex-direction: column;
    }
}