/* ===================================
   Fonts from Figma
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* ===================================
   CSS Variables - Figma Design Tokens
   =================================== */
:root {
    /* Primary Colors */
    --primary-purple: #682eff;
    --primary-purple-light: #e8dfff;
    --primary-cyan: #17c8ff;
    --primary-cyan-light: #e0f8ff;
    --primary-green: #aeff37;
    --primary-green-light: #f5ffe6;

    /* Neutral Colors */
    --black: #002F34;
    --dark-gray: #272727;
    --medium-gray: #6c6e79;
    --light-gray: #adadb5;
    --lightest-gray: #f8f8f8;
    --white: #ffffff;

    /* Accent Colors */
    --accent-blue: #5eb4e8;
    --accent-pink: #fe16cd;
    --accent-lime: #b3ff43;

    /* Typography */
    --font-primary: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 28px;
    --spacing-xl: 40px;
    --spacing-xxl: 56px;
    --spacing-xxxl: 72px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===================================
   Typography
   =================================== */
.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

.section-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--medium-gray);
    max-width: 750px;
}

/* Mixed Typography Section Headers */
.section-title-mixed {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 12px;
}

.section-title-center {
    justify-content: center;
    text-align: center;
}

.sans-medium {
    font-family: var(--font-primary);
    font-weight: 500;
}

.sans-bold {
    font-family: var(--font-primary);
    font-weight: 600;
}

.serif-italic-bg {
    position: relative;
    display: inline-block;
    padding: 0 8px;
}

.bg-shape-italic {
    position: absolute;
    width: 110%;
    height: 120%;
    background: #E8DFFF;
    border-radius: 24px;
    transform: rotate(-3deg);
    transform-origin: center;
    z-index: -1;
    top: -10%;
    left: -8%;
}

/* Section Header with Background Shape */
.section-header-with-bg {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.bg-shape {
    position: absolute;
    border-radius: 24px;
    z-index: -1;
}

.bg-purple {
    width: 335px;
    height: 112px;
    background: var(--primary-purple-light);
    transform: rotate(-3deg);
    right: -20px;
    top: -10px;
}

.bg-purple-left {
    width: 236px;
    height: 96px;
    background: var(--primary-purple-light);
    border-radius: 24px;
    left: -40px;
    top: 0;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #5020cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(104, 46, 255, 0.3);
}

.btn-secondary {
    background-color: var(--primary-purple-light);
    color: var(--primary-purple);
    border: none;
}

.btn-secondary:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(104, 46, 255, 0.3);
}

.btn-full {
    width: 100%;
}

/* ===================================
   Badges
   =================================== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 500;
    background-color: var(--lightest-gray);
    color: var(--black);
    border-radius: 100px;
    margin-right: var(--spacing-sm);
    transition: var(--transition-fast);
}

.badge-highlight {
    background-color: var(--primary-purple-light);
    color: var(--primary-purple);
}

.badge-accent {
    background-color: var(--primary-green-light);
    color: #5d9d00;
}

/* ===================================
   Navbar
   =================================== */
.navbar {
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md) 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 500;
    color: var(--black);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
}

.nav-links a:hover {
    color: var(--primary-purple);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: var(--spacing-xxxl) 0;
    background: linear-gradient(180deg, var(--lightest-gray) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--black) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 17px;
    font-weight: 500;
    color: var(--medium-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===================================
   Clients Section (Dark)
   =================================== */
.clients-dark {
    padding: 44px 0;
    background-color: #020203;
    overflow: hidden;
}

.client-logos-dark {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 124px;
    flex-wrap: wrap;
}

.client-logos-dark img {
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition-normal);
}

.client-logos-dark img:hover {
    opacity: 1;
}

/* ===================================
   Introduction & Services Section
   =================================== */
.introduction-services {
    padding: 100px 0 120px 0;
    background-color: #FFFFFF;
}

.introduction-sticky {
    text-align: center;
    margin-bottom: 60px;
    max-width: 804px;
    margin-left: auto;
    margin-right: auto;
}

.introduction-sticky .section-label {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 1px;
    color: #6C6E79;
    margin-bottom: 24px;
}

.introduction-sticky .section-description {
    margin: 0 auto;
    max-width: 650px;
    font-size: 18px;
    line-height: 130%;
    color: var(--black);
}

.services-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 480px;
}

