/* ============================================================
   KPass Desktop — Redesign 2025
   ============================================================ */

/* Download Buttons */
.product-download-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 260px;
}

.product-download-button.mac {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-download-button.mac:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.product-download-button.windows.disabled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.product-download-button .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.product-download-button.windows.disabled .btn-icon {
    background: rgba(255, 255, 255, 0.05);
}

.product-download-button .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-download-button .btn-label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-download-button .btn-version {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* Hero */
.product-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    margin-top: -80px;
    overflow: hidden;
}

.product-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, #030b18 0%, #050e1e 40%, #04091a 100%);
}

.product-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.18) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.6;
}

.product-hero-glow {
    position: absolute;
    top: 30%;
    left: 35%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.06) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: kpass-d-glow-drift 8s ease-in-out infinite alternate;
}

@keyframes kpass-d-glow-drift {
    from { transform: translate(-50%, -50%) scale(1); }
    to   { transform: translate(-50%, -50%) scale(1.15); }
}

.product-hero-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.product-app-name {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

.product-app-name .kpass-title-icon {
    height: 1.6em;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.product-app-name .kpass-title-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.product-tagline {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.product-tagline .product-accent {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.product-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    align-self: center;
}

.product-hero-side .product-hero-media {
    width: 100%;
    margin-top: 0;
}

.product-hero-cta {
    justify-content: center;
    width: 100%;
}

/* Spec card (hero right side) */
.product-hero-media {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-self: center;
    margin-top: 4rem;
}

.product-spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.product-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.product-spec-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    white-space: nowrap;
}

.product-spec-value {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-align: right;
}

.product-spec-live {
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.product-spec-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    flex-shrink: 0;
    animation: kpass-d-pulse-green 2s ease-in-out infinite;
}

@keyframes kpass-d-pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Stats Bar */
.product-stats {
    background: #040c1a;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    padding: 1.1rem 0;
}

.product-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 920px;
    margin: 0 auto;
}

.product-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    position: relative;
    text-align: center;
}

.product-stat-item + .product-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(59, 130, 246, 0.2);
}

.product-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(147, 197, 253, 0.8);
    letter-spacing: 0.02em;
}

/* Section header (shared) */
.product-section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.product-section-title {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    letter-spacing: -0.025em;
}

.product-section-desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* Why Section */
.product-why {
    background: #f8fafc;
    padding: 5.5rem 0;
}

.product-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.product-why-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-why-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 35px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.product-why-icon {
    width: 3rem;
    height: 3rem;
    background: #dbeafe;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.product-why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.product-why-card p {
    font-size: 0.93rem;
    color: #64748b;
    line-height: 1.72;
    margin: 0;
}

/* Features Section — Bento Grid */
.product-features {
    background: #ffffff;
    padding: 5.5rem 0;
}

.product-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
}

.product-bento-item {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-bento-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.07);
}

/* Large featured cell (spans 2 cols) */
.product-bento-featured {
    grid-column: span 2;
    background: linear-gradient(150deg, #091e3a 0%, #0e2f5c 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.product-bento-featured:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.15);
}

.product-bento-featured .product-bento-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.product-bento-item.product-bento-featured h3 { color: #ffffff; }
.product-bento-item.product-bento-featured p  { color: rgba(255, 255, 255, 0.72); }

.product-bento-item.product-bento-featured .product-bento-list li {
    color: rgba(255, 255, 255, 0.6);
}

.product-bento-item.product-bento-featured .product-bento-list li::before {
    background: #93c5fd;
}

/* Wide secondary cell (spans 2 cols) */
.product-bento-wide {
    grid-column: span 2;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.product-bento-wide:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.1);
}

/* Icon */
.product-bento-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: #dbeafe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
    margin-bottom: 0.25rem;
}

.product-bento-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}

.product-bento-item p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.product-bento-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-bento-list li {
    font-size: 0.82rem;
    color: #475569;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.product-bento-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3b82f6;
}

/* Steps Section */
.product-steps {
    background: #f8fafc;
    padding: 5.5rem 0;
}

.product-steps-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

