/* ============================================================
   CyberIT CRM presentation page
   Uses global design tokens from main.css (--primary, --secondary,
   --accent, --glass-bg, --glass-border, --glow-cyan, --glow-magenta)
   ============================================================ */

.crm-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px 90px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- HERO ---------- */
.crm-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 26px;
    padding: 30px 0 20px;
}

.crm-hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    animation: crmBadgePulse 3.5s ease-in-out infinite;
}
@keyframes crmBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.18); }
    50% { box-shadow: 0 0 26px 2px rgba(0, 240, 255, 0.28); }
}

.crm-hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 18px;
    background: linear-gradient(120deg, #ffffff 0%, #bfefff 45%, #ff9ff0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.crm-hero-subtitle {
    font-size: 1.06rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin: 0 0 28px;
}

.crm-hero-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.crm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: 1px solid transparent;
}
.crm-btn-primary {
    color: #05121a;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.28);
}
.crm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255, 0, 212, 0.34);
}
.crm-btn-ghost {
    color: #fff;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.crm-btn-ghost:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.06);
}

/* Hero media */
.crm-hero-media {
    position: relative;
    border-radius: 20px;
}
.crm-hero-media img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    animation: crmFloat 7s ease-in-out infinite;
}
.crm-hero-glow {
    position: absolute;
    inset: -18% -12%;
    background: radial-gradient(circle at 30% 30%, var(--glow-cyan), transparent 60%),
                radial-gradient(circle at 70% 70%, var(--glow-magenta), transparent 60%);
    filter: blur(42px);
    opacity: 0.85;
    z-index: 0;
    animation: crmGlowShift 9s ease-in-out infinite alternate;
}
@keyframes crmFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes crmGlowShift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, -3%) scale(1.06); }
}

/* ---------- Sections ---------- */
.crm-section {
    margin-top: 78px;
}
.crm-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}
.crm-section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.crm-section-subtitle {
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ---------- Feature grid ---------- */
.crm-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.crm-feature-card {
    position: relative;
    padding: 30px 26px;
    border-radius: 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.crm-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(0, 240, 255, 0.08), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.crm-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
}
.crm-feature-card:hover::before { opacity: 1; }

.crm-feature-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 18px;
    color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.22);
    position: relative;
    z-index: 1;
}
.crm-feature-icon svg { width: 26px; height: 26px; }
.crm-feature-card h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.16rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}
.crm-feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ---------- Video ---------- */
.crm-video-frame {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.crm-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ---------- Gallery ---------- */
.crm-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.crm-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.crm-gallery img:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- Pricing ---------- */
.crm-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}
.crm-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.crm-price-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}
.crm-price-featured {
    border-color: rgba(0, 240, 255, 0.5);
    background: linear-gradient(160deg, rgba(0, 240, 255, 0.08), rgba(255, 0, 212, 0.05));
    box-shadow: 0 26px 56px rgba(0, 240, 255, 0.18);
}
.crm-price-featured::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(130deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.55;
}
.crm-plan-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #05121a;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 20px rgba(255, 0, 212, 0.32);
    white-space: nowrap;
}
.crm-price-head {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 22px;
    margin-bottom: 22px;
}
.crm-price-head h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}
.crm-plan-tag {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 16px;
    min-height: 2.4em;
}
.crm-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
}
.crm-price-amount {
    font-family: 'Syne', sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.crm-price-suffix {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
}
.crm-price-custom {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
}
.crm-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    flex: 1 1 auto;
}
.crm-feature-list li {
    position: relative;
    padding: 9px 0 9px 30px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.crm-feature-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.14);
    border: 1px solid rgba(0, 240, 255, 0.4);
}
.crm-feature-list li::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 15px;
    width: 4px;
    height: 8px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.crm-card-btn {
    display: block;
    text-align: center;
    padding: 14px 22px;
    border-radius: 13px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.98rem;
    text-decoration: none;
    color: #fff;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.crm-card-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.45);
    background: rgba(0, 240, 255, 0.07);
}
.crm-card-btn-primary {
    color: #05121a;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.28);
}
.crm-card-btn-primary:hover {
    box-shadow: 0 16px 38px rgba(255, 0, 212, 0.34);
    background: linear-gradient(120deg, var(--primary), var(--secondary));
}

/* ---------- Try demo ---------- */
.crm-demo-grid {
    display: flex;
    justify-content: center;
}
.crm-demo-card {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 760px;
    padding: 30px 34px;
    border-radius: 20px;
    text-decoration: none;
    background: linear-gradient(130deg, rgba(0, 240, 255, 0.09), rgba(255, 0, 212, 0.06));
    border: 1px solid rgba(0, 240, 255, 0.25);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.crm-demo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 26px 54px rgba(0, 240, 255, 0.2);
}
.crm-demo-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
}
.crm-demo-icon svg { width: 34px; height: 34px; }
.crm-demo-body h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 8px;
}
.crm-demo-body p {
    font-size: 0.96rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 12px;
}
.crm-demo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}
.crm-demo-cta::after { content: '→'; transition: transform 0.25s ease; }
.crm-demo-card:hover .crm-demo-cta::after { transform: translateX(5px); }

/* ---------- Gallery modal ---------- */
.crm-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(3, 5, 12, 0.86);
    backdrop-filter: blur(10px);
}
.crm-gallery-modal.open { display: flex; }
.crm-gallery-modal-content {
    position: relative;
    max-width: 1100px;
    width: 100%;
}
.crm-gallery-modal-image {
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.crm-gallery-close,
.crm-gallery-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
}
.crm-gallery-close {
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
}
.crm-gallery-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
}
.crm-gallery-nav.prev { left: -18px; }
.crm-gallery-nav.next { right: -18px; }
.crm-gallery-close:hover,
.crm-gallery-nav:hover { background: rgba(0, 240, 255, 0.2); }
.crm-gallery-nav.prev:hover { transform: translateY(-50%) translateX(-3px); }
.crm-gallery-nav.next:hover { transform: translateY(-50%) translateX(3px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .crm-hero { grid-template-columns: 1fr; gap: 34px; }
    .crm-hero-media { order: -1; }
    .crm-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .crm-pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .crm-price-featured { order: -1; }
}
@media (max-width: 640px) {
    .crm-container { padding: 0 16px 70px; }
    .crm-feature-grid { grid-template-columns: 1fr; }
    .crm-gallery { grid-template-columns: 1fr; }
    .crm-demo-card { flex-direction: column; text-align: center; }
    .crm-gallery-close { top: 8px; right: 8px; }
    .crm-gallery-nav.prev { left: 6px; }
    .crm-gallery-nav.next { right: 6px; }
}
