:root {
    --primary-bg: #f8fafc;
    --primary-text: #0f172a;
    --secondary-text: #475569;
    --neon-accent-bg: #e0f2fe;
    --neon-accent-text: #0369a1;
    --dark-bg: #0f172a;
    --dark-text: #f8fafc;
    --accent-yellow: #facc15;
    --neon-blue: #22d3ee;
    --action-blue: #0ea5e9;
    --hero-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --card-hover-gradient: linear-gradient(to bottom right, #ffffff, #f1f5f9);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-top: 0;
}

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

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

#cookieConsentBanner {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    max-width: 380px;
    width: calc(100% - 3rem);
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.js-cookie-accept-all {
    background-color: var(--action-blue);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.js-cookie-save {
    background-color: #f1f5f9;
    color: var(--primary-text);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    h3 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }

    #cookieConsentBanner {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: 1.5rem 1.5rem 0 0;
    }
}

.js-glow-hover:hover {
    box-shadow: 0 0 15px var(--neon-blue);
    transform: scale(1.02);
}

/* ===== site_header ===== */
.js-mobile-menu {
    transition: opacity 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

.js-nav-link,
.js-mobile-toggle,
.js-mobile-close {
    cursor: pointer;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero h1,
#hero p {
    color: inherit;
}

.js-share-btn {
    cursor: pointer;
}

/* ===== ai_types ===== */
#services {
    overflow: hidden;
}

#services .bi {
    display: inline-block;
    vertical-align: middle;
}

#services .container {
    max-width: 1200px;
}

/* ===== benefits_grid ===== */
.js-benefit-card {
    border-bottom: 4px solid transparent;
}

.js-benefit-card.is-hovered {
    border-bottom-color: var(--accent-yellow);
    transform: translateY(-8px);
}

/* ===== workflow_timeline ===== */
#process {
    position: relative;
}

.js-timeline-step {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (min-width: 768px) {
    .js-timeline-step:nth-child(even) {
        margin-top: 40px;
    }

    .js-timeline-step:nth-child(odd) {
        margin-bottom: 40px;
    }
}

/* ===== robot_gallery ===== */
.js-gallery-item {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.js-gallery-item img {
    display: block;
    width: 100%;
    border-radius: 1rem;
}

.js-gallery-item h3,
.js-gallery-item p {
    hyphens: auto;
}

#gallery .bi {
    display: inline-block;
    line-height: 1;
}

/* ===== integrations_map ===== */
#tools {
    overflow: hidden;
}

.js-animate-node {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-animate-node.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-animate-node:nth-child(1) {
    transition-delay: 0.1s;
}

.js-animate-node:nth-child(2) {
    transition-delay: 0.2s;
}

.js-animate-node:nth-child(3) {
    transition-delay: 0.3s;
}

.js-animate-node:nth-child(4) {
    transition-delay: 0.4s;
}

.js-animate-node:nth-child(5) {
    transition-delay: 0.5s;
}

.js-animate-node:nth-child(6) {
    transition-delay: 0.6s;
}

.js-animate-node:nth-child(7) {
    transition-delay: 0.7s;
}

.js-animate-node:nth-child(8) {
    transition-delay: 0.8s;
}

.js-animate-node:nth-child(9) {
    transition-delay: 0.9s;
}

/* ===== system_layers ===== */
.architecture-stack {
    overflow: hidden;
}

#architecture h2,
#architecture h3 {
    hyphens: auto;
    line-height: 1.2;
}

.bi-chevron-right,
.bi-chevron-down {
    font-size: 1.5rem;
}

/* ===== faq_accordion ===== */
.js-faq-trigger {
    outline: none;
    transition: background-color 0.2s ease;
}

.js-faq-icon {
    display: inline-block;
    transform-origin: center;
}

.js-faq-answer {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* ===== ai_chat_form ===== */
.js-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.js-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.js-chat-messages::-webkit-scrollbar-thumb {
    background: #e0f2fe;
    border-radius: 10px;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {

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

    50% {
        transform: translateY(-5px);
    }
}

/* ===== site_footer ===== */
#footer {
    overflow: hidden;
}

#footer a {
    text-decoration: none;
}

#footer h2,
#footer h3 {
    hyphens: auto;
    line-height: 1.2;
}