/* =====================================================
   BALKAy.net - Insurance CRM tanıtım & canlı demo sayfası
   Ana tasarım sistemi (style.css) değişkenlerini kullanır;
   koyu ve aydınlık temada aynı şekilde çalışır.
   ===================================================== */

.cx-section { padding: 96px 0; position: relative; }
.cx-alt { background: var(--bg-secondary); }
.cx-narrow { max-width: 860px; }
.cx-muted { color: var(--text-secondary); line-height: 1.7; }
.cx-h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.2; margin: 4px 0 16px; }
.cx-h2 .gradient-text, .cx-hero h1 .gradient-text {
    background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Hero ---------- */
.cx-hero { padding: 140px 0 90px; position: relative; overflow: hidden; }
.cx-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 80% 10%, rgba(16, 185, 129, 0.14), transparent 50%),
                radial-gradient(ellipse at 10% 90%, rgba(99, 102, 241, 0.12), transparent 50%);
}
.cx-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; position: relative; }
.cx-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.1; margin: 20px 0 20px; letter-spacing: -0.02em; }
.cx-lead { font-size: 1.12rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 28px; }
.cx-lead strong { color: var(--text-primary); }
.cx-hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin-top: 36px; }
.cx-hero-stats b { display: block; font-size: 1.8rem; font-weight: 800; background: var(--gradient-cool); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cx-hero-stats span { font-size: 0.8rem; color: var(--text-muted); }
.cx-hero-visual { position: relative; }

.cx-browser {
    margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-secondary);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.cx-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-glass); border-bottom: 1px solid var(--divider); }
.cx-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f43f5e; opacity: .8; }
.cx-browser-bar i:nth-child(2) { background: #f59e0b; }
.cx-browser-bar i:nth-child(3) { background: #10b981; }
.cx-browser-bar span { margin-left: 12px; font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-browser img { display: block; width: 100%; height: auto; }
.cx-hero-visual .cx-browser { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s ease; }
.cx-hero-visual:hover .cx-browser { transform: none; }

.cx-float {
    position: absolute; padding: 10px 16px; border-radius: 12px; font-size: 0.82rem; color: var(--text-secondary);
    background: var(--bg-card-hover); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px); animation: cxFloat 5s ease-in-out infinite;
}
.cx-float b { color: var(--text-primary); }
.cx-float-a { left: -24px; bottom: -18px; }
.cx-float-b { right: -12px; top: -18px; animation-delay: -2.5s; }
@keyframes cxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Neden ---------- */
.cx-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cx-why-card, .cx-module {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 28px; transition: var(--transition);
}
.cx-why-card:hover, .cx-module:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.cx-why-card h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.cx-why-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }
.cx-ico {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
}
.cx-ico.sm { width: 42px; height: 42px; font-size: 1.2rem; border-radius: 12px; flex-shrink: 0; }

/* ---------- Ekran turu ---------- */
.cx-tour { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.cx-tour-list {
    display: flex; flex-direction: column; gap: 4px; max-height: 640px; overflow-y: auto; padding-right: 6px;
    scrollbar-width: thin;
}
.cx-tab {
    all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
    padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; transition: var(--transition);
}
.cx-tab:hover { background: var(--bg-glass); }
.cx-tab:focus-visible { outline: 2px solid var(--accent-indigo); outline-offset: 2px; }
.cx-tab.active { background: var(--bg-card); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.cx-tab-group { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.cx-tab-title { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.cx-tab.active .cx-tab-group { color: var(--accent-emerald); }

.cx-tour-view { min-width: 0; }
.cx-zoomable { cursor: zoom-in; }
.cx-zoomable img { transition: opacity .25s ease; }
.cx-zoomable.fade img { opacity: .25; }
.cx-tour-caption { padding: 22px 4px 0; }
.cx-tour-caption h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.cx-tour-caption p { color: var(--text-secondary); line-height: 1.7; max-width: 760px; min-height: 3.4em; }
.cx-chip {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase; color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25);
}
.cx-tour-nav { display: flex; align-items: center; gap: 14px; margin-top: 16px; color: var(--text-muted); font-size: 0.85rem; }

.cx-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.cx-thumb {
    all: unset; box-sizing: border-box; cursor: zoom-in; border-radius: 12px; overflow: hidden; position: relative;
    border: 1px solid var(--border-color); background: var(--bg-card); transition: var(--transition);
}
.cx-thumb:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.cx-thumb:focus-visible { outline: 2px solid var(--accent-indigo); outline-offset: 2px; }
.cx-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 528; object-fit: cover; }
.cx-thumb span { display: block; padding: 10px 12px; font-size: 0.82rem; font-weight: 600; }

/* ---------- Modüller ---------- */
.cx-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cx-module-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cx-module-head h3 { font-size: 1.05rem; }
.cx-module ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cx-module li { position: relative; padding-left: 20px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
.cx-module li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gradient-cool); }

/* ---------- Roller & teknik ---------- */
.cx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.cx-roles { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.cx-role {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border-color);
}
.cx-role b { display: block; font-size: 0.95rem; }
.cx-role small { color: var(--text-muted); font-size: 0.82rem; }
.cx-lvl {
    width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-weight: 800; color: #fff; background: var(--gradient-main);
}

/* ---------- Demo ---------- */
.cx-demo::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 90% 30%, rgba(16, 185, 129, 0.1), transparent 55%);
}
.cx-demo .container { position: relative; }
.cx-demo-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.cx-demo-list li { display: flex; gap: 14px; align-items: flex-start; }
.cx-demo-list li > span {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25);
}
.cx-demo-list b { display: block; margin-bottom: 2px; }
.cx-demo-list small { color: var(--text-secondary); font-size: 0.88rem; }
.cx-demo-card { position: relative; }
.cx-consent { align-items: flex-start !important; gap: 10px; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; cursor: pointer; }
.cx-consent input { margin-top: 3px; flex-shrink: 0; }

