.index-page {
    background: #ffffff;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.index-hero {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.2rem 1rem 0.55rem;
}

.index-hero-copy {
    max-width: 680px;
}

.index-kicker {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.index-hero h1,
.index-section-heading h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.index-hero-copy > p:last-child {
    color: #4d626b;
    font-size: 1.125rem;
    line-height: 1.35;
    margin-top: 0.9rem;
    max-width: 34rem;
}

.index-scan-scene {
    align-items: center;
    display: none;
    justify-content: center;
    min-height: 9rem;
    position: relative;
}

.index-scan-scene::before {
    background: #f8f9fa;
    border: 1px solid rgba(44, 62, 80, 0.08);
    content: "";
    height: 8.8rem;
    position: absolute;
    transform: rotate(-7deg);
    width: min(72vw, 13rem);
}

.index-label-card {
    aspect-ratio: 1.56;
    background: #ffffff;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(44, 62, 80, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    max-width: 210px;
    overflow: hidden;
    padding: clamp(1rem, 4vw, 2rem);
    position: relative;
    transform: rotate(3deg);
    width: min(62vw, 100%);
}

.index-label-top,
.index-label-lines,
.index-label-code {
    position: relative;
    z-index: 1;
}

.index-label-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.index-label-top span:first-child {
    background: var(--primary);
    border-radius: 999px;
    height: 0.75rem;
    width: 42%;
}

.index-label-lines {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    margin-bottom: 0.75rem;
}

.index-label-lines span {
    animation: index-line-pulse 1.8s ease-in-out infinite;
    background: rgba(44, 62, 80, 0.16);
    border-radius: 999px;
    height: 0.32rem;
}

.index-label-lines span:nth-child(1) {
    width: 84%;
}

.index-label-lines span:nth-child(2) {
    animation-delay: 0.12s;
    width: 54%;
}

.index-label-lines span:nth-child(3) {
    animation-delay: 0.24s;
    width: 72%;
}

.index-label-lines span:nth-child(4) {
    animation-delay: 0.36s;
    width: 46%;
}

.index-label-code {
    display: grid;
    gap: 0.28rem;
    grid-template-columns: 1.2fr 0.7fr 1fr 0.9fr 1.1fr;
}

.index-label-code span {
    background: rgba(230, 126, 34, 0.34);
    border-radius: 4px;
    height: 0.9rem;
}

.index-label-code span:nth-child(even) {
    background: rgba(44, 62, 80, 0.18);
}

.index-label-chip {
    align-items: center;
    background: var(--text-primary);
    border-radius: 999px;
    color: #ffffff;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    height: 1.8rem;
    justify-content: center;
    position: absolute;
    right: clamp(0.72rem, 3.2vw, 1.55rem);
    top: clamp(0.72rem, 3.2vw, 1.55rem);
    width: 1.8rem;
    z-index: 1;
}

.index-label-scan {
    animation: index-label-scan 2.4s ease-in-out infinite;
    background: rgba(230, 126, 34, 0.9);
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.52);
    height: 3px;
    left: 1rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 2;
}

.index-samples {
    border-top: 1px solid var(--border-color);
    padding: 0.65rem 0.625rem 2.5rem;
}

.index-section-heading {
    margin: 0 auto 0.75rem;
    max-width: 820px;
    text-align: center;
}

.index-section-heading h2 {
    font-size: 1.6rem;
}

.index-section-heading > p:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.5rem auto 0;
    max-width: 42rem;
}

.index-sample-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1180px;
}

.index-sample-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.index-sample-card:hover,
.index-sample-card:focus-visible {
    border-color: rgba(230, 126, 34, 0.55);
    box-shadow: 0 10px 28px rgba(44, 62, 80, 0.14);
    outline: none;
    transform: translateY(-2px);
}

.index-sample-image {
    aspect-ratio: 1;
    background: #ffffff;
    display: block;
    object-fit: contain;
    padding: 0.45rem;
    width: 100%;
}

.index-sample-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.32rem;
    padding: 0.56rem;
}

.index-sample-body h3 {
    display: -webkit-box;
    font-size: 0.78rem;
    line-height: 1.2;
    margin: 0;
    min-height: 1.9rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.index-sample-meta,
.index-sample-material {
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.25;
}

.index-sample-meta,
.index-sample-material {
    display: none;
}

.index-sample-status {
    color: var(--text-secondary);
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
}

@keyframes index-label-scan {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    10%, 88% {
        opacity: 1;
    }
    50% {
        transform: translateY(6.5rem);
    }
}

@keyframes index-line-pulse {
    0%, 100% {
        opacity: 0.42;
    }
    50% {
        opacity: 1;
    }
}

@media (min-width: 720px) {
    .index-hero {
        gap: 1rem;
        grid-template-columns: minmax(0, 1fr) 240px;
        padding: 1.6rem clamp(1rem, 5vw, 4rem) 1.2rem;
    }

    .index-hero h1 {
        font-size: 2.35rem;
    }

    .index-section-heading h2 {
        font-size: 2.35rem;
    }

    .index-hero-copy > p:last-child {
        font-size: 1.2rem;
    }

    .index-scan-scene {
        display: flex;
        justify-self: stretch;
        min-height: 10rem;
    }

    .index-samples {
        padding: 2rem clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem);
    }

    .index-section-heading {
        margin-bottom: 1.5rem;
    }

    .index-section-heading > p:last-child {
        font-size: 1rem;
        line-height: 1.55;
        margin-top: 1rem;
    }

    .index-sample-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .index-label-card {
        max-width: 210px;
        width: 100%;
    }

    .index-sample-image {
        padding: 0.75rem;
    }

    .index-sample-body {
        gap: 0.55rem;
        padding: 0.9rem;
    }

    .index-sample-body h3 {
        display: block;
        font-size: 1rem;
        line-height: 1.25;
        min-height: 0;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .index-sample-material {
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .index-sample-material {
        display: block;
    }

}

@media (min-width: 900px) {
    .index-hero {
        gap: 1.5rem;
        grid-template-columns: minmax(0, 1fr) 260px;
        padding: 1.75rem clamp(1rem, 5vw, 4rem) 1.25rem;
    }

    .index-hero h1 {
        font-size: 2.8rem;
    }

    .index-section-heading h2 {
        font-size: 2.8rem;
    }

    .index-label-card {
        max-width: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index-label-scan,
    .index-label-lines span,
    .index-sample-card {
        animation: none;
        transition: none;
    }
}
