:root {
    /* Color Palette: Cyberpunk Orchid */
    --primary: #7000FF;
    --primary-hover: #5a00cc;
    --secondary: #00FF9D;
    --bg-dark: #0A0B1E;
    --surface: #161B33;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --error: #FF4D4D;
    --success: #2ECC71;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --gap: 2rem;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Effects */
    --radius-xl: 24px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

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: var(--section-padding);
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Components: Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 0, 255, 0.6);
}

.btn--outline {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn--outline:hover {
    background-color: var(--secondary);
    color: var(--bg-dark);
}

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

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

.link-btn {
    background: none;
    border: none;
    color: var(--secondary);
    text-decoration: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.badge {
    display: inline-block;
    background: rgba(112, 0, 255, 0.2);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 157, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 11, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

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

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

/* Burger Menu */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.burger__line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s ease;
}

/* Burger Active State (X-icon) */
.burger.burger--active .burger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.burger.burger--active .burger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    /* Header height + spacing */
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

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

.hero__actions {
    display: flex;
    gap: 1rem;
}

/* Neural Core Visualization */
.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.neural-core {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 50px rgba(0, 255, 157, 0.2));
}

.core-node {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, var(--secondary), var(--primary));
    border-radius: 50%;
    position: relative;
    z-index: 5;
    box-shadow: 0 0 40px var(--primary), inset -5px -5px 15px rgba(0, 0, 0, 0.5);
    animation: corePulse 3s ease-in-out infinite;
}

.core-orbit {
    position: absolute;
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 50%;
    animation: rotateOrbit linear infinite;
}

.core-orbit--1 {
    width: 250px;
    height: 250px;
    border-top-color: var(--secondary);
    animation-duration: 8s;
}

.core-orbit--2 {
    width: 320px;
    height: 320px;
    border-right-color: var(--primary);
    animation-duration: 12s;
    animation-direction: reverse;
}

.core-orbit--3 {
    width: 400px;
    height: 400px;
    border-bottom-color: var(--secondary);
    animation-duration: 15s;
}

.core-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

.p--1 {
    top: 20%;
    left: 10%;
    animation: floatParticle 6s infinite;
}

.p--2 {
    top: 80%;
    left: 15%;
    animation: floatParticle 8s infinite 1s;
}

.p--3 {
    top: 30%;
    left: 85%;
    animation: floatParticle 7s infinite 0.5s;
}

.p--4 {
    top: 70%;
    left: 90%;
    animation: floatParticle 9s infinite 2s;
}

.core-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes corePulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
        box-shadow: 0 0 60px var(--primary);
    }
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg) rotateX(60deg);
    }

    to {
        transform: rotate(360deg) rotateX(60deg);
    }
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 1;
    }
}

/* About / Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.feature-card__icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
}

.feature-card__icon svg {
    filter: drop-shadow(0 0 15px rgba(0, 255, 157, 0.4));
    transition: var(--transition);
}

.feature-card:hover .feature-card__icon svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.6));
}

.feature-card__title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Services Bento Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: rgba(22, 27, 51, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    background: rgba(22, 27, 51, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card--large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(22, 27, 51, 0.4));
}

.service-card--wide {
    grid-column: span 2;
}

.service-card__bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--secondary);
    color: var(--bg-dark);
    transform: scale(1.1) rotate(5deg);
}

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

.service-card__tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 700;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.service-card__link svg {
    transition: transform 0.3s ease;
}

.service-card__link:hover svg {
    transform: translateX(5px);
}

.centered-cta {
    text-align: center;
    margin-top: 2rem;
}

.centered-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 100%;
}

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

.review-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    overflow: hidden;
    /* Round the image */
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    color: #FFD700;
}

/* Contact Form */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact__info ul {
    margin-top: 2rem;
}

.contact__list li {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact__list li svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.contact__form {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 11, 30, 0.5);
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(112, 0, 255, 0.2);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    height: 1.2em;
    /* Reserve space */
}

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

.form-checkbox input {
    width: auto;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    min-height: 20px;
}

/* CTA Section */
.cta-card {
    background: linear-gradient(135deg, #0f113a 0%, #050614 100%);
    padding: 4rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.cta-card__content {
    position: relative;
    z-index: 2;
}

.cta-card__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-card__text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer */
.footer {
    background: #050614;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    margin-bottom: 1rem;
}

.footer__col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    line-height: 1.4;
}

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

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

.footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer__legal a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer__legal a:hover {
    color: var(--secondary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.modal__body {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 1500;
    width: 300px;
    border: 1px solid var(--secondary);
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

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

.cookie-popup__actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

/* Responsive & Fluid Adaptation */
@media (max-width: 1024px) {
    :root {
        --container-padding: 30px;
    }

    .hero__title {
        font-size: 3rem;
    }

    .neural-core {
        transform: scale(0.85);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

@media (max-width: 900px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--surface);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav.nav--open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav__link {
        font-size: 1.8rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__actions {
        justify-content: center;
        width: 100%;
    }

    .neural-core {
        transform: scale(0.8);
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card--large,
    .service-card--wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .features-grid,
    .reviews-grid,
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__container {
        flex-direction: column;
    }

    .footer__legal {
        justify-content: center;
    }

    .neural-core {
        width: 300px;
        height: 300px;
        transform: scale(1);
    }

    .core-node {
        width: 70px;
        height: 70px;
    }

    .core-orbit--1 {
        width: 180px;
        height: 180px;
    }

    .core-orbit--2 {
        width: 230px;
        height: 230px;
    }

    .core-orbit--3 {
        width: 280px;
        height: 280px;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .cta-card__title {
        font-size: 1.8rem;
    }

    .contact__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

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

    .btn {
        width: 100%;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .neural-core {
        transform: scale(0.8);
    }
}
