/* ==========================================================================
    1. HERO GLASSWARE
    ========================================================================== */

.hero-glassware {
    background: #000000;
    min-height: 120svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-glassware .hero-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center center;
    filter: contrast(1.08) brightness(0.9);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    opacity: 0.58;
    pointer-events: none;
    user-select: none;
}

.hero-glassware .hero-desktop {
    display: block !important;
}

.hero-glassware .hero-mobile {
    display: none !important;
}

.hero-glassware::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.22) 0%,
            rgba(0,0,0,0.08) 42%,
            rgba(0,0,0,0.48) 100%
        );
}

.hero-glassware .hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 980px;
    padding: 80px 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-glassware .hero-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.04em;
    margin: 0 0 18px;
    color: #f5f5f7;
    text-shadow: 0 4px 30px rgba(0,0,0,0.45);
}

.hero-glassware .hero-sub {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.015em;
    margin: 0 auto;
    max-width: 700px;
    color: #b5b5ba;
    text-shadow: 0 2px 18px rgba(0,0,0,0.7);
}

@media (min-width: 1200px) {

    .hero-glassware .hero-ring {
        object-position: center center;
    }

    .hero-glassware .hero-content {
        transform: translateY(-2vh);
    }
}

@media (max-width: 734px) {

    .hero-glassware {
        min-height: 100svh;
        padding: 40px 16px;
    }

    .hero-glassware .hero-desktop {
        display: none !important;
    }

    .hero-glassware .hero-mobile {
        display: block !important;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        opacity: 0.52;
        filter: contrast(1.06) brightness(0.84);
    }

    .hero-glassware::after {
        background:
            linear-gradient(
                to bottom,
                rgba(0,0,0,0.26) 0%,
                rgba(0,0,0,0.12) 40%,
                rgba(0,0,0,0.58) 100%
            );
    }

    .hero-glassware .hero-content {
        max-width: 500px;
        padding: 40px 16px;
        margin: 0 auto;
    }

    .hero-glassware .hero-title {
        font-size: 36px;
        line-height: 1.1;
        letter-spacing: -0.035em;
        margin-bottom: 14px;
    }

    .hero-glassware .hero-sub {
        max-width: 430px;
        font-size: 16px;
        line-height: 1.5;
        color: #b0b0b5;
    }
}


/* ==========================================================================
    2. SCIENTIFIC OUTPUT
    ========================================================================== */

.scientific-output {
    background: #000000;
    padding: 72px 0 48px;
    position: relative;
    box-sizing: border-box;
}

.scientific-output:first-of-type {
    padding-top: 64px;
}

.apple-header {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 26px;
    padding: 0 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.header-left {
    width: 100%;
}

.category-main-title {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    color: #86868b;
    letter-spacing: -0.01em;
    margin-bottom: 5px;
    display: block;
}

.brand-title-badge {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.2;
    color: #f5f5f7;
}

.output-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
}

.apple-slider-container {
    display: flex;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 22px;
    scrollbar-width: none;
    padding: 20px;
    margin: 0 -20px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.apple-slider-container::-webkit-scrollbar {
    display: none;
}

.product-card-luxury {
    flex: 0 0 340px;
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    box-sizing: border-box;
}

.card-link-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    text-decoration: none;
    background: #161617;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    transition:
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s ease;
}

.product-card-luxury:hover .card-link-wrapper {
    box-shadow: 0 14px 34px rgba(0,0,0,0.58);
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.18);
}


/* ==========================================================================
    CARD IMAGE — HEIGHT ONLY / 9:16 / NO CROP
    ========================================================================== */

.card-visual {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #1d1d1f;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.card-visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover; /* Sasa rubah ke cover biar FULLSCREEN tanpa celah */
    object-position: center center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card-luxury:hover .card-visual img {
    transform: scale(1.045);
}

.card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    box-sizing: border-box;
}

.card-info .brand-badge {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-info h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: #f5f5f7;
    margin: 0 0 12px;
}

.lab-stat {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: #2997ff;
    display: block;
    margin-bottom: 12px;
}

.card-desc {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: #86868b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.nav-btn {
    position: absolute;
    top: 43%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(40,40,42,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #f5f5f7;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.nav-btn:hover {
    background: rgba(60,60,64,0.96);
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(255,255,255,0.18);
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}


/* ==========================================================================
    3. CORE GLASSWARE SYSTEMS
    ========================================================================== */

.reagent-section {
    padding: 72px 0 80px;
    background: #000000;
    box-sizing: border-box;
}

.reagent-section .apple-header {
    margin-bottom: 26px;
}

.reagent-grid-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    box-sizing: border-box;
}

.reagent-grid-mesh {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 20px 0 0;
    width: 100%;
    box-sizing: border-box;
}

.reagent-grid-mesh .product-card-luxury {
    flex: none !important;
    width: 100%;
    max-width: none;
}

.reagent-grid-mesh .card-link-wrapper {
    height: 100%;
}

.reagent-grid-mesh .card-desc {
    -webkit-line-clamp: 4;
}

@media (min-width: 1100px) {

    .reagent-grid-mesh {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
    4. APPLICATION VISUAL
    ========================================================================== */

.app-visual {
    width: 100%;
    background: #000000;
    padding: 96px 0 0;
    text-align: left;
    background: linear-gradient(
        to bottom,
        #000000 0%,
        #090909 55%,
        #161617 100%
    );
    box-sizing: border-box;
}

.app-visual__header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 48px;
    box-sizing: border-box;
    text-align: left;
}

.app-visual__title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #f5f5f7;
    margin: 0 0 12px;
}