.service-toggles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 304px;
    flex-shrink: 0;
}

.service-toggle {
    display: flex;
    align-items: center;
    gap: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: var(--transition-fast);
}

.service-indicator {
    width: 4px;
    height: 24px;
    background: #E8DFFF;
    border-radius: 9999px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.service-indicator.active {
    background: var(--primary-purple);
}

.service-label {
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    color: #6C6E79;
    transition: var(--transition-fast);
}

.service-toggle.active .service-label {
    font-weight: 500;
    color: var(--black);
}

.service-description {
    position: relative;
    width: 650px;
    height: 480px;
    flex-shrink: 0;
}

.service-text {
    display: none;
    width: 100%;
    height: 100%;
}

.service-text.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.service-container {
    width: 100%;
    height: 100%;
    background: #FCF2FF;
    border-radius: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px 0;
}

.service-image-wrapper img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}

.service-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 28px;
    gap: 12px;
    background: #FCF2FF;
    border-top: 1px solid #E58DFF;
    min-height: 160px;
}

.service-details h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
    color: var(--black);
    margin: 0;
}

.service-details p {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: var(--black);
    margin: 0;
}

.services-illustration {
    display: none;
}

/* ===================================
   Benefits Section
   =================================== */
.benefits {
    padding: var(--spacing-xxxl) 0;
    background-color: var(--white);
}

.benefits-header {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.bg-purple-benefits {
    width: 236px;
    height: 96px;
    background: var(--primary-purple-light);
    border-radius: 24px;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.benefits .section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.benefits .section-description {
    text-align: center;
    margin: 0 auto var(--spacing-xxl) auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background-color: transparent;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    margin-bottom: var(--spacing-md);
}

.benefit-card h3 {
    font-size: 21px;
    font-weight: 500;
    line-height: 28px;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
}

.benefit-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.benefit-card li {
    font-size: 16px;
    font-weight: 400;
    color: var(--medium-gray);
    line-height: 24px;
    padding-left: var(--spacing-md);
    position: relative;
}

.benefit-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: 600;
}

/* ===================================
   Reporting Section
   =================================== */
.reporting {
    padding: var(--spacing-xxxl) 0;
    background: var(--white);
    position: relative;
}

.reporting-header {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.badge-float {
    position: absolute;
    background: white;
    box-shadow: 0px 4px 20px rgba(32, 33, 36, 0.05);
    border-radius: 24px;
    border: 1px solid rgba(9, 9, 11, 0.2);
    padding: 5px 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    color: var(--black);
}

.badge-left {
    left: 60px;
    top: 20px;
}

.badge-right {
    right: 80px;
    top: 140px;
}

.reporting-content {
    display: grid;
    grid-template-columns: 461px 1fr;
    gap: var(--spacing-xxl);
    align-items: flex-start;
    max-width: 1340px;
    margin: 0 auto;
}

.reporting-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
    padding-top: var(--spacing-xl);
}

.feature-toggle {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: var(--transition-fast);
    flex-wrap: wrap;
}

.feature-indicator {
    width: 20px;
    height: 20px;
    background: #797B86;
    border-radius: 9999px;
    flex-shrink: 0;
    margin-top: 6px;
    transition: var(--transition-fast);
}

.feature-indicator.active {
    background: var(--primary-purple);
}

.feature-text {
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #6C6E79;
    transition: var(--transition-fast);
}

.feature-toggle.active .feature-text {
    color: var(--black);
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-basis: 100%;
    margin-left: 40px;
}

.feature-details h4 {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: var(--black);
}

.feature-details p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--black);
}

