:root {
    --background-main: #0f051d;
    --background-secondary: #1a0b2e;
    --text-primary: #ffffff;
    --text-secondary: #b8a5d1;
    --accent-primary: #d946ef;
    --accent-secondary: #8b5cf6;
    --gradient-accent: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    --transition-speed: 300ms;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
}

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

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    body {
        font-size: 14px;
    }

    .mobile-break-word {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-all;
    }
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

::selection {
    background-color: var(--accent-primary);
    color: var(--text-primary);
}

/* ===== header ===== */
#site-header {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    transition: background-color 0.3s ease;
}

.js-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.js-mobile-menu:not(.hidden) {
    max-height: 400px;
}

/* ===== hero_section ===== */
#hero {
    position: relative;
}

.js-form-input::placeholder {
    color: #b8a5d1;
}

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

h1,
h2,
h3 {
    hyphens: auto;
}

@media (max-width: 767px) {
    h1 {
        line-height: 1.2;
    }
}

/* ===== faces_voices ===== */
.js-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.js-team-image {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-team-image:hover {
    transform: scale(1.05);
}

/* ===== services_grid ===== */
#services {
    hyphens: auto;
}

.js-service-card {
    border-width: 1px;
    border-style: solid;
    border-color: rgba(217, 70, 239, 0.1);
}

.js-service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(217, 70, 239, 0.3);
}

/* ===== tech_specs ===== */
#features .bi {
    line-height: 1;
}

#features .rounded-2xl {
    transition: border-color 0.3s ease;
}

#features .rounded-2xl:hover {
    border-color: var(--accent-primary);
}

/* ===== gallery_works ===== */
.js-portfolio-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-portfolio-item:hover {
    transform: translateY(-8px);
}

/* ===== pricing_table ===== */
#pricing {
    hyphens: auto;
}

#pricing h2,
#pricing h3 {
    line-height: 1.2;
}

#pricing .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

#pricing input[type="checkbox"]:checked {
    background-color: #d946ef;
    border-color: #d946ef;
}

#pricing ::placeholder {
    color: #b8a5d1;
}

/* ===== faq_accordion ===== */
.style-hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
}

.js-faq-item.active {
    border-color: #d946ef;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.1);
}

.js-faq-item.active .js-faq-icon {
    transform: rotate(180deg);
}

/* ===== platform_metrics ===== */
#stats {
    background-color: var(--background-main);
    overflow: hidden;
    hyphens: auto;
}

.stats-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(217, 70, 239, 0.2);
}

.js-counter {
    font-variant-numeric: tabular-nums;
}

/* ===== footer ===== */
#site-footer {
    overflow: hidden;
}

#site-footer .js-input-email::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

#site-footer a {
    color: inherit;
    text-decoration: none;
}

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

#site-footer button[type="submit"] {
    background: var(--gradient-accent);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(217, 70, 239, 0.28);
    color: var(--text-primary);
}

#site-footer .container {
    width: 100%;
}