.app-visual__subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #86868b;
    margin: 0;
}

.app-visual__subtitle .dot {
    margin: 0 12px;
    color: #424245;
}

.app-visual__container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    position: relative;
}

.app-visual__container img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6));
}


/* ==========================================================================
    5. CLOSING MANIFESTO
    ========================================================================== */

.closing-manifesto {
    background: #000000;
    padding: 160px 5% 120px;
    text-align: center;
    box-sizing: border-box;
}

.closing-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.closing-text {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: #f5f5f7;
    margin: 0 0 24px;
}

.closing-text .accent {
    background: linear-gradient(
        180deg,
        #f5f5f7 0%,
        #a1a1a6 45%,
        #6e6e73 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0071E3;
    color: #fff;
    padding: 12px 28px;
    border-radius: 980px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.022em;
    text-decoration: none;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.btn-primary:hover {
    background: #0077ED;
    transform: translateY(-1px);
}


/* ==========================================================================
    6. TABLET
    ========================================================================== */

@media (max-width: 1024px) {

    .apple-header {
        padding: 0 48px;
    }

    .output-wrapper {
        padding: 0 4%;
    }

    .reagent-grid-container {
        padding: 0 4%;
    }

    .product-card-luxury {
        flex-basis: 320px;
    }

    .card-visual {
        height: 440px;
    }

    .nav-btn.prev {
        left: 12px;
    }

    .nav-btn.next {
        right: 12px;
    }
}


/* ==========================================================================
    7. MOBILE
    ========================================================================== */

@media (max-width: 734px) {

    .scientific-output {
        padding: 60px 0 48px;
    }

    .scientific-output:first-of-type {
        padding-top: 52px;
    }

    .apple-header {
        margin-bottom: 18px;
        padding: 0 20px 8px;
    }

    .category-main-title {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 5px;
    }

    .brand-title-badge {
        font-size: 22px;
        line-height: 1.2;
    }

    .output-wrapper {
        margin: 0 auto;
        padding: 0 16px;
    }

    .apple-slider-container {
        gap: 16px;
        padding: 12px 4px 24px;
        margin: 0;
        scroll-padding-left: 4px;
    }

    .product-card-luxury {
        flex: 0 0 300px;
    }

    .card-link-wrapper {
        border-radius: 16px;
    }

    .card-visual {
        height: 400px;
        padding: 0;
    }

    .card-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Sasa rubah ke cover buat mobile juga */
        object-position: center center;
    }

    .card-info {
        padding: 20px;
    }

    .card-info h3 {
        font-size: 20px;
        line-height: 1.3;
    }

    .lab-stat {
        font-size: 13px;
    }

    .card-desc {
        font-size: 14px;
        line-height: 1.5;
    }

    .nav-btn {
        position: absolute;
        top: auto;
        bottom: -32px;
        width: 44px;
        height: 44px;
        transform: translateX(-50%);
    }

    .nav-btn.prev {
        left: calc(50% - 26px);
    }

    .nav-btn.next {
        left: calc(50% + 26px);
        right: auto;
    }

    .nav-btn:hover {
        transform: translateX(-50%) scale(1.05);
    }

    .reagent-section {
        padding: 60px 0 72px;
    }

    .reagent-section .apple-header {
        margin-bottom: 16px;
    }

    .reagent-grid-container {
        padding: 0 20px;
    }

    .reagent-grid-mesh {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 12px 0 0;
    }

    .reagent-grid-mesh .product-card-luxury {
        width: 100%;
    }

    .reagent-grid-mesh .card-visual {
        height: 400px;
    }

    .app-visual {
        padding: 64px 0 0;
    }

    .app-visual__header {
        margin: 0 0 32px;
        padding: 0 24px;
    }

    .app-visual__title {
        font-size: 32px;
        line-height: 1.15;
    }

    .app-visual__subtitle {
        font-size: 16px;
        line-height: 1.5;
    }

    .app-visual__subtitle .dot {
        margin: 0 8px;
    }

    .closing-manifesto {
        padding: 100px 5% 80px;
    }

    .closing-text {
        font-size: 2.5rem;
        letter-spacing: -0.04em;
    }
}


/* ==========================================================================
    8. SMALL MOBILE
    ========================================================================== */

@media (max-width: 420px) {

    .hero-glassware {
        padding: 32px 14px;
    }

    .hero-glassware .hero-content {
        padding: 32px 12px;
    }

    .hero-glassware .hero-title {
        font-size: 32px;
    }

    .hero-glassware .hero-sub {
        font-size: 15px;
    }

    .apple-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .output-wrapper {
        padding: 0 12px;
    }

    .apple-slider-container {
        padding-left: 4px;
        padding-right: 4px;
    }

    .product-card-luxury {
        flex-basis: 285px;
    }

    .reagent-grid-container {
        padding: 0 16px;
    }

    .card-visual {
        height: 380px;
    }

    .card-info {
        padding: 18px;
    }
}


/* ==========================================================================
    9. REDUCED MOTION
    ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .hero-glassware .hero-ring,
    .card-link-wrapper,
    .card-visual img,
    .nav-btn,
    .btn-primary {
        transition: none;
    }

    .product-card-luxury:hover .card-link-wrapper {
        transform: none;
    }

    .product-card-luxury:hover .card-visual img {
        transform: none;
    }
}