:root {
    --primary-accent: #9333ea;
    --primary-accent-hover: #7e22ce;
    --secondary-accent: #c026d3;
    --bg-light: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-secondary);
    background-color: var(--bg-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#team .js-tab-btn[aria-selected="true"]:hover {
    color: #ffffff;
    background-color: #6b21a8;
    border-color: #6b21a8;
}

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

button {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-top: 0;
}

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

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

:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.875rem, 6vw, 2.5rem);
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.25;
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.625rem);
    }

    h4 {
        font-size: 1.125rem;
    }

    h5,
    h6 {
        font-size: 1rem;
    }

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

/* ===== header ===== */
#header {
    overflow: visible;
}

.mobile-dropdown.open {
    max-height: 400px;
}

html {
    scroll-behavior: smooth;
}

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

#hero a,
#hero button {
    cursor: pointer;
}

/* ===== about ===== */
#about {
    word-break: break-word;
}

.js-timeline-item {
    transition: all 0.25s ease-in-out;
}

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

#services .service-card {
    width: 100%;
    hyphens: auto;
}

/* ===== how_it_works ===== */
#how-it-works {
    background-color: var(--bg-subtle, #f8fafc);
}

.how-it-works-step {
    min-height: 100%;
}

/* ===== calculator ===== */
.js-calc-option {
    transition: all 0.2s ease-in-out;
}

.js-calc-option:hover {
    transform: translateY(-1px);
}

/* ===== industries ===== */
#industries {
    overflow: hidden;
}

#industries .card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ===== portfolio ===== */
#portfolio {
    hyphens: auto;
}

#portfolio h2,
#portfolio h3 {
    line-height: 1.25;
}

/* ===== team ===== */
#team {
    overflow: hidden;
    width: 100%;
}

.js-tab-btn:focus-visible {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

/* ===== faq ===== */
#faq {
    scroll-margin-top: 80px;
}

#faq .js-faq-item.is-open {
    border-color: #9333ea;
    box-shadow: 0 4px 14px -2px rgba(147, 51, 234, 0.12);
}

#faq .js-faq-item.is-open .js-icon-symbol {
    transform: rotate(180deg);
}

#faq .js-icon-symbol {
    transition: transform 0.25s ease-in-out;
}

/* ===== contact_form ===== */
#contact {
    overflow: hidden;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #64748b;
}

#contact select:invalid {
    color: #64748b;
}

#contact select option {
    color: #0f172a;
}

/* ===== footer ===== */
#footer {
    position: relative;
    background-color: #0f172a;
    color: #ffffff;
    overflow: hidden;
    hyphens: auto;
}

#footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer a:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}
