/* ============================================
   SapCod - Digital Marketing Page Styles
   Ultra Premium Design with Marketing Graphics
   ============================================ */

/* ===== Hero Section ===== */
.dm-hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 150px 0 80px; background: #fafbfc; overflow: hidden; isolation: isolate;
}
[data-theme="dark"] .dm-hero { background: #060610; }

.dm-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#dmCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.dm-hero-orb {
    position: absolute; border-radius: 50%; filter: blur(120px);
    opacity: 0.06; animation: dmOrbFloat 12s ease-in-out infinite;
}
.dm-hero-orb.dm-orb-1 { width: 500px; height: 500px; background: #f43f5e; top: -150px; right: -100px; }
.dm-hero-orb.dm-orb-2 { width: 400px; height: 400px; background: #f59e0b; bottom: -100px; left: -80px; animation-delay: 5s; }
@keyframes dmOrbFloat { 0%,100%{transform:translate(0,0)scale(1)} 50%{transform:translate(40px,-30px)scale(1.1)} }

.dm-hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(244,63,94,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(244,63,94,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 35%, transparent 70%);
}

.dm-analytics-bg {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(244,63,94,0.3) 14px, rgba(244,63,94,0.3) 15px),
                      repeating-linear-gradient(90deg, transparent, transparent 14px, rgba(245,158,11,0.3) 14px, rgba(245,158,11,0.3) 15px);
}

.dm-hero-content { position: relative; z-index: 1; text-align: center; max-width: 850px; margin: 0 auto; }

.dm-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 50px; margin-bottom: 24px;
    font-size: 0.8rem; font-weight: 600; color: #f43f5e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    animation: dmfadeUp 0.6s ease both;
}
[data-theme="dark"] .dm-hero-badge { background: #1a1a2e; border-color: #2a2a4a; }

.badge-pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: dmPulse 2s infinite; }
@keyframes dmPulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)} 50%{box-shadow:0 0 0 12px rgba(34,197,94,0)} }

