/* ClearPro Homepage — Corporate Premium */

.cp-home {
    background: #050505;
    color: #f5f5f5;
}

.cp-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #cfd72b;
    margin-bottom: 14px;
}

.cp-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.cp-section-head h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.cp-section-head p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

/* Hero */
.cp-hero {
    position: relative;
    min-height: calc(100vh - 60px);
    max-height: 920px;
    overflow: hidden;
    background: #000;
}

.cp-hero-slider {
    position: absolute;
    inset: 0;
}

.cp-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.cp-hero-slide.is-active {
    opacity: 1;
}

.cp-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.cp-hero-slide.is-active img {
    transform: scale(1);
}

.cp-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.25) 100%),
                linear-gradient(180deg, transparent 55%, rgba(5,5,5,1) 100%);
}

.cp-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100vh - 60px);
    max-height: 920px;
    padding: 0 20px 80px;
}

.cp-hero-content h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 16px;
    max-width: 720px;
    letter-spacing: -0.03em;
}

.cp-hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.cp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cp-btn-primary {
    background: #cfd72b;
    color: #000;
    border: 1px solid #cfd72b;
}

.cp-btn-primary:hover {
    background: #e2eb4a;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(207, 215, 43, 0.22);
}

.cp-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}

.cp-btn-outline:hover {
    border-color: #cfd72b;
    color: #cfd72b;
}

.cp-hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.cp-hero-dot {
    width: 36px;
    height: 3px;
    border: none;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.cp-hero-dot.is-active {
    background: #cfd72b;
    width: 52px;
}

/* Stats */
.cp-stats {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 36px 0;
}

.cp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cp-stat {
    text-align: center;
    padding: 12px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.cp-stat:last-child {
    border-right: none;
}

.cp-stat strong {
    display: block;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #cfd72b;
    margin-bottom: 6px;
    font-weight: 700;
}

.cp-stat span {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* Intro */
.cp-intro {
    padding: 96px 0;
    background: radial-gradient(ellipse at top, rgba(207,215,43,0.04), transparent 55%), #050505;
}

.cp-intro-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.cp-intro-card p {
    color: rgba(255,255,255,0.72);
    font-size: 1.08rem;
    line-height: 1.85;
    margin: 0;
}

/* Products */
.cp-products {
    padding: 96px 0;
    background: #080808;
}

.cp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.cp-product-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cp-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(207, 215, 43, 0.35);
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
}

.cp-product-image {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cp-product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%);
}

.cp-product-body {
    padding: 22px 20px 24px;
}

.cp-product-tag {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cfd72b;
    margin-bottom: 8px;
    display: block;
}

.cp-product-body h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.cp-product-link {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cp-product-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.cp-product-card:hover .cp-product-link::after {
    transform: translateX(4px);
}

.cp-product-link:hover {
    color: #cfd72b;
}

/* Banner */
.cp-banner {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.cp-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.cp-banner-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 60px 20px;
}

.cp-banner-content h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 12px;
}

.cp-banner-content p {
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.7;
}

/* About / Performance */
.cp-about {
    padding: 96px 0;
    background: #050505;
}

.cp-about-wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0d0d0d;
    max-width: 1320px;
    margin: 0 auto;
}

.cp-about-visual {
    min-height: 560px;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}

.cp-about-panel {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cp-about-panel .subheading {
    color: #cfd72b;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.cp-about-panel h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 16px;
}

.cp-about-panel p {
    color: rgba(255,255,255,0.68);
    line-height: 1.75;
    margin-bottom: 28px;
}

.cp-feature-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cp-feature-tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.cp-feature-tab:hover,
.cp-feature-tab.is-active {
    background: rgba(207, 215, 43, 0.12);
    border-color: #cfd72b;
    color: #cfd72b;
}

/* Technology */
.cp-technology {
    padding: 96px 0;
    background: linear-gradient(180deg, #080808 0%, #050505 100%);
}

.cp-tech-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.cp-tech-tab {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.75);
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cp-tech-tab:hover,
.cp-tech-tab.active {
    background: #cfd72b;
    border-color: #cfd72b;
    color: #000;
}

.cp-tech-panel {
    display: none;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.cp-tech-panel.active {
    display: block;
}

.cp-tech-panel h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.cp-tech-panel p {
    color: rgba(255,255,255,0.68);
    line-height: 1.8;
    margin: 0;
}

/* Certificates */
.cp-certificates {
    padding: 96px 0;
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cp-cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cp-cert-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #0d0d0d;
    transition: all 0.3s ease;
}

.cp-cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(207, 215, 43, 0.3);
}

.cp-cert-image {
    position: relative;
    aspect-ratio: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-cert-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cp-cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #cfd72b;
    font-size: 1.5rem;
}

.cp-cert-card:hover .cp-cert-overlay {
    opacity: 1;
}

.cp-cert-title {
    text-align: center;
    padding: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 0;
}

/* Partners */
.cp-partners {
    padding: 64px 0 80px;
    background: #080808;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cp-partners-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.85;
}

.cp-partners-inner img {
    max-height: 56px;
    width: auto;
    filter: grayscale(1) brightness(1.2);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.cp-partners-inner img:hover {
    filter: none;
    opacity: 1;
}

/* Instagram popup */
.instagram-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 12000;
    padding: 20px;
}

.instagram-popup-overlay.show { display: flex; }

.instagram-popup-box {
    width: 100%;
    max-width: 420px;
    background: #111;
    border: 1px solid rgba(207, 215, 43, 0.25);
    border-radius: 16px;
    text-align: center;
    padding: 32px 28px;
    position: relative;
    color: #fff;
}

.instagram-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.instagram-popup-icon {
    font-size: 42px;
    color: #cfd72b;
    margin-bottom: 12px;
}

.instagram-popup-box h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.instagram-popup-box p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
}

.instagram-popup-button {
    display: inline-block;
    background: #cfd72b;
    color: #000;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 24px;
    text-decoration: none;
}

/* Certificate modal */
#certificateModal .modal-content {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

#certificateModal .modal-header .close { color: #fff; }
#certificateModal .modal-body p { padding: 1.5rem; line-height: 1.7; }

/* Responsive */
@media (max-width: 1199px) {
    .cp-product-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .cp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .cp-about-wrap { grid-template-columns: 1fr; }
    .cp-about-visual { min-height: 320px; }
}

@media (max-width: 768px) {
    .cp-hero-content { padding-bottom: 64px; }
    .cp-intro, .cp-products, .cp-about, .cp-technology, .cp-certificates { padding: 64px 0; }
    .cp-intro-card { padding: 28px 20px; }
    .cp-product-grid, .cp-cert-grid { grid-template-columns: 1fr; }
    .cp-feature-tabs { grid-template-columns: 1fr; }
    .cp-tech-tabs { flex-direction: column; }
    .cp-tech-tab { width: 100%; }
    .cp-banner { min-height: 300px; }
}