.feature-toggle:not(.active) .feature-details {
    display: none;
}

.reporting-illustration {
    background-color: #F8F8F8;
    border-radius: 16px;
    overflow: hidden;
    max-width: 645px;
    height: 523px;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reporting-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-center {
    display: block;
    margin: var(--spacing-xxl) auto 0;
}

/* ===================================
   Self-Healing Section
   =================================== */
.self-healing {
    padding: var(--spacing-xxxl) 0;
    background-color: var(--lightest-gray);
}

.self-healing .section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.self-healing .section-description {
    text-align: center;
    margin: 0 auto var(--spacing-xxl) auto;
}

.self-healing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.card p {
    font-size: 16px;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ===================================
   QA Challenges Section
   =================================== */
.qa-challenges {
    padding: var(--spacing-xxxl) 0;
    background-color: var(--white);
}

.qa-challenges .section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.challenge-toggles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 12px;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.challenge-toggle {
    display: flex;
    align-items: center;
    gap: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-indicator {
    width: 4px;
    height: 24px;
    background: #FFF6E9;
    border-radius: 9999px;
    transition: var(--transition-fast);
}

.toggle-indicator.active {
    background: var(--primary-purple);
}

.challenge-toggle .toggle-text {
    font-size: 20px;
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 28px;
    color: #B2B3BD;
    transition: var(--transition-fast);
}

.challenge-toggle.active .toggle-text {
    font-weight: 500;
    color: var(--black);
}

.challenge-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.challenge-visual {
    position: relative;
    background: #FDFDFD;
    border-radius: 24px;
    padding: var(--spacing-xxxl) var(--spacing-xxl);
    min-height: 525px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xxl);
    overflow: hidden;
}

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

.circles-bg::before,
.circles-bg::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    border: 1px solid rgba(116, 117, 122, 0.3);
}

.circles-bg::before {
    width: 1665px;
    height: 460px;
    left: -193px;
    top: -215px;
}

.circles-bg::after {
    width: 1534px;
    height: 460px;
    left: -127px;
    top: -237px;
}

.challenge-card {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    padding: 32px 16px;
    min-width: 271px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: var(--transition-normal);
}

.problem-card {
    align-self: flex-start;
    margin-top: 157px;
}

.solution-card {
    align-self: flex-end;
    margin-top: 143px;
    background: var(--primary-purple);
    color: white;
}

.challenge-card h3 {
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    text-align: center;
}

.challenge-card p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.solution-card h3,
.solution-card p {
    color: white;
}

/* Responsive Design for QA Challenges */
@media (max-width: 1024px) {
    .challenge-visual {
        flex-direction: column;
        padding: var(--spacing-xl);
    }

    .problem-card,
    .solution-card {
        margin-top: 0;
        align-self: center;
    }

    .challenge-toggles {
        flex-wrap: wrap;
        gap: 12px;
    }

    .challenge-toggle .toggle-text {
        font-size: 20px;
    }
}

/* ===================================
   Careers Section
   =================================== */
.careers {
    padding: var(--spacing-xxxl) 0;
    background: var(--lightest-gray);
}

.careers-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.careers-header .section-description {
    margin: 0 auto;
}

.jobs-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 70px;
}

.jobs-grid-container {
    overflow: hidden;
    width: 100%;
}

.jobs-grid {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.3s ease;
    width: 100%;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    font-size: 24px;
    font-weight: bold;
}

.carousel-arrow:hover {
    background: var(--primary-purple);
    color: white;
}

.carousel-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

.job-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 0 0 calc((100% - 2 * var(--spacing-lg)) / 3);
    max-width: calc((100% - 2 * var(--spacing-lg)) / 3);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.job-card h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--black);
    margin: 0;
}