.dm-hero-content h1 {
    font-size: 3.5rem; font-weight: 900; line-height: 1.12;
    color: #0f172a; margin-bottom: 18px; letter-spacing: -1.5px;
    animation: dmfadeUp 0.6s ease 0.1s both;
}
[data-theme="dark"] .dm-hero-content h1 { color: #f1f5f9; }

.dm-gradient {
    background: linear-gradient(90deg, #f43f5e, #f59e0b, #0066ff, #f43f5e);
    background-size: 300% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; animation: dmGradientFlow 3s ease infinite;
}
@keyframes dmGradientFlow { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.dm-hero-content p {
    font-size: 1.1rem; color: #64748b; line-height: 1.7;
    max-width: 600px; margin: 0 auto 30px;
    animation: dmfadeUp 0.6s ease 0.2s both;
}
[data-theme="dark"] .dm-hero-content p { color: #94a3b8; }

.dm-hero-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    animation: dmfadeUp 0.6s ease 0.3s both;
}

.dm-btn-primary {
    padding: 16px 32px; background: #f43f5e; color: #fff;
    border-radius: 14px; text-decoration: none; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.3s; box-shadow: 0 8px 30px rgba(244,63,94,0.25);
}
.dm-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(244,63,94,0.4); }

.dm-btn-outline {
    padding: 16px 30px; background: #fff; color: #f43f5e;
    border: 2px solid #e2e8f0; border-radius: 14px;
    text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s;
}
[data-theme="dark"] .dm-btn-outline { background: #1a1a2e; border-color: #2a2a4a; color: #fb7185; }
.dm-btn-outline:hover { border-color: #f43f5e; }

.dm-hero-stats {
    display: flex; gap: 30px; justify-content: center; margin-top: 40px;
    animation: dmfadeUp 0.6s ease 0.4s both;
}
.dm-stat { text-align: center; }
.dm-stat-icon { font-size: 1.5rem; margin-bottom: 4px; }
.dm-stat-val { font-size: 1.6rem; font-weight: 800; color: #f43f5e; }
.dm-stat-lbl { font-size: 0.75rem; color: #94a3b8; font-weight: 500; }

@keyframes dmfadeUp { from{opacity:0;transform:translateY(25px)} to{opacity:1;transform:translateY(0)} }

/* ===== Sections Common ===== */
.dm-services, .dm-process, .dm-tools, .dm-benefits, .dm-cta { padding: 100px 0; }
.dm-services, .dm-process { background: #fff; }
[data-theme="dark"] .dm-services, [data-theme="dark"] .dm-process { background: #0a0a1a; }
.dm-tools, .dm-benefits { background: #f8fafc; }
[data-theme="dark"] .dm-tools, [data-theme="dark"] .dm-benefits { background: #0e0e22; }

.dm-section-header { text-align: center; margin-bottom: 60px; }
.dm-chip {
    display: inline-block; padding: 8px 18px;
    background: rgba(244,63,94,0.06); border: 1px solid rgba(244,63,94,0.12);
    border-radius: 50px; font-size: 0.78rem; font-weight: 700;
    color: #f43f5e; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px;
}
.dm-section-header h2 { font-size: 2.6rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
[data-theme="dark"] .dm-section-header h2 { color: #e8e8f0; }
.dm-section-header h2 .highlight { color: #f43f5e; }
.dm-section-header p { color: #888; font-size: 1rem; }

/* ===== Services Showcase ===== */
.dm-services-showcase { display: flex; flex-direction: column; gap: 80px; }
.dm-service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.dm-service-block.reverse { direction: rtl; }
.dm-service-block.reverse .dm-service-info { direction: ltr; }
.dm-service-visual { position: relative; display: flex; justify-content: center; }

/* SEO Mockup */
.dm-seo-mockup { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(0,0,0,0.06); animation: dmFloat 5s ease-in-out infinite; }
[data-theme="dark"] .dm-seo-mockup { background: #1a1a30; border-color: #2a2a4a; }
@keyframes dmFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.seo-browser-header { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.seo-dot { width: 10px; height: 10px; border-radius: 50%; }
.seo-dot.red{background:#ef4444}.seo-dot.yellow{background:#f59e0b}.seo-dot.green{background:#22c55e}
.seo-search-bar { flex: 1; padding: 6px 12px; background: #fff; border-radius: 16px; font-size: 0.7rem; color: #94a3b8; margin-left: 8px; }
.seo-results { padding: 14px; }
.seo-result { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.seo-result.top { border-left: 3px solid #22c55e; padding-left: 10px; }
.seo-result-url { font-size: 0.62rem; color: #22c55e; }
.seo-result-title { font-size: 0.85rem; font-weight: 600; color: #0066ff; margin: 2px 0; }
.seo-result-desc { font-size: 0.7rem; color: #64748b; }
.seo-metrics { display: flex; gap: 8px; padding: 12px 14px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.seo-metric { flex: 1; text-align: center; }
.seo-metric span { display: block; font-size: 0.6rem; color: #94a3b8; }
.seo-metric strong { font-size: 0.9rem; color: #0f172a; }
.seo-metric strong.up { color: #22c55e; }

/* PPC Mockup */
.dm-ppc-mockup { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(0,0,0,0.06); animation: dmFloat 5s ease-in-out infinite 1s; }
[data-theme="dark"] .dm-ppc-mockup { background: #1a1a30; border-color: #2a2a4a; }
.ppc-dashboard { padding: 16px; }
.ppc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 600; font-size: 0.85rem; color: #0f172a; }
.ppc-status.running { color: #22c55e; font-size: 0.7rem; }
.ppc-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ppc-stat-card { padding: 12px; background: #f8fafc; border-radius: 10px; text-align: center; }
.ppc-stat-label { font-size: 0.6rem; color: #94a3b8; display: block; }
.ppc-stat-value { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.ppc-stat-change { font-size: 0.62rem; font-weight: 600; }
.ppc-stat-change.up { color: #22c55e; }
.ppc-stat-change.down { color: #22c55e; }
.ppc-chart-label { font-size: 0.6rem; color: #94a3b8; margin-bottom: 6px; }
.ppc-svg { width: 100%; height: auto; }

/* Social Mockup */
.dm-social-mockup { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(0,0,0,0.06); animation: dmFloat 5s ease-in-out infinite 2s; }
[data-theme="dark"] .dm-social-mockup { background: #1a1a30; border-color: #2a2a4a; }
.social-dash { padding: 16px; }
.sd-header { font-weight: 600; font-size: 0.85rem; color: #0f172a; margin-bottom: 14px; }
.sd-platforms { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sd-platform { display: flex; align-items: center; gap: 10px; padding: 8px; background: #f8fafc; border-radius: 10px; }
.sd-platform-icon { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.sd-platform-info { flex: 1; }
.sd-platform-info span { font-size: 0.7rem; color: #64748b; display: block; }
.sd-platform-info strong { font-size: 0.82rem; color: #0f172a; }
.sd-platform-info .up { font-size: 0.62rem; color: #22c55e; }
.sd-post-preview { padding: 12px; background: #f8fafc; border-radius: 10px; }
.sd-post { }
.sd-post-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sd-post-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f43f5e, #f59e0b); }
.sd-post-header strong { font-size: 0.75rem; color: #0f172a; display: block; }
.sd-post-header span { font-size: 0.6rem; color: #94a3b8; }
.sd-post-content p { font-size: 0.75rem; color: #334155; margin: 0 0 8px; }
.sd-post-actions { display: flex; gap: 12px; font-size: 0.65rem; color: #64748b; }

/* Email Mockup */
.dm-email-mockup { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(0,0,0,0.06); animation: dmFloat 5s ease-in-out infinite 0.5s; }
[data-theme="dark"] .dm-email-mockup { background: #1a1a30; border-color: #2a2a4a; }
.email-campaign { padding: 16px; }
.ec-header { font-weight: 600; font-size: 0.85rem; color: #0f172a; margin-bottom: 12px; }
.ec-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.ec-stat { flex: 1; text-align: center; padding: 10px; background: #f8fafc; border-radius: 8px; }
.ec-stat span { display: block; font-size: 0.6rem; color: #94a3b8; }
.ec-stat strong { font-size: 0.9rem; color: #0f172a; }
.ec-preview { padding: 12px; background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0; }
.ec-email-header { margin-bottom: 8px; }
.ec-email-header strong { font-size: 0.75rem; color: #0f172a; display: block; }
.ec-email-header span { font-size: 0.65rem; color: #64748b; }
.ec-email-hero { height: 60px; background: linear-gradient(135deg, #f43f5e, #f59e0b); border-radius: 6px; margin-bottom: 8px; opacity: 0.6; }
.ec-email-title { font-size: 0.8rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.ec-email-text { font-size: 0.68rem; color: #64748b; margin-bottom: 8px; }
.ec-email-btn { display: inline-block; padding: 6px 16px; background: #f43f5e; color: #fff; border-radius: 6px; font-size: 0.65rem; font-weight: 600; }

/* Floating Tags */
.dm-float-tag {
    position: absolute; padding: 8px 16px; background: #fff;
    border-radius: 10px; font-size: 0.72rem; font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06); animation: dmTagFloat 3s ease-in-out infinite;
}
[data-theme="dark"] .dm-float-tag { background: #1e293b; color: #e0e0e0; }
.dm-float-tag.tag-top { top: -10px; right: -10px; color: #f43f5e; }
.dm-float-tag.tag-bottom { bottom: -10px; left: -10px; color: #f59e0b; animation-delay: 1.5s; }
.dm-float-tag.rose-tag { color: #f43f5e; }
.dm-float-tag.green-tag { color: #22c55e; }
@keyframes dmTagFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* Service Info */
.dm-service-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 16px;
}
.icon-rose{background:rgba(244,63,94,0.08);color:#f43f5e}
.icon-blue{background:rgba(0,102,255,0.08);color:#0066ff}
.icon-purple{background:rgba(139,92,246,0.08);color:#8b5cf6}
.icon-green{background:rgba(34,197,94,0.08);color:#22c55e}

.dm-service-info h3 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
[data-theme="dark"] .dm-service-info h3 { color: #e0e0e0; }
.dm-service-info p { font-size: 0.95rem; color: #64748b; line-height: 1.7; margin-bottom: 16px; }
[data-theme="dark"] .dm-service-info p { color: #94a3b8; }

.dm-feature-list { list-style: none; padding: 0; }
.dm-feature-list li {
    font-size: 0.88rem; color: #475569; padding: 6px 0;
    display: flex; align-items: flex-start; gap: 10px;
}
[data-theme="dark"] .dm-feature-list li { color: #94a3b8; }
.dm-feature-list li i { color: #22c55e; margin-top: 3px; font-size: 0.75rem; }

/* ===== Tools ===== */
.dm-tools-showcase { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.dm-tool-category {
    background: #fff; border-radius: 20px; padding: 35px 24px;
    text-align: center; border: 1px solid #e2e8f0; transition: all 0.3s;
}
[data-theme="dark"] .dm-tool-category { background: #1a1a30; border-color: #2a2a4a; }
.dm-tool-category:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.dm-tool-icon-wrap {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(244,63,94,0.06); color: #f43f5e;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 16px;
}
.dm-tool-category h4 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 20px; }
.dm-tool-orbit { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tool-bubble {
    padding: 8px 16px; background: #f1f5f9; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; color: #475569;
    transition: all 0.3s; animation: dmBubbleFloat 3s ease infinite;
    animation-delay: calc(var(--i) * 0.3s);
}
[data-theme="dark"] .tool-bubble { background: #0f0f23; color: #94a3b8; }
.tool-bubble:hover { background: #f43f5e; color: #fff; transform: scale(1.05); }
@keyframes dmBubbleFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ===== Benefits ===== */
.dm-benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.dm-benefit-card {
    background: #fff; border-radius: 18px; padding: 30px 24px;
    text-align: center; border: 1px solid #e2e8f0; transition: all 0.3s;
}
[data-theme="dark"] .dm-benefit-card { background: #1a1a30; border-color: #2a2a4a; }
.dm-benefit-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.dm-benefit-icon {
    width: 55px; height: 55px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin: 0 auto 14px;
}
.b-rose{background:rgba(244,63,94,0.08);color:#f43f5e}
.b-blue{background:rgba(0,102,255,0.08);color:#0066ff}
.b-green{background:rgba(34,197,94,0.08);color:#22c55e}
.b-purple{background:rgba(139,92,246,0.08);color:#8b5cf6}
.b-orange{background:rgba(245,158,11,0.08);color:#f59e0b}
.b-teal{background:rgba(20,184,166,0.08);color:#14b8a6}
.dm-benefit-card h4 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.dm-benefit-card p { font-size: 0.85rem; color: #64748b; line-height: 1.6; }

/* ===== Process ===== */
.dm-process-flow {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0; max-width: 1000px; margin: 0 auto; flex-wrap: wrap;
}
.dm-process-card {
    text-align: center; width: 180px; padding: 25px 15px;
    background: #fff; border-radius: 20px; border: 1px solid #e2e8f0;
    transition: all 0.3s; position: relative;
}
[data-theme="dark"] .dm-process-card { background: #1a1a30; border-color: #2a2a4a; }
.dm-process-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.dm-process-num { font-size: 2.5rem; font-weight: 900; color: rgba(244,63,94,0.08); position: absolute; top: 10px; left: 15px; line-height: 1; }
.dm-process-icon-wrap {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin: 0 auto 12px;
}
.dp-rose{background:rgba(244,63,94,0.1);color:#f43f5e}
.dp-blue{background:rgba(0,102,255,0.1);color:#0066ff}
.dp-purple{background:rgba(139,92,246,0.1);color:#8b5cf6}
.dp-green{background:rgba(34,197,94,0.1);color:#22c55e}
.dm-process-card h4 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.dm-process-card p { font-size: 0.8rem; color: #64748b; line-height: 1.5; margin-bottom: 8px; }
.dm-process-tag { font-size: 0.65rem; padding: 4px 10px; background: #f1f5f9; border-radius: 6px; color: #f43f5e; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.dm-process-connector { display: flex; flex-direction: column; align-items: center; padding: 0 10px; margin-top: 50px; }
.dmpc-line { width: 40px; height: 2px; background: linear-gradient(90deg, #f43f5e, #f59e0b); opacity: 0.3; }
.dmpc-arrow { color: #f43f5e; font-size: 0.7rem; margin-top: 2px; }

/* ===== CTA ===== */
.dm-cta-wrapper {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-radius: 28px; padding: 60px 40px; text-align: center;
    color: #fff; position: relative; overflow: hidden;
}
.dm-cta-glow { position: absolute; width: 300px; height: 300px; background: rgba(255,255,255,0.05); border-radius: 50%; top: -50px; right: -50px; filter: blur(50px); }
.dm-cta-wrapper h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; position: relative; }
.dm-cta-wrapper p { font-size: 1rem; opacity: 0.9; margin-bottom: 28px; position: relative; }
.dm-cta-wrapper .dm-gradient { background: linear-gradient(90deg, #fff, #fecdd3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dm-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.dm-btn-white { padding: 16px 30px; background: #fff; color: #f43f5e; border-radius: 14px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; }
.dm-btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .dm-service-block, .dm-service-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
    .dm-service-visual { order: -1; max-width: 400px; margin: 0 auto; }
    .dm-tools-showcase, .dm-benefits-grid { grid-template-columns: repeat(2,1fr); }
    .dm-hero-content h1 { font-size: 2.6rem; }
}
@media (max-width: 768px) {
    .dm-hero-content h1 { font-size: 2rem; }
    .dm-tools-showcase, .dm-benefits-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .dm-process-flow { flex-direction: column; align-items: center; gap: 20px; }
    .dm-process-card { width: 100%; max-width: 280px; }
    .dm-process-connector { display: none; }
    .dm-hero-stats { gap: 20px; flex-wrap: wrap; }
    .dm-float-tag { display: none; }
    .dm-section-header h2 { font-size: 2rem; }
    .dm-cta-wrapper { padding: 40px 20px; }
    .dm-cta-wrapper h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .dm-hero-content h1 { font-size: 1.7rem; }
    .dm-hero-actions { flex-direction: column; align-items: center; }
    .dm-btn-primary, .dm-btn-outline { width: 100%; justify-content: center; }
}