/* connecting line between circles */
.product-steps-track::before {
    content: '';
    position: absolute;
    top: calc(1.625rem - 1px);
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background: linear-gradient(90deg, #bfdbfe 0%, #e2e8f0 50%, #bfdbfe 100%);
    z-index: 1;
}

.product-step {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}

.product-step-connector {
    display: none;
}

.product-step-num {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 2;
}

.product-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.product-step p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* Security Section */
.product-security {
    background: #ffffff;
    padding: 5.5rem 0;
}

.product-security-card {
    background: linear-gradient(140deg, #030b18 0%, #071525 50%, #04091a 100%);
    border-radius: 28px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.product-security-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.product-security-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.product-security-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.product-security-badge {
    width: 4rem;
    height: 4rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    margin: 0 auto 1.75rem;
}

.product-security-inner h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.product-security-inner > p {
    font-size: 0.97rem;
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.product-security-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 1.75rem;
}

/* Download CTA Section */
.product-download {
    background: #f8fafc;
    padding: 5.5rem 0;
    text-align: center;
}

.product-download h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.product-download .product-download-desc {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

.product-download-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Windows disabled button on light backgrounds */
.product-download-btns .product-download-button.windows.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Support / Footer Section */
.product-support {
    background: #ffffff;
    padding: 4rem 0;
    border-top: 1px solid #f1f5f9;
}

.product-support-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.product-support-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.product-support-header p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto;
}

.product-support-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 440px));
    gap: 1rem;
    justify-content: center;
    max-width: 940px;
    margin: 0 auto;
}

a.product-support-item,
.product-support-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

a.product-support-item:hover {
    border-color: #bfdbfe;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    cursor: pointer;
}

.product-support-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #dbeafe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.product-support-body h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.product-support-body p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.product-unofficial-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0 auto;
    text-align: center;
}

.product-unofficial-note svg {
    flex-shrink: 0;
    color: #cbd5e1;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .product-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-hero-media {
        max-width: 540px;
        margin-top: 0;
    }

    .product-why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-bento-featured,
    .product-bento-wide {
        grid-column: span 2;
    }

    .product-security-card {
        padding: 3rem 2.5rem;
    }

    .product-support-list {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

}

@media (max-width: 768px) {
    .product-hero {
        min-height: auto;
        padding: 136px 0 52px;
    }

    .product-hero-inner {
        gap: 2rem;
    }

    .app-badge {
        font-size: 0.8rem;
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    .product-app-name {
        font-size: clamp(1.9rem, 7vw, 2.4rem);
        margin-bottom: 1.25rem;
    }

    .product-tagline {
        font-size: clamp(1.6rem, 6vw, 2.1rem);
        margin-bottom: 1.1rem;
    }

    .product-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .product-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .product-cta-row .product-download-button,
    .product-download-btns .product-download-button {
        width: 100%;
        min-width: unset;
        justify-content: center;
        padding: 0.55rem 1rem;
        border-radius: 10px;
        gap: 0.65rem;
    }

    .product-cta-row .product-download-button .btn-icon,
    .product-download-btns .product-download-button .btn-icon {
        width: 26px;
        height: 26px;
        border-radius: 7px;
    }

    .product-cta-row .product-download-button .btn-icon svg,
    .product-download-btns .product-download-button .btn-icon svg {
        width: 15px;
        height: 15px;
    }

    .product-cta-row .product-download-button .btn-label,
    .product-download-btns .product-download-button .btn-label {
        font-size: 0.82rem;
    }

    .product-cta-row .product-download-button .btn-version,
    .product-download-btns .product-download-button .btn-version {
        font-size: 0.68rem;
    }

    .product-download-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .product-hero-media {
        max-width: 100%;
        margin-top: 0;
    }

    .product-why-grid {
        grid-template-columns: 1fr;
    }

    .product-bento {
        grid-template-columns: 1fr;
    }

    .product-bento-featured,
    .product-bento-wide {
        grid-column: span 1;
    }

    .product-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 0.5rem;
    }

    .product-stat-item + .product-stat-item::before {
        display: none;
    }

    .product-steps-track {
        flex-direction: column;
        align-items: center;
        max-width: 360px;
        gap: 1.75rem;
    }

    .product-steps-track::before {
        display: none;
    }

    .product-step {
        padding: 0;
        width: 100%;
    }

    .product-security-card {
        padding: 2.25rem 1.5rem;
        border-radius: 20px;
    }

    .product-security-inner h2 {
        font-size: 1.5rem;
    }

}

@media (max-width: 480px) {
    .product-hero {
        padding: 120px 0 40px;
    }

    .product-app-name {
        font-size: clamp(1.75rem, 8vw, 2.15rem);
    }

    .product-app-name .kpass-title-icon {
        height: 1.4em;
    }

    .product-tagline {
        font-size: clamp(1.45rem, 7vw, 1.8rem);
        letter-spacing: -0.02em;
    }

    .product-desc {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .product-hero-media {
        padding: 1.1rem;
    }

    .product-spec-item {
        padding: 0.6rem 0.75rem;
        gap: 0.75rem;
    }

    .product-spec-label,
    .product-spec-value {
        font-size: 0.76rem;
    }

    .app-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
        text-align: center;
    }
}
