/* INDEX PAGE CSS */
.hero-section {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel-track .hero-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
}

/* Hero Carousel Arrow Overrides */
.hero-section .carousel-prev,
.hero-section .carousel-next {
    background: transparent;
    width: auto;
    height: auto;
}

.hero-section .carousel-prev:hover,
.hero-section .carousel-next:hover {
    background: transparent;
}

.hero-section .carousel-prev .material-symbols-outlined,
.hero-section .carousel-next .material-symbols-outlined {
    font-size: clamp(2rem, 8vw, 4rem);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(40, 57, 135, 0.2);
    /* primary/20 */
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding: 0 var(--margin-page);
    width: 100%;
}

@media (min-width: 768px) {
    .hero-content-wrapper {
        width: 75%;
    }
}

.hero-box {
    background-color: rgba(0, 5, 23, 0.6);
    padding: clamp(1.5rem, 5vw, 3rem);
    display: inline-block;
    border-radius: 20px;
    max-width: 100%;
}

.hero-title {
    color: var(--on-primary);
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 42rem;
    margin-bottom: clamp(1rem, 4vw, 2rem);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary,
.btn-outline,
.btn-cta-primary,
.btn-cta-outline {
    padding: 1.25rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: #fd7630;
    /* secondary-container */
    color: #5f2200;
    /* on-secondary-container */
}

.btn-primary:hover {
    background-color: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--on-primary);
    color: var(--on-primary);
}

.btn-outline:hover {
    background-color: var(--on-primary);
    color: var(--primary);
}

/* METRICS BAR */
.metrics-bar {
    background-color: #0d1e3d;
    /* primary-container */
    padding: 3rem var(--margin-page);
    border-bottom: 4px solid var(--secondary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #7786ab;
    /* on-primary-container */
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--on-primary);
}

/* PILLARS SECTION */
.pillars-section {
    padding: var(--section-gap) var(--margin-page);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-kicker {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    position: relative;
    border: none;
    /* Removed old borders */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 36rem;
    overflow: hidden;
}

.pillar-img-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pillar-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.pillar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-content {
    position: relative;
    z-index: 10;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.pillar-title {
    font-size: 2.7rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid white;
    padding-bottom: 0.5rem;
    align-self: flex-start;
}

.pillar-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pillar-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 1.5rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pillar-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: white;
    margin-bottom: 0.5rem;
}

.pillar-link {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

/* TECH SPECS SECTION */
.tech-specs-section {
    background-color: #F8F9FA;
    /* surface-ice */
    padding: var(--section-gap) var(--margin-page);
    border-top: 1px solid #E2E5E7;
    border-bottom: 1px solid #E2E5E7;
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .tech-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tech-specs-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .tech-specs-title {
        font-size: 3rem;
    }
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.spec-card {
    background-color: white;
    padding: 1.5rem;
    border: 1px solid #c5c6cf;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.spec-card.orange-accent {
    border-top: 4px solid var(--secondary);
}

.spec-icon {
    font-size: 1.875rem;
    color: var(--primary);
}

.spec-icon.orange {
    color: var(--secondary);
}

.spec-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.spec-text {
    color: #44474e;
    margin: 0;
}

.tech-specs-image-wrapper {
    position: relative;
}

.tech-specs-image {
    width: 100%;
    height: auto;
    border: 1px solid #c5c6cf;
    transition: filter 0.5s;
}

.tech-specs-image:hover {}

.accuracy-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background-color: var(--secondary);
    padding: 2rem;
    display: none;
}

@media (min-width: 768px) {
    .accuracy-badge {
        display: block;
    }
}

.accuracy-number {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.accuracy-text {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
}

/* BOTTOM SHARED BACKGROUND (CTA + Footer on Index) */
.bottom-bg-wrapper {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../assets/images/index/cta_full.jpg');
    background-size: cover;
    background-position: bottom center;
}

.bottom-bg-wrapper .site-footer {
    background-color: transparent !important;
}

/* CTA SECTION */
.cta-section {
    padding: var(--section-gap) var(--margin-page);
    background: transparent;
    color: var(--on-primary);
    text-align: center;
}

.cta-container {
    max-width: 56rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-desc {
    font-size: 1.25rem;
    color: #7786ab;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn-cta-primary {
    background-color: #d32f2f;
    color: #ffffff;
    border: 2px solid white;
}

.btn-cta-primary:hover {
    background-color: #b71c1c;
    color: white;
}

.btn-cta-outline {
    background: transparent;
    border: 1px solid #c5c6cf;
    /* outline-variant */
    color: var(--on-primary);
}

.btn-cta-outline:hover {
    background-color: var(--on-primary);
    color: var(--primary);
}