.job-card .job-description {
    font-size: 15px;
    color: var(--medium-gray);
    line-height: 1.6;
    flex-grow: 1;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--medium-gray);
}

.job-meta-item strong {
    color: var(--black);
    font-weight: 500;
    min-width: 80px;
}

.job-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-purple-light);
    color: var(--primary-purple);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
}

.job-card .btn {
    margin-top: var(--spacing-sm);
    width: 100%;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--spacing-xxxl) 0;
    background-color: var(--lightest-gray);
}

.contact-heading {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.contact-subheading {
    font-size: 18px;
    font-weight: 400;
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xxl);
}

.aperture-description {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.aperture-description h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

.aperture-description > p {
    font-size: 18px;
    font-weight: 400;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.mission {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mission h4 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
}

.mission p {
    font-size: 16px;
    font-weight: 400;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.offices {
    margin-top: var(--spacing-xl);
}

.offices h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.contact-form h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
}

.required {
    color: #ff0000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e6e6e6;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

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

.hint {
    display: block;
    font-size: 14px;
    color: var(--medium-gray);
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.form-check label {
    font-size: 16px;
    font-weight: 400;
}

.office-info {
    padding: 0;
}

.office-info h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
}

.office-info address {
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--medium-gray);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    background-color: var(--black);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: var(--spacing-xl);
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-heading {
    font-size: 36px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-md);
}

.footer-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--white);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet & Medium Screens */
@media (max-width: 1024px) {
    /* Hero Section */
    .hero {
        padding: var(--spacing-xxl) 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    /* Services Section */
    .introduction-services {
        padding: var(--spacing-xxl) 0 var(--spacing-xxxl) 0;
    }

    .services-wrapper {
        flex-direction: column;
        gap: var(--spacing-xl);
        min-height: auto;
    }

    .service-toggles {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-toggle {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .service-indicator {
        width: 24px;
        height: 4px;
    }

    .service-description {
        width: 100%;
        max-width: 600px;
        height: auto;
        min-height: 400px;
        margin: 0 auto;
    }

    .service-label {
        font-size: 18px;
    }

    /* Benefits Section */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Reporting Section */
    .reporting-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .badge-float {
        position: static;
        display: inline-block;
        margin: var(--spacing-sm) var(--spacing-sm) 0 0;
    }

    .reporting-illustration {
        max-width: 100%;
        height: auto;
    }

    /* Self-Healing Cards */
    .self-healing-cards {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .aperture-description {
        margin-bottom: var(--spacing-lg);
    }

    .offices-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Client Logos */
    .client-logos-dark {
        gap: var(--spacing-xl);
    }

    /* Jobs Carousel */
    .jobs-carousel-wrapper {
        padding: 0 50px;
    }

    .job-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--black);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navbar */
    .navbar-content {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .logo {
        order: 1;
    }

    .nav-links {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
        text-align: left;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: var(--spacing-sm) 0;
    }

    .navbar .btn {
        display: none;
        width: 100%;
        order: 5;
        margin-top: var(--spacing-sm);
    }

    .navbar .btn.active {
        display: block;
    }

    /* Hero Section */
    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Clients Section */
    .client-logos-dark {
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-md);
    }

    /* Services Section */
    .introduction-services {
        padding: var(--spacing-xl) 0 var(--spacing-xxl) 0;
    }

    .introduction-sticky {
        margin-bottom: var(--spacing-xl);
        padding: 0 var(--spacing-md);
    }

    .introduction-sticky .section-description {
        font-size: 16px;
    }

    .services-wrapper {
        padding: 0 var(--spacing-md);
    }

    .service-toggles {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .service-toggle {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }

    .service-indicator {
        width: 4px;
        height: 20px;
    }

    .service-label {
        font-size: 18px;
    }

    .service-description {
        min-height: 350px;
    }

    .service-details h3 {
        font-size: 18px;
    }

    .service-details p {
        font-size: 15px;
    }

    /* Benefits Section */
    .benefits {
        padding: var(--spacing-xl) 0;
    }

    .benefit-card {
        padding: var(--spacing-md);
    }

    .benefit-card h3 {
        font-size: 19px;
    }

    /* Reporting Section */
    .reporting {
        padding: var(--spacing-xl) 0;
    }

    .reporting-header {
        margin-bottom: var(--spacing-xl);
    }

    .feature-details {
        margin-left: 0;
        padding-left: 0;
    }

    .feature-details h4 {
        font-size: 24px;
    }

    /* Self-Healing Section */
    .self-healing {
        padding: var(--spacing-xl) 0;
    }

    /* QA Challenges Section */
    .qa-challenges {
        padding: var(--spacing-xl) 0;
    }

    .challenge-toggles {
        padding: var(--spacing-sm);
    }

    .challenge-toggle .toggle-text {
        font-size: 16px;
    }

    .challenge-card {
        min-width: 200px;
        max-width: 250px;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .challenge-card h3 {
        font-size: 24px;
    }

    .challenge-card p {
        font-size: 15px;
    }

    /* Jobs Section */
    .careers {
        padding: var(--spacing-xl) 0;
    }

    .jobs-carousel-wrapper {
        padding: 0 50px;
    }

    .job-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Contact Section */
    .contact {
        padding: var(--spacing-xl) 0;
    }

    .contact-heading {
        font-size: 28px;
    }

    .contact-subheading {
        font-size: 16px;
    }

    .aperture-description h3 {
        font-size: 20px;
    }

    .aperture-description > p {
        font-size: 16px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .footer-left {
        align-items: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-logo img {
        height: 60px;
    }

    .footer-heading {
        font-size: 28px;
    }

    .footer-nav {
        justify-content: center;
    }
}

/* Mobile Small Screens */
@media (max-width: 480px) {
    /* Typography */
    .section-title {
        font-size: 28px;
    }

    .section-label {
        font-size: 12px;
    }

    .section-description {
        font-size: 15px;
    }

    /* Spacing */
    :root {
        --spacing-xxxl: 48px;
        --spacing-xxl: 40px;
        --spacing-xl: 32px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    /* Services Section */
    .service-description {
        min-height: 320px;
    }

    .service-details {
        padding: var(--spacing-md);
        min-height: 140px;
    }

    .service-details h3 {
        font-size: 17px;
    }

    .service-details p {
        font-size: 14px;
    }

    .service-label {
        font-size: 16px;
    }

    /* Benefits Section */
    .benefit-card h3 {
        font-size: 18px;
    }

    .benefit-card li {
        font-size: 15px;
    }

    /* Reporting Section */
    .feature-text {
        font-size: 18px;
    }

    .feature-details h4 {
        font-size: 20px;
    }

    /* Challenge Section */
    .challenge-toggle .toggle-text {
        font-size: 14px;
    }

    .challenge-card {
        min-width: 150px;
        max-width: 200px;
        padding: var(--spacing-md);
    }

    .challenge-card h3 {
        font-size: 20px;
    }

    .challenge-card p {
        font-size: 14px;
    }

    /* Jobs Section */
    .job-card h3 {
        font-size: 19px;
    }

    .job-card .job-description {
        font-size: 14px;
    }

    /* Contact Section */
    .contact-heading {
        font-size: 24px;
    }

    .contact-subheading {
        font-size: 15px;
    }

    .aperture-description,
    .contact-form {
        padding: var(--spacing-md);
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Footer */
    .footer-heading {
        font-size: 24px;
    }

    .footer-nav a,
    .footer-text {
        font-size: 14px;
    }

    .footer-logo img {
        height: 50px;
    }

    /* Client Logos */
    .client-logos-dark {
        gap: var(--spacing-md);
    }

    .client-logos-dark img {
        max-width: 80px;
    }
}