.cx-loading { text-align: center; padding: 20px 0; }
.cx-loading h3 { margin: 18px 0 16px; }
.cx-spinner {
    width: 54px; height: 54px; margin: 0 auto; border-radius: 50%;
    border: 4px solid rgba(16, 185, 129, 0.15); border-top-color: var(--accent-emerald); animation: cxSpin 0.9s linear infinite;
}
@keyframes cxSpin { to { transform: rotate(360deg); } }
.cx-steps { list-style: none; text-align: left; display: inline-flex; flex-direction: column; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }
.cx-steps li::before { content: '○'; display: inline-block; width: 22px; color: var(--text-muted); }
.cx-steps li.doing { color: var(--text-primary); }
.cx-steps li.doing::before { content: '◔'; color: var(--accent-amber); }
.cx-steps li.done { color: var(--text-secondary); }
.cx-steps li.done::before { content: '✓'; color: var(--accent-emerald); font-weight: 700; }

.cx-ready { text-align: center; }
.cx-ready-icon { font-size: 2.6rem; }
.cx-ready h3 { margin: 8px 0 6px; }
.cx-cred { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 22px; text-align: left; }
.cx-cred div { padding: 12px 14px; border-radius: 10px; background: var(--input-bg); border: 1px solid var(--border-color); min-width: 0; }
.cx-cred dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); margin-bottom: 4px; }
.cx-cred dd { margin: 0; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cx-cred code { font-family: var(--font-mono); font-size: 0.86rem; white-space: nowrap; color: var(--accent-emerald); }
.cx-copy { all: unset; cursor: pointer; font-size: 0.75rem; color: var(--text-muted); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border-color); flex-shrink: 0; }
.cx-copy:hover { color: var(--text-primary); }
.cx-note { margin-top: 14px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.cx-note code { font-family: var(--font-mono); color: var(--text-secondary); }

/* ---------- SSS ---------- */
.cx-faq { display: flex; flex-direction: column; gap: 12px; }
.cx-faq details { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 0 22px; transition: var(--transition); }
.cx-faq details[open] { border-color: var(--border-glow); }
.cx-faq summary { cursor: pointer; list-style: none; padding: 20px 28px 20px 0; font-weight: 600; position: relative; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-indigo); transition: transform .2s; }
.cx-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.cx-faq p { padding: 0 0 20px; color: var(--text-secondary); line-height: 1.75; }

/* ---------- CTA ---------- */
.cx-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px;
    border-radius: 24px; border: 1px solid var(--border-glow);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(16, 185, 129, 0.12));
}
.cx-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.cx-cta p { color: var(--text-secondary); }
.cx-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Lightbox ---------- */
.cx-lightbox {
    position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: var(--overlay-bg); backdrop-filter: blur(6px); cursor: zoom-out;
}
.cx-lightbox[hidden] { display: none; }
.cx-lightbox figure { margin: 0; max-width: min(1400px, 100%); }
.cx-lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: var(--shadow-lg); margin: 0 auto; }
.cx-lightbox figcaption { text-align: center; margin-top: 14px; color: #e2e8f0; font-weight: 600; }
.cx-lb-close { all: unset; position: absolute; top: 16px; right: 22px; cursor: pointer; font-size: 2.2rem; color: #e2e8f0; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .cx-why, .cx-modules { grid-template-columns: repeat(2, 1fr); }
    .cx-tour { grid-template-columns: 1fr; }
    .cx-tour-list { flex-direction: row; max-height: none; overflow-x: auto; padding: 0 0 8px; }
    .cx-tab { flex-shrink: 0; }
}
@media (max-width: 1024px) {
    .cx-hero-grid, .cx-two { grid-template-columns: 1fr; gap: 48px; }
    .cx-hero-visual .cx-browser { transform: none; }
    .cx-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .cx-section { padding: 72px 0; }
    .cx-hero { padding: 110px 0 64px; }
    .cx-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .cx-why, .cx-modules { grid-template-columns: 1fr; }
    .cx-thumbs { grid-template-columns: repeat(2, 1fr); }
    .cx-float { display: none; }
    .cx-cta { padding: 32px 24px; }
    .cx-cred { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .cx-float, .cx-spinner { animation: none; }
    .cx-hero-visual .cx-browser { transform: none; }
}
